Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DC03 error(?) #2

Open
Tozman opened this issue Jan 15, 2021 · 1 comment
Open

DC03 error(?) #2

Tozman opened this issue Jan 15, 2021 · 1 comment

Comments

@Tozman
Copy link

Tozman commented Jan 15, 2021

Great work indeed !
One issue I noticed is that in dc03_msg.py, SIA code "BA" (burglary alarm) is in the list of codes_with_area, whereas I suppose that both AREA + ZONE should be sent in such event.

Also on a SIA-DC09 receiver I could try, the area information is never received despite all my efforts.

@jvanovost
Copy link
Owner

Good find !

yes, BA was erroneous specified in the list codes_with_area. It had to be code BV.
n.b. codes_with_area is for codes with area following the code. With BA it is sent with the ri modifier.

when i try the updated code i see in the example application it sends : spt2.send_msg('SIA-DCS', {'code':'BA','zone': 3, 'area': 2})

The transmission then is : #1234|Nri2BA3]
The receiver gets : 595F0074"*SIA-DCS"0007#1234[}rO[17]<%2hIND#f|#1234|Nri2BA3]_16:38:31,04-12-2021
and logs it as : 1234 I 00002 BA 00003 21-04-12 18:38:31 z
which looks ok to me.

The receiver should have got the area value in the zone field .. please compare with the opposite of BA, the BR code.

I expect to push the correction soon, probably later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants