SerialBaseReadFromCoreServer 方法 |
名称 | 说明 | |
---|---|---|
ReadFromCoreServer(Byte) |
将原始的字节数据发送到串口,然后从串口接收一条数据。 The raw byte data is sent to the serial port, and then a piece of data is received from the serial port. | |
ReadFromCoreServer(IEnumerableByte) |
将多个数据报文按顺序发到设备,并从设备接收返回的数据内容,然后拼接成一个Byte[]信息,需要重写UnpackResponseContent(Byte, Byte)方法才能返回正确的结果。 Send multiple data packets to the device in sequence, and receive the returned data content from the device, and then splicing them into a Byte[] message, you need to rewrite UnpackResponseContent(Byte, Byte) method to return the correct result. | |
ReadFromCoreServer(Byte, Boolean, Boolean) |
将原始的字节数据发送到串口,然后从串口接收一条数据。 The raw byte data is sent to the serial port, and then a piece of data is received from the serial port. | |
ReadFromCoreServer(SerialPort, Byte, Boolean, Boolean) |
将数据发送到当前的串口通道上去,并且从串口通道接收一串原始的字节报文,默认对方必须返回数据,也可以手动修改不返回数据信息。 Send data to the current serial channel, and receive a string of original byte messages from the serial channel. By default, the other party must return data, or you can manually modify it to not return data information. |