mini2440 android rs232 communication issue

happen_81
Hi guys,

Can anybody provide some help for providing the rs232 communication on
mini2440 board. Now I have successfully installed an android 1.5 system on
my board (with 128M NAND flash). Now I need to create some applications
which enable the board communicate to the PC via the RS232 cable. I will be
very grateful if anyone can provide me some instructions or examples.

Regards

HECTOR
I think that android OS  not support RS232 port.

please email me because I wanna buy mini2440 module
but i need some information about it.

-----halburquerque@gmail.com-------

may thid may help you.-------------------------

Using this code you can get the serial ports to work under Android on the
mini6410 but you need a little work to rebuild the Android OS for it to
work first time.

http://code.google.com/p/android-serialport-api/

You need to rebuild with genroot.sh and include the following 3 lines after
the mknod for the ports. Without these I got permission errors when I tried
to open the ports.

# The following is needed to allow user access to the serial ports
  chmod 666 rootfs_dir/dev/s3c2410_serial1
  chmod 666 rootfs_dir/dev/s3c2410_serial2
  chmod 666 rootfs_dir/dev/s3c2410_serial3

The init.rc should do this but for some reason it don't work.

I also had to change the serialport-api SerialPort.c code to remove the
O_DIRECT flag on the open and then recompile (You need the Android NDK to
do this) and then I was able to open the ports and send and receive data.

If anyone has any questions on this, give me a shout?

Dave...