cl-6666 / serialPort

Android串口通信框架、串口框架
151 stars 26 forks source link

不能接收到数据回调 #36

Closed J1aDong closed 3 months ago

J1aDong commented 4 months ago

【警告:请务必按照 issue 模板填写】

问题描述

其他

SerialPortManager;openSerialPort: 打开串口 /dev/ttyS1 波特率 9600 2024-07-08 11:35:14.801 5790-5790 ical.bodytester com.lancoo.physical.bodytester I type=1400 audit(0.0:983): avc: denied { read } for name="ttyS1" dev="tmpfs" ino=1158 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 2024-07-08 11:35:14.801 5790-5790 ical.bodytester com.lancoo.physical.bodytester I type=1400 audit(0.0:984): avc: denied { write } for name="ttyS1" dev="tmpfs" ino=1158 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 2024-07-08 11:35:14.801 5790-5790 ical.bodytester com.lancoo.physical.bodytester I type=1400 audit(0.0:985): avc: denied { open } for path="/dev/ttyS1" dev="tmpfs" ino=1158 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 2024-07-08 11:35:14.801 5790-5790 ical.bodytester com.lancoo.physical.bodytester I type=1400 audit(0.0:986): avc: denied { ioctl } for path="/dev/ttyS1" dev="tmpfs" ino=1158 ioctlcmd=5401 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 2024-07-08 11:35:14.804 5790-5790 serial_port com.lancoo.physical.bodytester D Opening serial port /dev/ttyS1 with flags 0x2 2024-07-08 11:35:14.804 5790-5790 serial_port com.lancoo.physical.bodytester D open() fd = 38 2024-07-08 11:35:14.804 5790-5790 serial_port com.lancoo.physical.bodytester D Configuring serial port 2024-07-08 11:35:14.805 5790-5790 TAG com.lancoo.physical.bodytester I SerialPortManager;openSerialPort: 串口已经打开 java.io.FileDescriptor@a7e8da1 2024-07-08 11:35:14.806 5790-5790 TAG com.lancoo.physical.bodytester I 串口打开状态:ttyS1---打开状态:SUCCESS_OPENED 2024-07-08 11:35:14.858 5790-5790 Thread-3 com.lancoo.physical.bodytester I type=1400 audit(0.0:987): avc: denied { getattr } for path="/dev/ttyS1" dev="tmpfs" ino=1158 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:serial_device:s0 tclass=chr_file permissive=1 2024-07-08 11:35:15.001 5790-5837 mali_so com.lancoo.physical.bodytester I [File] : hardware/arm/maliT760/driver/product/base/src/mali_base_kbase.c; [Line] : 876; [Func] : base_context_deal_with_version_affairs_rk_ext; arm_release_ver of this mali_so is 'r18p0-01rel0', rk_so_ver is '4@0'.

cl-6666 commented 4 months ago

pc端发送数据的时候不要转16进制