stephenhouser / node-red-contrib-wsjt-x

A Node to handle the decoding of WSJT-X data in NodeRed.
Other
6 stars 0 forks source link

Support for JTDX #1

Closed stephenhouser closed 2 years ago

stephenhouser commented 2 years ago

JTDX is a derivative of WSJT-X and can send similar status, decode, heartbeat messages over UDP.

The current version throws the following error on decoding.

Dec 19 12:46:17 raspberrypi Node-RED[20160]: RangeError: Offset is outside the bounds of the DataView
Dec 19 12:46:17 raspberrypi Node-RED[20160]:     at DataView.getUint32 (<anonymous>)
Dec 19 12:46:17 raspberrypi Node-RED[20160]:     at Parser.eval [as compiled] (eval at Parser.compile (/home/pi/.node-red/node_mo
Dec 19 12:46:17 raspberrypi Node-RED[20160]:     at Parser.parse (/home/pi/.node-red/node_modules/binary-parser-encoder/dist/bina
Dec 19 12:46:17 raspberrypi Node-RED[20160]:     at Object.decode (/home/pi/.node-red/node_modules/node-red-contrib-wsjt-x/wsjt-x
Dec 19 12:46:17 raspberrypi Node-RED[20160]:     at WSJTXDecodeNode._inputCallback (/home/pi/.node-red/node_modules/node-red-cont
Dec 19 12:46:17 raspberrypi Node-RED[20160]:     at /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.
Dec 19 12:46:17 raspberrypi Node-RED[20160]:     at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/util/li
Dec 19 12:46:17 raspberrypi Node-RED[20160]:     at WSJTXDecodeNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/
Dec 19 12:46:17 raspberrypi Node-RED[20160]:     at WSJTXDecodeNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-
Dec 19 12:46:17 raspberrypi Node-RED[20160]:     at WSJTXDecodeNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@no
Dec 19 12:46:17 raspberrypi Node-RED[20160]: RangeError: Offset is outside the bounds of the DataView
stephenhouser commented 2 years ago

JTDX Network protocol is the same as WSJT-X up to around v2.0. The relevant code in both of these projects is:

stephenhouser commented 2 years ago

This was done in 2078708b834f9acb4fe3c86fc04c5a52b82a83c3