I am using standard QNX serial driver (devc-ser8250) on embedded device. Embedded device has many controller applications for reading the serial port data. On the bootup of device serial port configurations are done as follows,
for example devc-ser8250 -u1 100,7 -u2 108,7 -u3 110,7 …
Once driver is up, GPS device is continuously sending data at /dev/ser1 (100) and total CPU consumption of driver becomes ~5 % all time. Even there is no GPS controller application running to read that GPS data. So somehow i need to stop that serial data of GPS device and there should not be CPU consumption.
Also once GPS controller application is running then driver shall respond to application with serial data at port address 100.
I have test following changes on my driver to stop receiving data.
- devc-ser8250 -u1 100,7 -odisable=rx
- devc-ser8250 -F -u1 100,7 ( disable the Hardware Flow control)
P.S. : Remember there is no code available for open,close, read, write POSIX api in driver code. So i need to do something using command line option.