USB主从模式切换

peripheral、otg 从模式

host 主模式

/sys/bus/platform/devices/a600000.ssusb/mode 设备

echo peripheral > /sys/bus/platform/devices/a600000.ssusb/mode
echo otg > /sys/bus/platform/devices/a600000.ssusb/mode
echo host > /sys/bus/platform/devices/a600000.ssusb/mode

车端控车API

getPropertyValue(property, value)

setPropertyValue(property, value)

getIntPropertyValue(property, value)

setIntPropertyValue(property, value)

设置属性的值,设置后,会发出信号控制零件的功能