Assuming that 485 two lines in the raspberry pie pin number 10, 11
After reading data in the database, case will be better, have a ready-made code

CodePudding user response:
Using a standard serial port ah GPIO 14/15
https://zhuanlan.zhihu.com/p/38853178
CodePudding user response: