Hello friends I am using Tiny210 Board. and i am facing a problem 2 receive the data from serial port. i can send the data but can not able receive the data. I am working on "Android Platform".In which i requires the "hardware controller library" for enable the serial port. I am generating the New class for serial functionality.In Which my serial code like this. int fd,temp; byte data[] ={0x55}; byte c; int Nbytes_Rx; byte []buf = new byte[7]; fd = HardwareControler.openSerialPort("/dev/s3c2410_serial1",115200,8,1); temp = HardwareControler.select(fd,0,300); Nbytes_Rx = (HardwareControler.read(fd,buf,7)); for (c= 0;c<7;c++) { buf[c] = (byte) Nbytes_Rx; } for(c = 0;c<7;c++) { byte data[]={buf[c]}; write(data); } please help me for receive the data.
Problem 2 Rx data frm Serial port in Tiny210 (Android platform)
Have you tried a slower baud setting? I'm using 19200 and it works fine. 115200 doesn't work for me. I don't see any other obvious issues.
please i need help in operate the serial port, I'm using the mini6410 and android 2.3 gingerbread, which is the hardware controller library, where I find it? and would appreciate if you can help me to configure and setup the serial port. thanks in advance..
I gave up trying to get the FA version working. Not enough control. Go here and get the source for this very nice API and then build it yourself. You will need the Android NDK but there is loads of help on the internet on how to get this working. It will then create a library file for you to simply add to your project and then use the JNI to talk to it. This works really well. I have a fingerprint reader working under Android with this. It is much easier to use the file descriptor that is passes back to you. http://code.google.com/p/android-serialport-api/
Dave McLaughlin please you just email me on : zgulkhan@yahoo.com, I have a problem, and you have a solustion... Please must contact me.