![]() |
Forum Index : Microcontroller and PC projects : Renewable Energy Manager with MMBASIC
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
Hi Antony can you pls explain some more? Do you need a gateway function from the pic32 ethernet to the uart? Pls have a look at microchip network stack. There is some example code for this purpose Dani |
||||
sagt3k![]() Guru ![]() Joined: 01/02/2015 Location: ItalyPosts: 313 |
Hi Dani Maybe I have explained wrong. The application is for Windows ![]() The application is a typeof "TCP/PORT service <--> UART" that attaches to a UART port. Once the application is configured puts the UART port available via a Port/Tcp as "ser2net"- You can connect with telnet, putty example to 192.168.0.10:8282 and the UART answer etc. But the application will be adapted to better manage "Micromite 28pin". Thanks Antony |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
You need to open a socket that listens to a port, attach a stream and read from the stream and send it to the serial port. And the opposite for the return path. If you google chat server or socket server you will get plenty of examples. Also for serial communication. My preferred language in Windows is C# and with that it would not be to much work to get it working. Use your keyboard/screen to test the socket server first. Then repeat that with the serial. If that works you can 'connect' the two parts of the program. Microblocks. Build with logic. |
||||
sagt3k![]() Guru ![]() Joined: 01/02/2015 Location: ItalyPosts: 313 |
Practically Yes... I use Delphi to develop application.Delphi allow me to create a single executable file that can run on all Windows systems 32 and 64bit. The service that I am developing for send bytes from the two sides, it will allow me to do many other things including handle DTR / CTS or GPIO UART (FTDI?, CP2102?). So for example you could use some pins of UART <-> USB to do a reset or a wakeup to Micromite. Here a example with Putty. If you see I'm connected to IP 192.168.0.5 with port 8282. ![]() |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
Do you mean something like this? http://sourceforge.net/projects/serialethernetg/ |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I did something similar a couple of years ago. It defaults to 9600 baud so you will have to edit the inf file to suit micromites. I haven't got back to it to add a configure menu option. http://www.thebackshed.com/forum/forum_posts.asp?TID=5986&KW=mmlink For Linux I use ser2net. I intend to update MMLink to use similar options (eventually). Make sure that your program allows CHR$(0) to pass through. That's a common problem that stops otherwise good programs from being usable. Jim VK7JH MMedit |
||||
sagt3k![]() Guru ![]() Joined: 01/02/2015 Location: ItalyPosts: 313 |
Hi Swissembedded and Jim My application looks like MMlink. It's very simple. You start the application, set TCPport, set COMport (or by list or digit the COM), set baudrate and press START button. I use Putty for RAW/TCP connection. Here you can see images of application and putty settings. In attached my application with limited functionality:2015-11-28_225126_TCPuart.zip ![]() ![]() ![]() ![]() |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
First assembled prototype boards with LoRa Wan and EnOcean Smart Home Radio Expansion Board with Radio |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
Now I'm about to write firmware for the LoRa and enocean boards... https://www.kickstarter.com/projects/1983254852/emdo-can-do-your-energy-manager-for-renewable-ener/posts/1449247 |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
Pls see latest updates on kickstarter, EnOcean smart home transceiver and LoRa Wan transceiver are now integrated and have corresponding basic commands for communication. update |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
We passed CE and FCC certification today. EMC test |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
Congratulations! That is a major hurdle taken. Microblocks. Build with logic. |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
We started work on EMDO webservice too. Code is at github https://github.com/swissembedded/em/ |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
We started work on EMDO documentation too. Pls see the WIKI https://github.com/swissembedded/em/ |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
Getting pieces of the handbook together. If anybody interested, the new instruction are already in. https://www.dropbox.com/s/qa4sfy8gvqycv3s/emdo_draft_a.pdf?dl=0 |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
Manuals are out with description of the ethernet commands and others. https://www.kickstarter.com/projects/1983254852/emdo-can-do-your-energy-manager-for-renewable-ener/posts/1784450 |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
For those interested, there will be an EMDO OEM version with dual row 2.54mm pitch headers for a nice price. |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
We are just going to make big area for THT parts on the baseboard, place for wireless modules on a 100x160mm PCB. Any special wishes for the OEM board? |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
We are now about to add 22 language translations. Those interested, pls have a look on demo.ednme.com for our progress. Feedback is welcome about translation. We are not fully finished yet, but see that translation is challanging in some languages. |
||||
bigfix Senior Member ![]() Joined: 20/02/2014 Location: AustriaPosts: 129 |
The manual at EMDO manual is about the original version, which has somewhat limited I/O => one Relais, OneWire, 2xS0 in,out(Meters ?), RS485 As you mentioned the OEM Module What is the I/O capability ? External sensor inputs besides S0 or OneWire ? How do you normally control appliances ? Is MQTT useable to control i.e. WLAN Actors (Itead, Sonoff) Is there any I2C to the outside to control i.e. a relay card ? As this deviated a long time ago from MMbasic - what version is it comparable from basic capabilities |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |