[SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-26 Thread marcov
I´m trying to build a player for my 2 years old son. I found some ideas like "jukebox 4 kids" on the web, but I´d like to integrate it in my Squeezebox setup. I bought a pi zero w and a hiffiberry for pi zero, i used picoreplayer (version 4.1.0) and used a python script that should read the rfid t

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-26 Thread DJanGo
marcov wrote: > The reader behaves as a keybord, it puts the 10 degitis of the tag + > enter. I have the problem now that with the picoreplayer image there are > often missing digits Always check the input before doing something !! Code: if len(RFID_input) == 10:

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-26 Thread marcov
Thanks for your reply and suggestion. I was thinking about this, but this would mean that you´d need to hold the tag about 5 times in front of the Reader before you will receive the correct tag. So I was wondering if it has to do with the drivers of Tiny core Linux or with the powermanagement, and

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-26 Thread DJanGo
I would say its not a driver but a latency issue. Did you tried tinycore already? Thats the base of picore but doesnt run in ram. DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: ht

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-27 Thread marcov
thanks for your reply. I was not able to set up wifi on tiny core but will try again and see if this will work better. I wonder if it is a problem about the latency if it will be possible to stay with picoreplayer and solve this issue or if this is due to the system design and cannot be fixed.

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-27 Thread DJanGo
marcov wrote: > thanks for your reply. I was not able to set up wifi on tiny core You didnt need wifi to check the "keyboard" sends 10 digits DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View th

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-27 Thread marcov
yes but I need Wifi or a monitor output (on a pi zero) to be able to login etc as I have not monitoradapter, I need wifi. Anyway I just tried with tinycore 9.0.3 on an older raspberry with lan port and it reads like the raspian image: Code: login as: tc tc@192.168.10.

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-27 Thread marcov
so I now double checked again with piCoreplayer 4.0.1 on the old raspberry and the result was okay, the first two readingy where incomplete the others where complete. So I got back to the piZero and here I see the problem again: Code: tc@piCorePlayer:~$ sudo cat /dev/tty

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-27 Thread bpa
marcov wrote: > so I now double checked again with piCoreplayer 4.0.1 on the old > raspberry and the result was okay, the first two readings where > incomplete the others where complete. So I got back to the piZero and > here I see the problem again: > > Code: > > tc@pi

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-27 Thread DJanGo
marcov wrote: > So i guess it is an issue with the piZero -> can it be cause by the > cable? I tried diffrent usb cables but I only have one adapter caple > from USB A to micro usb that is not specified for piZero The Zero is tricky and it only gots a single usb Port. Is the "old" RPI a V3? Di

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-27 Thread bpa
Simple first thing to try with "flaky" USB devices is to try with a USB hub - in case power or incompatibility of some sort. According to website which gathers USB ids ID 16c0:27db - it is a "Free USB HID/PID pair for use with V-USB projects" and should be driven by an open source driver. V-USB

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-27 Thread marcov
sorry for bombing my own thread, but after just using a diffrent piZero (with the same sd card) this one does not seam to have the problem Code: sudo cat /dev/tty0 001025213 001625213 001025213 001625213 0016025213 0016025213 0016025213 0016025213 001602

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-27 Thread bpa
After you plugin the rfid device - are there then two "keyboards" plugged into the Pi or are you accessing the pi over network ? bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http:/

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-27 Thread marcov
I´m accesing through network (wireless) and there is only one keybord (the rfid Reader) connected and Nothing else About the other suggestions from your side, I will check tomorrow but allready thank you for your efforts ma

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-28 Thread marcov
bpa wrote: > > What is the USB device driver used on Tinycore which you tested and > worked OK - the following will show possible modules *lsmod | grep hid > * no output both on tinylinux and piCoreplayer image: Code: tc@piCorePlayer:~$ lsmod | grep hid tc@piCor

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-28 Thread bpa
Very odd lsusb did not give verbose info about USB such as Code: bryan@minitower:/mnt/hddrive/home/bryan14.04$ lsusb Bus 002 Device 002: ID 8087:8000 Intel Corp. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:8008 In

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-28 Thread DJanGo
marcov wrote: > sorry for bombing my own thread, but after just using a diffrent piZero > (with the same sd card) this one does not seam to have the problem what kind of python is picore running 2.7 or 3? DJanGo's Profi

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-28 Thread Michael Herger
what kind of python is picore running 2.7 or 3? From the extensions I see 3.4-3.6 available for installation. -- Michael ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-28 Thread DJanGo
mherger wrote: > > what kind of python is picore running 2.7 or 3? > > From the extensions I see 3.4-3.6 available for installation. > > -- > > Michael thx. than i would start with something like this instead of closing tty - that seems the problematic part Code:

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-29 Thread marcov
hi i tried with python3 (by putting #!/usr/bin/env python3 in the first line) but get Code: File "test.py", line 17, in main() File "test.py", line 9, in main RFID_input = input() File "", line 1 01109679 ^ SyntaxError: invalid token -

Re: [SlimDevices: Unix] issues with reading rfid (missing digits)

2018-12-29 Thread marcov
suceeded after deciding to give up... i used the code from the github project, reduced it to what i needed and was able to install evdev on the piCorePlayer image. Now it reads 100% of the tags correct with this code: Code: from socket import socket from evdev import I