Network LAN
Network LAN
Hello,
Where can I find more information / documentation about the network.LAN functionality?
Trying to use it for a project but cannot seem to find anything
Thank you
Where can I find more information / documentation about the network.LAN functionality?
Trying to use it for a project but cannot seem to find anything
Thank you
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Network LAN
It's a custom board but very similar to the Olimex - e407.
Additionally, after adjusting some drivers to enable this, my ADC keeps spitting out 0 values. It used to be working perfectly before
Additionally, after adjusting some drivers to enable this, my ADC keeps spitting out 0 values. It used to be working perfectly before
Re: Network LAN
I am still having trouble with this. Is there anywhere I could be referred to for assistance?
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Network LAN
I assume you've seen the official docs. Implementation of the network module is port specific: look in the source tree for modnetwork.c.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: Network LAN
Thanks,pythoncoder wrote: ↑Thu Aug 22, 2019 6:29 amI assume you've seen the official docs. Implementation of the network module is port specific: look in the source tree for modnetwork.c.
I think I understand your point. While I can import the network and usocket modules in REPL, I do not have access to the AbstractNIC class and the socket connections do not appear to be working.
So would that mean I have to write my own custom driver for the board?
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Network LAN
This is way outside of my experience. My general approach would be:
- Determine the chip used for the Ethernet adaptor.
- Search high and low for a C driver for it with source code.
- Assuming you find one, learn how the author integrates the low level driver into the network stack.
- See how existing network adaptors (e.g. WiFi, CC3200) integrate into MicroPython.
- Roll your sleeves up and set to work.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: Network LAN
If the board uses a lan8720 chipset, the loboris fork for the esp32 has support in micropython. Loboris made some small hardware mods to the lan8720 boards he was using. There is at least a thread on his forum.
https://loboris.eu/forum/showthread.php?tid=334
Loboris commented that he thought his code should work for the olimex boards.
https://loboris.eu/forum/showthread.php?tid=334
Loboris commented that he thought his code should work for the olimex boards.
Re: Network LAN
Hi rpr,rpr wrote: ↑Fri Aug 23, 2019 3:31 pmIf the board uses a lan8720 chipset, the loboris fork for the esp32 has support in micropython. Loboris made some small hardware mods to the lan8720 boards he was using. There is at least a thread on his forum.
https://loboris.eu/forum/showthread.php?tid=334
Loboris commented that he thought his code should work for the olimex boards.
It uses a LAN8710 chipset, which should be quite similar.
I'll take a look into that and let you know the outcome.
Thank you