我在vpd中这么设置
“Uart_1”: {
“Id”: 1,
“Description”: “UART1连接PORT1”,
“UartConnection”: 255,
“PortConnection”: 1,
“BaudRate”: 115200,
“DataBit”: 8,
“ParityBit”: 78,
“StopBit”: 1,
“SerialSwitch”: “<=/Scanner_Gpio31.Value”,
“@Default”: {
“SerialSwitch”: 1
}
},
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
bmc.kepler.Managers.UartPort interface - - -
.Reset method a{ss} - -
.BusType property s “Uart” -
.Id property y 1 -
bmc.kepler.Object.Properties interface - - -
.GetAllWithContext method a{ss}s a{sv} -
.GetOptions method a{ss}ss a{ss} -
.GetPrivateProperties method a{ss} s -
.GetPropertiesByNames method a{ss}sas a{sv}a{sv} -
.GetPropertiesByOptions method a{ss}sa{ss} as -
.GetPropertyDetail method a{ss}ss s -
.GetWithContext method a{ss}ss v -
.SetWithContext method a{ss}ssv - -
.ClassName property s “Uart” emits-change
.ObjectIdentifier property (ysss) 0 “1” “1” “01” emits-change
.ObjectName property s “Uart_1_01” emits-change
.TraceSamplingRate property d 0 emits-change
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.ObjectManager interface - - -
.GetManagedObjects method - a{oa{sa{sv}}} -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
这里没有它对应的在/dev/ttySX的信息,我应该如何对应呢?还是直接根据“PortConnection”: 1,这个字段对应?
如果我想测试串口收发,我应该如何操作呢?用哪个组件呢?