Files
wire_controlsystem/readme.md

33 lines
716 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 开发板上找串口号
## 找串口号
sudo ls /dev/tty{S*,ACM*,USB*,rfcomm*}
看看是哪儿个串口号,比如我的是/dev/ttyACM0
使用sudo dmesg | grep -i acm查看如果出现
ttyACM0: USB ACM device
说明是这个串口
## 给串口赋权限
sudo chmod 666 /dev/ttyACM0
# python版本
3.9
# 过年之后调试,需要注意
## 1.修改网络继电器的IP将1网段改成5网段
# 各设备IP地址
工控机192.168.5.50
笔记本192.168.5.105
网络继电器192.168.5.18
RK1106192.168.5.100
# 网络继电器传感器:
1、传感器1DI5
2、传感器2DI4
3、光纤传感器DI1
4、双按压传感器DI2、3
5、吸取装置电磁阀DO4、5、6、7、8