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 13 made on Wednesday September 15, 2010 at 20:19
bnokes@AAVViD
Long Time Member
Joined:
Posts:
June 2009
31
On September 10, 2010 at 03:16, BluPhenix said...
Sorry but this:

s.send("**OK!!");
label = s.match(" ","\r",250);

Does not make sense. You first send something to the device without listening to what the device replies to you. Then you send nothing to the device and you expect a response from the device.

label = s.match("**OK!!","\r",250);

makes sense, but I don't know if this is what you want.
__

The command: s.send("**y8,3!!\r"); is wrong, you must not provide any \r at the end of the command string, so:
s.send("**y8,3!!"); is the right way to do it.
__

If you send label = s.match("**!!","\r", 2000);

You should get back "** OK !!\r", do you get it? If you do the comm is working ok.
__

Instead of hyperterminal you can use Br@y's Terminal, it's just what you need for serial communication, simple and with the right features
[Link: sites.google.com]

If you send label = s.match("**!!","\r", 2000);
You should get back "** OK !!\r", do you get it? If you do the comm is

so if label = s.match(" ", "\r", 2000); is the \r for return and does it have to be in there?


Hosting Services by ipHouse