2014-06-05, 19:27
Background: My goal is to be able to trigger the playback of music in XBMC via an RFID reader.
I have a collection of RFID cards which I've associated with playlists, I currently have the system working on a separate linux machine which fires JSON API calls to XBMC which I have running on a Raspberry Pi (using XBian). On my dev setup, touching a card to the reader simply sends the card's 10 digit code and the return character to the console. I set up bash aliases to take these inputs and send the appropriate JSON call using curl.
You can find a full explanation of my project here: http://fuzzysprojects.wordpress.com/rfid...red-music/
When a card is read the 10 digits are sent and the return character are picked up in XBMC, to XBMC it appears like it was typed in from a keyboard. I can see it in the logs.
I'm looking for a way to have XBMC interpret this input in such a way as to trigger the playback of a certain playlist.
The other idea is to somehow stop XBMC binding to the device, so I can have a background linux process monitor for input and fire JSON-RPC calls into XBMC to start playback. Is there a way I can stop XBMC picking up the device?
When I SSH into the RPi and try to interact with the RFID reader using evtest I'm informed that "this device is grabbed by another process". So I'm wondering if there is some way that I might be able to stop XBMC from grabbing it?
I'm revisiting a project of mine from a year ago. I posted this thread in a different section of the forums and didn't get any replies. I'd since set up a work around by simply connecting the card reader to another device (an mk802 mini-pc) and having it send json-rpc commands to the XBMC machine. That has worked ok, but I really want to redeploy the mk802 for another project.
I have a collection of RFID cards which I've associated with playlists, I currently have the system working on a separate linux machine which fires JSON API calls to XBMC which I have running on a Raspberry Pi (using XBian). On my dev setup, touching a card to the reader simply sends the card's 10 digit code and the return character to the console. I set up bash aliases to take these inputs and send the appropriate JSON call using curl.
You can find a full explanation of my project here: http://fuzzysprojects.wordpress.com/rfid...red-music/
When a card is read the 10 digits are sent and the return character are picked up in XBMC, to XBMC it appears like it was typed in from a keyboard. I can see it in the logs.
I'm looking for a way to have XBMC interpret this input in such a way as to trigger the playback of a certain playlist.
The other idea is to somehow stop XBMC binding to the device, so I can have a background linux process monitor for input and fire JSON-RPC calls into XBMC to start playback. Is there a way I can stop XBMC picking up the device?
When I SSH into the RPi and try to interact with the RFID reader using evtest I'm informed that "this device is grabbed by another process". So I'm wondering if there is some way that I might be able to stop XBMC from grabbing it?
I'm revisiting a project of mine from a year ago. I posted this thread in a different section of the forums and didn't get any replies. I'd since set up a work around by simply connecting the card reader to another device (an mk802 mini-pc) and having it send json-rpc commands to the XBMC machine. That has worked ok, but I really want to redeploy the mk802 for another project.