6843 views|11 replies

2

Posts

0

Resources
The OP
 

How to use 485 communication with MicroPython [Copy link]

 
 Is there any useful one? Please give me some advice.

Latest reply

I added a small board for converting ttl to 485, which is quite easy to implement, and there is also a modbus library.   Details Published on 2019-11-22 14:18
 
 

1w

Posts

25

Resources
2
 
The usage is the same as the general serial port.
 
 
 

2

Posts

0

Resources
3
 
No library found to set the enable end
 
 
 

1

Posts

0

Resources
4
 
How does this uart transmit 485 signals? Do I need a Modbus?

Comments

Modbus seems to be available on GitHub, you can go and have a look  Details Published on 2019-4-8 08:40
 
 
 

1w

Posts

25

Resources
5
 
Compared with the ordinary 485 serial port, it has an additional transmit and receive enable, which can be controlled by a GPIO.
 
 
 

1w

Posts

25

Resources
6
 
szl123456 posted on 2019-4-6 21:02 How can this uart transmit 485 signals? Do I need to make a Modbus?
The modbus seems to be available on github, you can go and have a look
 
 
 

13

Posts

0

Resources
7
 
dcexpert posted on 2019-4-8 08:39 Compared with the ordinary 485 and the serial port, it has an additional transmit and receive enable, and you can control it with a GPIO.

With the MAX13487EESA RS485 chip, you don't have to worry about enabling the send and receive function. It is compatible with both 3.3V and 5V serial ports.

Comments

Of course it is possible to use a chip that automatically controls the transmission and reception.  Details Published on 2019-11-14 15:14
 
 
 

1w

Posts

25

Resources
8
 
Ediwin published on 2019-11-14 15:13 With the MAX13487EESA RS485 chip, you don't have to worry about the issue of enabling and disabling the send and receive functions. It is also compatible with 3.3V and 5V serial ports

Of course it is possible to use a chip that automatically controls the transmission and reception.

 
 
 

13

Posts

0

Resources
9
 
dcexpert posted on 2019-11-14 15:14 Of course it is possible to use a chip that automatically controls the transmission and reception.

dcexpert, does the Pyboard's serial port data receiving buffer have a clearing function?

Comments

Micropython sets up a serial port buffer (the size can be defined by yourself) to avoid data loss. Use any() to determine whether there is data in the buffer. The content of the serial port buffer can be read through read(). When all the data is read, it is cleared.  Details Published on 2019-11-14 15:23
 
 
 

1w

Posts

25

Resources
10
 
Ediwin posted on 2019-11-14 15:20 dcexpert, does the Pyboard serial port data receiving buffer have a clearing function?

Micropython has a serial port buffer (the size can be defined by yourself) to avoid data loss. You can use any() to determine whether there is data in the buffer. The serial port buffer content can be read through read(). When all the data is read, it is cleared.

 
 
 

13

Posts

0

Resources
11
 
dcexpert posted on 2019-11-14 15:23 Micropython has a serial port buffer (the size can be defined by yourself) to avoid data loss. Use any() to determine the buffer...

Dcexpert, does MicroPython have a library similar to https://pypi.org/project/crcmod/?

 
 
 

4

Posts

0

Resources
12
 

I added a small board for converting ttl to 485, which is quite easy to implement, and there is also a modbus library.

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list