Comments (8)
'open_door' takes argument 'Door'=> '01' or '02' or '03' or '04'
default: '01' door 1
Your second command looks good, but the return is not recognized.
could you insert var_dump($receive); on line 53 just under "public function procCmd($receive) {"
This way I can see what is being returned from the controller.
Remember ($received) takes hex instead of binary. You will have to pass in converted received data into procCmd.
from uhppote.
Door: 02Array ( [door] => 02 ) Open Door Padding 55 Send the following command to network 17400000F5AD38190200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Listening for return status Processing return status string(128) "17400000f5ad38190100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" Error: unable to process command. Unknown. 64 Array ( )
here's the response with $receive dumped.
from uhppote.
I think I see the problem. Your door should open, it is just not handling the door open return
from uhppote.
Ok, it has been updated. Command sent to door controller should be ok. The door should open on command, it didn't handle the reply and that is why it displayed error, but by looking at the hex string. 01 returned is telling you that command sent was ok.
Let me know if the door opened for you. If it works, then I'll close this.
from uhppote.
Thanks - I'm onsite tomorrow morning - so I'll update tonight and verify in the AM.
from uhppote.
That worked correctly now! The door_open command mimics what happens when the controller receives a card swipe that has access. The door relay actuates for the delay time and then returns to it's normal state. There's another function, and I'm searching for the documentation now, that should allow the relay to be forced on and stay on - in the software it's called 'Normally Open' or forced off and stay off (called 'Normally Closed'), or respond to card swipes - which they call "Online". I'm happy to close this thread and investigate that on my own (adding those functions) and report back.
Thanks again,
Lee
from uhppote.
Alrighty then.. Glad to hear.
I'm not aware of commands for normally open & close. Only normally close & open that i'm aware of is on the controller board ( at least on my board has it) where you have to physically wire it to the mag lock. But do let me know if you find something about it. I'm not sure if it can be controlled on the software side.
There is "door_delay" that allows you to set the number of seconds that the door will stay open/close
from uhppote.
This is actually something I'm working on. You have to change the mode from Door Controlled to Door Open. I hope to add this mode control to sendCommand in the next few weeks.
from uhppote.
Related Issues (10)
- Inquiry: Task List HOT 3
- monitor.php - Address already in use HOT 1
- Invalid HEX conversion when using Uhppote.php outside of command line HOT 1
- sendCommand doesn't complete task HOT 7
- How to reboot or restart UHPPOTE controller from command line
- Hex Error HOT 1
- unable to read from socket [10045] HOT 2
- Setting HEX SN and get... PHP Parse error unexpected T_String HOT 1
- serial number of board not part of mac-address HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uhppote.