kishida0 / pandroid

Automatically exported from code.google.com/p/pandroid
0 stars 0 forks source link

Console RS232 sleeps after 5 seconds #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect RS232 to the panda board and connect to it via minicom
2. Wait until Android has booted and is idle
3. Start typing in the console.  Characters are echoed
4. Wait 5 seconds (or longer)
5. Type again in the console.  First character is lost.

What is the expected output? What do you see instead?
I expect the first character to not be lost.

What version of the product are you using? On what operating system?
PandaBoard_L27.12.1-P2

Please provide any additional information below.
It seems that the console and any application running in the console goes to 
sleep after 5 seconds.  We have connected an expansion board to GPIO140 and 
generate a rising edge IRQ at 50Hz, written a driver to handle the IRQ and then 
a user space console application to select on a file handle that coordinates 
with the IRQ.

  The behavior is suspicious.  IRQ's come out at 50Hz most of the time, but every now and then they will stop for the timeout period of the user space select, which I've set at 2.5 seconds.  Constantly entering characters into the console will keep the IRQ's being handled so that none are missed.

Original issue reported on code.google.com by ncro...@gmail.com on 21 Jul 2011 at 10:57