Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:03 02 Aug 2025 Privacy Policy
Jump to

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 : Renewable Energy Manager with MMBASIC

     Page 2 of 3    
Author Message
swissembedded
Newbie

Joined: 22/11/2015
Location: Switzerland
Posts: 24
Posted: 07:10am 27 Nov 2015
Copy link to clipboard 
Print this post

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: Italy
Posts: 313
Posted: 10:45am 27 Nov 2015
Copy link to clipboard 
Print this post

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
AntonyEdited by sagt3k 2015-11-28
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 08:19pm 27 Nov 2015
Copy link to clipboard 
Print this post

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: Italy
Posts: 313
Posted: 10:02pm 27 Nov 2015
Copy link to clipboard 
Print this post

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: Switzerland
Posts: 24
Posted: 01:35am 28 Nov 2015
Copy link to clipboard 
Print this post

Do you mean something like this?
http://sourceforge.net/projects/serialethernetg/
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 10:06am 28 Nov 2015
Copy link to clipboard 
Print this post

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: Italy
Posts: 313
Posted: 12:53pm 28 Nov 2015
Copy link to clipboard 
Print this post

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









Edited by sagt3k 2015-11-29
 
swissembedded
Newbie

Joined: 22/11/2015
Location: Switzerland
Posts: 24
Posted: 09:44am 19 Dec 2015
Copy link to clipboard 
Print this post

First assembled prototype boards with LoRa Wan and EnOcean Smart Home Radio

Expansion Board with Radio

 
swissembedded
Newbie

Joined: 22/11/2015
Location: Switzerland
Posts: 24
Posted: 08:30am 24 Dec 2015
Copy link to clipboard 
Print this post

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: Switzerland
Posts: 24
Posted: 07:55am 30 Dec 2015
Copy link to clipboard 
Print this post

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: Switzerland
Posts: 24
Posted: 08:58am 19 Jan 2016
Copy link to clipboard 
Print this post

We passed CE and FCC certification today.
EMC test
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 03:18am 20 Jan 2016
Copy link to clipboard 
Print this post

Congratulations! That is a major hurdle taken.

Microblocks. Build with logic.
 
swissembedded
Newbie

Joined: 22/11/2015
Location: Switzerland
Posts: 24
Posted: 10:14pm 20 Jul 2016
Copy link to clipboard 
Print this post

We started work on EMDO webservice too. Code is at github
https://github.com/swissembedded/em/
 
swissembedded
Newbie

Joined: 22/11/2015
Location: Switzerland
Posts: 24
Posted: 07:59am 19 Aug 2016
Copy link to clipboard 
Print this post

We started work on EMDO documentation too. Pls see the WIKI
https://github.com/swissembedded/em/
 
swissembedded
Newbie

Joined: 22/11/2015
Location: Switzerland
Posts: 24
Posted: 09:38am 09 Jan 2017
Copy link to clipboard 
Print this post

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: Switzerland
Posts: 24
Posted: 07:09am 15 Jan 2017
Copy link to clipboard 
Print this post

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: Switzerland
Posts: 24
Posted: 07:39pm 25 Jun 2017
Copy link to clipboard 
Print this post

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: Switzerland
Posts: 24
Posted: 05:57am 22 Aug 2017
Copy link to clipboard 
Print this post

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: Switzerland
Posts: 24
Posted: 09:23pm 27 Oct 2017
Copy link to clipboard 
Print this post

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: Austria
Posts: 129
Posted: 06:27am 28 Oct 2017
Copy link to clipboard 
Print this post

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
 
     Page 2 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025