JNBrook
09-17-2008, 07:28 PM
I am trying to write an xml file for a Brillian TV and am stuck...
I can get the connection to open properly with the correct connection speed stop bit, parity, etc. I can see from the port monitor that a certain number of bits are being sent.
Here is where I get stuck, I am not sure how to send the ASCII characters in the xml file. I have confirmed that the commands are correct by sending them manually.
The two commands I would like to send are:
Power on = *(Carriage Return) repeated 10 times
Power Off = *SE|POWR|OFF(Carriage Retrun)
The xml file I have so far is as follows:
<?xml version="1.0" encoding="utf-8"?>
<mServerDb vendor="EA Generic Driver" version="1.1.0">
<Modules>
<module base="EAGA_BTV" class="GENERIC" use="Y">
<mparam name="DISPLAY-AS" value="EAGA - Brillian LCOS Models" />
<mparam name="Description" value="EAGenericAdapter Brillian TV" />
<mparam name="MProtocol" value="EAGenericProtocol" />
<mparam name="CmdBtnGrp" value="EAGA_BTV" />
<mparam name="ParamsGrp" value="HVAC" />
<mparam name="DefaultImage" value="TV.gif" />
<DriverSpecific>
<connection>
<mparam name="CommandType" value="ASCII" note = "[ASCII]|BINARY" />
<mparam name="ConnectUsing" value="SERIAL" note="Valid values are either SERIAL or HTTP or SOCKET" />
<mparam name="FieldsGrp" value="EAGENERIC_SERIAL" />
<mparam name="HandShake" value="None" note="For SERIAL only. [None]|RequestToSend|RequestToSendXOnXOff|XOnXOff" />
<mparam name="BaudRate" value="19200" note="For SERIAL only. 2400|4800|[9600]|19200|38400|57600|115200" />
<mparam name="DataBits" value="8" note="For SERIAL only. Default to 8" />
<mparam name="StopBits" value="1" note="For SERIAL only. 0|[1]|1.5|2" />
<mparam name="Parity" value="None" note="For SERIAL only. [None]|Even|Odd|Mark|Space" />
</connection>
<outgoing-messages>
<param name="POWER ON" value="\0x2A\0x0D\0x2A\0x0D\0x2A\0x0D\0x2A\0x0D\0x2A\0x0D \0x2A\0x0D\0x2A\0x0D\0x2A\0x0D\0x2A\0x0D\0x2A\0x0D" />
<param name="POWER OFF" value="\0x2A\0x53\0x45\0x7C\0x50\0x4F\0x57\0x52\0x7C\0x4F \0x46\0x46\0x0D" />
</outgoing-messages>
</DriverSpecific>
</module>
</Modules>
<ModuleCommands>
<group name="EAGA_BTV">
<command name="POWER_ON" label="Power On" uiClass="On" />
<command name="POWER_OFF" label="Power Off" uiClass="Off" />
</group>
</ModuleCommands>
</mServerDb>
I would sure like to get this to work...I posted in the Generic Driver sub forum and go no response so am trying here.
JNBrook
I can get the connection to open properly with the correct connection speed stop bit, parity, etc. I can see from the port monitor that a certain number of bits are being sent.
Here is where I get stuck, I am not sure how to send the ASCII characters in the xml file. I have confirmed that the commands are correct by sending them manually.
The two commands I would like to send are:
Power on = *(Carriage Return) repeated 10 times
Power Off = *SE|POWR|OFF(Carriage Retrun)
The xml file I have so far is as follows:
<?xml version="1.0" encoding="utf-8"?>
<mServerDb vendor="EA Generic Driver" version="1.1.0">
<Modules>
<module base="EAGA_BTV" class="GENERIC" use="Y">
<mparam name="DISPLAY-AS" value="EAGA - Brillian LCOS Models" />
<mparam name="Description" value="EAGenericAdapter Brillian TV" />
<mparam name="MProtocol" value="EAGenericProtocol" />
<mparam name="CmdBtnGrp" value="EAGA_BTV" />
<mparam name="ParamsGrp" value="HVAC" />
<mparam name="DefaultImage" value="TV.gif" />
<DriverSpecific>
<connection>
<mparam name="CommandType" value="ASCII" note = "[ASCII]|BINARY" />
<mparam name="ConnectUsing" value="SERIAL" note="Valid values are either SERIAL or HTTP or SOCKET" />
<mparam name="FieldsGrp" value="EAGENERIC_SERIAL" />
<mparam name="HandShake" value="None" note="For SERIAL only. [None]|RequestToSend|RequestToSendXOnXOff|XOnXOff" />
<mparam name="BaudRate" value="19200" note="For SERIAL only. 2400|4800|[9600]|19200|38400|57600|115200" />
<mparam name="DataBits" value="8" note="For SERIAL only. Default to 8" />
<mparam name="StopBits" value="1" note="For SERIAL only. 0|[1]|1.5|2" />
<mparam name="Parity" value="None" note="For SERIAL only. [None]|Even|Odd|Mark|Space" />
</connection>
<outgoing-messages>
<param name="POWER ON" value="\0x2A\0x0D\0x2A\0x0D\0x2A\0x0D\0x2A\0x0D\0x2A\0x0D \0x2A\0x0D\0x2A\0x0D\0x2A\0x0D\0x2A\0x0D\0x2A\0x0D" />
<param name="POWER OFF" value="\0x2A\0x53\0x45\0x7C\0x50\0x4F\0x57\0x52\0x7C\0x4F \0x46\0x46\0x0D" />
</outgoing-messages>
</DriverSpecific>
</module>
</Modules>
<ModuleCommands>
<group name="EAGA_BTV">
<command name="POWER_ON" label="Power On" uiClass="On" />
<command name="POWER_OFF" label="Power Off" uiClass="Off" />
</group>
</ModuleCommands>
</mServerDb>
I would sure like to get this to work...I posted in the Generic Driver sub forum and go no response so am trying here.
JNBrook