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
Subscribe function not working #20
Comments
There was a problem with subscribe in 0.2.0 that should be fixed in 0.2.1. Can you run the debugger on the Android code and verify what data is getting into the buffer over the serial connection? Make sure there is a \n in the incoming data from the reader. Maybe it is \r? |
I tried using the bluetoothserial.read function to read the buffer, The buffer is showing 12 characters stored in it. If I happen to punch the card multiple times it keeps on appending the card tag to the buffer (which I'm reading later through .read function) Once read, the buffer is cleared. The buffer data is not showing any characters like /n or /r I've tried changing to 0.2.1 (the latest version avlbl) |
In order to use the Since you're not seeing any devices after upgrading, I'm guessing there is another error. Check adb logcat for errors. Did you cordova plugin remove and reinstall the plugin with cordova? $ cordova plugin rm com.megster.cordova.BluetoothSerial If the list problem continues with 0.2.1, please open a new issue. Let me know what versions of Cordova, Android SDK, the Hardware you're running on, the version of Android on the hardware. |
I was using 0.2.0 and the subscribe function was working with delimeter set I'm not using command line tools. I downloaded the .zip for 0.2.1 and To use the commands given by you, I tried installing cordova command line On Wed, Oct 30, 2013 at 9:16 PM, Don Coleman notifications@github.comwrote:
_S_umeet _G_attewar_B_achelor of _Tech_nology, Mobile: +91-9881541240"There is no right decision or wrong decision. There's just a decision." |
@sumeetgattewar hopefully you've solved this problem by now. If not try the Counter example https://github.com/don/BluetoothSerial/tree/master/examples/Counter, I've tested this with Android 4.3 on a Nexus 7 with the latest Android SDK. I used a Sparkfun Bluetooth Mate Silver and the SeeedStudio Bluetooth shield. |
I'm trying to use the plugin for an app which communicates with RFID reader through bluetooth module. I've successfully tested it on RDM6300 module. However, when I'm using it with EM18 RFID reader module which communicates in
10 ASCII DATA (card no.)+ 2 ASCII DATA (XOR result)
The subscribe function is not working.
In the first case (RDM6300) I passed delimeter as ''
In EM18 case I've tried using delimeter as '\n' or '' or 'ETX' but none of them is working. When I punch a rfid card, the data gets saved in buffer but does not invoke the subscribe function. I am able to read the buffered data using .read function.
Please suggest what shall I do to get it work with EM18 reader.
The text was updated successfully, but these errors were encountered: