Replies: 3 comments 5 replies
-
Hey!
This line means that your CP (the python program) sent a command to the PD and it didn't respond withing the given time span (200ms). A number of things can cause this:
Yes, that has to be your reader's address. |
Beta Was this translation helpful? Give feedback.
-
Thanks - I appreciate your response. I managed to get it talking and have a python script running as a cp sending commands/receiving events successfully. I am having a bit of trouble understanding how to set up the secure channel properly. At the moment I am running in install mode with scbk set to none and PD reader in 'install' mode - PDInfo(0, channel, None) This works, in set up i get msg "Online; Without SC" What is the correct process to install a key and then use that key for future start ups in SC mode? Do i need to install the key, for example, from a separate once off script, and then initiate the connection after that with the same key? Additionally is there an easy way to check from python whether the cp-pd connection started ok? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Looks like you may be generating a random SCP key to connect. This won't work as both the reader and CP must know the same key to communicate. If your reader has no key set you can just send null. If it has a key you need to know what it is. You can try the SCP default key '0x404142434445464748494A4B4C4D4E4F' To change the key send the OSDP set key command under a channel that is encrypted using the existing key or not encrypted if there is none. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
This is likely a problem with my configuration and understanding (i am new to python and card readers), I am hoping for a little guidance, and not sure where to ask.. sorry if this is the wrong place!
I am attempting to communicate with a HID Signo 40 reader over rs485 on my machine, but i am having no luck with the example python script (cp_app.py)
when I run the script - ./cp_app.py /dev/ttyS0
I've configured the reader in install mode over osdp v2.
I suspect i am not understanding how to configure the test script correctly, i am hoping for some pointers.
EG
does '101' need to be changed to something else (ie my reader details)? if so how do i find out what it needs to be?
Any other general guidance would be greatly appreciated.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions