kai-morich / SimpleUsbTerminal

Android terminal app for devices with a serial / UART interface connected with a USB-to-serial-converter
MIT License
529 stars 195 forks source link

Strange characters on terminal after sending command #44

Closed javierxio closed 2 years ago

javierxio commented 2 years ago

Hello. I am using the app and can connect to the PL2303 device. I have set the baud rate to 115200.

When I send my hex commands F6 30 01 0A 31 6F the terminal prints strange characters. Ex: ?^A^A^@?o

Any ideas what I am doing wrong? Thanks.

kai-morich commented 2 years ago

the app can work in text or hex mode. if text is displayed, you probably haven't switched to hex mode and you have send your input as is (17 characters) instead of 6 bytes

javierxio commented 2 years ago

Kai, my OS is AOSP 9.0. I am running your app on my device. I am able to communicate with my target using Docklight software running on Windows but cannot communicate with your app on android.

kai-morich commented 2 years ago

are you using this SimpleUsbTerminal app or my Serial USB Terminal app? Please compare baud rate and other options with your windows software

javierxio commented 2 years ago

@kai-morich Thanks for the SimpleUsbTerminal suggestion. I found that my settings were not correct specifically "Newline" should have been set to None.

Edit: I was using Serial USB Terminal.

OK to close.

image

javierxio commented 2 years ago

One other observation, the output of the terminal seems to wrap around in one continuous line. It is not critical but if I am missing a setting, please let me know.

image

kai-morich commented 2 years ago

that's normal with newline = None