Starting Point System : Forum

You are not logged in.

#1 2010-04-18 04:42:30

david
New member

Endless loop when reading ADCs

Hi thanks for the quick delivery of my uChameleon.

I have a Linux box (2.6.26-2-686) and the USB device is correctly recognised and maps through to /dev/ttyUSB0 no problems.

I can use echo and cat and can run commands like this no problems:
echo -ne "pin 1 state\r" > /dev/ttyUSB0

I can also turn the led on and off and run several other commands okay.

However whenever I try to read the ADC values the uChameleon goes into an endless loop sending the ADC readings at a very high rate:
echo -ne "adc 1\r" > /dev/ttyUSB0

cat /dev/ttyUSB0
adc 1 153

adc 1 129

adc 1 144

adc 1 171
... etc ...

The only way I can make it stop is to power cycle the uChameleon.

Is this a uChameleon firmware bug or does anybody have a syntax suggestion for me? Are other people able to read their ADCs ok?
Thanks,
  David

Offline

 

#2 2010-04-26 11:39:54

david
New member

Re: Endless loop when reading ADCs

For information, this turned out to be some kind of kernel problem, not a uChameleon firmware bug.

I also have several other usb/serial dongles and I had previously plugged/unplugged those from my PC.

After a reboot everything came good, and the test I outlined above using cat and echo works perfectly.

Offline

 

Board footer

Powered by FluxBB

Home