A Forum run by Enthusiasts of MidNite Solar

Charge Controllers and Clippers => The "Classic" charge controller => Topic started by: justinbowser on April 16, 2020, 12:32:42 PM

Title: How to Monitor Classic 200SL
Post by: justinbowser on April 16, 2020, 12:32:42 PM
Is there a way to monitor a Classic 200SL since it doesn't have an Ethernet port?
Title: Re: How to Monitor Classic 200SL
Post by: boB on April 17, 2020, 02:17:46 AM
The SL can be talked to through the RS-232 port(s)...   The phone jacks inside.

I think the SL has all 3 jacks in a row still ?   If so, then the MNGP remote can still be on the Classic itself and the RS232, through an adapter and to a computer through, typically, USB, can be controlled and monitored remotely

Others here will more than likely chime in on this. 

I have ideas on how to do this but others have actually done this without Ethernet  and/or will know more.



Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on April 17, 2020, 11:42:05 AM
Quote from: boB on April 17, 2020, 02:17:46 AM
The SL can be talked to through the RS-232 port(s)...   The phone jacks inside.

I think the SL has all 3 jacks in a row still ?   If so, then the MNGP remote can still be on the Classic itself and the RS232, through an adapter and to a computer through, typically, USB, can be controlled and monitored remotely

Others here will more than likely chime in on this. 

I have ideas on how to do this but others have actually done this without Ethernet  and/or will know more.
Bob,
So if it has a MNGP then you could do serial modbus to it ?  If that is the case should be able to do serial to 232 to a computer running Node Red or a raspberry pi . Grahams Android monitoring software is getting the modbus data via Ip modbus but maybe if his MQTT publisher software was tweaked to input the data via serial it would work.
I have published details in opensource section on how to get serial data out of Classic phone type jacks with all the pinouts etc. So maybe there is hope for SL model. Just isn't a plug and play solution at this time.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: boB on April 18, 2020, 12:11:26 AM
Quote from: ClassicCrazy on April 17, 2020, 11:42:05 AM

Bob,
So if it has a MNGP then you could do serial modbus to it ?  If that is the case should be able to do serial to 232 to a computer running Node Red or a raspberry pi . Grahams Android monitoring software is getting the modbus data via Ip modbus but maybe if his MQTT publisher software was tweaked to input the data via serial it would work.
I have published details in opensource section on how to get serial data out of Classic phone type jacks with all the pinouts etc. So maybe there is hope for SL model. Just isn't a plug and play solution at this time.

Larry

Yes Larry !

Exactly what I was thinking !

I know its not already "done"  but at least something to get started with maybe ?

Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on April 18, 2020, 01:15:14 PM
Quote from: boB on April 18, 2020, 12:11:26 AM
Quote from: ClassicCrazy on April 17, 2020, 11:42:05 AM

Bob,
So if it has a MNGP then you could do serial modbus to it ?  If that is the case should be able to do serial to 232 to a computer running Node Red or a raspberry pi . Grahams Android monitoring software is getting the modbus data via Ip modbus but maybe if his MQTT publisher software was tweaked to input the data via serial it would work.
I have published details in opensource section on how to get serial data out of Classic phone type jacks with all the pinouts etc. So maybe there is hope for SL model. Just isn't a plug and play solution at this time.

Larry

Yes Larry !

Exactly what I was thinking !

I know its not already "done"  but at least something to get started with maybe ?

I had my classic hooked up via serial but when I went to try it again after putting two classics in Follow Me it didn't work  - I didn't use the Follow me return cable  from first classic to second so was trying to use the unused open plug on one of the Classics.  Seems like when in Follow Me it won't work for regular serial modbus . But I never tried plugging into the MNGP plug instead - maybe that would have still worked for serial modbus too ?

Larry
Title: Re: How to Monitor Classic 200SL
Post by: boB on April 18, 2020, 11:47:00 PM
Quote from: ClassicCrazy on April 18, 2020, 01:15:14 PM


I had my classic hooked up via serial but when I went to try it again after putting two classics in Follow Me it didn't work  - I didn't use the Follow me return cable  from first classic to second so was trying to use the unused open plug on one of the Classics.  Seems like when in Follow Me it won't work for regular serial modbus . But I never tried plugging into the MNGP plug instead - maybe that would have still worked for serial modbus too ?

Larry


Yes, the MNGP phone jack port will do everything that the other two ports will do.

But the MNGP port has the two outside legs controlling the two extra LEDs on the MNGP.
That is the ONLY difference between the MNGP (top) port hack and the middle phone jack, really.

The bottom jack has access to everything in the Classic as well but of course does not have power and is reversed pinout.

The 3 ports ARE different from the internal software sense in the Classic but all respond to modbus commands and requests the same.

So, what you were thinking should work fine for external communication with the Classic as long as the MNGP isn't needed all of the time.

Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on April 19, 2020, 08:58:49 AM
Aaarrrrrgh... :o
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 04, 2020, 01:59:50 PM
I have this project on github https://github.com/ClassicDIY/ModbusAdapter (https://github.com/ClassicDIY/ModbusAdapter)
It converts Modbus RTU Serial to Modbus TCP over WIFI (read commands only) using an ESP32 dev module and a RS232 interface as per the readme.
I tested it using the lower RJ11 port of the classic.
It looks like the classic is sending other data along with the Modbus responses and doesn't seem to respond to every RTU request.

Does anyone have any idea what this extra data is and if the classic is expecting a response?

The modbus response starts at the 0A (unit ID) in the output below...

Title: Re: How to Monitor Classic 200SL
Post by: boB on May 04, 2020, 02:18:58 PM

If you have another Classic connected to one of the other jacks, that Classic's packets may be forwarded through the other lower jack, like the one you are connecting to.


I think I know...  Since it appears to be sending to address 0xFF, that means the packet is for the next classic connected, whatever its unit ID is set for.

So, this must be a Follow-Me packet.  If you turn Follow-Me OFF, I think that may get that extra data to stop.

That packet contains the charge stage the Classic is in and possibly the battery temperature if enabled as master temp sensor Classic.



Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 05, 2020, 07:53:09 AM
Quote from: boB on May 04, 2020, 02:18:58 PM

If you have another Classic connected to one of the other jacks, that Classic's packets may be forwarded through the other lower jack, like the one you are connecting to.


I think I know...  Since it appears to be sending to address 0xFF, that means the packet is for the next classic connected, whatever its unit ID is set for.

So, this must be a Follow-Me packet.  If you turn Follow-Me OFF, I think that may get that extra data to stop.

That packet contains the charge stage the Classic is in and possibly the battery temperature if enabled as master temp sensor Classic.

Thanks Bob,
After turning off 'Follow Me', I'm no longer getting the "FF 03 10 E5 00 06 C5 21" responses although I'm still getting "10 21 00 02 85 1F" but it doesn't appear to be affecting the RTU.

I tested the ModbusAdapter using a regular Classic 200, I assume it will work on an SL.
The day/hour and calendar tabs don't work since I haven't implemented the RTU File transfer function but at least the other tabs work...

Graham
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 05, 2020, 11:36:43 AM
Quote from: Graham on May 05, 2020, 07:53:09 AM
Quote from: boB on May 04, 2020, 02:18:58 PM

If you have another Classic connected to one of the other jacks, that Classic's packets may be forwarded through the other lower jack, like the one you are connecting to.


I think I know...  Since it appears to be sending to address 0xFF, that means the packet is for the next classic connected, whatever its unit ID is set for.

So, this must be a Follow-Me packet.  If you turn Follow-Me OFF, I think that may get that extra data to stop.

That packet contains the charge stage the Classic is in and possibly the battery temperature if enabled as master temp sensor Classic.

Thanks Bob,
After turning off 'Follow Me', I'm no longer getting the "FF 03 10 E5 00 06 C5 21" responses although I'm still getting "10 21 00 02 85 1F" but it doesn't appear to be affecting the RTU.

I tested the ModbusAdapter using a regular Classic 200, I assume it will work on an SL.
The day/hour and calendar tabs don't work since I haven't implemented the RTU File transfer function but at least the other tabs work...

Graham
Graham ,
I believe Bob said the SL model has MNGP so if you plug it into your MNGP jack it should work the same as an SL  model - if I understand it all correctly.  It would be interesting to know if the MNGP jack is unaffected by the Follow Me setting.

Will you be making a version of your Classic Monitoring app that gets its data this way via serial instead of via tcp modbus ?

Larry
Title: Re: How to Monitor Classic 200SL
Post by: boB on May 05, 2020, 01:07:38 PM
Mr. Crazy.  You may be right that the MNGP is causing that sending of packets that Graham mentioned in his most recent post.

I don't remember. 

Graham, was the MNGP plugged in when you saw those 10 89...  and 10 21...  packets coming through ?

And Follow-Me is only supposed to send and follow on those 2 bottom jacks ?  It could be that the MNGP is repeating but I don't remember that.

I have to re-learn what an 0x89 and 0x21 command is.

Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 06, 2020, 06:42:17 AM
Quote from: boB on May 05, 2020, 01:07:38 PM
Mr. Crazy.  You may be right that the MNGP is causing that sending of packets that Graham mentioned in his most recent post.

I don't remember. 

Graham, was the MNGP plugged in when you saw those 10 89...  and 10 21...  packets coming through ?

And Follow-Me is only supposed to send and follow on those 2 bottom jacks ?  It could be that the MNGP is repeating but I don't remember that.

I have to re-learn what an 0x89 and 0x21 command is.

I have a Classic 200 with a led panel instead on an MNGP which I swapped with the Classic Lite I had at the cottage...
I guess that makes it a classic lite!


Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 06, 2020, 06:45:56 AM
Quote from: ClassicCrazy on May 05, 2020, 11:36:43 AM
...
Will you be making a version of your Classic Monitoring app that gets its data this way via serial instead of via tcp modbus ?

Larry

If you use this ModbusAdapter firmware on a ESP32 with an RS232 interface then you can just use the regular Android app or the Local App with a Classic SL


Graham.
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 06, 2020, 11:05:38 AM
Posted a update to the firmware on https://github.com/ClassicDIY/ModbusAdapter/releases (https://github.com/ClassicDIY/ModbusAdapter/releases) for release 2.0.2

now supports up to 4 concurrent TCP connections
The firmware does not support modbus write commands at this time so you can only monitor the classic with the local app.
Day/Hour/Calendar view are not supported.

Graham.
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 13, 2020, 11:36:36 AM
OK, I'm trying to wrap my head around this and am a little confused.  I take it I need to order a ESP-WROOM-32 ESP32-S Development Board and an RS232 board.  Will the following work?

Serial module - https://smile.amazon.com/Anmbest-Converter-Connector-Raspberry-Microcontrollers/dp/B081T8P395

ESP32 Dev Module - https://smile.amazon.com/dp/B0718T232Z

Is there no Arduino board needed as a controller?
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 13, 2020, 01:38:25 PM
Quote from: justinbowser on May 13, 2020, 11:36:36 AM
OK, I'm trying to wrap my head around this and am a little confused.  I take it I need to order a ESP-WROOM-32 ESP32-S Development Board and an RS232 board.  Will the following work?

Serial module - https://smile.amazon.com/Anmbest-Converter-Connector-Raspberry-Microcontrollers/dp/B081T8P395

ESP32 Dev Module - https://smile.amazon.com/dp/B0718T232Z

Is there no Arduino board needed as a controller?

I think you have it right .
The only thing to double check when you get it is that the GPIO pins are the same on your ESP32 board as the one in the documentation . I think it will be but some Esp32 boards could have pins in different positions  but that one should be the same as in documentation. ( edit - I see on Amazon page they show the pinouts and that board is different positions where the pins are from the one in wiki below. It will work but you need to make sure you hook up to the correct pins)
Did you see this  info page ?
https://github.com/ClassicDIY/ModbusAdapter
Keep us posted on how it goes .  I have the things to try this - but haven't had time - plus I have regular Classic so no hurry on it for me.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 13, 2020, 02:14:01 PM
Larry,

Thanks, yes, I looked over that page but didn't see any mention of a controller even though there is a section for code.  I am used to doing stuff like this with an Arduino but I'm at the deep end of the pool with this!

I am back at our off-grid cabin but did not bring any of my Arduino prototyping stuffs with me so i need to figure out exactly what I need so I can order it.

Arduino?
ESP32
Serial module
RJ11 cable
Misc wire, etc.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 13, 2020, 05:58:09 PM
you dont' need the arduino . you program the esp32 using a micro usb to usb cable like most phones use these days.  I forget but I think you need to hold down one of the buttons when you flash it with the code. I wrote what I did to flash esp32 in the forum on Grahams Classic Android app - I think that is where . There is an easy to use flash utility to flash it . I have to run back outside now but will have to look at the wiki for that project again  later.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 13, 2020, 08:07:11 PM
Larry,

Thanks.  I have ordered the ESP32, Serial module, RJ11 cable, DB9, and some jumpers.  Should be here in about a week.

Justin B.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 14, 2020, 12:02:18 AM
Quote from: justinbowser on May 13, 2020, 08:07:11 PM
Larry,

Thanks.  I have ordered the ESP32, Serial module, RJ11 cable, DB9, and some jumpers.  Should be here in about a week.

Justin B.
Justin
Great - you should have your monitoring going soon.
I found the post I made where I flashed the Esp32 . Take a look here
http://midniteftp.com/forum/index.php?topic=4817.msg44671#msg44671
I was having trouble until I figured out I need to hold the button in. Some Esp32 boards you might  not need to hold that button in. I used Platformio to flash it, but the flash utility tool Graham talks about in the wiki will be the easiest . I have used that for other Esp stuff before.  The Arduino IDE programmer would work too if you added the  EspBoards libraries to it.
Graham has excellent step by step documentation on this page so let us know if you have any problems getting it going.
https://github.com/ClassicDIY/ModbusAdapter/wiki

Larry
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 14, 2020, 12:15:04 PM
Larry,

Duh, I feel dum dumb!  I looked over everything on the github page except the WIKI!  Looking at the board inputs do I need to supply iot with both 5V and 3.3V?  Can these voltages be easily tapped off the Classic or do I need to use a wall-wart or power supply?

Thanks for your help on this and hopefully I will be able to monitor this thing in a few weeks and then turn off "Chatty Kathy!"  I don't think my wife doesn't like how she says, "We're going to be best friends..."

Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 15, 2020, 02:00:28 AM
yeah I turned off Chatty Cathy long time ago -some of sound effects would sometimes make me jump.

The way I am seeing the wiring on the wiki you need to power the Esp32 with the micro usb port ( which is 5v ) and then you are taking the 3.3v from the Esp32 to power the RS232 converter.  The 3.3v doesn't need a separate supply - it is converted on the board from the 5v input.
I am not sure if there is 5v output available on the Classic.  If your battery is 12 or 24 should  be easy to use an automobile power plug to micro usb - - or there are also inexpensive buck converters available . I am always picking up cords and cables everyone tosses in electronic recycling bins so I have collected lots and use them to power my esp boards.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 16, 2020, 08:10:41 AM
The wiki documentation at https://github.com/ClassicDIY/ModbusAdapter/wiki (https://github.com/ClassicDIY/ModbusAdapter/wiki) can be edited by any github user, please feel free to add more detail as you see fit...

I found that some RS232 interface modules label the tx & rx inconsistently. Some have tx to represent pin 2 (tx) of the db9 connector and some label it as rx since it receives data from the ESP device. Very confusing!

If you use the one from Canakit as described on the github page, then GPIO16(RX) goes to RX of the adapter and GPIO17(TX) goes to TX.

Graham.
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 16, 2020, 10:38:39 AM
I ordered a couple of DC-DC variable converters so should have the power situation covered.  You're right, a couple of the sound effects made me a little twitchy the first time they surprised me!
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 17, 2020, 07:45:13 PM
I am putting this project  together . ( rain day here which we needed )
Just flashed the ModbusAdapter using the flash tool provided - couldn't be easier. The only thing I had to make sure of was the right serial port for my ESP32 which I did using Device manager - unplugged Esp32  and saw which one disappeared because I have a few ports being used.  I held down Boot button on my Esp32 and flashed with tool and waited till it was done and then let go of boot button and pressed the other button to reset. I was able to see the Esp32 on my Wifi but instead of connecting to it with computer and setting up that way , I used the Wifi setup on the flash tool . I didn't need to hold the boot button in - just did the wifi setup and entered my wifi ssid and password and it worked. 

Now on to doing the wiring from esp to the RS232 converter and to plug for Classic.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 17, 2020, 08:39:06 PM
Quote from: Graham on May 16, 2020, 08:10:41 AM
The wiki documentation at https://github.com/ClassicDIY/ModbusAdapter/wiki (https://github.com/ClassicDIY/ModbusAdapter/wiki) can be edited by any github user, please feel free to add more detail as you see fit...

I found that some RS232 interface modules label the tx & rx inconsistently. Some have tx to represent pin 2 (tx) of the db9 connector and some label it as rx since it receives data from the ESP device. Very confusing!

If you use the one from Canakit as described on the github page, then GPIO16(RX) goes to RX of the adapter and GPIO17(TX) goes to TX.

Graham.

I am checking out the wiring since I am planning on using the MNGP port because the other two ports won't work since they are in Follow Me mode.  The wiring for the top port is different. Also wondering if the 9v there could be used as power source via converter to power the Esp32 ?
Here is from the manual.  But I have to look back at my notes when I used the bottom jack to see if the manual is correct -it shows different from the other two ports but I think the MNGP works in any of the ports ( though without LED backlight )

Larry
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 17, 2020, 09:44:24 PM
I got the hardware wired up - will give a try tomorrow. I wired it according to top jack pinout . In the photo below was a power converter board I had laying around so I am going to try and use the 9v from the top jack to the converter board which converts to 5v and has standard usb jack . I will use regular usb to micro usb cord from that to the esp32 for power.
Hopefully it all works - find out tomorrow or whenever I get to it.
update ( I fixed one wiring mistake in the photo, then made another one because I looked at the bottom port wiring diagram instead of top  - had it right the first time so three times the charm) 1:30am soldering !
Larry
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 18, 2020, 09:06:36 AM
If you have any issues, you can test your serial connection on a pc if you have a USB to RS232 adapter like this https://www.newegg.ca/p/N82E16812203018?item=N82E16812203018&source=region&nm_mc=knc-googleadwordsca-pc&cm_mmc=knc-googleadwordsca-pc-_-pla-_-cables+-+serial+cables-_-N82E16812203018&gclid=CjwKCAjw5Ij2BRBdEiwA0Frc9Te4N5aS_ayeVwhO9of5PZkk6DRLMbk-lQj7lN3ZKBsX4SyFbTA0exoC48YQAvD_BwE (https://www.newegg.ca/p/N82E16812203018?item=N82E16812203018&source=region&nm_mc=knc-googleadwordsca-pc&cm_mmc=knc-googleadwordsca-pc-_-pla-_-cables+-+serial+cables-_-N82E16812203018&gclid=CjwKCAjw5Ij2BRBdEiwA0Frc9Te4N5aS_ayeVwhO9of5PZkk6DRLMbk-lQj7lN3ZKBsX4SyFbTA0exoC48YQAvD_BwE)
you can verify the serial modbus communication using my modbusTool https://github.com/ClassicDIY/ModbusTool (https://github.com/ClassicDIY/ModbusTool) using the Modbus Master in RTU mode, select the com port of the USB adapter and connect, you should be able to 'Read Holding Registers' with start address 4100. (don't forget to set the slaveID to what you have your classic set to, default is 10)

Graham.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 18, 2020, 04:38:36 PM
Graham ,
I got the Esp32 talking to the computer via wireless but must not have something right on the connection to the Classic because no data is showing up. I did try flipping the tx rx wires.  I also gave up powering the ESP32 from the 9v on jack - I think it might not have had enough current to run esp wifi.
Well I had a few problems - because I started this last night and then when I was first plugged in and trying to connect I tried reflashing when I did not see it show up on router today. Flashing was working but something not right - finally saw the Flash Tool defaulting to the other espfile for other project - it had the same name but different location.
Did you ever resolve the Follow Me errors on lower port or does follow me have to be off for this to work ? Reason I ask is because I have a serial cable wire coming inside from project a year or two ago and it already has rs232 on it. It would be nice to work inside to debug this instead of having to run out to shed all the time and now I need to get laptop charged up to figure out if my cable to top jack on Classic 2 in follow me will work okay on modbus. That is what I will be trying next time I get back at this. I guess

Larry
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 19, 2020, 01:47:31 AM
Quote from: Graham on May 18, 2020, 09:06:36 AM
If you have any issues, you can test your serial connection on a pc if you have a USB to RS232 adapter like this https://www.newegg.ca/p/N82E16812203018?item=N82E16812203018&source=region&nm_mc=knc-googleadwordsca-pc&cm_mmc=knc-googleadwordsca-pc-_-pla-_-cables+-+serial+cables-_-N82E16812203018&gclid=CjwKCAjw5Ij2BRBdEiwA0Frc9Te4N5aS_ayeVwhO9of5PZkk6DRLMbk-lQj7lN3ZKBsX4SyFbTA0exoC48YQAvD_BwE (https://www.newegg.ca/p/N82E16812203018?item=N82E16812203018&source=region&nm_mc=knc-googleadwordsca-pc&cm_mmc=knc-googleadwordsca-pc-_-pla-_-cables+-+serial+cables-_-N82E16812203018&gclid=CjwKCAjw5Ij2BRBdEiwA0Frc9Te4N5aS_ayeVwhO9of5PZkk6DRLMbk-lQj7lN3ZKBsX4SyFbTA0exoC48YQAvD_BwE)
you can verify the serial modbus communication using my modbusTool https://github.com/ClassicDIY/ModbusTool (https://github.com/ClassicDIY/ModbusTool) using the Modbus Master in RTU mode, select the com port of the USB adapter and connect, you should be able to 'Read Holding Registers' with start address 4100. (don't forget to set the slaveID to what you have your classic set to, default is 10)

Graham.

I downloaded Modbus Master on my windows computer and unzipped it into a folder . But I can't figure out how to run it ?

Larry
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 19, 2020, 02:30:38 AM
I can connect to Esp32 with local status app - but no data fills in .
This is serial data from Esp32
I have it connected to the top port , I turned off follow me - still nothing .


ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
Config size: 264
Loaded config 'iwcThingName'= 'ModbusAdapter'
Loaded config 'iwcApPassword'= <hidden>
Loaded config 'iwcWifiSsid'= 'Tomato24'
Loaded config 'iwcWifiPassword'= <hidden>
Loaded config 'iwcApTimeout'= '30'
Loaded config 'modbusPortParam'= '502'
Loaded config 'modbusAddressParam'= '10'
Loaded config 'baudSelector'= '19200'
SkipApStartup mode was applied
State changing from: 0 to 3
Connecting to [Tomato24] (password is hidden)
State changed from: 0 to 3
WiFi connected
IP address: 192.168.3.28
State changing from: 3 to 4
{"IP":"192.168.3.28","ApPassword":"ModbusAdapter"}
                                                  Accepting connection
State changed from: 3 to 4
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 19, 2020, 02:52:29 AM
I think I have my wiring right - since I couldn't get modbus master to work I tried Chipkins Modbus scanner with the usb to serial adapter going right to the cable to my Classic
seems like it was reading something ? photo of some of the scan

Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 19, 2020, 07:10:33 AM
Quote from: ClassicCrazy on May 19, 2020, 01:47:31 AM


I downloaded Modbus Master on my windows computer and unzipped it into a folder . But I can't figure out how to run it ?

Larry

You have to go to the Release Tab in github, (https://github.com/ClassicDIY/ModbusTool/releases (https://github.com/ClassicDIY/ModbusTool/releases)), download the ModbusTool.msi installation file, double click it to start the installation.
The file is not code signed (since a signing certificate is around $300/yr) so you will get a warning from Windows Defender, click 'more info' and 'Run Anyway' to start the installation.
Just click 'next...close' to complete the installation wizard. Once complete you will find the 'ModbusTool' menu item in the windows start menu where you have the ModbusMaster and ModbusSlave apps.

I added a wiki page describing the installation procedure https://github.com/ClassicDIY/ModbusTool/wiki (https://github.com/ClassicDIY/ModbusTool/wiki)

Graham
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 19, 2020, 07:50:33 AM
Quote from: ClassicCrazy on May 19, 2020, 02:52:29 AM
I think I have my wiring right - since I couldn't get modbus master to work I tried Chipkins Modbus scanner with the usb to serial adapter going right to the cable to my Classic
seems like it was reading something ? photo of some of the scan

looks like you're trying to read an invalid address, try 4100


ModbusTool should work now, try downloading the msi file again from https://github.com/ClassicDIY/ModbusTool/releases (https://github.com/ClassicDIY/ModbusTool/releases)
if you set it up to read at 4100 for 64 byte it should display data similar to the attachment

The Slave ID must be set to what you have in the classic (bottom of the Tech tab in the local app, not sure where it is on the MNGP)



Graham
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 19, 2020, 08:26:33 AM
Quote from: ClassicCrazy on May 18, 2020, 04:38:36 PM
Graham ,
I got the Esp32 talking to the computer via wireless but must not have something right on the connection to the Classic because no data is showing up. I did try flipping the tx rx wires.  I also gave up powering the ESP32 from the 9v on jack - I think it might not have had enough current to run esp wifi.
Well I had a few problems - because I started this last night and then when I was first plugged in and trying to connect I tried reflashing when I did not see it show up on router today. Flashing was working but something not right - finally saw the Flash Tool defaulting to the other espfile for other project - it had the same name but different location.
Did you ever resolve the Follow Me errors on lower port or does follow me have to be off for this to work ? Reason I ask is because I have a serial cable wire coming inside from project a year or two ago and it already has rs232 on it. It would be nice to work inside to debug this instead of having to run out to shed all the time and now I need to get laptop charged up to figure out if my cable to top jack on Classic 2 in follow me will work okay on modbus. That is what I will be trying next time I get back at this. I guess

Larry

I'm not sure if followMe has to be off, I connected the RX & gnd of my USB to RS232 adapter to probe the data between the ESP and the Classic serial comms using putty and I would see a lot more chatter from the classic when FollowMe was on but I'm not sure if that caused any problems. I did notice that the classic did not always answer every modbus request from the ESP so I modified the ESP code to cache the responses from the classic for up to one minute.

Graham.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 19, 2020, 03:42:06 PM
Thanks Graham - I got the Modbus Master installed .
It didn't seem to be working at first but for some reason I don't know all of a sudden it works .
Of course me trying different cables, adapters, etc who knows .
So I can now verify that I make connection to Classic on both lower and middle jacks ( with appropriate wiring changes between ports).
I still cannot get the data into the Esp32 . I checked my ttl to rs232 adapter with an arduino and it seemed to be working .
Some notes - a standard telephone cable reverses the ends so I had to take note that one end of the cable was opposite from the other when I wired it up.
I found a Radio Shack phone data module so that meant I could stop soldering off and onto my DB9 connector and just repunch the wires on data module instead - makes life easier and easier to fix mistakes. Hurray for me picking up stuff at garage sales and hamfests and keeping it around just in case I ever need it.
Larry
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 19, 2020, 04:28:21 PM
Graham ,
I was looking at the code and see reference to GPIO5 .
Should there be a connection to that pin on Esp32 or on the DB9 ?

void RtuMaster::Init(long baudRate, uint8_t modbusAddress)
{
    Serial1.begin(baudRate, SERIAL_8N1, GPIO_NUM_16, GPIO_NUM_17, false); // Modbus connection
    while (!Serial1)
    {
        ; // wait for serial port to connect.
    }
    _port = &Serial1;
    _unitId = modbusAddress;
    _rtsPin = GPIO_NUM_5;
    if (_rtsPin >= 0)
    {
        pinMode(_rtsPin, OUTPUT);
        digitalWrite(_rtsPin, LOW);
    }
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 20, 2020, 07:35:51 AM
Quote from: ClassicCrazy on May 19, 2020, 04:28:21 PM
Graham ,
I was looking at the code and see reference to GPIO5 .
Should there be a connection to that pin on Esp32 or on the DB9 ?

void RtuMaster::Init(long baudRate, uint8_t modbusAddress)
{
    Serial1.begin(baudRate, SERIAL_8N1, GPIO_NUM_16, GPIO_NUM_17, false); // Modbus connection
    while (!Serial1)
    {
        ; // wait for serial port to connect.
    }
    _port = &Serial1;
    _unitId = modbusAddress;
    _rtsPin = GPIO_NUM_5;
    if (_rtsPin >= 0)
    {
        pinMode(_rtsPin, OUTPUT);
        digitalWrite(_rtsPin, LOW);
    }

The classic serial ports don't expose the RTS or CTS pins so the _rtsPin won't have any affect.

Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 20, 2020, 07:57:22 AM
Quote from: ClassicCrazy on May 19, 2020, 03:42:06 PM
Thanks Graham - I got the Modbus Master installed .
It didn't seem to be working at first but for some reason I don't know all of a sudden it works .
Of course me trying different cables, adapters, etc who knows .
So I can now verify that I make connection to Classic on both lower and middle jacks ( with appropriate wiring changes between ports).
I still cannot get the data into the Esp32 . I checked my ttl to rs232 adapter with an arduino and it seemed to be working .
Some notes - a standard telephone cable reverses the ends so I had to take note that one end of the cable was opposite from the other when I wired it up.
I found a Radio Shack phone data module so that meant I could stop soldering off and onto my DB9 connector and just repunch the wires on data module instead - makes life easier and easier to fix mistakes. Hurray for me picking up stuff at garage sales and hamfests and keeping it around just in case I ever need it.
Larry

Try connecting the ModbusMaster app in TCP mode to the ESP's IP address and try 'Read Holding Register' at address 4100 for 20 bytes... let me know what it says in the log window.

+ if you have a TTL to USB adapter like this one
https://www.aliexpress.com/item/33037470874.html?src=google&src=google&albch=shopping&acnt=494-037-6276&isdl=y&slnk=&plac=&mtctp=&albbt=Google_7_shopping&aff_platform=google&aff_short_key=UneMJZVf&&albagn=888888&albcp=7386552844&albag=80241711349&trgt=743612850714&crea=en33037470874&netw=u&device=c&albpg=743612850714&albpd=en33037470874&gclid=CjwKCAjwqpP2BRBTEiwAfpiD-2TjpL8poiZQdsDnDK1-pZ547p5FPU0mW_St-EXOr6A8bMdER_I17RoCOJwQAvD_BwE&gclsrc=aw.ds (https://www.aliexpress.com/item/33037470874.html?src=google&src=google&albch=shopping&acnt=494-037-6276&isdl=y&slnk=&plac=&mtctp=&albbt=Google_7_shopping&aff_platform=google&aff_short_key=UneMJZVf&&albagn=888888&albcp=7386552844&albag=80241711349&trgt=743612850714&crea=en33037470874&netw=u&device=c&albpg=743612850714&albpd=en33037470874&gclid=CjwKCAjwqpP2BRBTEiwAfpiD-2TjpL8poiZQdsDnDK1-pZ547p5FPU0mW_St-EXOr6A8bMdER_I17RoCOJwQAvD_BwE&gclsrc=aw.ds)
, you can also connect the ESP serial (GPIO16,17) to your PC and use the ModbusSlave tool in RTU mode to emulate the classic, import the attached csv into ModbusSlave and listen to the COM port of the FTDI adapter (19200, 8, 1 None) SlaveID: 10
Then you should be able to have ModbusMaster send a TCP request to the ESP which will then issue a RTU request to the ModbusSlave, the response should make it's way back to the ModbusMaster and display the same data you imported in the ModbusSlave


Graham.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 20, 2020, 11:12:19 AM
Graham -
Got the ftdi hooked up to Modbus Slave - imported your csv to the esp32 pins
I guess it works
Screen shots of Modbus Master, Modbus Slave ,Local Status app connected to Esp32
I guess that means I have some communication issue with my Classic ? Maybe still some problem with my rs232 to ttl adapter or the 25 foot wire run to serial data .
Larry
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 20, 2020, 05:33:22 PM
My parts are trickling in from Amazon so I might be able to start wiring stuff up by end of week.  It looks like it's a bit mpore complicated than previously thought?
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 20, 2020, 09:16:49 PM
No not really that complicated .  Only a few wire connections. You just need to make sure you get them correct  and drawing it out would help. It was more complicated for me since I was switching around between top and bottom ports and the wiring is different for them and I also used different cables .
Not sure which cable you are getting but if you can see the wire colors on the end that plugs in to the Classic  make a drawing .  The Classic has a 6 pin connector but only uses the 3 of the 4 center pins ( doesn't use pin 1 or 6).  But a standard 4 wire telephone cable will also work if that is what you have since it has just the 4 center wires on it. 
I am happy to help if I can.
I didn't get mine to work - still debugging that as you saw in discussion above. The Esp32 part works as expected, the cable to Classic serial port works with computer,  just not sure where my issue is yet.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 20, 2020, 09:49:16 PM
I just got a run-of-the-mill (DSL I think) RJ-11 cable.  I will cut off one end and solder it to a DB9.  I also ordered a "pack" of voltage converters and will take 24V from my bank and step it down to 5V.
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 21, 2020, 07:03:51 AM
Quote from: ClassicCrazy on May 20, 2020, 11:12:19 AM
Graham -
Got the ftdi hooked up to Modbus Slave - imported your csv to the esp32 pins
I guess it works
Screen shots of Modbus Master, Modbus Slave ,Local Status app connected to Esp32
I guess that means I have some communication issue with my Classic ? Maybe still some problem with my rs232 to ttl adapter or the 25 foot wire run to serial data .
Larry

During my testing I found that the classic didn't always respond to modbus RTU commands when it was also had the ethernet connected.
I connected to it using the local app to turn off followMe at which point it stopped responding to any RTU request.
Once I disconnected the Ethernet cable and rebooted the classic, it started to work again.

You can also use the ftdi rx pin and something like CoolTerm to probe the data between the classic and the ESP by connecting the ftdi rx to either the RX & TX pins of the esp
while using the Android app setup with the IP address of the ESP32 to issue read commands every 2 seconds...
(connect the gnd of the ftdi to the ESP gnd, do not connect the tx or vcc of the ftdi)

I had the ESP setup next to the classic, so my serial cable was only about a foot long.

CoolTerm: https://freeware.the-meiers.org/ (https://freeware.the-meiers.org/)


Graham
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 21, 2020, 08:01:00 PM
I tried this morning to restart the Classic , restart it with no network , restart wtih follow me off. Still got no data to the Esp32.  I will try the cool term first,  then I am going to make up a short cable and try it with that.

"You can also use the ftdi rx pin and something like CoolTerm to probe the data between the classic and the ESP by connecting the ftdi rx to either the RX & TX pins of the esp
while using the Android app setup with the IP address of the ESP32 to issue read commands every 2 seconds"..

I don't understand where where this 2 second command setting would be ?

At least I am learning a lot with all this debugging !

Larry
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 22, 2020, 06:39:14 AM
Quote from: ClassicCrazy on May 21, 2020, 08:01:00 PM
I tried this morning to restart the Classic , restart it with no network , restart wtih follow me off. Still got no data to the Esp32.  I will try the cool term first,  then I am going to make up a short cable and try it with that.

"You can also use the ftdi rx pin and something like CoolTerm to probe the data between the classic and the ESP by connecting the ftdi rx to either the RX & TX pins of the esp
while using the Android app setup with the IP address of the ESP32 to issue read commands every 2 seconds"..

I don't understand where where this 2 second command setting would be ?

At least I am learning a lot with all this debugging !

Larry

I'm suggesting you use the ftdi & coolterm to view the data on pins 16 & 17 (rx/tx) of the esp so you can see the RTU commands being sent by the ESP and the response received from the classic. The esp will not send a RTU request to the classic unless it receives a TCP request from an app so you need to use the local app or the android app to send TCP modbus requests to the ESP.

You could also try connecting your ftdi to the RS232 adapter and use the ModbusMaster app in RTU mode to query the classic directly by selecting the ftdi com port @ 19200 8,1, None with slave ID 10, set the start address to 4100 for 20 byte then press the 'Read Holding Register' to see if the classic responds...

Graham.
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 22, 2020, 02:27:43 PM
OK, it's kinda rainy up here at the cabin so i figgred it'd be a good time to play with this.  I plugged the ESP32 into a USB port and ran flasher.exe, both with and without holding boot button, and get a DOS box for a bit then 5-6 lines flash up in the BOX for  split second then the DOS box closes.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 22, 2020, 03:48:54 PM
Did you put in the correct usb port of your Esp32 ? Look in Device Manager to make sure which one it is .

Larry
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 22, 2020, 03:50:37 PM
Quote from: ClassicCrazy on May 22, 2020, 03:48:54 PM
Did you put in the correct usb port of your Esp32 ? Look in Device Manager to make sure which one it is .
Also did you hold the boot button down the whole time it was trying to flash ?

Larry
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 22, 2020, 06:06:30 PM
Larry,

In Device Mangler it comes up as "Silicon Labs CP210x USB to UART Bridge (COM7).  Do I need to execute flasher with a switch like "flasher /com7' or what?  I never get the screen like that shown in the WIKI just the fleeting DOS box...
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 22, 2020, 06:12:28 PM
I went out and ran irt from a DOS box and get this:

C:\flasher
Traceback (most recent call last):
  File "flasher.py", line 5, in <module>
  File "c:\users\me\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
  File "flasher_esptool.py", line 36, in <module>
ImportError: DLL load failed while importing QtCore: The specified module could not be found.
[15516] Failed to execute script flasher

Is there some other software I need to load to support this?
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 22, 2020, 09:25:41 PM
What operating system are you using ?
I am using Windows 10 - I just downloaded the Flasher , clicked on it , told Windows it was okay to run, told my antivirus it was okay to run ( it isn't officially signed so you get the notices ) and it started up and looked just like in the Wiki.
I see your errors mention Python - I have Python installed on my Windows computer - so maybe if you install that it will work .
https://www.python.org/downloads/windows/
If you use Arduino you can try using the Arduino IDE if you add the Esp libraries so the esp board will be recognized and flash it just like you would load an Arduino program.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 22, 2020, 10:12:18 PM
What file do I need to load into the IDE to write out to the ESP32 board?
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 22, 2020, 10:32:08 PM
Quote from: justinbowser on May 22, 2020, 10:12:18 PM
What file do I need to load into the IDE to write out to the ESP32 board?

https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 23, 2020, 07:29:18 AM
Quote from: justinbowser on May 22, 2020, 06:12:28 PM
I went out and ran irt from a DOS box and get this:

C:\flasher
Traceback (most recent call last):
  File "flasher.py", line 5, in <module>
  File "c:\users\me\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
  File "flasher_esptool.py", line 36, in <module>
ImportError: DLL load failed while importing QtCore: The specified module could not be found.
[15516] Failed to execute script flasher

Is there some other software I need to load to support this?

Try running the following command, see if you get an install error...

pip install pyqt5

Flasher.py is just a wrapper for the esptool from expressif (the manufacturer of the ESP32)

https://github.com/espressif/esptool (https://github.com/espressif/esptool)

You could also use VSCode with platformIO to load the project and upload the firmware using the platformIO:Upload (-> in the lower toolbar) (look at "Programming the ESP32 ModbusAdapter" in the wiki https://github.com/ClassicDIY/ModbusAdapter/wiki (https://github.com/ClassicDIY/ModbusAdapter/wiki))

PlatformIO setup:
https://www.youtube.com/watch?v=0poh_2rBq7E (https://www.youtube.com/watch?v=0poh_2rBq7E)

Graham.
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 23, 2020, 11:41:45 AM
Larry - Got the board installed in the IDE and was able to load and run the WIFI scan sketch.  What file do I need to load into the ESP board via the IDE?  Thanks for pointing me in the right direction.

Graham -  When I tried to execute "pip install pyqt5" at a DOS prompt I got an error:

'pip' is not recognized as an internal or external command,
operable program or batch file.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 23, 2020, 12:09:35 PM
Quote from: justinbowser on May 23, 2020, 11:41:45 AM
Larry - Got the board installed in the IDE and was able to load and run the WIFI scan sketch.  What file do I need to load into the ESP board via the IDE?  Thanks for pointing me in the right direction.

Graham -  When I tried to execute "pip install pyqt5" at a DOS prompt I got an error:

'pip' is not recognized as an internal or external command,
operable program or batch file.

You flash firmware.bin
https://github.com/ClassicDIY/ModbusAdapter/releases
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 23, 2020, 02:35:01 PM
Larry, the IDE will not load .bin files...
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 23, 2020, 07:31:29 PM
Quote from: justinbowser on May 23, 2020, 02:35:01 PM
Larry, the IDE will not load .bin files...

Look above for Grahams instructions for using PlatformIO.  I thought Arduino IDE did the same thing but maybe not.

Larry 
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 23, 2020, 11:33:45 PM
I have installed Python, some kind of Microsoft crap, platformio, and a bunch of other stuff I've never heard of and all I get is errors, such and such module not found, blah, blah, blah...

Maybe someday if I get really bored I might look at it again but I think I'm done for now...

Larry - Thanks for your help but I guess I'm not "nerd" enough to figure out all this stuff. 
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 24, 2020, 06:50:55 AM
Quote from: justinbowser on May 23, 2020, 11:41:45 AM
...
Graham -  When I tried to execute "pip install pyqt5" at a DOS prompt I got an error:

'pip' is not recognized as an internal or external command,
operable program or batch file.

Looks like you might not have your python path set in windows

see step 1: https://datatofish.com/executable-pyinstaller/ (https://datatofish.com/executable-pyinstaller/)


Graham.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 24, 2020, 10:40:58 AM
Quote from: justinbowser on May 23, 2020, 11:33:45 PM
I have installed Python, some kind of Microsoft crap, platformio, and a bunch of other stuff I've never heard of and all I get is errors, such and such module not found, blah, blah, blah...

Maybe someday if I get really bored I might look at it again but I think I'm done for now...

Larry - Thanks for your help but I guess I'm not "nerd" enough to figure out all this stuff.

It takes some time and perseverance to get through all the small bugs that crop up with computers . Hang in there.

Larry

Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 24, 2020, 10:44:05 AM
Graham ,
I ruled out it being my cable because I plugged the MNGP into it  and it worked.
So I have to start debugging my RS232 to TTL converter or the ESP itself.
I have another converter around here somewhere I can try .

Larry
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 24, 2020, 11:46:24 AM
Graham - Thanks for the hint, I did not have it in the path.  I added it to the path and was able to install pyqt5 but flasher still won't run, still get error:

C:\Users\Barbi\Documents\ESP32\Firmware>flasher
Traceback (most recent call last):
  File "flasher.py", line 5, in <module>
  File "c:\users\me\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
  File "flasher_esptool.py", line 36, in <module>
ImportError: DLL load failed while importing QtCore: The specified module could not be found.
[21704] Failed to execute script flasher

I notice the path " File "c:\users\me\appdata..." in the error.  I have no c:\users\me\appdata... on the PC
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 24, 2020, 11:58:21 AM
Oh, I can now get the flasher.py script to run in Python but it just returns a prompt.  How do I tell it to load the firmware.bin file?
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 25, 2020, 07:28:52 AM
Quote from: justinbowser on May 24, 2020, 11:58:21 AM
Oh, I can now get the flasher.py script to run in Python but it just returns a prompt.  How do I tell it to load the firmware.bin file?


Let's try downloading the flasher from github and running the flasher.py in python

go to https://github.com/ClassicDIY/EspFlashTool (https://github.com/ClassicDIY/EspFlashTool)
click "Clone or Download" then "download zip"
using windows explorer, go to your download folder, right click on the ESPFlashTool-master.zip and Extract All
Open a Command window, navigate to C:\Users\Barbi\Downloads\EspFlashTool-master\EspFlashTool-master

if you execute a "DIR", you should see flasher.py, flasher_esptool.py...

now execute
python flasher.py

let me know if you see the ESP32 Flasher 1.0 window as shown in the attachment

Graham
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 25, 2020, 08:01:24 AM
Quote from: ClassicCrazy on May 24, 2020, 10:44:05 AM
Graham ,
I ruled out it being my cable because I plugged the MNGP into it  and it worked.
So I have to start debugging my RS232 to TTL converter or the ESP itself.
I have another converter around here somewhere I can try .

Larry

I would first try using the ModbusMaster in RTU mode to communicate to the classic directly from a pc over serial without the ESP if you have one of these USB to Serial cables like this one:
https://www.newegg.ca/p/N82E16812203018?item=N82E16812203018&source=region&nm_mc=knc-googleadwordsca-pc&cm_mmc=knc-googleadwordsca-pc-_-pla-_-cables+-+serial+cables-_-N82E16812203018&gclid=CjwKCAjw2a32BRBXEiwAUcugiDWxp96-P1USSIGwdu0MIZ6_ZegeX9BekGn9EbuTEgVm2t-38irGzBoCV7AQAvD_BwE (https://www.newegg.ca/p/N82E16812203018?item=N82E16812203018&source=region&nm_mc=knc-googleadwordsca-pc&cm_mmc=knc-googleadwordsca-pc-_-pla-_-cables+-+serial+cables-_-N82E16812203018&gclid=CjwKCAjw2a32BRBXEiwAUcugiDWxp96-P1USSIGwdu0MIZ6_ZegeX9BekGn9EbuTEgVm2t-38irGzBoCV7AQAvD_BwE)

Setup the Modbus Master as in the attachment, select the COM port of your USB to Serial adapter
once you connect, try "Read Holding Register" to see if you can read data from address 4100 of your classic

the next step would be connect the ESP/RS232 adapter to the classic, setup the Local App or Android app to the ESP's IP address so that it issues a modbus TCP read request to the ESP every 2 seconds, the ESP will convert that TCP request to a serial RTU request on the ESP's serial port 2 (pin 17).
Then, using a second RS232-TTL adapter connected to the USB to Serial adapter that is connected to your pc,
connect the RS232/TTL ground to the ESP gnd and the RS232/TTL RX to pin 17 (TX) of the ESP.
Launch "Coolterm' on your pc, connect to the USB/Serial com port under the 'Options' button, select "View Hex" then "Connect"
You should see the RTU request hex codes in Coolterm that are being transmitted by the ESP.
If you see this, then move the RS232/TTL RX over to pin 16 (RX) of the ESP to see if you're getting the RTU responses from the classic into the ESP.

let mo know how far you get...

Graham.
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 25, 2020, 11:42:52 AM
Graham - or should I call you Mr. Wizard? - that worked perfectly!  I have the ESP32 flashed and configured and now just need to make the cable.  I can't thank you enough and I will update as soon as I make the cable and get attached to the classic!
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 25, 2020, 02:27:22 PM
I have attached this "pile-o-stuff" up to the classic and the Classic Local App does not connect, indicates 'Device not Available"  Is there something in the Classic setup I need to change?  I can ping the ESP32 and get into the configuration screen via the device IP address so I'm pretty sure the network portion is working ok.

I am talking to the ESP32 by using my cell phone as a hot-spot/router.  Would this make a difference?  Do I need to get a cheapo WIFI router to connect to this thing?
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 26, 2020, 01:13:35 AM
Quote from: Graham on May 25, 2020, 08:01:24 AM
Quote from: ClassicCrazy on May 24, 2020, 10:44:05 AM
Graham ,
I ruled out it being my cable because I plugged the MNGP into it  and it worked.
So I have to start debugging my RS232 to TTL converter or the ESP itself.
I have another converter around here somewhere I can try .

Larry

I would first try using the ModbusMaster in RTU mode to communicate to the classic directly from a pc over serial without the ESP if you have one of these USB to Serial cables like this one:
https://www.newegg.ca/p/N82E16812203018?item=N82E16812203018&source=region&nm_mc=knc-googleadwordsca-pc&cm_mmc=knc-googleadwordsca-pc-_-pla-_-cables+-+serial+cables-_-N82E16812203018&gclid=CjwKCAjw2a32BRBXEiwAUcugiDWxp96-P1USSIGwdu0MIZ6_ZegeX9BekGn9EbuTEgVm2t-38irGzBoCV7AQAvD_BwE (https://www.newegg.ca/p/N82E16812203018?item=N82E16812203018&source=region&nm_mc=knc-googleadwordsca-pc&cm_mmc=knc-googleadwordsca-pc-_-pla-_-cables+-+serial+cables-_-N82E16812203018&gclid=CjwKCAjw2a32BRBXEiwAUcugiDWxp96-P1USSIGwdu0MIZ6_ZegeX9BekGn9EbuTEgVm2t-38irGzBoCV7AQAvD_BwE)

Setup the Modbus Master as in the attachment, select the COM port of your USB to Serial adapter
once you connect, try "Read Holding Register" to see if you can read data from address 4100 of your classic
QuoteYes USB to RS232 adapter connected to my cable to Classic using Modbus Master shows some data .

the next step would be connect the ESP/RS232 adapter to the classic, setup the Local App or Android app to the ESP's IP address so that it issues a modbus TCP read request to the ESP every 2 seconds, the ESP will convert that TCP request to a serial RTU request on the ESP's serial port 2 (pin 17).
QuoteOkay
Then, using a second RS232-TTL adapter connected to the USB to Serial adapter that is connected to your pc,
connect the RS232/TTL ground to the ESP gnd and the RS232/TTL RX to pin 17 (TX) of the ESP.
Quotehooked up as  explained above
Launch "Coolterm' on your pc, connect to the USB/Serial com port under the 'Options' button, select "View Hex" then "Connect"
You should see the RTU request hex codes in Coolterm that are being transmitted by the ESP.
QuoteNot sure which baud rate Coolterm should be but tried three different ones 9600, 19200, 115200- Coolterm does not register anything .See the screenshot . 
I think maybe my RS232 adapters might be bad ?
If you see this, then move the RS232/TTL RX over to pin 16 (RX) of the ESP to see if you're getting the RTU responses from the classic into the ESP.

let mo know how far you get...
That is how far I got !

Graham.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 26, 2020, 01:23:05 AM
Quote from: justinbowser on May 25, 2020, 02:27:22 PM
I have attached this "pile-o-stuff" up to the classic and the Classic Local App does not connect, indicates 'Device not Available"  Is there something in the Classic setup I need to change?  I can ping the ESP32 and get into the configuration screen via the device IP address so I'm pretty sure the network portion is working ok.

I am talking to the ESP32 by using my cell phone as a hot-spot/router.  Would this make a difference?  Do I need to get a cheapo WIFI router to connect to this thing?

Did you set the Local Status app to connect to the same IP address ?
The way I see it using a wifi router would be easier than using a phone set up as a hotspot - mainly because I know how routers work and don't have a clue about what the hotspot is doing. Seems like if you can get into it for config screen then it should connect to Local Status app using the same IP address if you enter that into the Local Status app configeration setup.

Even if your cable to the Classic is not working you should still be able to connect to the Esp32 with Local Status app and just see a blank screen .
The 3.28 ip is my Esp32

Larry
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 26, 2020, 07:59:41 AM
Quote from: justinbowser on May 25, 2020, 02:27:22 PM
I have attached this "pile-o-stuff" up to the classic and the Classic Local App does not connect, indicates 'Device not Available"  Is there something in the Classic setup I need to change?  I can ping the ESP32 and get into the configuration screen via the device IP address so I'm pretty sure the network portion is working ok.

I am talking to the ESP32 by using my cell phone as a hot-spot/router.  Would this make a difference?  Do I need to get a cheapo WIFI router to connect to this thing?

If you can browse to the ESP's home page from the pc that's running the local app you should be ok.
just enter the IP of the esp in the browser's address bar

Graham
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 26, 2020, 08:16:54 AM
Quote from: ClassicCrazy on May 26, 2020, 01:13:35 AM
Quote from: Graham on May 25, 2020, 08:01:24 AM
Quote from: ClassicCrazy on May 24, 2020, 10:44:05 AM
Graham ,
I ruled out it being my cable because I plugged the MNGP into it  and it worked.
So I have to start debugging my RS232 to TTL converter or the ESP itself.
I have another converter around here somewhere I can try .

Larry

...

let mo know how far you get...
That is how far I got !


Larry


Try using a ftdi adapter directly instead of rs232ttl to rs232 to usb

select the com port of your ftdi in coolterm at 19200 8,1,none with 'View Hex'
connect gnd of the ftdi to gnd of the esp
connect the rx of the ftdi to pin 17 (TX) of the esp
have the local app connected to the esp's ip

I'm suspecting it's an issue with the RS232 voltage levels,
RS232 levels are +12/-12Volts, the RS232 adapter converts RS232TTL (+3.2v, 0V) to standard RS232 (+/- 12v) using a voltage pump to boost the voltage from 3.2V to +/- 12v.
I had problems when I used my cheap rs232 adapter from China, it only worked when I used the adapter from Canakits...

The MNGP is supplied with +9 volts so it doesn't have to boost the voltage as much.

let me know if you see any data being transmitted from the esp

Graham.
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 26, 2020, 10:53:24 AM
Strange.  I can connect to the esp "Home Page" and get into the configuration screen fine.  On my laptop the "modbus adapter" appears in the list of wireless networks but when adding the IP to the Local App it reports "Device not available" after attempting to connect for several seconds.
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 26, 2020, 04:17:23 PM
it's probable expecting data from the classic and getting nothing
is your serial connection/rs232 adapter connected to the classic's lower serialport as shown in https://github.com/ClassicDIY/ModbusAdapter (https://github.com/ClassicDIY/ModbusAdapter)?

I tried connecting the local app to the esp's ip with the serial cable disconnected from the classic and I get connected but without any values in the gauges as in the attachment
The Android app also connects but keeps retrying to get data...

Graham
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 26, 2020, 04:45:56 PM
Yes, hooked to bottom port and I do not see the page in your image, just the screen where you add the IP and it says the device is not available. I will try switching Tx and Rx on the DB9 and try again.  If both of these devices are DTE then they probably should be hooked together with a crossover - at least that is what I might remember from ancient history!

Looking at the wiring diagram you provided it looks like tx and rx are crossed over.  I have ordered a db9 with screw terminals before I proceed further.  I am by myself with no vise or magnifier and I am not confident in my ability to get the connector soldered back on correctly given my "working conditions!"
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 26, 2020, 08:19:47 PM
Quote from: justinbowser on May 26, 2020, 04:45:56 PM
Yes, hooked to bottom port and I do not see the page in your image, just the screen where you add the IP and it says the device is not available. I will try switching Tx and Rx on the DB9 and try again.  If both of these devices are DTE then they probably should be hooked together with a crossover - at least that is what I might remember from ancient history!

Looking at the wiring diagram you provided it looks like tx and rx are crossed over.  I have ordered a db9 with screw terminals before I proceed further.  I am by myself with no vise or magnifier and I am not confident in my ability to get the connector soldered back on correctly given my "working conditions!"
I am afraid you might be in the same boat as I have been - that the inexpensive RS232 to ttl adapters we have won't work right.  I was trying to source the one that Graham mentioned - the one from Canakits - but have not been able to find one. There is another one I am looking at that seems to be better quality and might work. There is still a chance that yours will work fine - I may have ruined mine in a different project a year or two ago.
Yes hacking stuff to do new things sometimes does not come easily and takes some time and diligence.
Keep in mind that I don't even need this new adapter since the other ways for me to get the data work fine for me since I have a regular Classic. But I like to help test out these new programs and connections.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 26, 2020, 11:12:11 PM
It would be easier if I was at the house where I have a nice soldering station, O-scope, etc!  Once my new cable stuff gets here if it still doesn't work I'll try running the serial board with 5V instead of 3.3V.  Mine is supposed to operate on either but maybe 5V will give better levels.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 26, 2020, 11:21:01 PM
Quote from: Graham on May 26, 2020, 08:16:54 AM
Quote from: ClassicCrazy on May 26, 2020, 01:13:35 AM
Quote from: Graham on May 25, 2020, 08:01:24 AM
Quote from: ClassicCrazy on May 24, 2020, 10:44:05 AM
Graham ,
I ruled out it being my cable because I plugged the MNGP into it  and it worked.
So I have to start debugging my RS232 to TTL converter or the ESP itself.
I have another converter around here somewhere I can try .

Larry

...

let mo know how far you get...
That is how far I got !


Larry


Try using a ftdi adapter directly instead of rs232ttl to rs232 to usb

select the com port of your ftdi in coolterm at 19200 8,1,none with 'View Hex'
connect gnd of the ftdi to gnd of the esp
connect the rx of the ftdi to pin 17 (TX) of the esp
QuoteI tried this today using my usb ftdi adapter  but wasn't seeing anything on cool term. Not sure why not. I may dig around later and see what other boards I have in my stuff which is only so so organized. 

have the local app connected to the esp's ip

I'm suspecting it's an issue with the RS232 voltage levels,
RS232 levels are +12/-12Volts, the RS232 adapter converts RS232TTL (+3.2v, 0V) to standard RS232 (+/- 12v) using a voltage pump to boost the voltage from 3.2V to +/- 12v.
I had problems when I used my cheap rs232 adapter from China, it only worked when I used the adapter from Canakits...
QuoteI just remembered that when I was using these rs232 adapters a year or two ago for the Classic to serial arduino project they were getting real hot.  So I may have ruined the then.

The MNGP is supplied with +9 volts so it doesn't have to boost the voltage as much.

let me know if you see any data being transmitted from the esp
QuoteWhat I want to do is program my Esp32 with just a basic serial program and connect it up using my rs232 adapters just to talk to the other rs232 plugged into other usb adapter - just to see if I can get everything talking so that way I can tell which hardware I have is good or bad.
I looked online for the Canakits RS232 adapter that you have but can't find them available anywhere.
This one looks different than the cheap ones that are available  . https://www.ebay.com/itm/Ultra-Compact-RS232-To-TTL-Converter-W-Male-DB9-3-3V-5V-FREE-SHIPPING/233257882314?epid=1575378483&hash=item364f40d2ca:g:DsYAAOSwnhFeoWiO

Larry


Graham.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 26, 2020, 11:25:40 PM
Quote from: justinbowser on May 26, 2020, 11:12:11 PM
It would be easier if I was at the house where I have a nice soldering station, O-scope, etc!  Once my new cable stuff gets here if it still doesn't work I'll try running the serial board with 5V instead of 3.3V.  Mine is supposed to operate on either but maybe 5V will give better levels.

Just be careful where you feed 5v into the esp32 since I think they run off of 3.2 v and 5v in the wrong place might let the smoke out.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 27, 2020, 12:42:29 AM
It wouldn't be the first time!  I have a pretty good collection of "magic smoke..."
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 27, 2020, 06:56:07 AM
Quote from: ClassicCrazy on May 26, 2020, 11:21:01 PM


What I want to do is program my Esp32 with just a basic serial program and connect it up using my rs232 adapters just to talk to the other rs232 plugged into other usb adapter - just to see if I can get everything talking so that way I can tell which hardware I have is good or bad.
I looked online for the Canakits RS232 adapter that you have but can't find them available anywhere.
This one looks different than the cheap ones that are available  . https://www.ebay.com/itm/Ultra-Compact-RS232-To-TTL-Converter-W-Male-DB9-3-3V-5V-FREE-SHIPPING/233257882314?epid=1575378483&hash=item364f40d2ca:g:DsYAAOSwnhFeoWiO

Larry


you could write a simple program to send the following modbus request every 2 seconds from the esp32 on serial port 2 (19200 baud) to see if the classic responds...

0A 03 10 04 00 14 01 BF

this is a read holding register request for register 4100 for 20 bytes with slave ID = 10

Graham
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 29, 2020, 03:08:12 PM
Got in my new cable making stuffs today, made new serial cable and the Local AND Android App seem to be monitoring the Classic SL perfectly!

Thank you, Larry and Graham, for guiding me through this process.  This is a perfect day as it's finally quit raining and my 4th 24V 200 AH LiFePO4 battery was also delivered so I now have an 800 AH 24V  battery bank and I can now monitor everything properly!!!

Youze guyz rock!
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 29, 2020, 04:11:56 PM
One minor glitch...  I have to have my cell phone set to being a hot-spot in order for this to work.  Once I turn off the hot-spot both apps no longer monitor.  Apparently my phone is acting as a router so I have ordered a cheapo wifi router to provide a wifi "network" in the cabin.
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 30, 2020, 08:09:31 AM
Quote from: justinbowser on May 29, 2020, 03:08:12 PM
Got in my new cable making stuffs today, made new serial cable and the Local AND Android App seem to be monitoring the Classic SL perfectly!

Thank you, Larry and Graham, for guiding me through this process.  This is a perfect day as it's finally quit raining and my 4th 24V 200 AH LiFePO4 battery was also delivered so I now have an 800 AH 24V  battery bank and I can now monitor everything properly!!!

Youze guyz rock!

that's great, glad to hear that it works for you.

cheers
Graham.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on May 30, 2020, 10:11:03 PM
I ordered a different RS232 to TTL adapter .
https://www.amazon.com/gp/product/B00OPU2QJ4/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
I still don't understand why the cheap ones I have don't work. I can hook them up to rs232 adapter with ttl  wired to ttl inputs of ftdi adapter and then use terminal programs to make print go both ways. .
I will see how the new adapter does - it uses a different chip on it than the other ones I have.

Larry
Title: Re: How to Monitor Classic 200SL
Post by: mike90045 on May 30, 2020, 10:24:51 PM
Quote from: ClassicCrazy on May 30, 2020, 10:11:03 PM
I ordered a different RS232 to TTL adapter .
https://www.amazon.com/gp/product/B00OPU2QJ4/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
I still don't understand why the cheap ones I have don't work. I can hook them up to rs232 adapter with ttl  wired to ttl inputs of ftdi adapter and then use terminal programs to make print go both ways. .
I will see how the new adapter does - it uses a different chip on it than the other ones I have.

Larry

The cheap ones don't always generate the "high voltage" needed for the RS232 and instead, rely on some other source in the RS232 to generate the 12V   The expensive ones will generate it.
Title: Re: How to Monitor Classic 200SL
Post by: Graham on May 31, 2020, 06:57:50 AM
Quote from: justinbowser on May 29, 2020, 04:11:56 PM
One minor glitch...  I have to have my cell phone set to being a hot-spot in order for this to work.  Once I turn off the hot-spot both apps no longer monitor.  Apparently my phone is acting as a router so I have ordered a cheapo wifi router to provide a wifi "network" in the cabin.

FYI
If you boot your esp32 with GPIO15 held to ground, it will start in AP mode so you can change the wifi SSID/pw. The led in the esp will flash while it's in AP mode.
+ if GPIO4 is held to ground during boot, all the data stored in the NVRAM will reset cleared.

Graham.
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on May 31, 2020, 11:21:50 AM
Thanks, Graham. 
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on June 06, 2020, 07:26:09 PM
I have picked up a wireless router and I'm trying to get the ESP32 and it talking.  I can set up the router, I see it from my laptop but when I try to configure the esp32 with the routers SSID and Password it errors and complains about permissions on com7.  The only issue with the router is that there is no internet connected and it's IP address is on a different subnet than the ESP has.  Is there a way to assign a different IP address to the ESP32?  Mine always seems to come up with 192.168.43.80.
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on June 06, 2020, 11:53:37 PM
The router assigns the IP address to the ESP32 .
So when you connect to the esp to the router it should assign it an IP address if you have DHCP enabled.
How are you connecting to the ESP32 to change the SSID and password ? Using the flash tool or going to it's web address using your old hotspot method ?

Larry
Title: Re: How to Monitor Classic 200SL
Post by: Graham on June 07, 2020, 09:07:32 AM
Quote from: justinbowser on June 06, 2020, 07:26:09 PM
I have picked up a wireless router and I'm trying to get the ESP32 and it talking.  I can set up the router, I see it from my laptop but when I try to configure the esp32 with the routers SSID and Password it errors and complains about permissions on com7.  The only issue with the router is that there is no internet connected and it's IP address is on a different subnet than the ESP has.  Is there a way to assign a different IP address to the ESP32?  Mine always seems to come up with 192.168.43.80.

It might be easier for you just to enable your original phone hotspot so you can browse to the ESP IP address to change the SSID/PW.
the other option is to boot the ESP with D15 connected to GND, the onboard blue led should flash indicating it's in Access Point (AP) mode, use your phone wifi setup and look for the "ModbusAdapter" wifi hotspot, connect to it using "ModbusAdapter" as the password and click the "configure page" to change the SSDI/pw to your new router, remove the D15 to GND and reboot.

The third option is to do a full reset by connecting D4 to GND, reboot to clear all settings, reboot again without D4 connected, then you can use the ESPFlasher "Send Config" to set the SSID/PW over the COM port.


Graham.
Title: Re: How to Monitor Classic 200SL
Post by: justinbowser on June 07, 2020, 08:29:42 PM
Thanks, Graham, I'll try some of those when I get a chance.  I had tried it with "flasher.py" and that 's when I got the permissions type error on com7. 
Title: Re: How to Monitor Classic 200SL
Post by: champracer29 on December 22, 2022, 10:40:02 AM
Quote from: ClassicCrazy on May 13, 2020, 05:58:09 PM
you dont' need the arduino . you program the esp32 using a micro usb to usb cable like most phones use these days.  I forget but I think you need to hold down one of the buttons when you flash it with the code. I wrote what I did to flash esp32 in the forum on Grahams Classic Android app - I think that is where . There is an easy to use flash utility to flash it . I have to run back outside now but will have to look at the wiki for that project again  later.

Larry

Thanks, Larry for your help with everyone, I find this very informative. I am in the process of ordering those parts for two Midnite classic 150. There's no information on how to make this esp32 work with multi MPPT (more than one midnite classic). Any information point for me, please? Much appreciated!

David
Title: Re: How to Monitor Classic 200SL
Post by: ClassicCrazy on December 22, 2022, 01:29:27 PM
Quote from: champracer29 on December 22, 2022, 10:40:02 AM
Quote from: ClassicCrazy on May 13, 2020, 05:58:09 PM
you dont' need the arduino . you program the esp32 using a micro usb to usb cable like most phones use these days.  I forget but I think you need to hold down one of the buttons when you flash it with the code. I wrote what I did to flash esp32 in the forum on Grahams Classic Android app - I think that is where . There is an easy to use flash utility to flash it . I have to run back outside now but will have to look at the wiki for that project again  later.

Larry

Thanks, Larry for your help with everyone, I find this very informative. I am in the process of ordering those parts for two Midnite classic 150. There's no information on how to make this esp32 work with multi MPPT (more than one midnite classic). Any information point for me, please? Much appreciated!

David

David can you tell some more about your setup ?
Do you have ip hookup to them now ?
Yes you can get data for both of your Classics.  But you probably don't need to use esp32 to do it since the Classic 150's you can get the data out of them via ip to a raspberry pi.
So Classic 150 plugged into a router , the raspberry pi gets data from Classics via IP , then you can get the data from the raspberry pi .
The esp32 was used when something like the Classic SL model only had a serial port and no IP connections. I think that is how it went - I didn't reread this topic . But I am glad to help you get everything hooked up and working.
You can also get the data to Grahams Android app or use graphing programs running on a raspberry pi
https://github.com/ClassicDIY/ClassicMQTT
Larry