¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Injecting a Hex Value


 

¿ªÔÆÌåÓý

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.?

I've got the flow basically written, but I'm having issues injecting a hex value into the device as it's not responding.

Device says it's connected, and I'm using "by-id" full path per Dave's video tutorial.?







Here is the info on the Hex values.



I'm injecting the following with no luck.

A string (A?)




A buffered Hex




String of hex values?



Tried converting the sting to hex and injecting.? Still nothing.??

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???

73
Kyle
AA0Z



Join [email protected] to automatically receive all group messages.