Jim,
Thanks for the latest version of the plugin.
I got it installed, and started playing around a bit.
While I am not seeing the controller device (receiver of the rs232 commands) respond as I would expect it to, I did run a serial port sniffer and did see a bit of activity come back in my direction when I queried the name of the current mp3 that was playing on the device.
Having said that, the simple commands (change audio zone, input source, volume, etc) still don't seem to be working.
Going back to one of the simplest commands:
Control Mute for an Audio Zone
(Per the Docs they sent): Head(1 byte): 0x02
Reserved Byte(1 byte): 0x00
Zone Address(1 byte) : 0 through 16
Command(1 byte) 0x04
Data (1 byte): 0x1E (on) or 0x1f(Off)
Example:
Zone1 Mute On : 0x02 + 0x00 + 0x01 + 0x04 + 0x1E + Checksum
Zone1 Mute Off : 0x02 + 0x00 + 0x01 + 0x04 + 0x1F + Checksum
I took out the programmer calculator and added these values up to get the checksum.
For the sake of this example, I am working with "mute off". The result was the following:
Zone1 Mute Off : 0x02 + 0x00 + 0x01 + 0x04 + 0x1F + 0x26
Based on the back and forth we have had, I have converted this to the following:
02,00,01,04,1F,26
In the plugin, I have tried to both send this as HEX as well as Binary. My assumption is that HEX is what I want.
In either case, I send the command, see the following in the logs, but the mute control doesn't do anything.
Starting Up / Reloading Plugin Starting plugin "Simple Serial Plugin 0.9.1" (pid 3284)
Plugin "Simple Serial Plugin" connected
Plugin "Simple Serial Plugin 0.9.1" started
Simple Serial Plugin Debug <<-- entering deviceStartComm, Device: SerialTest; ID=71425186, Type=simpleSerialCommunicator
Simple Serial Plugin Debug Serial Port Name is /dev/cu.PL2303-00001004
Simple Serial Plugin Debug Serial Port Baud Rate is 38400
Simple Serial Plugin Debug Serial Port Parity is N
Simple Serial Plugin Debug Serial Port Data Bits are 8
Simple Serial Plugin Debug Serial Port Stops Bits are 1
Simple Serial Plugin Debug Device name is SerialTest
Simple Serial Plugin Debug Starting concurrent serial communications.
Simple Serial Plugin Debug Started concurrent thread.
Simple Serial Plugin Debug exiting deviceStartComm -->>
As HEX Nov 28, 2011 10:54:34 AM
Action Group Unmute Kitchen Audio (Zone 1)
Simple Serial Plugin Improper comma separated hexadecimal data?!
Simple Serial Plugin Debug Queue has 1 command(s) waiting.
Simple Serial Plugin Debug Processing command:
Simple Serial Plugin Debug Sending command:
Simple Serial Plugin Response from serial device: , of length 0 characters
Simple Serial Plugin Debug
As BinaryNov 28, 2011 11:04:52 AM
Action Group Unmute Kitchen Audio (Zone 1)
Simple Serial Plugin Improper comma separated binary data?!
Simple Serial Plugin Debug Queue has 1 command(s) waiting.
Simple Serial Plugin Debug Processing command:
Simple Serial Plugin Debug Sending command:
Simple Serial Plugin Response from serial device: , of length 0 characters
Simple Serial Plugin Debug
Because I am at work, I can only remote into the server at this point. Tonight, when I get home from work, I will sit down in front of one of these panels and try to send a bunch of different commands to see if I can get anything working. I can also try to "sniff" the serial port traffic to see what is going on.
That's the latest.
Dave