huruwo / serialporthelper Goto Github PK
View Code? Open in Web Editor NEWAndroid 串口调试助手
Android 串口调试助手
RT
当从串口获取数据后,如何完整的解析一个命令,比如判断头,尾,校验码,判断一个数据是否完整接收等问题,能否大体举例说明一下
求解。。。我直接用的是aar的方式,但不知道为什么报找不到库
2020-07-23 10:24:56.092 8730-8730/com.huruwo.serialporthelper E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.huruwo.serialporthelper, PID: 8730
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.huruwo.serialporthelper/com.huruwo.serialporthelper.SerialPortHelperActivity}: java.lang.NullPointerException: Attempt to get length of null array
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2804)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2875)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1578)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6623)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
Caused by: java.lang.NullPointerException: Attempt to get length of null array
at android_serialport_api.SerialPortFinder$Driver.getDevices(SerialPortFinder.java:44)
at android_serialport_api.SerialPortFinder.getAllDevicesPath(SerialPortFinder.java:111)
at com.huruwo.serialporthelper.SerialPortHelperActivity.iniview(SerialPortHelperActivity.java:91)
at com.huruwo.serialporthelper.SerialPortHelperActivity.onCreate(SerialPortHelperActivity.java:63)
at android.app.Activity.performCreate(Activity.java:6910)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2757)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2875)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1578)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6623)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
2020-07-23 10:24:56.102 8730-8730/com.huruwo.serialporthelper I/Process: Sending signal. PID: 8730 SIG: 9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.