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

Error while conecting #5

Open
festimii opened this issue Apr 28, 2024 · 4 comments
Open

Error while conecting #5

festimii opened this issue Apr 28, 2024 · 4 comments

Comments

@festimii
Copy link

i\PycharmProjects\pythonProject1> python3 main.py 192.168.200.10 --password Admin123 --output door --number 3 --open
Connecting to 192.168.200.10
Sending: aa01760c00fefefefe41646d696e313233260955
Received header: aa01c90100
Receiving payload (data size 1): f313d955
Connection attempt with session to 192.168.200.10 failed: Error -13 received in reply: Command error: This command is not available
Sending: aa0101080041646d696e313233d40955
Received header: aa01c90100
Receiving payload (data size 1): f2d21955
Connection attempt without session to 192.168.200.10 failed: Error -14 received in reply: The communication password is not correct
(.venv) PS C:\Users\festimbeqiri\PycharmProjects\pythonProject1>

I get this while i try to open the door by id

@vwout
Copy link
Owner

vwout commented Apr 28, 2024

Hi festimii, a few questions:

  • Which device are you trying to connect to?
  • Which firmware (version) does the device run?
  • Is the password you use correct?
  • Did you try the cli examples from the respository? Can you please post the full output of C3_GetRTLog.py?

@festimii
Copy link
Author

Hi vwout thanks for getting back so fast,

1.Im trying to connect in inbio 460 controller
2.Firmware AC Ver 5.2.5 Jun 6 2019 and maybe this may be the problem.
3.I accidentally sanded the log of error 14 here the password issue don't stand.
4.Yes i tried with the cli example for testing but I'm making a gui for opening the doors and even that for me it i get Failed to open the door ID:3 for example request timed out the zkBio Access shows remote opening sussecfull.

(.venv) PS C:\Users\festimbeqiri\PycharmProjects\pythonProject1> python3 C3_GetRTLog.py 192.168.200.10
Connecting to 192.168.200.10
Sending: aa01760400fefefefe467755
Received header: aa01c90100
Receiving payload (data size 1): f313d955
Connection attempt with session to 192.168.200.10 failed: Error -13 received in reply: Command error: This command is not available
Sending: aa01010000503c55
Received header: aa01c80000
Connected without session
Sending: aa010441007e53657269616c4e756d6265722c4669726d5665722c4465766963654e616d652c4c6f636b436f756e742c417578496e436f756e742c4175784f7574436f756e74d06355
Received header: aa01c86f00
Receiving payload (data size 111): 7e53657269616c4e756d6265723d425248573230333836303235332c4669726d5665723d41432056657220352e322e35204a756e20203620323031392c4465766963654e616d653d2c4c6f636b436f756e743d342c417578496e436f756e743d342c4175784f7574436f756e743d34478455
Sending: aa010b0000703e55
Received header: aa01c81000
Receiving payload (data size 16): 00000000000000000000ff0066cd992e965055
Received RT binary log: 00000000000000000000ff0066cd992e
Door/Alarm Realtime Status:
time_second 2024-04-28 23:25:26
event_type 255 Current door and alarm status
verified 0 None
alarm_status 00000000
dss_status 00000000
Door 1 0 Unknown
Door 2 0 Unknown
Door 3 0 Unknown
Door 4 0 Unknown
Door status: ['Unknown', 'Unknown', 'Unknown', 'Unknown']:
Aux status: ['Unknown', 'Unknown', 'Unknown', 'Unknown']:

Thank you for taking the time to read this.

image

@vwout
Copy link
Owner

vwout commented Apr 29, 2024

Thanks for sharing the details. It looks like the connection is working fine, it is possible to establish a connection to the device and the library is able to detect that your device has 4 doors without (configured) sensors.

To open the doors, does the example C3_OutputOperation.py work?

The command C3_OutputOperation.py 192.168.200.10 --output door --number 1 --open --duration 120 should open the door for 2 minutes.
In case it does not, please share the complete log.
In case the example works correctly, I suggest that you have a good look at the creation of the object controldevice.ControlDeviceOutput in your code.

@vwout
Copy link
Owner

vwout commented May 8, 2024

@festimii Any luck with controlling doors?

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