Skip to content

Instantly share code, notes, and snippets.

@cjo20
Created September 23, 2015 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjo20/a891c3e08892113712cc to your computer and use it in GitHub Desktop.
Save cjo20/a891c3e08892113712cc to your computer and use it in GitHub Desktop.
E:\Src\Diabetes\comlink2-uart>node examples\usb_stick.js
got bunyan
howdy
{ _readableState:
{ highWaterMark: 0,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: false,
ended: false,
endEmitted: false,
reading: false,
calledRead: false,
sync: true,
needReadable: false,
emittedReadable: false,
readableListening: false,
objectMode: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null },
readable: true,
domain: null,
_events:
{ end: { [Function: g] listener: [Function: onend] },
error: [Function] },
_maxListeners: 10,
_writableState:
{ highWaterMark: 0,
objectMode: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
sync: true,
bufferProcessing: false,
onwrite: [Function],
writecb: null,
writelen: 0,
buffer: [],
errorEmitted: false },
writable: true,
allowHalfOpen: true,
device:
{ busNumber: 4,
deviceAddress: 3,
deviceDescriptor:
{ bLength: 18,
bDescriptorType: 1,
bcdUSB: 512,
bDeviceClass: 0,
bDeviceSubClass: 0,
bDeviceProtocol: 0,
bMaxPacketSize0: 64,
idVendor: 2593,
idProduct: 32769,
bcdDevice: 272,
iManufacturer: 0,
iProduct: 0,
iSerialNumber: 0,
bNumConfigurations: 1 } },
initialized: false }
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"session","level":30,"msg":"REQUIRED TAP, reason init","time":"2015-09-23T00:42:45.159Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"stick chain opening","time":"2015-09-23T00:42:45.159Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"handling { name: 'ProductInfo', opcodes: [ 4, 0 ] }","time":"2015-09-23T00:42:45.161Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"pausing","time":"2015-09-23T00:42:45.161Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"sending","time":"2015-09-23T00:42:45.162Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"handling { name: 'SignalStrength', opcodes: [ 6, 0 ] }","time":"2015-09-23T00:42:45.162Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"reading, (wrote) 0400 {}","time":"2015-09-23T00:42:45.163Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"finding","time":"2015-09-23T00:42:45.164Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"TAPPED { raw: <Buffer 01 55 00 09 1d 00 00 00 01 43 6f 6d 4c 69 6e 6b 20 49 49 01 10 02 00 01 01
3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...> }","time":"2015-09-23T00:42:45.166Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"product info custom decoder","time":"2015-09-23T00:42:45.166Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"ProductInfo null { serial: '091d00',\n product: '0.0',\n rf: '868.35Mhz',\n description: 'ComLink II',\
firmware: '1.16',\n interfaces: [ [ 0, 'Paradigm RF' ], [ 1, 'USB' ] ] }","time":"2015-09-23T00:42:45.167Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"product info custom decoder","time":"2015-09-23T00:42:45.167Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"read { '0': null,\n '1': \n { serial: '091d00',\n product: '0.0',\n rf: '868.35Mhz',\n desc
iption: 'ComLink II',\n firmware: '1.16',\n interfaces: [ [Object], [Object] ] } }","time":"2015-09-23T00:42:45.168Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"resuming","time":"2015-09-23T00:42:45.168Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"pausing","time":"2015-09-23T00:42:45.169Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"sending","time":"2015-09-23T00:42:45.169Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"product info custom decoder","time":"2015-09-23T00:42:45.170Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"reading, (wrote) 0600 {}","time":"2015-09-23T00:42:45.170Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"finding","time":"2015-09-23T00:42:45.170Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"TAPPED { raw: <Buffer 01 55 00 a1 1d 00 00 00 01 43 6f 6d 4c 69 6e 6b 20 49 49 01 10 02 00 01 01
3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...> }","time":"2015-09-23T00:42:45.171Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"signal strength null 161","time":"2015-09-23T00:42:45.171Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"read { '0': null, '1': 161 }","time":"2015-09-23T00:42:45.172Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"resuming","time":"2015-09-23T00:42:45.172Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"OPENED function (ctx) {\r\n console.log('opened', 'args', arguments, 'this', this);\r\n }","time":
2015-09-23T00:42:45.173Z","v":0}
opened args { '0': null,
'1':
[ { serial: '091d00',
product: '0.0',
rf: '868.35Mhz',
description: 'ComLink II',
firmware: '1.16',
interfaces: [Object] },
161 ] } this { open: [Function: open_chain],
tap: [Function: tap],
sync: [Function: sync],
stats: [Function: stats],
signal_status: [Function: signal_status],
loop: [Function],
poll_signal: [Function: poll_signal],
sleep: [Function],
read_packet: [Function: read_packet],
poll_size: [Function],
operate: [Function: operate],
transmit: [Function: transmit_packet],
download: [Function],
status: [Function: status],
close: [Function: close] }
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"REQUIRED TAP STATS","time":"2015-09-23T00:42:45.175Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"handling { name: 'RadioStats', opcodes: [ 5, 0 ] }","time":"2015-09-23T00:42:45.176Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"pausing","time":"2015-09-23T00:42:45.176Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"sending","time":"2015-09-23T00:42:45.177Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"handling { name: 'UsbStats', opcodes: [ 5, 1 ] }","time":"2015-09-23T00:42:45.177Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"reading, (wrote) 0500 {}","time":"2015-09-23T00:42:45.178Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"finding","time":"2015-09-23T00:42:45.178Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"TAPPED { raw: <Buffer 01 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...> }","time":"2015-09-23T00:42:45.179Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"read { '0': null,\n '1': \n { errors: { crc: 0, sequence: 0, naks: 0, timeouts: 0 },\n packets: { r
ceived: 0, transmit: 0 } } }","time":"2015-09-23T00:42:45.179Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"resuming","time":"2015-09-23T00:42:45.180Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"pausing","time":"2015-09-23T00:42:45.180Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"sending","time":"2015-09-23T00:42:45.180Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"reading, (wrote) 0501 {}","time":"2015-09-23T00:42:45.182Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"finding","time":"2015-09-23T00:42:45.182Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"TAPPED { raw: <Buffer 01 55 00 00 00 00 00 00 00 00 03 00 00 00 03 00 04 00 04 00 03 04 00 00 05
0 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...> }","time":"2015-09-23T00:42:45.183Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"read { '0': null,\n '1': \n { errors: { crc: 0, sequence: 0, naks: 0, timeouts: 0 },\n packets: { r
ceived: 3, transmit: 3 } } }","time":"2015-09-23T00:42:45.183Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"resuming","time":"2015-09-23T00:42:45.184Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"XXX DONE results { '0': null,\n '1': \n [ { errors: [Object], packets: [Object] },\n { errors: [Obj
ct], packets: [Object] } ] }","time":"2015-09-23T00:42:45.184Z","v":0}
INTERFACE STATS null [ { errors: { crc: 0, sequence: 0, naks: 0, timeouts: 0 },
packets: { received: 0, transmit: 0 } },
{ errors: { crc: 0, sequence: 0, naks: 0, timeouts: 0 },
packets: { received: 3, transmit: 3 } } ]
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"handling { name: 'SignalStrength', opcodes: [ 6, 0 ] }","time":"2015-09-23T00:42:45.185Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"pausing","time":"2015-09-23T00:42:45.186Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"sending","time":"2015-09-23T00:42:45.186Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"reading, (wrote) 0600 {}","time":"2015-09-23T00:42:45.187Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"finding","time":"2015-09-23T00:42:45.187Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"TAPPED { raw: <Buffer 01 55 00 a5 00 00 00 00 00 00 03 00 00 00 03 00 04 00 04 00 03 04 00 00 05
0 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...> }","time":"2015-09-23T00:42:45.188Z","v":0}
signal stength null 165
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"read { '0': null, '1': 165 }","time":"2015-09-23T00:42:45.189Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"resuming","time":"2015-09-23T00:42:45.189Z","v":0}
signal stength null [ 165 ]
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"handling { name: 'SignalStrength', opcodes: [ 6, 0 ] }","time":"2015-09-23T00:42:45.190Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"pausing","time":"2015-09-23T00:42:45.190Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"sending","time":"2015-09-23T00:42:45.191Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"handling { name: 'Status', opcodes: [ 3, 0 ] }","time":"2015-09-23T00:42:45.191Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"reading, (wrote) 0600 {}","time":"2015-09-23T00:42:45.192Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"finding","time":"2015-09-23T00:42:45.192Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"TAPPED { raw: <Buffer 01 55 00 a3 00 00 00 00 00 00 03 00 00 00 03 00 04 00 04 00 03 04 00 00 05
0 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...> }","time":"2015-09-23T00:42:45.193Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"signal attempt 1 163","time":"2015-09-23T00:42:45.193Z","v":0}
SIGNAL null 163
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"read { '0': null, '1': 163 }","time":"2015-09-23T00:42:45.194Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"resuming","time":"2015-09-23T00:42:45.194Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"pausing","time":"2015-09-23T00:42:45.195Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"sending","time":"2015-09-23T00:42:45.195Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"signal attempt 2 [ 163 ]","time":"2015-09-23T00:42:45.196Z","v":0}
SIGNAL null [ 163 ]
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"REQUIRED TAP STATS","time":"2015-09-23T00:42:45.196Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"ENDING","time":"2015-09-23T00:42:45.197Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"FINISHED { '0': null, '1': [] }","time":"2015-09-23T00:42:45.197Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"handling { name: 'RadioStats', opcodes: [ 5, 0 ] }","time":"2015-09-23T00:42:45.197Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"handling { name: 'UsbStats', opcodes: [ 5, 1 ] }","time":"2015-09-23T00:42:45.198Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"reading, (wrote) 0300 {}","time":"2015-09-23T00:42:45.198Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"finding","time":"2015-09-23T00:42:45.199Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick.commands","level":30,"msg":"TAPPED { raw: <Buffer 01 55 00 00 02 00 00 00 05 04 00 00 00 00 03 00 04 00 04 00 03 04 00 00 05
0 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...> }","time":"2015-09-23T00:42:45.199Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"read { '0': null,\n '1': \n { ok: true,\n ack: 1,\n success: 85,\n status: 0,\n iface:
},\n debug_iface: '000200',\n size: 0,\n unknown_b: '05040000',\n unknown_c: '00000300',\n unknown_d: '04000400',\n unknown_e: '03040000',\n unknown_f: '05000000',\n u
known_g: '00000000',\n unknown_h: '0001000000000000000000000000000000000000000000000000000000000000' } }","time":"2015-09-23T00:42:45.200Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"resuming","time":"2015-09-23T00:42:45.201Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"MASTER ENDED {}","time":"2015-09-23T00:42:45.201Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"END on MASTER","time":"2015-09-23T00:42:45.201Z","v":0}
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"DONE WITH STATUS 0 0","time":"2015-09-23T00:42:45.203Z","v":0}
STATUS null { ok: true,
ack: 1,
success: 85,
status: 0,
iface: {},
debug_iface: '000200',
size: 0,
unknown_b: '05040000',
unknown_c: '00000300',
unknown_d: '04000400',
unknown_e: '03040000',
unknown_f: '05000000',
unknown_g: '00000000',
unknown_h: '0001000000000000000000000000000000000000000000000000000000000000' }
{"name":"comlink2-uart","hostname":"Chris-PC","pid":36296,"module":"stick","level":30,"msg":"CLOSED MASTER","time":"2015-09-23T00:42:45.208Z","v":0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment