Hi
I'm trying to control my reciever(NAD T763) by RS232.
After monitoring the serial interface while using the dedicated NAD control application I've been able to document the commands I need. I've been able to utilize this commands via the Transport Send funcions, and the included SimpleSendAndRecieve-lua script.
However, I want more
1: I want to query values, like volume, source etc
2: I want these values available on the girder webpage
Here's where I need help. I don't know what to add to the lua file, the rs232-documentation is a lot more advanced that I'm used to, and I don't know how to present these values in the web page.
My forum user is not allowed to add url's to the RS232-documentation, but I'll try to explain:
Basicly the format is like this: <start>, Command, Data, <checksum>, 8-bit Checksum
Where <start> is always 01, <checksum> is always 02, and the 8-bit Checksum is ones complement of the sum of the Command and Data bytes.
Also note that values 0-19 is reserved, and need to be encoded with a flag character of 94
Set examples:
01 16 C2 02 27 - Set Source 1
01 16 C0 02 29 - Set Source 2
01 16 8C 02 5D - Set Volume -1 dB
01 16 88 02 61 - Set Volume +1 dB
Query examples: HEX14(DEC20)=Query
01 14 14 02 D7 Answer:01 14 14 54 37 36 33 02 E3
Best Regards, Sigurd




Reply With Quote
