![]() |
SensorGnome - fresh data from the field to your plate > Remote Access for Monitoring and Data Downloads > Turbostick Huawei E8372 for remote access
Turbostick Huawei E8372 for remote access Turbostick Huawei E8372 for remote accessEdit From $1Table of contentsBell Canada offers this device. Disadvantages
Turbostick Set-upBefore using this turbostick with an SG:
Sensorgnome set-upCurrently, using this device requires the (pending) 2016-04-13 release of the SG software. {
"info": "default deployment",
"who": "who is responsible for this deployment",
"contact": "contact information for responsible party",
"shortLabel": "CHAP3",
"remoteStatusUpdatePeriodMinutes": 5,
"acquire": {
...
(don't forget the trailing comma). You can of course set this to a different value, but updates Dataplan UsageWith the default configuration, a message is sent every 5 minutes, and with no tags around, messages are ~580 bytes.
Of course, if remote commands are used to establish a secure tunnel to provide software updates What it doesself-registration: A new SG first registers itself with our server using TCP port 59022 at sensorgnome.org Update messages: The 2016-04-13 software release is the first to provide datagram-based communication for remote status
Messages are cryptographically signed, to reduce the risk of spoofed or corrupt messages. Push commands: Every 20 minutes, the SG will send an HTTP request to this URL: https://archived.sensorgnome.org/recv/1234BBBK5678 where the last 12 characters are the SG serial number. Our server will respond with the most
Push commands are created manually by sensorgnome.org admins, in response to user requests. Role of the onboard tag database
Update Message format (for the record, not for end-user consumption)Messages arrive from SGs with this format: +--SIGLEN--+ SIGNATURE-----+--------PAYLOAD-------------------------------------------+ | | | | | | +-SERNO------+-MACADDR--+-MSGLEN-+-COMPRESSED_MESSAGE------+ | 1 byte | SIGLEN bytes |12 alphanum | 6 bytes | 2 bytes| MSGLEN bytes | where SIGNATURE is the SHA512 signature of the compressed message using the SG's private key, SERNO is e.g. 3214BBBK7260, MACADDR is the raw 6-byte MAC address of the eth0 adapter, and the COMPRESSED_MESSAGE is a gzip-compressed JSON string encoding receiver status and tag detection summaries. MSGLEN is the length of the *compressed* message. SERNO and MACADDR are used to look up the public key used to verify the signature. Here is an example, with the serial number and MAC address shown as text, and message payload: 2814BBBK4765,c65f33699ed9: {"ts":1460563468.776,"gps":null,"devList":[],"param":[],"VAHstatus":{ "4":{"type":"AlsaMinder","device":"hw:0","rate":48000,"hwRate":48000,"numChan":2, "startTimestamp":1460563169.3085,"stopTimestamp":1460563168.3514,"running":true,"hasError":-77,"totalFrames":14366426}, "5":{"type":"AlsaMinder","device":"hw:1","rate":48000,"hwRate":48000,"numChan":2, "startTimestamp":1460563169.3435,"stopTimestamp":1460563168.4039,"running":true,"hasError":-77,"totalFrames":14366438}, "7":{"type":"AlsaMinder","device":"hw:2","rate":48000,"hwRate":48000,"numChan":2, "startTimestamp":1460563169.3786,"stopTimestamp":1460563168.4449,"running":true,"hasError":-77,"totalFrames":14366442}, "Socket#4":{"type":"TCPConnection","fileDescriptor":4,"timeConnected":1460563168.3136}, "Socket#5":{"type":"TCPConnection","fileDescriptor":5,"timeConnected":1460563168.3163}, "Socket:/tmp/VAH.sock":{"type":"TCPListener","socket":"/tmp/VAH.sock"}, "p4":{"type":"PluginRunner","devLabel":"4","libraryName":"lotek-plugins.so","pluginID":"findpulsefdbatch","pluginOutput":"pulses","totalFrames":14366426,"totalFeatures":1139}, "p5":{"type":"PluginRunner","devLabel":"5","libraryName":"lotek-plugins.so","pluginID":"findpulsefdbatch","pluginOutput":"pulses","totalFrames":14366438,"totalFeatures":991}, "p7":{"type":"PluginRunner","devLabel":"7","libraryName":"lotek-plugins.so","pluginID":"findpulsefdbatch","pluginOutput":"pulses","totalFrames":14366442,"totalFeatures":1084}}, "tagsSeen":{"Taylr#500@166.38:8":"5"}, "machInfo":{"bootCount":"000006","version":"Tue, 02 Feb 2016 13:00:09 GMT"} } This format is subject to change, and we will likely remove some of the rarely-changing items.
Was this page helpful?
Tags: (Edit tags)
|
||||||||||
Powered by MindTouch Core |