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

Slave computer address detection method in master-slave mode serial communication

An address detection and serial communication technology, applied in the field of slave address detection in master-slave serial communication, can solve the problem of sending, the host cannot actively detect the number of connected slaves and the slave address ID, etc. The effect of simplifying the communication interface circuit, strong practical application value, and increasing reliability and detectability

Active Publication Date: 2009-08-26
BEIJING QAML OF SCI & TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, when a master and multiple slaves with different address IDs are only connected in parallel through two wires to form an independent communication network, according to the current conventional communication methods or methods, when the master wants to send instructions to a slave, it needs The specific address ID of the slave is known in advance. When the number of connected slaves and unknown slave address ID are uncertain in the network, the host cannot actively detect the number of connected slaves and the slave address ID, so it cannot target A slave connected to the network sends operation instructions such as writing data

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
  • Slave computer address detection method in master-slave mode serial communication
  • Slave computer address detection method in master-slave mode serial communication
  • Slave computer address detection method in master-slave mode serial communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Set the operating clock frequency of the master to 4MHz, and the operating frequency of all slaves to 32768Hz. Other parameters are as follows:

[0033] time1=2ms

[0034] time2=4ms, all four stages are 1ms

[0035] time3=1ms

[0036] "firstscan" command for voltage waveform such as Figure 4 agreement

[0037] The voltage waveform of the "secondscan" command is as follows Figure 5 agreement

[0038] When the voltage difference between the two communication lines is less than 2 volts, it is the agreed "0" state, otherwise it is "1". Host output voltage > 4 volts; figure 2 The function of the internal level conversion part of the middle slave is to convert the >2 volt voltage output by the rectifier bridge into the high level of the CPU interface voltage of the slave machine, and vice versa to a low level. The internal circuit impedance of the machine connected to the communication line of the slave machine is low impedance. In this example, the electronic switc...

Embodiment 2

[0057] Set the operating clock frequency of the master to 4MHz, and the operating frequency of all slaves to 32768Hz. Other parameters are as follows:

[0058] time1=2ms

[0059] time2=4ms, the four stages are all 1ms

[0060] time3=1ms

[0061] "firstscan" command for voltage waveform such as Image 6 agreement

[0062] The voltage waveform of the "secondscan" command is as follows Figure 7 agreement

[0063] The voltage waveform of the "0" state of the two communication lines is agreed to be a 10KHz frequency signal, and the signal amplitude can be between 4 volts and 10 volts; the voltage waveform of the "1" state of the two communication lines is agreed to be a 20KHz frequency signal, and the signal amplitude Can be between 4 volts and 10 volts; image 3 The function of the internal filter conversion part of the middle slave is to filter the voltage signal output by the rectifier bridge with a frequency of 20K±4KHz and transform it into the high level of the slave C...

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 relates to a slave address detection method of master-slave serial communication in the technical field of electrical communication. The method is as follows: according to the pre-agreed coding rules between the host and the slave, the host sends the first scan command to clear the register of the slave; The bit performs current feedback on the signal and determines whether to continue the feedback based on its change. The master can determine the address of the first slave; The second slave address can be determined, and the remaining slave addresses can also be detected until the detected slave addresses are all 1. The invention simplifies the link of communication and the interface circuit, improves the convenience and efficiency of the communication between the master and the slave, and increases the detectability of the network connection. The comprehensive cost of related products is reduced, and the utility model has strong practical application value.

Description

Technical field: [0001] The invention relates to a slave address detection method of master-slave serial communication in the technical field of electrical communication. Background technique: [0002] At present, when a master and multiple slaves with different address IDs are only connected in parallel through two wires to form an independent communication network, according to the current conventional communication methods or methods, when the master wants to send instructions to a slave, it needs The specific address ID of the slave is known in advance. When the number of connected slaves and unknown slave address ID are uncertain in the network, the host cannot actively detect the number of connected slaves and the slave address ID, so it cannot target A slave connected to the network sends operation instructions such as writing data. Invention content: [0003] The purpose of the present invention is to provide a master-slave serial communication slave address detec...

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 Patents(China)
IPC IPC(8): G06F13/38
Inventor 银庆宇
Owner BEIJING QAML OF SCI & TECH CO LTD