3301 views|6 replies

3

Posts

0

Resources
The OP
 

485 sends data but receives data intermittently [Copy link]

I captured the data through the 485 serial port

Here is my data:

The data starting with 03 and 04 on the left are sent. Normally, they should be responded directly. However, there are many times when the data cannot be responded or received. What is the reason? I am almost driven crazy.

[2022-01-05 12:29:02.640]# RECV HEX>
03 02 03 00 00 02 33 1A

[2022-01-05 12:29:02.925]# RECV HEX>
04 02 03 00 00 02 33 1A

[2022-01-05 12:29:04.223]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:04.494]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:05.780]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:06.051]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:07.304]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:07.577]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:08.840]# RECV HEX>
03 02 03 00 00 02 33 1A

[2022-01-05 12:29:09.128]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:10.385]# RECV HEX>
03 02 03 00 00 02 33 1A

[2022-01-05 12:29:10.673]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:11.944]# RECV HEX>
03 02 03 00 00 02 33 1A

[2022-01-05 12:29:12.233]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:13.498]# RECV HEX>
03 02 03 00 00 02 33 1A

[2022-01-05 12:29:13.769]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:15.043]# RECV HEX>
03 02 03 00 00 02 33 1A

[2022-01-05 12:29:15.325]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:16.605]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:16.878]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:18.150]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:18.406]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:19.690]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:19.962]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:21.218]# RECV HEX>
03 02 03 00 00 02 33 1A

[2022-01-05 12:29:21.506]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:22.770]# RECV HEX>
03 02 03 00 00 02 33 1A

[2022-01-05 12:29:23.042]# RECV HEX>
04 02 03 00 00 02 33 1A

[2022-01-05 12:29:24.342]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:24.585]# RECV HEX>
04 02 03 00 00 02 33 1A

[2022-01-05 12:29:25.885]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:26.125]# RECV HEX>
04 02 03 00 00 02 33 1A

[2022-01-05 12:29:27.429]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:27.669]# RECV HEX>
04 02 03 00 00 02 33 1A

[2022-01-05 12:29:28.954]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:29.225]# RECV HEX>
04 02 03 00 00 02 33 1A

[2022-01-05 12:29:30.979]# RECV HEX>
03 02 03 00 00 02 33 1A

[2022-01-05 12:29:31.278]# RECV HEX>
04 02 03 00 00 02 33 1A E2 78 E0 C1 E0 F7 E7

[2022-01-05 12:29:35.949]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:37.204]# RECV HEX>
03 02 03 00 00 02 33 1A

[2022-01-05 12:29:37.489]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

[2022-01-05 12:29:38.776]# RECV HEX>
03 02 03 00 00 02 33 1A 03 03 00 01 00 11 08 11

[2022-01-05 12:29:39.032]# RECV HEX>
04 02 03 00 00 02 33 1A 04 03 00 01 00 11 08 11

This post is from stm32/stm8

Latest reply

RS485 signals must be biased, otherwise they often have a beginning but no end and the signal is disordered.   Details Published on 2022-1-5 21:05
 

3

Posts

0

Resources
2
 

Because I set it to disconnect all operations if there is no response within ten seconds, so it is very uncomfortable to not receive a response all the time

This post is from stm32/stm8
 
 

14

Posts

0

Resources
3
 

I don't understand this, please explain.

This post is from stm32/stm8

Comments

There are three devices. One host sends data to the other two at an interval of 250ms. The other two devices receive the data and send back a response data. The two slaves use a 20ms timer to receive. As a result, sometimes they cannot receive the response data sent by the slave, or the host  Details Published on 2022-1-5 13:28
 
 

3

Posts

0

Resources
4
 
yangjeff posted on 2022-1-5 13:23 I don't understand this, hope you can explain it,

There are three devices. One host sends data to the other two at an interval of 250ms. The other two devices receive the data and send back a response data.

The two slaves use a 20ms timer to receive data. As a result, sometimes the data is not received after each transmission, or sometimes the host cannot receive the response data sent by the slave.

This post is from stm32/stm8
 
 
 

6062

Posts

4

Resources
5
 

modbus?

This post is from stm32/stm8
 
 
 

1w

Posts

142

Resources
6
 

How do you determine that the data cannot be received? Use a serial port monitoring software to check the data at the TTL end of the receiving side. If there is a problem with the data, it is a problem with the sender or the transmission line. If there is no problem with the data, it is an error in the receiving side software.

This post is from stm32/stm8
 
Personal signature上传了一些书籍资料,也许有你想要的:http://download.eeworld.com.cn/user/chunyang
 
 

1022

Posts

0

Resources
7
 

RS485 signals must be biased, otherwise they often have a beginning but no end and the signal is disordered.

This post is from stm32/stm8
 
Personal signatureچوآن شـين
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
C language uses binary tree to parse polynomials and evaluate

It mainly realizes the analysis of polynomial data calculation. If there is a need to make a simple calculator based on ...

STM8S001J3 uses HalfDuplex mode and uses IO mapping and cannot receive data.

The first time I used STM8S001J3, I mainly used UART and EEPROM. At that time, I saw that UART_TX conflicted with SWIM, ...

The disappearing boundary between MCU and MPU

There was a time when microprocessors (MPUs) and microcontrollers (MCUs) were two completely different devices. Microcon ...

Relationship between PN conduction voltage drop and current and temperature

*) , the E junction is affected by temperature, and the change in on-state voltage drop is related to Is and Ic The cond ...

Free Review - Topmicro Intelligent Display Module (5) Touch Screen

This post was last edited by wenyangzeng on 2021-11-1 16:36 Free Review - Topmicro Intelligent Display Module (5) Touch ...

View circuit - load switch

In many circuits, one power supply may correspond to multiple loads. Sometimes the power supply of the load needs to be ...

[Flower carving DIY] Interesting and fun music visualization series project (24) - infinite LED mirror light

I suddenly had the urge to do a series of topics on music visualization. This topic is a bit difficult and covers a wide ...

Common Problems in RF Circuit Design

666836 Common problems in RF circuit design 1. Interference between digital circuit modules and analog circuit modules ...

M4N-Dock basic usage environment configuration

# M4N-Dock basic usage environment configuration## Login system The default system is Debian system. Plug in the network ...

The price came out and I looked at it for more than an hour.

21.59 Did you guess it right?

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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