Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
RS232 Sharp AQUOS 4P-B55EJ2U
¿ªÔÆÌåÓý
I bought these monitors to replace sharps that were already in service. These monitors have a different RS232 code structure than the ones in place. So the Sharp module I was using won't work.
At the root of what happened is they went to a four-digit parameter so instead of VOLM20\x0D, it's now VOLM? 20\x0D. With perhaps a second return VOLM? 20\x0D\x0A.
doesn't seem to matter much either way.
The only guidance sharp has starts on page 51 of this.
First does anyone know of a module for these that will run on a 2 series. Didn't try every sharp module at marketplace, but the ones I did do not work.
I have written simple plus code that appears to create the proper command for raising and lowering volume (there are no build in volume up or volume down commands).
When I run the program the "Volume_Code" string gets what appears to be the correct code. And that singal (to_monitor$) is being sent directly to the TX input of the com port. But nothing happens. No feed back from monitor.?
If I then open the "to_monitor$" signal in debugger copy and paste the command into the stimulus and send it I get feedback, but it is an ERR.
When I send it a second time it works.
I'm thinking it's some kind of process logic thing, but I have tried that.
Here is my code
------------------------------------
DIGITAL_INPUT vol_up,vol_down;
STRING_OUTPUT Volume_Code;
INTEGER vol;
PUSH vol_up{
??????string temp[10];
? ?
??????if(vol<100){
? ? ? ? vol= vol+1;
??????}
? ?
????????????
? ? temp=itoa(vol);
? ? if(len(temp)=1){
? ? ? Volume_Code="VOLM ? "+temp+"\\x0D\\x0A";
??????}
? ? ??
??????else if(len(temp)=2){
? ? ? Volume_Code="VOLM ?"+temp+"\\x0D\\x0A";
??????}
??????else if(len(temp)=3){
? ? ? Volume_Code="VOLM "+temp+"\\x0D\\x0A";
??????}
????????????
????????????
}
PUSH vol_down{
??????string temp[10];
? ?
??????if(vol>0){
? ? ? ? vol= vol-1;
??????}
? ?
????????????
? ? temp=itoa(vol);
? ? if(len(temp)=1){
? ? ? Volume_Code="VOLM ? "+temp+"\\x0D\\x0A";
??????}
? ? ??
??????else if(len(temp)=2){
? ? ? Volume_Code="VOLM ?"+temp+"\\x0D\\x0A";
??????}
??????else if(len(temp)=3){
? ? ? Volume_Code="VOLM "+temp+"\\x0D\\x0A";
??????}
????????????
????????????
}
-------------------------------------------------------------------------
Thanks for any assistance.
Have a Great Day,
Thomas (Trey) Herb M.A. Ed., CTS A/V Systems Manager Warrington College of Business Bryan 232D (m) 352-294-2199 ? |
to navigate to use esc to dismiss