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

Login:
Pass:
 
 

Page 2 of 2
Topic:
Need Help Troubleshooting TSU/RFX9600
This thread has 19 replies. Displaying posts 16 through 20.
Post 16 made on Friday February 13, 2009 at 16:04
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
serial.send(anything but null or empty string) will clear the ENTIRE RX buffer as well.
This is equivalent to 1-way RS-232 actions.

serial.receive() and serial.match() only remove characters as requested from the buffer either a specific count (up to 512) or the string returned by match.

FYI, The RX buffer size for each port is 1024 bytes but the max receive length is 512 bytes.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 17 made on Sunday January 24, 2010 at 16:41
buzz
Super Member
Joined:
Posts:
May 2003
4,383
On February 13, 2009 at 16:04, Lyndel McGee said...
serial.send(anything but null or empty string) will clear the ENTIRE RX buffer as well.

Just to be clear:

If I send a command to port #1, I expect it to be cleared. Will the send command clear only port #1 or will ALL RX buffers be cleared?
Post 18 made on Sunday January 24, 2010 at 21:30
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
It will clear only Port #1 or Port #2 depending on which port. However, please note that RXF9600 Port #3 and Port #4 share a single UART (see wikipedia or google) and therefore a send to either Port #3 or Port #4 will clear the single buffer for both ports.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 19 made on Sunday January 24, 2010 at 22:37
buzz
Super Member
Joined:
Posts:
May 2003
4,383
Lyndel,

The tandem clearing ports of 3&4 part bugs me.

This implies that it is very risky to use ports #3 or #4 for two-way. Prior to sending anything one must make sure that both RX buffers are empty, and hope that there is no unsolicited RX traffic while sending a command on either port.

For example, will unsolicited RX on port #3 clear unread RX data waiting from port #4? Even if I poll every 100msec, a lot of mischief can happen between polls.
Post 20 made on Sunday January 24, 2010 at 22:41
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
That is correct. Therefore, all 1-way stuff is best suited for ports 3 & 4 with 2-way on Ports 1 & 2.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Page 2 of 2


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse