Unlock instant, AI-driven research and patent intelligence for your innovation.

Communication method, device thereof and communication circuit

A communication method and technology of a communication device, applied in the field of communication, can solve the problems of complex structure and high cost, and achieve the effect of simplifying the port structure and reducing the cost.

Pending Publication Date: 2021-06-18
HUIZHOU TOPBAND ELECTRICAL TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a communication method, device and communication circuit, aiming to solve the existing problem of complex structure and cost by designing a special fool-proof connector to ensure that the two parties of the RS485 communication are connected to the line, and then ensure the normal communication between the two parties. high technical issues

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method, device thereof and communication circuit
  • Communication method, device thereof and communication circuit
  • Communication method, device thereof and communication circuit

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] see image 3 , which shows the communication method in Embodiment 1 of the present invention, which can be applied to a processing unit, and the processing unit is provided with at least one IO port. The communication method can be realized by software and / or hardware. The communication method Specifically include:

[0035] Step S01, presetting the communication baud rate, and obtaining the data bit length according to the communication baud rate;

[0036] Step S02, detecting the start bit signal received by the IO port, the start bit signal is sent by the RS485 transceiver unit, and the start bit signal includes an edge signal and a level signal;

[0037] Step S03, if it is judged that the edge signal is a falling edge signal, and the low level duration of the level signal exceeds the data bit length, then set the IO port as a serial port, and configure the serial port as a positive phase take over;

[0038] Step S04, if it is judged that the edge signal is a rising...

Embodiment 2

[0045] Embodiment 2 of the present invention also proposes a communication method. The difference between the communication method in this embodiment and the communication method in Embodiment 1 is that after the step of judging that the edge signal is a falling edge signal, it further includes:

[0046] Judging that the low level duration of the level signal does not exceed the data bit length, then continue to set the IO port to the edge receiving mode.

[0047] It should be understood that when the edge of the start bit is a falling edge, but the low-level duration of the level signal of the start bit does not exceed the set data bit length, it means that the currently analyzed start bit signal is an interference signal , not the start bit of a real valid signal, the low level duration of the level signal of the start bit of a real valid signal should be equal to the set data bit length, so the processing unit chooses to keep the IO port in the edge receiving mode to Discar...

Embodiment 3

[0052] Embodiment 3 of the present invention also proposes a communication method. The difference between the communication method in this embodiment and the communication method in Embodiment 1 is that please refer to Figure 5 After the step of setting the IO port as a serial port, the communication method in this embodiment further includes:

[0053] Step S11, detecting the communication identification byte received by the serial port based on the start bit signal;

[0054] Step S12, judging whether the communication identification byte is correct; when it is judged that the communication identification byte is correct, then execute step S13; when it is judged that the communication identification byte is incorrect, then execute step S14;

[0055] Step S13, configuring the serial port in a transceiver mode.

[0056] Step S14, reconfiguring the IO port to an edge receiving mode.

[0057] In this embodiment, after the positive phase or negative phase signal is correctly ide...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is suitable for the technical field of communication, and provides a communication method and a device thereof and a communication circuit, and the method comprises the steps: presetting a communication baud rate, and obtaining a data bit length according to the communication baud rate; detecting a start bit signal received by the IO port, wherein the start bit signal comprises an edge signal and a level signal; if it is judged that the edge signal is a falling edge signal and the low level duration of the level signal exceeds the data bit length, setting the IO port as a serial port, and configuring the serial port to be in normal phase receiving; and if the edge signal is judged to be a rising edge signal and the high level duration of the level signal exceeds the data bit length, setting the IO port to be a serial port, and configuring the serial port to be reverse-phase receiving. According to the invention, normal communication can be realized through forward and reverse blind plugging of the RS485AB line from the aspect of software, a special fool-proof connector does not need to be designed, the port structure is simplified, and the cost is reduced.

Description

technical field [0001] The invention belongs to the technical field of communication, and in particular relates to a communication method, device and communication circuit. Background technique [0002] As a kind of universal serial bus, the RS485 bus is widely used in electronic products, and the RS485 port is a communication connection port in the RS485 bus. The RS485 port needs to complete the communication, and the RS485-A line and the RS485-B line of the communication parties must be connected correspondingly, that is, the A line is connected to the A line, and the B line is connected to the B line to communicate normally. However, in many cases, the RS485-A line and the RS485-B line are mostly blind plugged. If the wrong line is connected, the communication cannot be realized. [0003] In the existing technology, in order to avoid wrong connection, the corresponding connection between the RS485-A line and the RS485-B line of the communication parties is realized throu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/42G06F13/40
CPCG06F13/4221G06F13/4068G06F2213/0002
Inventor 陈颜新陈楚泽戴东林周友兴李行杰
Owner HUIZHOU TOPBAND ELECTRICAL TECH CO LTD