How can I send data via a FT232R chip /PL2303 to display characters /string on the receiving device?

StackOverflow https://stackoverflow.com/questions/18296711

문제

I am sending data from an android app to a medical device via usb. I am using a FTDI RS232 Cable (which has a FT232RL chip) and I also use a Prolific cable (which has a PL2303 chip). I can send characters / string values over the cables. However my character are either converted to decimal format or octadecimal format (base 8) which is a problem. It is a problem because the device wants to receive only strings / characters.

Note: I cant program the medical device: so I cant convert the data format on the receiving end.

Please do anyone have a suggestion for me?

도움이 되었습니까?

해결책

I used the FTDI library by Ksksue (https://github.com/ksksue/FTDriver) for sending data using to and for from the FTDI RS232 Cable. For the Prolific cable, you can use the PL2303 Android Driver Solution (http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=230&pcid=41). I personally used the FTDI cable for my problem.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top