android serial port api project basically works like a callback... so you 
write to it directly, and you setup something to handle the inbound data.

I basically re-wrote the data parsing stuff so that I use a linefeed as a 
stream delimiter and can likewise capture individual responses from serial 
devices.


Weston

On Monday, October 22, 2012 2:25:53 AM UTC-7, JerrySG wrote:
>
> Hi, every friend 
>
>
> This is Jerry, and I am now working on a Android project, need to 
> connect my android-based equipment with another equipment via serial 
> port. 
>
>
> I downloaded the source code from the famous android-serialport-api: 
> http://code.google.com/p/android-serialport-api/wiki/Building_the_project. 
>
>
>
>
> Now, I can re-compile to get serial_port.so via Cygwin, and run this 
> app on my android device. But the problem is: I want to try to receive 
> the related data informatio after sending (HEX)FE 00 21 01 20 to the 
> connected device via serial port, however I found this app only send 
> 01010101...to device. Moreover, I the data received from the connected 
> device via serial port would be sent to the backend through internet. 
>
> Therefore, I want to ask: 
>
> (Question1) I modified the code of "Sending01010101Activity.java" to 
> send what the message I want, but nothing I can see from the "Console" 
> on the UI I am wondering whether it's Ok?  and How I can get and see 
> the replied message? 
>
> (Question2)As for the android equipment, how to send those replied 
> data information sent from the connected device to backend through 
> internet(android device is connected with internet already)? 
>
> Greatly appreciate for any suggestions. 
>
> Thans a lot. 
>
> Jerry 
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to