Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 1 made on Saturday May 8, 2021 at 09:36
JohnL28
Long Time Member
Joined:
Posts:
July 2006
40
I have a very strange RS232 issue that I’m hoping someone can help me with. I have thousands of lines of code but I distilled the problem down to two lines:

[other code]
Result1 = Serial.M88.receive(CreateHEX("A5 5B 02 03 07 00 01 00 00 00 00 00 F3"), 50, 300);
[other code]
Result2 = Serial.M.match("VOLM20 \r", "\r", 250);

Serial.M88 is a reference to a Monoprice 8x8 Switch serial port. Serial.M is a reference to a Sharp TV serial port. Both lines work perfectly independently.
When I run this, the 1st line works fine. The volume on the TV does not change.
The only way to fix it is to enclose the 2nd line in a 3-second scheduleAfter and then it works fine.

Given the setup and how much video switching I actually do (5 TVs on a single wall for sports), the 3 seconds is a really long time. Is there a way to run the two lines without having to delay? Any help would be appreciated.


Hosting Services by ipHouse