RS232 Protocol - Name Command

harleydude

Active Member
I ran into a problem today with getting the names of the zones thru the serial protocol. I have zones 1-3 & 9 named. When I issue commands to get the names of the zones I get the name for zone 9 when I request the names for zones 4-8. Below is the results from a VB app I put together to test it. Zones 4-8 are set to the default.

Code:
Sending: 0Bsd000010066
Received: 1BSD00001Front Door      0028
Sending: 0Bsd000020065
Received: 1BSD00002Back Door       009F
Sending: 0Bsd000030064
Received: 1BSD00003Garage Door     0008
Sending: 0Bsd000040063
Received: 1BSD00009LR Motion       0089
Sending: 0Bsd000050062
Received: 1BSD00009LR Motion       0089
Sending: 0Bsd000060061
Received: 1BSD00009LR Motion       0089
Sending: 0Bsd000070060
Received: 1BSD00009LR Motion       0089
Sending: 0Bsd00008005F
Received: 1BSD00009LR Motion       0089
Sending: 0Bsd00009005E
Received: 1BSD00009LR Motion       0089
Sending: 0Bsd000100066
Received: 1BSD00000                00A6
Sending: 0Bsd000110065
Received: 1BSD00000                00A6
Sending: 0Bsd000120064
Received: 1BSD00000                00A6
Sending: 0Bsd000130063
Received: 1BSD00000                00A6
Sending: 0Bsd000140062
Received: 1BSD00000                00A6
Sending: 0Bsd000150061
Received: 1BSD00000                00A6
Sending: 0Bsd000160060
Received: 1BSD00000                00A6
Sending: 0Bsd00017005F
Received: 1BSD00000                00A6
Sending: 0Bsd00018005E
Received: 1BSD00000                00A6
Sending: 0Bsd00019005D
Received: 1BSD00000                00A6
Sending: 0Bsd000200065
Received: 1BSD00000                00A6

Any ideas???
 

Steve

Senior Member
I'm going to take a guess here and guess that your zones 4-8 are disabled too. I noticed the same behavior with different zone numbers and it appears that when you issue the SD command on a disabled zone it returns the ascii name of the next higher enabled zone. Thats probably a bug, but at least I think I understand the behavior.

Spanky?
 

harleydude

Active Member
Yes, zones 4-8 are disabled. And not only does it report the name for the next highest zone but also the zone number.

Could move the motion to zone 4, but wanted to kind of group my device types.

Spanky, any thoughts?

Rick
 

Spanky

Senior Member
Not a Bug, but a feature. The zone name scan routine enables fast retrieval of zone names that have permission to be viewed.

The zone must be enabled.

Use the SD command to find the first valid zone. Take the returned zone number and request the next zone.... and so on until a zone 0 is returned which marks the end.

Other names work the same way: Tasks, lighting, outputs... The first character of the name must be greater than a space character.
 

harleydude

Active Member
Guess I should have paid more attention to the manual.

Code:
If the first character in a requested name is a “space†or less, then the next names are searched until a name is found whose first character is greater than “space†or the “Show On Keypad†bit is set. If no valid names are found, a “000†for the NNN address is returned. This speeds up the loading of names so that invalid names are not returned. M1 version 2.4.6 or later.

Rick
 

harleydude

Active Member
Does the above apply to retreiving the Users?

When I try and retreive users it returns all users up to 200 as USER XXX, even though I only have 4 users loaded.

Rick
 
Top