ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#20678 - 12/22/08 05:02 PM Serial Commands. Why DIfferent?
rje Offline
newbie


Registered: 06/12/08
Posts: 10
Loc: Ontario, Canada
I see in Guy's updated serial protocol commands for a variable block request, the command is (hex) 2A 00 00 01 B0 00 94 27.

When I monitor the serial port with the ADIOcelot plugin running in HomeSeer I see two commands being sent, 2A 00 00 91 AA 00 00 A6 and 2A 00 00 8D B5 00 25 E9. Which returns the 256 byte block of data.

When I use Azeotech's DAQFactory program and send the Ocelot Guy's command I get a block of data that is not the variables I should see. When I use the first command from the ADIOcelot program I get the proper block of variables.

Any explanation of the command differnce?

Top
#20680 - 12/22/08 06:37 PM Re: Serial Commands. Why DIfferent? [Re: rje]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
Well, the second command is reading the realtime i/o status of any latched input modules (SECU16 and SECU16I).

For the first command, you seem to be showing the "Get Unit Type" command (2A 00 00 01 ...). The command I listed for "Read Variables" is actually shown as:

<42>,<0>,<0>,<143>,<169>,<0>,<13>,<151> which translates to:

2A 00 00 8F A9 00 0D 97 in hex

It could be that the command I listed in the FAQ section might have changed from a previous controller executive version, since these commands are reading a raw block of RAM.

If the command executed by the ADIOcelot plugin works, then use that one. I'd like to know though, what version of the executive is your Ocelot running. I would also like to know what you get when you use the command I just listed above.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#20681 - 12/23/08 04:54 PM Re: Serial Commands. Why DIfferent? [Re: Guy Lavoie]
rje Offline
newbie


Registered: 06/12/08
Posts: 10
Loc: Ontario, Canada
Sorry wrong command for variables and yes it was the 'get unit type'.

So your command for variables is and returns,

2A 00 00 8F A9 00 0D 97

2A 00 00 8F A9 00 00 00 00 00 00 00 00 00 00 00
11 10 0F 0F 10 11 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 4E 00 5F 00 82 00 24 00
CB 00 D3 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 DA 23

The first command sent by ADIOcelot plugin and data returned,

2A 00 00 91 AA 00 00 A6

2A 00 00 91 AA 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF FF
00 00 D3 00 FF 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 4D 00 63 00 88 00 25 00 CC 00
D3 00 93 19 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 57 6B

The second command sent by ADIOcelot plugin and data returned,

2A 00 00 8D B5 00 25 E9

2A 00 00 8D B5 00 9C 00 EF 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 BA 5A

I'm looking for variables 80 - 86 which should be approx (temp sensors etc) 76, 95, 132, 36, 201, 211 & 6548 decimal so from the data from the second command I see them starting at 4D.

Top
#20682 - 12/23/08 05:59 PM Re: Serial Commands. Why DIfferent? [Re: rje]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
Interesting. So it might be that the variables got offset somewhat from their position in RAM between two executive versions. Could you tell me what version of the executive your Ocelot is running (shown as "Application" when you connect to the controller with C-Max)?
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#20683 - 12/25/08 05:19 PM Re: Serial Commands. Why DIfferent? [Re: Guy Lavoie]
rje Offline
newbie


Registered: 06/12/08
Posts: 10
Loc: Ontario, Canada
Application V3.18
Top
Page 1 of 1 1


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
0 registered and 60 anonymous users online.
Recent Posts
Ocelot Battery
by ADI Tech Support
09/22/17 07:38 AM
Comms Retry Error
by HDTVPete
09/18/17 04:04 PM
Cmax Message: Failed to set data for a 'delay'
by HDTVPete
09/16/17 04:36 PM
Shout Box

Newest Members
brigiel, vevevie, zhutree, 416, saiqul
3003 Registered Users
Forum Stats
3003 Members
19 Forums
4002 Topics
23435 Posts

Max Online: 132 @ 11/13/16 10:07 AM
September
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 30