Coder Social home page Coder Social logo

Read but no write about uhppote HOT 8 CLOSED

carbonsphere avatar carbonsphere commented on August 30, 2024
Read but no write

from uhppote.

Comments (8)

carbonsphere avatar carbonsphere commented on August 30, 2024

'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.

lee32768 avatar lee32768 commented on August 30, 2024

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.

carbonsphere avatar carbonsphere commented on August 30, 2024

I think I see the problem. Your door should open, it is just not handling the door open return

from uhppote.

carbonsphere avatar carbonsphere commented on August 30, 2024

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.

lee32768 avatar lee32768 commented on August 30, 2024

Thanks - I'm onsite tomorrow morning - so I'll update tonight and verify in the AM.

from uhppote.

lee32768 avatar lee32768 commented on August 30, 2024

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.

carbonsphere avatar carbonsphere commented on August 30, 2024

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.

cvschleich avatar cvschleich commented on August 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.