deasy has quit [Quit: Nom d'un quark, c'est Edmonton !]
kwon has joined #cubieboard
smccarthy has joined #cubieboard
Freyr_ has joined #cubieboard
Freyr_ has quit [Read error: Connection reset by peer]
Freyr_ has joined #cubieboard
Freyr has quit [Ping timeout: 255 seconds]
[7] has quit [Disconnected by services]
TheSeven has joined #cubieboard
kwon has quit [Remote host closed the connection]
_whitelogger_ has joined #cubieboard
NamanG has joined #cubieboard
maybethistime has joined #cubieboard
maybethistime has joined #cubieboard
Celia_ has joined #cubieboard
anunnaki_ has quit [Ping timeout: 256 seconds]
FergusL has quit [Read error: Connection reset by peer]
anunnaki_ has joined #cubieboard
rm has quit [Ping timeout: 256 seconds]
rm has joined #cubieboard
rm has quit [Changing host]
rm has joined #cubieboard
smccarthy has quit [Quit: Leaving...]
nils2 has joined #cubieboard
nils_2 has quit [Ping timeout: 264 seconds]
nils2 is now known as nils_2
tyil is now known as tyil|afk
sassmann has joined #cubieboard
maybethistime has quit [Quit: Leaving.]
popolon has joined #cubieboard
weltall has joined #cubieboard
tyil|afk is now known as tyil
suhanc has joined #cubieboard
kivutar has joined #cubieboard
FR^2 has joined #cubieboard
tyil is now known as tyil|afk
initbrain has joined #cubieboard
old-papa has quit [Ping timeout: 265 seconds]
old-papa has joined #cubieboard
rvalles has quit [Ping timeout: 240 seconds]
rvalles has joined #cubieboard
rvalles has quit [Excess Flood]
rvalles has joined #cubieboard
tyil|afk is now known as tyil
tyil is now known as tyil|afk
quitte has joined #cubieboard
premoboss has joined #cubieboard
dromer is now known as dreamer
dreamer has quit [Changing host]
dreamer has joined #cubieboard
kwon has joined #cubieboard
kwon has quit [Ping timeout: 256 seconds]
GargantuaSauce_ has joined #cubieboard
focus has quit [Ping timeout: 266 seconds]
GargantuaSauce has quit [Ping timeout: 264 seconds]
focus has joined #cubieboard
Ryp has joined #cubieboard
<Ryp>
hi ! does anyone here use his cubie for reading data on gpio ?
JohnDoe_71Rus has joined #cubieboard
kwon has joined #cubieboard
<Ryp>
i'm trying to connect an wiegand RFID reader on my board but the interrupt speed seems too slow
<premoboss>
Ryp, did you tru to use the UART (one of) of the CB?
<Ryp>
premoboss: not at all, I used simple gpios (ph15 and ph14) and listened to IRQ
<Ryp>
is UART compatible with a Wiegand protocol ?
<premoboss>
i dont know, i dont know the module you talk about.
<premoboss>
it is enouugh to read/force the status of sime pins in sequece ot it is necessary to respect a protocol? (SPI, i2c, etc)
<Ryp>
I could read at a certain rate on the pins, but i'm not sure if the reading will be reliable that way
<Ryp>
the wiegand protocol use two wires (Data+ and -) and send short impulses on them
<Ryp>
in my case the communication is unidirectionnal
<Ryp>
I read what the card reader feeds me. I'm supposed to get around 26bits of data
<Ryp>
I'm not very used to SPI / UART or other low level protocols, could the UART help me achieve this you think ?
<premoboss>
Ryp, i cannot answr you cos i dont know the protocol needed bywiegand. if you know the sequence of impulses, you can do it manually writind the sequnece of "pin_up", "pin_down" of the two wires.
<Ryp>
the impulses are sent by the reader
<Ryp>
there is not much of a protocol, the reader just sends small bursts of data when it reads on a RFID card
<premoboss>
Ryp, so the CB must hear? not send impulse?
<premoboss>
ok i understand now.
<premoboss>
so you must set CB as "listender" on trend of impulse.
<Ryp>
premoboss: exactly
<premoboss>
ok
<premoboss>
what are thye speed of impulse? i mean, ine impulse every (i.e.) 10ms?
<premoboss>
there is a clock that detemine the speed (as SPI) or there is a fixed speed (as UART)?
tomboy64 has quit [Remote host closed the connection]
<premoboss>
sso you have to champion the logica leve elvery 2ms. an option is to set an interrupt to do thyat.
<Ryp>
but; my reader is supposed to keep a 500bits/sec rate
tomboy64 has joined #cubieboard
<premoboss>
no problem, 500 b/s is a veri low speed, you can do both with interupt or simply doind a continuois polling of the pin.
<premoboss>
read the ping every 1ms so you are sure to ear all. after that, you can read the sequence of 0-1 value and "rebuild" the string.
<Ryp>
the code I used works very well with a raspberry using the same wiring
<Ryp>
I don't get why i get garbage readings ( 5-6 bits only )
<premoboss>
Ryp, are you suse you set the GPIO correctly? to try that, force the pi to 0 or to 1 (do a short to GRD or to 3V3. aftet that, reaad the value and verify it is correct.
<premoboss>
suse=sure
<Ryp>
I did that test already
<Ryp>
because I also wired a button
<Ryp>
maybe its a difference in the internal resistor or default pull-up-down behavior between pi and cubie ?
<Ryp>
(I wish i could get an oscilloscope)
<premoboss>
both of them works in 0-3V3. what are the levoe of the module?
<Ryp>
+5V (i used a simple voltage divider with 10k - 20k resistor)
NamanG has quit [Quit: Connection closed for inactivity]
<Ryp>
with my voltage divider i get a 2.5V in input
<Ryp>
is it sufficient ?
<premoboss>
bettter to reach at least 3V.
<Ryp>
ok i'll modify resistor value
<premoboss>
but you say 10k-20k so i suppose you reac 5V-33%=3.3V
<Ryp>
yeah this is what I should get
<premoboss>
but if you get 2.5V there are somehng frong. verify that bot 10 and 20k are _REALLY_ 10k and 20k resistors :-)
<Ryp>
in fact I used 3 10k resistors xD
<premoboss>
2 of them must be in serie
<Ryp>
yup
<premoboss>
redo and try again.
<Ryp>
the Data pin tend to be lower than 5V
<Ryp>
i'll adjust my resistor values and test again
<Ryp>
premoboss: ok so I got a proper 3.10V now
<premoboss>
good.
<premoboss>
what was the error on reistor scheme?
<Ryp>
I powered the reader on the 5V pins of the cubie
<Ryp>
on the raspberry i was enough
<Ryp>
not here so I plugged the 12V
<Ryp>
4.9V for the data pins now
<premoboss>
goon. now the signal levels should be clean enough. redo your test.
<Ryp>
mmmh
<Ryp>
i get no edges anymore now
<Ryp>
i think the low voltage is not 0V at all
Ironflix has joined #cubieboard
<Ryp>
ok now I see a little bit clearly. My reader is supplied in 12V. and the data pins have 5V relative to the GND
<Ryp>
however, the reader and the cubie have a ~1.5 difference GND to GND
<Ryp>
is that normal ?
<Ryp>
so the actual reading i of the gpio is ~1.4V
<Ryp>
premoboss: how can I balance the voltage now ?
<premoboss>
you cannot mix 12V, 5V and 3V3
<premoboss>
if there is a differenve beteen the 2 GRD, in menas tha there are somethin wtong.
Celia_ is now known as FergusL
<Ryp>
12V is only used to power the reader, the wires used for reading are 5V
<premoboss>
ok.
<premoboss>
the probme is tu
<premoboss>
is to find tere the problem is.
<premoboss>
can you simulate the module output using another CB?
<Ryp>
yeah i could
<Ryp>
even with the same cubieboard
<Ryp>
didn't try that
<premoboss>
if you can emulate and it works is ok. it menas the the problmen is elsewere. but not user the same cb, use the raspeberry to generate impulses.
<Ryp>
i've got two cubie and a pi
<Ryp>
gonna grab lunch and do that
<Ryp>
thanks for your help premoboss, very appreciated
<premoboss>
look, the emulation mst be done withy 2 DIRRETENT sistem, not on the same one. so use cb+cb or cb+rb
<premoboss>
u welcome bye
deasy has joined #cubieboard
quitte has quit [Ping timeout: 245 seconds]
casaper has joined #cubieboard
<casaper>
Hi there. Does any of you know any alternatives to shairport? Something that would also allow to serve Airplay for example.
casaper has quit [Quit: Computer has gone to sleep.]
casaper has joined #cubieboard
<Ironflix>
hi, i think i have overwritten the complete nand including the original script.bin file by upgrading to the lubuntu desktop image (cubieboard 1) through Phoenix Suit. of course i have forgotten to backup the script.bin . is the script.bin in the image the one the cubieboard was originaly shipped with?