Author Topic: How to Monitor Classic 200SL  (Read 826 times)

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 2525
Re: How to Monitor Classic 200SL
« Reply #45 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
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

Graham

  • Sr. Member
  • ****
  • Posts: 254
    • ClassicDiy
Re: How to Monitor Classic 200SL
« Reply #46 on: May 22, 2020, 06:39:14 AM »
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
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

  • Newby
  • *
  • Posts: 36
Re: How to Monitor Classic 200SL
« Reply #47 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.
Justin B.
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex 1500 watt PSW inverter
600 AH 24 V LiFePO4 battery bank

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 2525
Re: How to Monitor Classic 200SL
« Reply #48 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
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 2525
Re: How to Monitor Classic 200SL
« Reply #49 on: May 22, 2020, 03:50:37 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 one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

justinbowser

  • Newby
  • *
  • Posts: 36
Re: How to Monitor Classic 200SL
« Reply #50 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...
Justin B.
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex 1500 watt PSW inverter
600 AH 24 V LiFePO4 battery bank

justinbowser

  • Newby
  • *
  • Posts: 36
Re: How to Monitor Classic 200SL
« Reply #51 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?
Justin B.
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex 1500 watt PSW inverter
600 AH 24 V LiFePO4 battery bank

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 2525
Re: How to Monitor Classic 200SL
« Reply #52 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
« Last Edit: May 22, 2020, 09:31:30 PM by ClassicCrazy »
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

justinbowser

  • Newby
  • *
  • Posts: 36
Re: How to Monitor Classic 200SL
« Reply #53 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?
Justin B.
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex 1500 watt PSW inverter
600 AH 24 V LiFePO4 battery bank

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 2525
Re: How to Monitor Classic 200SL
« Reply #54 on: May 22, 2020, 10:32:08 PM »
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

Graham

  • Sr. Member
  • ****
  • Posts: 254
    • ClassicDiy
Re: How to Monitor Classic 200SL
« Reply #55 on: May 23, 2020, 07:29:18 AM »
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
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

  • Newby
  • *
  • Posts: 36
Re: How to Monitor Classic 200SL
« Reply #56 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.
Justin B.
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex 1500 watt PSW inverter
600 AH 24 V LiFePO4 battery bank

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 2525
Re: How to Monitor Classic 200SL
« Reply #57 on: May 23, 2020, 12:09:35 PM »
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 one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

justinbowser

  • Newby
  • *
  • Posts: 36
Re: How to Monitor Classic 200SL
« Reply #58 on: May 23, 2020, 02:35:01 PM »
Larry, the IDE will not load .bin files...
Justin B.
Classic 200SL, 2.9 KW of Mission Solar panels
Samlex 1500 watt PSW inverter
600 AH 24 V LiFePO4 battery bank

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 2525
Re: How to Monitor Classic 200SL
« Reply #59 on: May 23, 2020, 07:31:29 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 one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie