CN109240971A - Communication means, apparatus and system - Google Patents
Communication means, apparatus and system Download PDFInfo
- Publication number
- CN109240971A CN109240971A CN201811126027.XA CN201811126027A CN109240971A CN 109240971 A CN109240971 A CN 109240971A CN 201811126027 A CN201811126027 A CN 201811126027A CN 109240971 A CN109240971 A CN 109240971A
- Authority
- CN
- China
- Prior art keywords
- equipment
- communication
- main equipment
- consistent
- target identification
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
This application discloses a kind of communication means, apparatus and system.The method is applied to the slave equipment communicated with the main equipment in communication system, it is described from the device configured with this from the corresponding local identification marking of equipment, receive the communication information that the main equipment is sent from equipment the described method includes: described, the communication information include for determine communicated with the main equipment described in from the target identification of equipment mark;It is described to judge whether the target identification mark is consistent with the local identification marking from equipment;If the target identification mark is consistent with the local identification marking, receives the data information that the main equipment is sent and the data information is handled;If the target identification mark is not consistent with the local identification marking, high-impedance state is set as from the signal transmitting and receiving pin of equipment by described.Communication means provided by the embodiments of the present application can greatly reduce influence of the equipment not communicated to communication process, to improve communication speed.
Description
Technical field
This application involves fields of communication technology, in particular to a kind of communication means, apparatus and system.
Background technique
SPI (Serial Peripheral Interface (SPI), English name, Serial Peripheral Interface) bus system is a kind of
Synchronous serial Peripheral Interface, it can be such that MCU is communicated in a serial fashion with various peripheral equipments to exchange information.The interface
Generally use 4 lines: serial time clock line (SCLK), main equipment input/from equipment output data line MISO, main equipment output/from
Equipment input data line MOSI and low level are effectively from device selection line NSS.
In existing communication system, often connected on a main equipment it is multiple from equipment, main equipment with it is logical from equipment
When letter, often by main equipment control from the chip selection signal of equipment, to control the enabled state from equipment to realize.So
And in this communication mode, due to it is each from the input pin of equipment, output pin, clock pins and enable end be all with
The output pin of main equipment, input pin, clock pins and make to can control what pin was correspondingly connected with, therefore, chip selection signal is
Level signal on the input pin of the slave equipment of non-enabled state, output pin and clock pins just will affect main equipment
The level change of output pin, input pin, to reduce traffic rate.
In addition, in the prior art, since main equipment needs to control the enabled state from equipment, it is needed on main equipment
Multiple pins are connect with from equipment, also will affect main equipment and the traffic rate from equipment.
Summary of the invention
In order to overcome above-mentioned deficiency in the prior art, the application's is designed to provide a kind of communication means, is applied to
The slave equipment communicated with the main equipment in communication system, described be configured with from the device are marked with this from corresponding locally identify of equipment
Know, which comprises
It is described to receive the communication information that the main equipment is sent from equipment, the communication information include for it is determining with it is described
Main equipment is communicated described from the target identification of equipment mark;
It is described to judge whether the target identification mark is consistent with the local identification marking from equipment;
If the target identification mark is consistent with the local identification marking, the data letter that the main equipment is sent is received
It ceases and the data information is handled;
If the target identification mark is not consistent with the local identification marking, draw described from the signal transmitting and receiving of equipment
Foot is set as high-impedance state.
Optionally, the communication information further includes for determining the main equipment and described from communication between devices duration
Default communication time;
If the target identification mark is not consistent with the local identification marking, received described from the signal of equipment
The step of foot is set as high-impedance state of carrying out the coffin upon burial be,
If the target identification mark is not consistent with the local identification marking, draw described from the signal transmitting and receiving of equipment
Foot is set as high-impedance state, after the default communication time, cancels the high-impedance state of the signal transmitting and receiving pin from equipment.
Optionally, the data information is command information, described to receive data information that the main equipment is sent and to this
The step of data information is handled include:
It is described to receive the data information of the main equipment transmission from equipment and sent out according to the data information to the main equipment
Send data to be sent.
Optionally, described that SPI communication is used between equipment and main equipment.
Optionally, before the step of communication information that the main equipment transmission is received from equipment, the method includes,
Low frequency mode is set as from the communication frequency of equipment by described;
When target identification mark is consistent with the local identification marking, the method also includes by described from setting
Standby communication frequency is set as high frequency mode.
Optionally, described by before described the step of being set as low frequency mode from the communication frequency of equipment, the method is also wrapped
It includes,
Obtain the predetermined current intensity value from equipment;
The predetermined current intensity value is set by the current value of the signal transmitting and receiving pin from equipment.
The another object of the application is to provide a kind of communication device, applied to what is communicated with the main equipment in communication system
From equipment, described device includes:
Memory module, for store with it is described from equipment it is corresponding local identification marking;
Receiving module, receives the communication information that the main equipment is sent, the communication information include for it is determining with it is described
Main equipment is communicated described from the target identification of equipment mark;
Judgment module, for judging whether the target identification mark is consistent with the local identification marking;
Control module, for receiving the master and setting when target identification mark is consistent with the local identification marking
Data information that preparation is sent simultaneously is handled the data information;
When target identification mark is not consistent with the local identification marking, draw described from the signal transmitting and receiving of equipment
Foot is set as high-impedance state.
The another object of the application is to provide a kind of communication means, is applied to identify with communication system configured with local
The main equipment of the slave equipment communication of mark, the method includes,
The main equipment sends the communication information from equipment to described, and the communication information includes setting for determination with the master
It is standby communicated described identified from the target identification of equipment and for determining the main equipment and described from communication between devices
The default communication time of duration promotes described from equipment:
Receive the communication information that the main equipment is sent;
Judge whether the target identification mark is consistent with the local identification marking;
If the target identification mark is consistent with the local identification marking, the data that the main equipment is sent are received
Information is simultaneously handled the data information;
If the target identification mark is not consistent with the local identification marking, by the signal transmitting and receiving from equipment
Pin is set as high-impedance state.
The another object of the application is to provide a kind of communication device, is applied to identify with communication system configured with local
The main equipment of the slave equipment communication of mark, described device includes,
Sending module, the sending module are used to send the communication information from equipment to described, and the communication information includes using
In determine communicated with the main equipment described in from the target identification of equipment mark and for determining the main equipment and institute
The default communication time from communication between devices duration is stated, is promoted described from equipment:
Receive the communication information that the main equipment is sent;
It is described to judge whether the target identification mark is consistent with the local identification marking from equipment;
If the target identification mark is consistent with the local identification marking, the data that the main equipment is sent are received
Information is simultaneously handled the data information;
If the target identification mark is not consistent with the local identification marking, by the signal transmitting and receiving from equipment
Pin is set as high-impedance state.
The another object of the application is to provide a kind of communication system, the communication system include main equipment and with it is described
At least two of main equipment communication connection from equipment, at least two it is described from equipment be enabled state.
In terms of existing technologies, the application has the advantages that
The embodiment of the present application is identified by receiving the target identification that main equipment is sent from equipment, then identifies target identification
It is compared with this from the local identification marking of equipment, and in the case where target identification mark is consistent with target identification mark,
It is communicated with main equipment;In the case where target identification mark is not consistent with target identification mark, by the signal from equipment
Transmitting-receiving pin is set as high-impedance state, in this way, the slave equipment for allowing for not needing to be communicated with main equipment will not be to main equipment
It impacts, that is to say, that the slave equipment for being only connected to and being communicated with main equipment is equivalent on main equipment, in this way, allowing for
Main equipment and should be greatly improved from the communication speed between equipment.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is main equipment provided by the embodiments of the present application and the connection schematic diagram from equipment;
Fig. 2 is the structural schematic diagram of communication system provided by the embodiments of the present application;
Fig. 3 is the flow diagram of communication means provided by the embodiments of the present application;
Fig. 4 is a kind of structural block diagram of communication device provided by the embodiments of the present application.
Icon: 100- main equipment;110- first processor;120- first memory;200- is from equipment;210- second processing
Device;220- second memory;310- memory module;320- receiving module;330- judgment module;340- control module.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed
Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Term " first ", " second ", " third " etc. are only used for distinguishing description, are not understood to indicate or imply relatively heavy
The property wanted.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one
Connect to body;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, it can also be indirect by intermediary
It is connected, can be the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition
State the concrete meaning of term in this application.
Referring to Figure 1, Fig. 1 is the connection schematic diagram of communication system provided by the embodiments of the present application, the communication system packet
At least two for including main equipment 100 and communicating to connect with the main equipment 100 are described from equipment from equipment 200, at least two
200 be enabled state.
In the present embodiment, the main equipment 100 may include input pin, output pin and clock pins, from equipment
200 may include input pin, output pin and clock pins, wherein from the input pin and main equipment 100 of equipment 200
Output pin connection, by the line being connect from the input pin of equipment 200 with the output pin of main equipment 100 for main equipment it is defeated
Enter/from equipment output data line MISO;It is connect from the output pin of equipment 200 with the input pin of main equipment 100, it will be from equipment
The line that 200 output pin is connect with the input pin of main equipment 100 is main equipment output/from equipment input data line MOSI;
It is connect from the clock pins of equipment 200 with the clock pins of main equipment 100, from clock pins and the main equipment 100 of equipment 200
The line of clock pins connection is serial time clock line SCLK.
In the present embodiment, it is described from equipment 200 be enabled state.It is specifically, described to include enable end from equipment 200,
It is described to make the electric signal enabled from equipment 200 from the connection of the enable end of equipment 200, for example, the slave equipment 200 that low level is enabled
In, ground wire or low level etc. can be connected from the enable end of equipment 200 by described.The connection from the enable end of equipment 200 is made
The ground wire enabled from equipment 200, can make that each from equipment 200 enables shape it is not necessary that control is separately provided in a communications system
The signal wire of state, that is to say, that can reduce main equipment 100 and between equipment 200 for controlling line from equipment 200.
Fig. 2 is referred to, Fig. 2 is the structural schematic diagram of the main equipment 100 of the present embodiment, and the main equipment 100 includes first
Processor 110, first memory 120, the first processor 110 is electrically connected with the first memory 120, for realizing number
According to interaction.
In the main equipment 100 of the present embodiment, the first memory 120 be may be, but not limited to, random access memory
Device (Random AcceSS Memory, RAM), read-only memory (Read Only Memory, ROM), may be programmed read-only storage
Device (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable
Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable
Read-Only Memory, EEPROM) etc..Wherein, first memory 120 for store the first executable instruction, described first
Processor 110 executes the instruction after receiving the first executable instruction.
It is described from equipment 200 include second processor 210, second memory 220, the second processor 210 with it is described
Second memory 220 is electrically connected, for realizing data interaction.
In the slave equipment 200 of the present embodiment, the second memory 220 be may be, but not limited to, random access memory
Device (Random AcceSS Memory, RAM), read-only memory (Read Only Memory, ROM), may be programmed read-only storage
Device (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable
Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable
Read-Only Memory, EEPROM) etc..Wherein, second memory 220 for store the second executable instruction, described second
Processor 210 executes the instruction after receiving the second executable instruction.
Fig. 3 is referred to, Fig. 3 is the flow chart that can be applied to the communication means of above-mentioned communication system, described from equipment 200
In configured with this from the corresponding local identification marking of equipment 200, wherein local identification marking is for identifying and same main equipment
The slave equipment 200 of 100 communication connections.Local identification marking may be, but not limited to, corresponding from equipment 200 with from equipment 200
Address information etc..
The specific steps of the communication means include:
Step S110, the main equipment 100 send the communication information from equipment 200 to described.
The communication information include for determine communicated with the main equipment 100 described in from the target of equipment 200
Identification marking, that is to say, that when target identification mark is that main equipment 100 will be communicated with some from equipment 200, for knowing
Not from equipment 200 whether be the slave equipment 200 that main equipment 100 will be communicated information, the target identification mark with it is described
Local identification marking is corresponding, may be, but not limited to, the address information for the slave equipment 200 that main equipment 100 will be communicated
Deng.
The communication information can also include for determining the main equipment 100 and described from communication time between equipment 200
Default communication time, that is to say, that when main equipment 100 from equipment 200 with being communicated, the time of the communication process of one-time continuous
Length.Wherein, default communication time can be according to main equipment 100 and from the size for the data volume for needing to transmit between equipment 200
It is determined.For example, in a communication process, main equipment 100 with exchange the time required for a certain data from equipment 200 and be
T1, then, t1 can be set by default communication time.
In the present embodiment, in main equipment 100 and from SPI communication can be used between equipment 200.That is, in step
Before S110, it can will be SPI interface from the signal transmitting and receiving pin configuration of equipment 200, the signal transmitting and receiving pin of main equipment 100 is matched
It is set to SPI interface, then makes to configure SPI communication agreement from equipment 200 and main equipment 100, so that the main equipment 100 and institute
It states from equipment 200 and uses SPI communication in communication.In the present embodiment, before step S110, can also include, it will be from equipment 200
Communication frequency be set as low frequency mode.
The clock frequency that low frequency mode is used from equipment 200 is low frequency, at this point, the clock frequency of corresponding main equipment 100
Rate is consistent with the clock frequency from equipment 200.It, can be by the way that main equipment 100 be arranged when being arranged from the communication frequency of equipment 200
Clock frequency the clock frequency from equipment 200 is set.
In the present embodiment, it is described by the step of being set as low frequency mode from the communication frequency of equipment 200 before, can also wrap
It includes,
Obtain the predetermined current intensity value from equipment 200.
The predetermined current intensity value is set by the current value of the signal transmitting and receiving pin from equipment 200.
The present embodiment is used to be arranged the current value of the output pin from equipment 200, so that the current value of bus is not too big,
To the slave equipment 200 protecting main equipment 100 and being communicated to connect with main equipment 100.
In the present embodiment, all slave equipment 200 in enabled state communicated to connect with main equipment 100 can be received
The communication information that main equipment 100 is sent.
In the present embodiment, it can also set the initial value of all transmitter registers from equipment 200 to before step S110
Identical value.
Step S120, the communication information that the transmission of main equipment 100 is received from equipment 200.
Step S130, it is described to judge whether the target identification mark is consistent with the local identification marking from equipment 200.
The present embodiment be used to judge this from equipment 200 whether be slave equipment 200 that main equipment 100 will be communicated.
Step S140 receives the main equipment 100 if target identification mark is consistent with the local identification marking
The data information of transmission is simultaneously handled the data information.
In the present embodiment, the data information may include, but be not limited to command information etc..
It is described to be executed accordingly from equipment 200 according to described instruction information when the data information includes command information
Operation.For example, sending data to be sent from equipment 200 to the main equipment 100 when including that instruction is described in described instruction information
Instruction when, from equipment 200 execute described instruction, accordingly data to be sent be sent to main equipment 100.
In the present embodiment, can also include, when target identification mark is consistent with the local identification marking, by institute
It states from equipment 200 and is set as high frequency mode.
High frequency mode will be set as from the communication frequency of equipment 200.High frequency mode is the clock frequency used from equipment 200
For high frequency, at this point, the clock frequency of corresponding main equipment 100 is consistent with the clock frequency from equipment 200.It is being arranged from equipment
When 200 communication frequency, the clock frequency from equipment 200 can be set by the way that the clock frequency of main equipment 100 is arranged.
Step S150 will be described from equipment 200 if target identification mark is not consistent with the local identification marking
Signal transmitting and receiving pin be set as high-impedance state.
For example, ought include the input pin, output pin and clock from equipment 200 from the signal transmitting and receiving pin of equipment 200
When pin, it can will be set as high-impedance state from the input pin of equipment 200 and output pin, it can also will be from equipment 200
Input pin, output pin and clock pins are both configured to high-impedance state.
In the present embodiment, it will be set as high-impedance state from the signal transmitting and receiving pin of equipment 200, so that should be right from equipment 200
Main equipment 100 hardly has an impact.That is, the signal transmitting and receiving pin of main equipment 100 is hardly by this from equipment 200
Influence, connection is equivalently employed without on main equipment 100 should be from equipment 200.
It wherein, can default communication after receiving the communication information when in the communication information comprising default communication time
In duration, high-impedance state will be set as from the signal transmitting and receiving pin of equipment 200.Default communication after it will receive the communication information
After duration, cancel the high-impedance state of the signal transmitting and receiving pin from equipment 200, that is to say, that by it is each from equipment 200 again
It is set as can receive the state of the communication information of the transmission of main equipment 100.
For example, when including input pin, output pin and clock pins from the signal transmitting and receiving pin of equipment 200, it can
High-impedance state will be disposed as from the input pin, output pin and clock pins of equipment 200.
It will not be that the signal transmitting and receiving pin of the slave equipment 200 that main equipment 100 will communicate is set in the present embodiment
It is set to high-impedance state, the signal transmitting and receiving pin that can be avoided the slave equipment 200 not communicated with main equipment 100 influences main equipment
Level change speed and main equipment 100 on 100 signal transmitting and receiving pin send the accuracy of signal.
When main equipment 100 and some from equipment 200 complete a communication process after, then can re-execute the steps S110.
Another embodiment of the application provides a kind of communication device, is applied to identify with communication system configured with local
The main equipment 100 that the slave equipment 200 of mark communicates, the communication device includes one can be deposited in the form of software or firmware
It is stored in the first memory 120 or is solidificated in the operating system (operating system, OS) of the main equipment 100
Software function module.The communication device includes,
Sending module, the sending module are used to send the communication information from equipment 200 to described, and the communication information includes
For determine communicated with the main equipment 100 described in from the target identification of equipment 200 mark and for determining the master
Equipment 100 and the default communication time from communication time between equipment 200 promote described from equipment 200:
Receive the communication information that the main equipment 100 is sent.
It is described to judge whether the target identification mark is consistent with the local identification marking from equipment 200.
If the target identification mark is consistent with the local identification marking, receive what the main equipment 100 was sent
Data information is simultaneously handled the data information.
If the target identification mark is not consistent with the local identification marking, by the signal from equipment 200
Transmitting-receiving pin is set as high-impedance state.
In the present embodiment, sending module can be used for executing step S110, and promote to execute step S120- step from equipment 200
Rapid S150.About the specific descriptions of sending module, the description to the step S110- step S150 can refer to.
Refer to Fig. 4, the present embodiment additionally provides a kind of communication device, applied to the main equipment 100 in communication system
The slave equipment 200 of communication, the communication device, which includes one, can be stored in described second in the form of software or firmware and deposit
In reservoir 220 or it is solidificated in described from the software function mould in the operating system (operating system, OS) of equipment 200
Block.Described device includes:
Memory module 310, for store with it is described from equipment 200 it is corresponding local identification marking.
In the present embodiment, memory module 310 can be used for store with from equipment 200 it is corresponding local identification marking.
Receiving module 320 receives the communication information that the main equipment 100 is sent, and the communication information includes for determining
It is identified described in being communicated with the main equipment 100 from the target identification of equipment 200.
In the present embodiment, receiving module 320 can be used for executing step S120, can about the specific descriptions of receiving module 320
The description of step S120 described in reference pair.
Judgment module 330, for judging whether the target identification mark is consistent with the local identification marking.
In the present embodiment, judgment module 330 can be used for executing step S130, can about the specific descriptions of judgment module 330
The description of step S130 described in reference pair.
Control module 340, for receiving the master when target identification mark is consistent with the local identification marking
The data information of the transmission of equipment 100 is simultaneously handled the data information.
When target identification mark is not consistent with the local identification marking, received described from the signal of equipment 200
Foot of carrying out the coffin upon burial is set as high-impedance state.In the present embodiment, control module 340 can be used for executing step S140- step S150, about control
The specific descriptions of molding block 340 can refer to the description to the step S140- step S150.
In conclusion the embodiment of the present application is identified by receiving the target identification that main equipment 100 is sent from equipment 200, so
Target identification is identified and should be compared from the local identification marking of equipment 200 afterwards, and is known in target identification mark with target
In the case where Biao Shi not being consistent, communicated with main equipment 100.The feelings not being consistent are identified with target identification in target identification mark
Under condition, set high-impedance state from the signal transmitting and receiving pin of equipment 200 for this, in this way, allow for not needing with main equipment 100 into
Row communication slave equipment 200 main equipment 100 will not be impacted, that is to say, that be equivalent on main equipment 100 be only connected to
The slave equipment 200 that main equipment 100 is communicated, in this way, allowing for main equipment 100 and being somebody's turn to do from the communication speed between equipment 200
It greatly improves.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other
Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown
According to device, the architectural framework in the cards of method and computer program product, function of multiple embodiments of the application
And operation.In this regard, each box in flowchart or block diagram can represent one of a module, section or code
Point, a part of the module, section or code includes one or more for implementing the specified logical function executable
Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement
The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used
To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart
The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement
The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random AcceSS Memory), magnetic or disk.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
Claims (10)
1. a kind of communication means, which is characterized in that described from setting applied to the slave equipment communicated with the main equipment in communication system
In standby configured with this from the corresponding local identification marking of equipment, which comprises
Described that the communication information that the main equipment is sent is received from equipment, the communication information includes setting for determination with the master
It is described from the target identification of equipment mark for what is communicated;
It is described to judge whether the target identification mark is consistent with the local identification marking from equipment;
If the target identification mark is consistent with the local identification marking, the data information of the main equipment transmission is received simultaneously
The data information is handled;
If the target identification mark is not consistent with the local identification marking, set described from the signal transmitting and receiving pin of equipment
It is set to high-impedance state.
2. communication means according to claim 1, which is characterized in that the communication information further includes for determining the master
Equipment and the default communication time from communication between devices duration;
If the target identification mark is not consistent with the local identification marking, draw described from the signal transmitting and receiving of equipment
Foot is set as the step of high-impedance state and is,
If the target identification mark is not consistent with the local identification marking, set described from the signal transmitting and receiving pin of equipment
It is set to high-impedance state, after the default communication time, cancels the high-impedance state of the signal transmitting and receiving pin from equipment.
3. communication means according to claim 1, which is characterized in that the data information is command information, the reception
Data information that the main equipment is sent and the step of handling the data information includes:
It is described from equipment receive data information that the main equipment is sent and according to the data information to the main equipment send to
Send data.
4. communication means according to claim 1, which is characterized in that described logical using SPI between equipment and main equipment
Letter.
5. communication means according to claim 1-4, which is characterized in that described to receive the main equipment from equipment
Before the step of communication information of transmission, the method includes,
Low frequency mode is set as from the communication frequency of equipment by described;
When target identification mark is consistent with the local identification marking, the method also includes by described from equipment
Communication frequency is set as high frequency mode.
6. communication means according to claim 5, which is characterized in that described to be set as described from the communication frequency of equipment
Before the step of low frequency mode, the method also includes,
Obtain the predetermined current intensity value from equipment;
The predetermined current intensity value is set by the current value of the signal transmitting and receiving pin from equipment.
7. a kind of communication device, which is characterized in that applied to the slave equipment communicated with the main equipment in communication system, described device
Include:
Memory module, for store with it is described from equipment it is corresponding local identification marking;
Receiving module, receives the communication information that the main equipment is sent, and the communication information includes setting for determination with the master
It is described from the target identification of equipment mark for what is communicated;
Judgment module, for judging whether the target identification mark is consistent with the local identification marking;
Control module, for receiving the main equipment hair when target identification mark is consistent with the local identification marking
The data information that send simultaneously is handled the data information;
When target identification mark is not consistent with the local identification marking, set described from the signal transmitting and receiving pin of equipment
It is set to high-impedance state.
8. a kind of communication means, which is characterized in that applied to logical with the slave equipment configured with local identification marking in communication system
The main equipment of letter, the method includes,
The main equipment sends the communication information from equipment to described, the communication information include for determining with the main equipment into
Row communication it is described from the target identification of equipment identify and for determine the main equipment and it is described from communication between devices when
Long default communication time promotes described from equipment:
Receive the communication information that the main equipment is sent;
Judge whether the target identification mark is consistent with the local identification marking;
If the target identification mark is consistent with the local identification marking, the data information that the main equipment is sent is received
And the data information is handled;
If the target identification mark is not consistent with the local identification marking, by the signal transmitting and receiving pin from equipment
It is set as high-impedance state.
9. a kind of communication device, which is characterized in that applied to logical with the slave equipment configured with local identification marking in communication system
The main equipment of letter, described device include,
Sending module, the sending module are used to send the communication information from equipment to described, and the communication information includes for true
It is fixed communicated with the main equipment it is described identified from the target identification of equipment and for determine the main equipment with it is described from
The default communication time of communication between devices duration promotes described from equipment:
Receive the communication information that the main equipment is sent;
It is described to judge whether the target identification mark is consistent with the local identification marking from equipment;
If the target identification mark is consistent with the local identification marking, the data information that the main equipment is sent is received
And the data information is handled;
If the target identification mark is not consistent with the local identification marking, by the signal transmitting and receiving pin from equipment
It is set as high-impedance state.
10. a kind of communication system, which is characterized in that the communication system includes main equipment and communicates to connect with the main equipment
At least two from equipment, at least two it is described from equipment be enabled state.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811126027.XA CN109240971A (en) | 2018-09-26 | 2018-09-26 | Communication means, apparatus and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811126027.XA CN109240971A (en) | 2018-09-26 | 2018-09-26 | Communication means, apparatus and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109240971A true CN109240971A (en) | 2019-01-18 |
Family
ID=65056772
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811126027.XA Pending CN109240971A (en) | 2018-09-26 | 2018-09-26 | Communication means, apparatus and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109240971A (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110134649A (en) * | 2019-05-23 | 2019-08-16 | 广州市华用智能科技有限公司 | The matching process and device of lamp library file based on two-way communication |
| CN111490920A (en) * | 2019-01-29 | 2020-08-04 | 杭州海康汽车技术有限公司 | SPI-based data transmission method, system and device |
| CN112003962A (en) * | 2020-08-14 | 2020-11-27 | 迅镭智能(广州)科技有限公司 | Scanning gun base and processing method, device and medium thereof |
| CN112187595A (en) * | 2019-07-04 | 2021-01-05 | 元太科技工业股份有限公司 | Identification code numbering method and multi-point communication system |
| CN113268443A (en) * | 2021-06-09 | 2021-08-17 | 北京车和家信息技术有限公司 | SMI bus communication method, device, electronic equipment and medium |
| CN114900393A (en) * | 2022-06-17 | 2022-08-12 | 重庆奥普泰通信技术有限公司 | Improved SPI communication method, device and storage medium |
| CN115061961A (en) * | 2022-06-29 | 2022-09-16 | 西安易朴通讯技术有限公司 | A kind of communication method and device based on SPI |
| US11575539B2 (en) | 2019-07-04 | 2023-02-07 | E Ink Holdings Inc. | Identification number numbering method and multipoint communication system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102088386B (en) * | 2011-01-20 | 2014-05-14 | 中北大学 | Universal serial bus (USB) for master-slave interconnection module of circuit system |
| CN106325453A (en) * | 2015-07-09 | 2017-01-11 | 中兴通讯股份有限公司 | Configuration method of output current and terminal |
| EP3118749A1 (en) * | 2015-07-17 | 2017-01-18 | Goodrich Corporation | System and method of monitoring a serial bus |
| CN107562666A (en) * | 2017-09-26 | 2018-01-09 | 威创集团股份有限公司 | Method, system and the relevant apparatus of communication between devices based on spi bus |
-
2018
- 2018-09-26 CN CN201811126027.XA patent/CN109240971A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102088386B (en) * | 2011-01-20 | 2014-05-14 | 中北大学 | Universal serial bus (USB) for master-slave interconnection module of circuit system |
| CN106325453A (en) * | 2015-07-09 | 2017-01-11 | 中兴通讯股份有限公司 | Configuration method of output current and terminal |
| EP3118749A1 (en) * | 2015-07-17 | 2017-01-18 | Goodrich Corporation | System and method of monitoring a serial bus |
| CN107562666A (en) * | 2017-09-26 | 2018-01-09 | 威创集团股份有限公司 | Method, system and the relevant apparatus of communication between devices based on spi bus |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111490920A (en) * | 2019-01-29 | 2020-08-04 | 杭州海康汽车技术有限公司 | SPI-based data transmission method, system and device |
| CN110134649A (en) * | 2019-05-23 | 2019-08-16 | 广州市华用智能科技有限公司 | The matching process and device of lamp library file based on two-way communication |
| CN110134649B (en) * | 2019-05-23 | 2023-01-24 | 广州市华用智能科技有限公司 | Lamp house file matching method and device based on two-way communication |
| CN112187595A (en) * | 2019-07-04 | 2021-01-05 | 元太科技工业股份有限公司 | Identification code numbering method and multi-point communication system |
| CN112187595B (en) * | 2019-07-04 | 2022-05-31 | 元太科技工业股份有限公司 | Identification code numbering method and multipoint communication system |
| US11575539B2 (en) | 2019-07-04 | 2023-02-07 | E Ink Holdings Inc. | Identification number numbering method and multipoint communication system |
| CN112003962A (en) * | 2020-08-14 | 2020-11-27 | 迅镭智能(广州)科技有限公司 | Scanning gun base and processing method, device and medium thereof |
| CN113268443A (en) * | 2021-06-09 | 2021-08-17 | 北京车和家信息技术有限公司 | SMI bus communication method, device, electronic equipment and medium |
| CN114900393A (en) * | 2022-06-17 | 2022-08-12 | 重庆奥普泰通信技术有限公司 | Improved SPI communication method, device and storage medium |
| CN115061961A (en) * | 2022-06-29 | 2022-09-16 | 西安易朴通讯技术有限公司 | A kind of communication method and device based on SPI |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109240971A (en) | Communication means, apparatus and system | |
| RU2372636C2 (en) | Process control system automatic configuration method and process control system | |
| US20190028500A1 (en) | Ecu identifying apparatus and controlling method thereof | |
| CN103942898A (en) | Method, mobile terminal and POS machine for realizing security element selection in near field communication | |
| DE102019104531A1 (en) | ANOMALY IDENTIFICATION IN A NETWORK SCOPE CONTROLLER | |
| CN109699004A (en) | Bluetooth key localization method, device, bluetooth equipment and storage medium | |
| US20130300539A1 (en) | Radio-frequency identification (rfid) tag-to-tag autoconnect discovery, and related methods, circuits, and systems | |
| EP1672592A3 (en) | Controller for accessing multiple radio frequency identification (RFID) readers | |
| KR20090020463A (en) | Manufacturing method, test method and data transmission device of data transmission device | |
| CN107623726A (en) | data conversion transmission method and device | |
| CN109213530A (en) | A kind of communication connecting method based on USB, mobile terminal and storage medium | |
| CN108052094A (en) | A kind of extension card identification method, device and frequency converter | |
| CN105550868A (en) | Mobile payment method and apparatus | |
| CN108768450A (en) | Communication means and system, computer storage media | |
| CN106775588A (en) | A kind of firmware upgrade method based on principal and subordinate processor framework | |
| CN108958765A (en) | Upgrade the method and device of optical module firmware | |
| CN107506324A (en) | Interconnecting device, telecommunication system, data transmission method and device | |
| CN109120731B (en) | Universal communication method, system and device | |
| CN106872983A (en) | A kind of distance-finding method, apparatus and system | |
| CN103138809B (en) | The communication means communicated between electronic devices and corresponding equipment | |
| CN112699695B (en) | RFID reader-writer software verification device and method and electronic equipment | |
| CN104615573A (en) | Communication method and device | |
| CN109934314A (en) | A kind of method for reading data and system of electric power Internet of Things electronic tag | |
| CN106294247A (en) | The connection system of a kind of multiple antennas rfid interrogator and many computers and method of attachment | |
| CN106856464A (en) | A kind of sync symbols detecting system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190118 |