Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Questions about Ethernet via cable
Author | Message | ||||
Ossi Newbie Joined: 22/06/2023 Location: GermanyPosts: 6 |
Hello Peter, The functions of PicoW are great, easy to use, but unfortunately does not work in a metal control cabinet. 1. Is there any hardware that runs MMBasic and has an cable ethernet interface ? Something like PicoW, only with ethernet cable. 2. Or will there be sometime MMBasic functions for external ethernet modules for Pico via SPI ? For example something like this: https://www.berrybase.de/enc28j60-ethernet-modul?c=2505 https://www.berrybase.de/w5500-spi-ethernet-modul Thanks for hints. Greetings from Germany Ossi |
||||
Quazee137 Guru Joined: 07/08/2016 Location: United StatesPosts: 571 |
I too would like to use something like the w5500-spi-ethernet-module. In many water treatment locations WiFi just is not do able and many have hard wired ethernet available. The Webmite but not needing the WiFi. With the RPi's ramping back up. Not as cost-effective as the Pico and MMBasic. Quazee137 Could there be csub driver? Yea I know I'm not a c person. Waveshare RP2040-ETH using python will work. Its just not using MMBasic. Edited 2023-06-25 07:12 by Quazee137 |
||||
bigfix Senior Member Joined: 20/02/2014 Location: AustriaPosts: 128 |
I think those modules need quite some work to integrate In theory the 5500 has an integrated IP stack, but will still need some serious programming/testing to work at all with mmbasic How about a tiny travelrouter/accesspoint fitted nearby to deliver WiFi ? A quick search shows i.e. TP-Link TL-WR802N for 23 Euro Should do the job easily You could even put it together with the picomite into a metal box to limit outside "radiation" |
||||
hitsware2 Guru Joined: 03/08/2019 Location: United StatesPosts: 713 |
Have You tried uPython ? I resisted for years , but for some purposes it is so much more accessible than Basic . The syntax is different , but not completely so , ( as C ) .... my site |
||||
Quazee137 Guru Joined: 07/08/2016 Location: United StatesPosts: 571 |
Some cooling towers are in areas where there are cell phone equipment is attached and over powering any WiFi so they wire in cat5 ethernet in metal conduit. The other problem with cooling towers is all the metal and large tanks of water, pumps, servo valves, blowers all making lots of noise the WiFi can't get through. One last thing some places do not want their LAN's exposed to the internet or outside world. Cooling towers cost a lot to buy and install. Last thing they want is someone hacking in and playing with bleed valves or chemical pumps. Yes I have been playing with uPython so many dam library's and knowing which ones you need and doc's are not always clear or there. So I have to hunt down others code to see how the library needs to be used. If there was anything close to MMBasic's manual showing the way to use command's, functions and lib's for uPython would make it almost as easy as MMBasic. I got a few books on uPython and still need much more information to do complex coding right. Sorry soapbox got big. Quazee137 |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9129 |
The easiest way to connect to a wired network is a ethernet uart. Google "serial to rj45" |
||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3150 |
Untested by me, but e.g. USR-TCP232-T2 Grogster has used, and maybe can share code. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Ossi Newbie Joined: 22/06/2023 Location: GermanyPosts: 6 |
Hi to all Thanks for the tips and advice. @bigfix: I'm doing something similar right now with an old Fritzbox and a slightly open cabinet door for the wifi. Works for me, but is not a solution for friends or neighbors. I come from the assembler world and need a clear syntax without biblioheks from different sources like Quazee137 already wrote. With MMBasic it was the first time for me to create a webserver with a user interface without help from others. Otherwise my son made the software for a webfrontend in C and I sent the variables from an ATMega via I²C to the controller. But this is very cumbersome and I always need help to make changes. With Webmite I have everything in one hardware, this is cheap, power saving and with a clear syntay very easy to program. Especially the variables within the web pages are very helpful. @Peter: I think with a "serial to rj45" module it is not possible to use the nice features of the Webmite. Or are there functions for it that I don't know yet? Thanks for the support. Ossi |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9308 |
For both of those, I just used the MM console and connected that directly to the serial-network module. That COULD work well with a suitable PIN for security, and just using INKEY$ in a loop to act on admin menu options etc. In MY case, I was just experimenting, and it never got more advanced then just seeing if I could connect to the MM console remotely and issue commands - I could. With the help of forum members here at the time, I was able to setup the port-forwarding in the router so that I could then use TELNET I think it was, remotely, to log into the MM console and talk to it. You can do that with pretty much any serial-ethernet module. The SR106 modules from WizNet worked OK, but were expensive and harder to program then the USR232 modules from AE, so I ended up buying a few of those. The USR modules are cheap, easy to configure, and just worked right out of the box. The WIZ5100 module for ten bucks is a really nice module, and has the ethernet module on-board, so I think that would be a good all-in-one choice, but I don't have any of those, so have never programmed for that one. Apparently uses the SPI interface, so in theory, should not be that hard to control. It looks to be more of an ethernet interface then a serial-over-ethernet as the above modules are, so I expect you write and control it via HTML similar to the existing WebMite, rather then using a serial port. But I like the serial port idea - simple to work with, simple to use, and I still think the console - with a PIN for a bit of security - is an excellent way to have remote access. It does depend on what you want to do, I suppose. Smoke makes things work. When the smoke gets out, it stops! |
||||
Print this page |