Connecting Multiple USB to TTL and Reading them - Raspberry Pi Forums
hello,
working on project, in have interface multiple rfid readers (i'm using em 18, serial out) raspberry pi. i'm using usb ttl converter connect em 18 raspberry pi. i've connected 2 rfid readers using usb ttl adapter.
code 1 station my issues are
1. readings both rfid readers in same program
2. i've 2 programs above code, station1.py , station2.py. station1.py usb0 , station2.py usb1. executing programs in different terminal simultaneously, example station1.py in terminal 1 , station2.py in terminal 2.
program executes fine, readings jumbled. example, 6e0009d2cc79 , 4e0070792760 tag id's i'm using testing. if i'm executing 1 program i'm getting reading properly, if i'm executing 2 programs simultaneously in 2 terminals i'm getting tag id's jumbled.
3. want combine both readings in same program
in advance
working on project, in have interface multiple rfid readers (i'm using em 18, serial out) raspberry pi. i'm using usb ttl converter connect em 18 raspberry pi. i've connected 2 rfid readers using usb ttl adapter.
code 1 station
code: select all
import serial, time while true: try: print 'station 1 ready!! please show card' card_dataa = serial.serial('/dev/ttyusb0', 9600).read(12) print card_dataa continue except serial.serialexception: print 'station 1 down' break
1. readings both rfid readers in same program
2. i've 2 programs above code, station1.py , station2.py. station1.py usb0 , station2.py usb1. executing programs in different terminal simultaneously, example station1.py in terminal 1 , station2.py in terminal 2.
program executes fine, readings jumbled. example, 6e0009d2cc79 , 4e0070792760 tag id's i'm using testing. if i'm executing 1 program i'm getting reading properly, if i'm executing 2 programs simultaneously in 2 terminals i'm getting tag id's jumbled.
3. want combine both readings in same program
in advance
raspberrypi
Comments
Post a Comment