Giter VIP home page Giter VIP logo

Comments (6)

xmaihh avatar xmaihh commented on July 28, 2024

implementation 'io.github.xmaihh:serialport:2.1.1'

使用的是哪个版本

from android-serialport.

ChenGithubSignUp avatar ChenGithubSignUp commented on July 28, 2024

implementation 'io.github.xmaihh:serialport:2.1.1'

使用的是哪个版本

使用的是2.1.1版本,通过Android studio的虚拟机连接电脑的虚拟串口。在测试前已经将虚拟机root,并将串口文件的读写权限打开。测试发现可以正常发送数据,但电脑回送数据单次超过9个字节app会卡死,虚拟机也会卡死然后退出。使用您提供的demo生成的apk也是同样现象。

from android-serialport.

xmaihh avatar xmaihh commented on July 28, 2024

可能是由于虚拟机的性能问题导致的。又或者说虚拟机对串口的读取和写入有一定的限制。

from android-serialport.

ChenGithubSignUp avatar ChenGithubSignUp commented on July 28, 2024

可能是由于虚拟机的性能问题导致的。又或者说虚拟机对串口的读取和写入有一定的限制。

好的,我再试试其他方法,十分感谢!

from android-serialport.

xiaotaiyang-lj avatar xiaotaiyang-lj commented on July 28, 2024

我直接下载的apk在7.0上跑的,也出现了这个问题

from android-serialport.

ChenGithubSignUp avatar ChenGithubSignUp commented on July 28, 2024

我直接下载的apk在7.0上跑的,也出现了这个问题

换库吧,用这个https://github.com/mik3y/usb-serial-for-android,还免root

from android-serialport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.