We are doing serial port configuration for uart1 port in beaglebone black board using yocto project.
We want to connect neoway GPRS module with beaglebone black.
BBB is able to detect the serial port enabled i.e as ttyS1.And opened the serial port using minicom.
115200 is the baud rate set on both BBB serial port and GPRS module.
However communication between BBB and GPRS module is not working.
Below is the dts configuration.
The dts looks correct. Assuming the device is being populated in /dev the driver is being loaded.
Obvious things to check.
Is the serial port actually ttyS1 ? I have seen various different naming conventions.
I am currently using an AM335x based board, running Debian where the serial ports come out as ttyOx
If you have a USB->serial port adapter (3v TTL) can you try connecting the BBB to a PC to check for output, or use a scope to check to see if you have data on the tx pin.
Are you swapping tx/rx connections (do they need swapping) between BBB and GPRS module? I assume the GPRS module is using 3v logic on the uart.
Yes, serial port is ttyS1.
I have tried to connect BBB to a PC using USB->serial port adapter and transmit the data from BBB , however it is not received on PC.
And tx & rx connections need to be swapped between BBB and GPRS.
According to the datasheet the pinmux registers are at 0x980 and 0x984, so perhaps the pinmux controller is adding the value to a base address in which case it would be wrong.
You could try using 0x180 & 0x184 see if that works.
We have checked by connecting BBB to a PC using USB->serial port adapter and transmit the data from BBB. It is able to receive the data on PC. When we connected Tx pin of BBB to Tx pin of USB->serial adapter and Rx pin of BBB to Rx pin of USB->serial adapter it started working.
However if we follow the same method between BBB and GPRS module it is not working.
Thank you for the support.
This issue is resolved. It was related to hardware configuration with GPRS module.
There was no issue with the DTS configuration we were doing for serial ports in BBB.