DexterInd / GoBox

GoBox software and Examples.
1 stars 4 forks source link

IR Receiver Script Is Not Killed #14

Open DexterInd opened 8 years ago

DexterInd commented 8 years ago

When you start the IR receiver using Scratch, close the Scratch program, and then open a python program that's using the IR receiver, we appear to be locked out.

DexterInd commented 8 years ago

when the IR receiver call is made in scratch, it imports the ir_receiver library

https://github.com/DexterInd/GoPiGo/blob/master/Software/Scratch/GoPiGoScratch.py#L362

and the first thing that IR receiver library does is that it binds to port 21852 and starts listening to data coming on that port

https://github.com/DexterInd/GoPiGo/blob/master/Software/Scratch/GoPiGoScratch.py#L362

so, once anything is connected to that port (which in this case is the GoPiGoScratch.py) something else (like the standalone script) cannot connect to that port