¿ªÔÆÌåÓýLooks like your flows is expecting a line feed on input as Chris mentioned. Taking a look at the manual for the controller it appears you send a two byte word and get ?a two byte answer, so you might need to change the input to a fixed length of the two byte word. ? Here¡¯s a link on working with buffers. You can follow the examples to inject the ASCII A? and have it converted to a buffer before being sent to the controller. The response should be Ax where x is the actual antenna number. https://stevesnoderedguide.com/understanding-buffers-node-red 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of Kyle K
Sent: Wednesday, December 21, 2022 5:09 PM To: [email protected] Subject: [nodered-hamradio] Injecting a Hex Value ? I've been working on this WA4MCM controller and have a few issues.? Hopefully someone can help me.? After installing a new USB port on the back of the unit and the PI actually seeing the unit, now I'm to the point of trying to get data out of it.? const bufferText = Buffer.from('A?', 'utf8') const text = bufferText.toString('hex') msg.payload = text return msg; Any ideas on what I might be doing wrong??? |