ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#20993 - 04/01/09 12:35 PM PHP Serial write and read
mickel Offline
newbie


Registered: 12/12/06
Posts: 3
Hi, i have created a php script(with php serial class) to write and read to to port of the ocelot.

First i have try to send a x10 command to serial device.
This is working and i can control my light with a webpage.

When i send a x10 command to serial according to documentation i will get a 6 0 6(3 byte) back from the system as acknowlegde.

But i get the following back 06 00 06 FB 0C 07(hex) first 3 numbers are ok but i can't find out what the last 3 numbers are.

Can somebody give me a hint or can i ignore these?

Please let me know.

Br Mickel


Edited by mickel (04/01/09 12:40 PM)

Top
#20994 - 04/01/09 12:53 PM Re: PHP Serial write and read [Re: mickel]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6401
Loc: Montreal, QC, Canada
Looks like you're getting X10 autonotification messages. See parameter 15 in the controller parameter definitions (at the very end of the downloadable Ocelot manual).
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#21008 - 04/06/09 01:29 PM Re: PHP Serial write and read [Re: Guy Lavoie]
mickel Offline
newbie


Registered: 12/12/06
Posts: 3
Hi Guy,
Thanks for the response.
Now that you write this i remember that i have set this parameter in the ocelot.

But i adjust my script and only check the first 8 digit and compare it.

Code is now working and i can send x10 commands thru serial port of ocelot and get a statuscheck back.

Status messages i am writing i a log.

Thanks for the reply i will open a new topic where i place the code and some helpfiles.

Br mickel

Top
Page 1 of 1 1


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
3 registered (pbir, Bent, Martin in Texas) and 31 anonymous users online.
Recent Posts
SECU16IR Output Connecting To A Xantech Connecting Block
by Jean-Marie
Today at 08:36 AM
SECU16IR Output Connecting To A Xantech Connecting Block
by Jean-Marie
Today at 08:34 AM
how to post an icon
by manu
02/03/12 03:40 AM
Command Pair
by kuro
02/01/12 12:49 AM
Does anyone have a copy of the latest TSE?
by sevenzenith1
01/30/12 05:17 AM
Shout Box

Newest Members
feshh, manu, kuro, chuck214, Funkhauser
2747 Registered Users
Forum Stats
2747 Members
19 Forums
3837 Topics
22713 Posts

Max Online: 67 @ 08/16/11 03:08 PM
February
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29