FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » reading from HID keyboard
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
reading from HID keyboard [message #180503] Fri, 22 February 2013 17:15 Go to previous message
Ben Barker is currently offline  Ben Barker
Messages: 5
Registered: October 2011
Karma:
Junior Member
Hi,
I have a device that appears to my machine as a HID keyboard (though actually it is an RFID reader)

I can read from it locally in php by using fopen("php://stdin",r)

The problem is if I shell into this machine via ssh, then stdin comes from the remote keyboard, not from the local HID device, and the above does not return any data.

I can read from /dev/input/by-id/<my device>

But this returns a very large number of bytes that it is not immediately obvious how to decode

Can anyone suggest a way forward here?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: utf8_encode(utf8_decode(string)) doesn't return same string
Next Topic: Re: Where to Find Pipe Information?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 27 21:32:26 GMT 2024

Total time taken to generate the page: 0.05254 seconds