3351 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
 
 
 

6069

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上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 

1025

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
Analog Electronics

<<Analog Electronics>> is a very good book, I hope it will be helpful to your design journey!

Infineon Position2Go Development Kit Review - skypinglee

This content is provided by EEWORLD Forum 1. Unboxing I am honored to participate in the evaluation of the Infineon Po ...

CAN IAP Example

This content is originally created by EEWORLD forum user Xueshan Feihu11 . If you want to reprint or use it for comm ...

TI's Several Important Notes on Ethernet

TI Ethernet has grown by leaps and bounds since its introduction and is now widely used in the commercial and enterprise ...

Commonly used techniques in PCB design

Commonly used techniques in PCB design In the current mainstream market, the most commonly used circuit diagram drawing ...

[Flower carving DIY] Interesting and fun music visualization series of small projects (04) --- WS2812 strip light

This post was last edited by eagler8 on 2021-10-8 19:08 I suddenly had the urge to do a series of topics on sound visua ...

[Xianji HPM6750 Review] Testing the Ethernet Controller ENET

HPM6750 has 2 Gigabit Ethernet controllers. The MINI board leads to a RMII interface Ethernet controller HPM_ENET1 PIN ...

Use GD32F407RET6 USART5 DMA to send and receive data

As the title says, there is no problem with DMA sending data, but the microcontroller cannot receive data, and the recei ...

Image Dimension Measuring Instrument: Analyzing Applicable Components and Application Fields

Image dimension measuring instrument is also called one-button measuring instrument, fully automatic flash measuring ins ...

[Monthly awards are given out!] February monthly awards are distributed! There are awards for original creation, question discussion, and reply to questions!

Good afternoon, friends~ The list of winners for the monthly prizes in February is out~~~ There are prizes for original ...

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