https://stackoverflow.com/questions/24638063/install-node-serialport-module-on-arm-linuxnode
https://blog.csdn.net/minchina91/article/details/40260263linux
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`git
節點:node_find_serial 串口查找節點github
話題:find_serial_msg數組
發佈的消息:spa
msg_FindSerFlg 串口查找狀態.net
msg_SerialNum 查找結果的串口號存儲數組orm
訂閱的消息: 無
------------------------------------------------------------------------
節點:
node_sensor_data 傳感器信號彙總板節點
話題:
find_serial_msg
發佈的消息:
msg_UltData 8路超聲波數據存儲數組(通過排序法取中值以後的數據)
待定 來自信號彙總板子的消息
訂閱的話題:find_serial_msg (判斷串口查詢狀態並提取串口號)
------------------------------------------------------------------------
節點:node_power_board 電源板節點
話題:
powerh_board_msg 高速電源板
powerl_board_msg 低速電源板
發佈的消息:
msg_MotorCur 電源板的各類電流 [高速電源板]
msg_BatteryFlg 電池充電狀態 01正在充電 02未充電 [低速電源板]
msg_BatteryVol 電池的電壓 [低速電源板]
msg_BatteryCapy 電池的電量 [低速電源板]
msg_RemoteCMD 遙控器數據 [低速電源板]
訂閱的消息:
find_serial_msg
------------------------------------------------------------------------
節點:node_audio_play 聲音播放節點
話題:無
發佈的消息:無
訂閱的消息:
find_serial_msg 查找沒問題時提示開機
powerl_board_msg 關機指令、SOS、充電狀態提示