Hi Everyone!
I hope someone can help me with this issue - I'm nota able to get data from
Parallax RFID reader! Since I update my debian image ( created new with
lastest build ). I use 4dsystem 7lcd and my reader is connected to UART4
pin P9_11. Strangest about this is that when I plugin and plugout couple of
times it starts get a bytes.. Would someone please explain how to get it
working all the time?
I define port in cloud9 script
...
var RFIDPin = "P9_11",
enableRFIDPin = "P8_19",
RFIDport = '/dev/ttyO4';
b.serialOpen(RFIDport, options, onSerial);
function onSerial(x) {
setTimeout(function() {
if (x.err) {
console.log('***ERROR*** ' + JSON.stringify(x));
}
if (x.event == 'open') {
console.log('***OPENED***');
}
if (x.event == 'data') {
processTags(x.data);
}
},500);
return true;
}
function processTags(symbolByte) {
var char = String(symbolByte);
console.log(char);
var charCode = parseInt(char.charCodeAt(0));
if(charCode === 10 && lastCharCode === 13)
allow = true;
if(allow) {
if(compareTag.length < 11) {
compareTag += char;
} else {
allow = false;
compareTags();
}
}
lastCharCode = charCode;
return true;
}
...
Do I need change pinMux from default one and if yes, how to do that?
Thanks,
Ingus
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.