How to Monitor Classic 200SL

Started by justinbowser, April 16, 2020, 12:32:42 PM

Previous topic - Next topic

ClassicCrazy

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
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

Graham

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.
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

justinbowser

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.
Justin B. - KI5GKD
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex PST-1500-24W inverter
Specialized Power Systems 800 AH 24 V LiFePO4 battery bank (4x200)

ClassicCrazy

Did you put in the correct usb port of your Esp32 ? Look in Device Manager to make sure which one it is .

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

ClassicCrazy

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
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

justinbowser

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...
Justin B. - KI5GKD
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex PST-1500-24W inverter
Specialized Power Systems 800 AH 24 V LiFePO4 battery bank (4x200)

justinbowser

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?
Justin B. - KI5GKD
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex PST-1500-24W inverter
Specialized Power Systems 800 AH 24 V LiFePO4 battery bank (4x200)

ClassicCrazy

#52
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
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

justinbowser

What file do I need to load into the IDE to write out to the ESP32 board?
Justin B. - KI5GKD
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex PST-1500-24W inverter
Specialized Power Systems 800 AH 24 V LiFePO4 battery bank (4x200)

ClassicCrazy

system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

Graham

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

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)

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

Graham.
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

justinbowser

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.
Justin B. - KI5GKD
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex PST-1500-24W inverter
Specialized Power Systems 800 AH 24 V LiFePO4 battery bank (4x200)

ClassicCrazy

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
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

justinbowser

Larry, the IDE will not load .bin files...
Justin B. - KI5GKD
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex PST-1500-24W inverter
Specialized Power Systems 800 AH 24 V LiFePO4 battery bank (4x200)

ClassicCrazy

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 
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable