USB serial data

Started by zoneblue, March 20, 2014, 04:27:06 AM

Previous topic - Next topic

zoneblue

Ive taken a trawl through the archives are here are the serial threads:

http://midniteforum.com/index.php?topic=898.15
http://midniteforum.com/index.php?topic=1350.0
http://midniteforum.com/index.php?topic=1431.0
http://midniteforum.com/index.php?topic=957.20
http://midniteforum.com/index.php?topic=992.0

Three screenshots below:
1. available usb modes (local app)
2. putty in usb mode 0
3. putty in usb mode 1

Usb mode 0 appears to be several key registers translated, it runs farily quick several samples per second id say. Usb mode 1 runs through the entire range, but runs slower, taking about 30s to scan the full range.

Im guessing the Usb mode 3 is labelled Advanced. Is there any kind of way to query for a specific register or register range using mode 3?

I havent tried this on cubie yet, but first glance suggests neither mode 0 nor mode 1 will  be suitable for blackbox. The former: not enough registers, the latter: too slow. With newmodbusd/ tcp we can get the entire range in 15ms round trip, and that works really well with the target sample rate of 1 per second.

Back to the drawing board?

6x300W CSUN, ground mount, CL150Lite, 2V/400AhToyo AGM,  Outback VFX3024E, Steca Solarix PL1100
http://www.zoneblue.org/cms/page.php?view=off-grid-solar

boB

Quote from: zoneblue on March 20, 2014, 04:27:06 AM

Im guessing the Usb mode 3 is labelled Advanced. Is there any kind of way to query for a specific register or register range using mode 3?


Old thread, I know....

That's a great idea !

Wouldn't be a complete modbus stack but just being able to query a register might be nice.

Should be pretty easy.

Easy that is if I didn't have 100 other things in front of it !

Some day will have to add that.

boB
K7IQ 🌛  He/She/Me

dgd

Quote from: boB on February 25, 2015, 07:45:33 PM
Quote from: zoneblue on March 20, 2014, 04:27:06 AM

Im guessing the Usb mode 3 is labelled Advanced. Is there any kind of way to query for a specific register or register range using mode 3?


Old thread, I know....

That's a great idea !

Wouldn't be a complete modbus stack but just being able to query a register might be nice.

Should be pretty easy.


It would be nice if the exact same query and reply mechanism was implemented on the KID
Not so much modbus register querying but more data type querying
Eg. Query=Battery Voltage,  Reply=14.7

I could even imagine this as voice activated and SIRI replies from the Classic (didnt some 2011 classic advertising mention this feature?)

Dgd
Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand

dgd

. :.and have some sort of device ID attached to the query and reply so there could be several Classics, KIDS etc. (and the new range of MN inverters) all connected via USB hub to black box or the new MN system monitor  :)

Dgd
Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand

Resthome

Quote from: dgd on April 07, 2015, 03:29:28 PM
Quote from: boB on February 25, 2015, 07:45:33 PM
Quote from: zoneblue on March 20, 2014, 04:27:06 AM

Im guessing the Usb mode 3 is labelled Advanced. Is there any kind of way to query for a specific register or register range using mode 3?


Old thread, I know....

That's a great idea !

Wouldn't be a complete modbus stack but just being able to query a register might be nice.

Should be pretty easy.


It would be nice if the exact same query and reply mechanism was implemented on the KID
Not so much modbus register querying but more data type querying
Eg. Query=Battery Voltage,  Reply=14.7

I could even imagine this as voice activated and SIRI replies from the Classic (didnt some 2011 classic advertising mention this feature?)

Dgd

It's still on the back of the Check List that comes in the  Classic box.




John

10 x Kyocera KC140, Classic 150 w/WBJr, Link10 Battery Monitor, 850 AH @ 12v Solar One 2v cells, Xantrex PROwatt SW2000
Off Grid on Houseboat Lake Don Pedro, CA