Closed J1aDong closed 3 months ago
框架版本【必填】:v4.0.1
问题描述【必填】:不能接收到数据回调,但使用第三方串口调试工具是ok的,不明白问题出在哪;发送是ok的
复现步骤【必填】:我这边是一台硬件设备可能没法复现,不是用的模拟器
是否必现【必填】:是
出现问题机型信息【必填】:rk3288的机型
出现问题的安卓版本【必填】:7.1.2
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'.
pc端发送数据的时候不要转16进制
【警告:请务必按照 issue 模板填写】
问题描述
框架版本【必填】:v4.0.1
问题描述【必填】:不能接收到数据回调,但使用第三方串口调试工具是ok的,不明白问题出在哪;发送是ok的
复现步骤【必填】:我这边是一台硬件设备可能没法复现,不是用的模拟器
是否必现【必填】:是
出现问题机型信息【必填】:rk3288的机型
出现问题的安卓版本【必填】:7.1.2
其他
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'.