串行通信不返回确认是标准做法吗?
Is it standard practice for serial communication NOT returning an acknowledgement?
我正在处理一种使用串行通信的硬件。
硬件的用途是
- 设置灯的参数(点亮时间、频率等)
- 然后打开 on/off 灯
系统运行正常,但令我惊讶的是它从来没有 returns 作为确认的值。
我期待看到任何类型的返回确认,例如
'ack' #as acknowledgement
'0' #as success
'-1' #as error
#OR any other things such as report back the configuration or lighting status.
由于我对其他带有串行通信的硬件没有太多经验,我想知道这是否是标准做法。
是否允许或惯例在通信中省略确认?
串行通信有多种类型。
标准做法也与选择什么作为手段密切相关。
比如在常用的RS-232中,只决定了以下内容,并没有定义协议。
RS-232 - Wikipedia
The standard defines the electrical characteristics and timing of signals, the meaning of signals, and the physical size and pinout of connectors.
由开发人员决定 use/build 的协议。
因此,由于设备和软件开发的简单性和成本降低,有许多情况下不进行确认。
当然,有些RS-232也有像BSC协议一样的确认。
因此,重要的是检查设备在规格上使用的协议并相应地创建程序。
我正在处理一种使用串行通信的硬件。
硬件的用途是
- 设置灯的参数(点亮时间、频率等)
- 然后打开 on/off 灯
系统运行正常,但令我惊讶的是它从来没有 returns 作为确认的值。
我期待看到任何类型的返回确认,例如
'ack' #as acknowledgement
'0' #as success
'-1' #as error
#OR any other things such as report back the configuration or lighting status.
由于我对其他带有串行通信的硬件没有太多经验,我想知道这是否是标准做法。
是否允许或惯例在通信中省略确认?
串行通信有多种类型。
标准做法也与选择什么作为手段密切相关。
比如在常用的RS-232中,只决定了以下内容,并没有定义协议。
RS-232 - Wikipedia
The standard defines the electrical characteristics and timing of signals, the meaning of signals, and the physical size and pinout of connectors.
由开发人员决定 use/build 的协议。
因此,由于设备和软件开发的简单性和成本降低,有许多情况下不进行确认。
当然,有些RS-232也有像BSC协议一样的确认。
因此,重要的是检查设备在规格上使用的协议并相应地创建程序。