A Forum run by Enthusiasts of MidNite Solar

The Open Source software/hardware corner => The Black Box project => Topic started by: zoneblue on March 20, 2014, 04:27:06 AM

Title: USB serial data
Post by: zoneblue on March 20, 2014, 04:27:06 AM
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?

Title: Re: USB serial data
Post by: 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.

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

Some day will have to add that.

boB
Title: Re: USB serial data
Post by: 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
Title: Re: USB serial data
Post by: dgd on April 07, 2015, 03:53:11 PM
. :.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
Title: Re: USB serial data
Post by: Resthome on April 07, 2015, 04:17:18 PM
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.