OpenWrt Forum Archive

Topic: Receiving non-printable ASCII Characters..

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have been stumped on this problem for some time now, so I thought I would ask the community.

I have a serial port installed on my WRT54GL, running whiterussian.

The serial port is connected to a barcode reader and everything works fine with printable ASCII characters.

For example: "cat /dev/tts/1" prints the read barcodes.

The problem is when I read a barcode that contains a non-printable ASCII character.

For example, some of my barcodes contain:

0x11 Device Control 1
0x12 Device Control 2
0x1C File Separator
0x1D Group Separator

If I do "hexdump -C /dev/tts/1", for example, It seems some characters are changed, 0x11 to 0x0D, or others are deleted.

Is there a way to configure the serial port to not interpret these commands, and just pass them to /dev/tts/1 as raw data?

Thank You for your time.

~Andrew

Hi,
I am trying to interface the WRT54GL v1.1 serial port with PIC16F877. I am doing the project listed in http://jbprojects.net/projects/wifirobot/
Can you share your code for the microcontroller for serial interfacing? And also how do you read the data on the serial port and send to the PC?

The discussion might have continued from here.