how to deal with the serial port in android mobile?

后端 未结 2 1712
感情败类
感情败类 2020-12-19 22:32

actually I know no thing about serial port. but I see an example of sending it an at-command:

echo -e \"AT\" > /dev/smd0

What is /dev/sm

2条回答
  •  抹茶落季
    2020-12-19 23:25

    1. Using c4droid
    2. Open .c file
    3. Modify line 173 to printf("atinout version ...\n"); ... is version number
    4. Now compile your code in c4droid
    5. retrieve file from c4droid directory cp data/data/com.n0n3m4.droidc/files/temp /sdcard

提交回复
热议问题