Android ymodem via bluetooth in Java

Has anyone successfully implemented ymodem in java to send files via bluetooth (SPP)?

I looked at this option and would not want to try to compile some C / C ++ code for Android, but I do not want to root the tablet, is this really necessary? why?

+6
source share
2 answers

As you pointed out, this one is a very good explanation of how to transfer data using the yixm Tixy protocol on Android.

I think a device with a root is necessary because your application needs low-level access to the serial interface / modem to transfer data following the ymodem specification (without any additional high-level encapsulation data).

+1
source

You need root, because serial communication in android (and other Linux systems) always passes /dev/ttys..

And permissions for /dev/ttys.. are usually set to rw only for root .

Some Android roles may have access to devices, but this is usually not the case.

But , if you can send raw data via bluetooth (java), you need to change the source code of ymodem, which returns a data packet. Send the returned data packet and you are on a good path.

EDIT

There are several ways to send raw packets:
http://www.intorobotics.com/how-to-develop-simple-bluetooth-android-application-to-control-a-robot-remote/

+1
source

Source: https://habr.com/ru/post/951288/


All Articles