CN107844441A - The means of communication and device of veneer - Google Patents

The means of communication and device of veneer Download PDF

Info

Publication number
CN107844441A
CN107844441A CN201610828705.1A CN201610828705A CN107844441A CN 107844441 A CN107844441 A CN 107844441A CN 201610828705 A CN201610828705 A CN 201610828705A CN 107844441 A CN107844441 A CN 107844441A
Authority
CN
China
Prior art keywords
communication
slave
main frame
differential signal
bus
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
Application number
CN201610828705.1A
Other languages
Chinese (zh)
Inventor
王渊
叶位彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
Nanjing ZTE New Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201610828705.1A priority Critical patent/CN107844441A/en
Publication of CN107844441A publication Critical patent/CN107844441A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a kind of means of communication of veneer and device.Wherein, this method includes:When main frame is communicated by communication bus and slave, the level signal on communication bus is gathered;Judge whether communication failure occurs between main frame and slave based on two level signals, wherein, the acquisition time of two level signals is at intervals of preset length;In the case of communication failure occurs between main frame and slave, host driven communication bus is in communication idle condition, wherein, communication idle condition is the state for allowing main frame to be communicated with slave.The present invention solves the technical problem that the communication bus of veneer in correlation technique can not after death recover in time in extension.

Description

The means of communication and device of veneer
Technical field
The present invention relates to the communications field, in particular to the means of communication and device of a kind of veneer.
Background technology
In domain of communication equipment, backplane communication is mainly the interaction of board-to-board information, such as the temperature of veneer, rotation speed of the fan, list The information such as plate is in place, in order to ensure the correct stable transmission of information, it is desirable to which backplane communication is reliable and stable.
In domain of communication equipment, the agreement that the communication between plates of backboard use is varied, for example Ethernet protocol, serial ports lead to Believe agreement, I2C agreements.The characteristics of Ethernet protocol is that reliable and stable, long transmission distance, transmission rate (can easily reach very much soon To 100 million), it is optimal backplane communication agreement, but its shortcoming is it is also obvious that agreement is complicated, it is real to need special chip It is existing, so cost of implementation is higher.Serial communication protocol is fairly simple, is characterized in requiring transmission line of the data in the bit wide of wall scroll one Upper transmission, data are transmitted in order in units of 1 bit, and its shortcoming is that the bit error rate is high, transmission speed is slow, serial ports is easily burnt It is bad, communication it is unreliable.I2C agreements are most popular agreements in existing backplane communication, are characterized in using host-guest architecture, two Line communicate (including a clock line and a data lines), under one group of bus in theory maximum can 127 slave units of carry, its Shortcoming includes:(1) I2C bus transfer rates are relatively low, and maximum transfer speed is under 100kHz, fast pattern under mode standard Maximum transfer speed is 400kHz, though without the ultimate range of clear stipulaties transmission in I2C agreements, it is general in actual applications The distance of transmission is no more than 30cm;(2) I2C buses have strict timing requirements, in communication process, if had in bus There are abnormal conditions (as resetted) in one slave, and the slave will not then reply in access process, and main frame will wait always, its Its normal slave unit can not access bus, cause I2C buses to hang dead.In view of drawbacks described above, I2C agreements can not expire completely The requirement of instep board communications.
The technical problem that can not after death recover in time in extension for the communication bus of veneer in correlation technique, is not yet carried at present Go out effective solution.
The content of the invention
The embodiments of the invention provide a kind of means of communication of veneer and device, at least to solve veneer in correlation technique The technical problem that communication bus can not after death recover in time in extension.
One side according to embodiments of the present invention, there is provided a kind of means of communication of veneer, this method include:In main frame When being communicated by communication bus and slave, the level signal on communication bus is gathered;Judge master based on two level signals Whether communication failure occurs between machine and slave, wherein, the acquisition time of two level signals is at intervals of preset length;Main frame with In the case of communication failure occurs between slave, host driven communication bus is in communication idle condition, wherein, communicate idle condition To allow the state that main frame and slave are communicated.
Further, communication bus includes Differential Signal Bus, wherein, main frame is carried out by Differential Signal Bus and slave Communication includes:When Differential Signal Bus is in communication conducting state, main frame is assisted on Differential Signal Bus according to default communication View sends communication data to slave;And/or when Differential Signal Bus is in communication conducting state, main frame is total in differential signal The reply data that slave is sent according to default communications protocol is received on line.
Further, presetting communications protocol includes transmitting data to be sent in the following order:Origin identification, number to be sent According to data length, blank character, payload user data and end mark, wherein, data to be sent include at least one payload user data, appoint A blank character is provided between two payload user data of meaning, blank character is logic high or logic low, with payload user data The logic level of two adjacent blank characters is different.
Further, preset length is the time span needed for one payload user data of transmission, wherein, believed based on two level Number judge that communication failure whether occurs between main frame and slave to be included:Judge whether the level state of two level signals is identical;Its In, in the case of the level state identical of two level signals is judged, it is determined that communication failure occurs between main frame and slave.
Further, main frame drives Differential Signal Bus by biasing circuit, so that the level hair on Differential Signal Bus Raw biasing, and the level indicating slave Differential Signal Bus by biasing is in communication idle condition.
Further, when Differential Signal Bus is in communication conducting state, main frame does not drive difference by biasing circuit Signal bus.
Further, after host driven communication bus is in communication idle condition, this method also includes:Main frame is in difference Communication data is sent again to slave according to default communications protocol in sub-signal bus.
Other side according to embodiments of the present invention, there is provided a kind of communication device of veneer, the device include:Collection Unit, for when main frame is communicated by communication bus and slave, gathering the level signal on communication bus;Judge single Member, for judging whether communication failure occurs between main frame and slave based on two level signals, wherein, two level signals are adopted Integrate time interval as preset length;Recovery unit, in the case of communication failure occurs between main frame and slave, driving communication Bus is in communication idle condition, wherein, the state that communication idle condition is communicated for permission main frame with slave.
Further, communication bus includes Differential Signal Bus, wherein, collecting unit includes:Sending module, in difference Sub-signal bus be in communication conducting state when, on Differential Signal Bus according to default communications protocol send communication data to from Machine;Receiving module, for Differential Signal Bus be in communication conducting state when, on Differential Signal Bus receive slave according to The reply data that default communications protocol is sent.
Further, presetting communications protocol includes transmitting data to be sent in the following order:Origin identification, number to be sent According to data length, blank character, payload user data and end mark, wherein, data to be sent include at least one payload user data, appoint A blank character is provided between two payload user data of meaning, blank character is logic high or logic low, with payload user data The logic level of two adjacent blank characters is different.
Further, preset length is the time span needed for one payload user data of transmission, wherein, judging unit includes: Judge module, for judging whether the level state of two level signals is identical;Wherein, the electricity of two level signals is being judged In the case of level state identical, it is determined that communication failure occurs between main frame and slave.
Further, the device also includes:Driver element, for driving Differential Signal Bus by biasing circuit, so that Level on Differential Signal Bus biases, and the level indicating slave Differential Signal Bus by biasing is in communication Idle condition.
Further, driver element is additionally operable to when Differential Signal Bus is in communication conducting state, and stopping passes through biasing Circuit drives Differential Signal Bus.
According to another embodiment of the invention, there is provided a kind of storage medium, storage medium can be configured to store For performing the program code of following steps:When main frame is communicated by communication bus and slave, gather on communication bus Level signal;Judge whether communication failure occurs between main frame and slave based on two level signals, wherein, two level signals Acquisition time at intervals of preset length;In the case of communication failure occurs between main frame and slave, host driven communication bus In communication idle condition, wherein, the state that communication idle condition is communicated for permission main frame with slave.
In embodiments of the present invention, when main frame is communicated by communication bus and slave, gather on communication bus Level signal;Judge whether communication failure occurs between main frame and slave based on two level signals, wherein, two level signals Acquisition time is at intervals of preset length;In the case of communication failure occurs between main frame and slave, at host driven communication bus In communication idle condition, wherein, the state that communication idle condition is communicated for permission main frame with slave.So as to solve correlation The technical problem that the communication bus of veneer can not after death recover in time in extension in technology, the communication bus for realizing veneer are hung extremely The technique effect recovered in time afterwards.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of terminal according to embodiments of the present invention;
Fig. 2 is the schematic diagram of the veneer communication system in correlation technique;
Fig. 3 is the flow chart of the means of communication of veneer according to embodiments of the present invention;
Fig. 4 is the schematic diagram of veneer communication system according to embodiments of the present invention;
Fig. 5 is the flow chart of the means of communication of optional veneer according to embodiments of the present invention;
Fig. 6 is the schematic diagram of the communication device of veneer according to embodiments of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
Embodiment 1
The embodiment of the method that the embodiment of the present application one is provided can be in mobile terminal, terminal or similar fortune Calculate and performed in device.Exemplified by running on computer terminals, as shown in figure 1, terminal can include one or more (processor 101 can include but is not limited to Micro-processor MCV or programmable logic device to (one is only shown in figure) processor 101 Part FPGA etc. processing unit), the memory 103 for data storage and the transmitting device 105 for communication function.This Field those of ordinary skill is appreciated that the structure shown in Fig. 1 is only to illustrate, and it is not caused to the structure of above-mentioned electronic installation Limit.
Memory 103 can be used for the software program and module of storage application software, such as the equipment in the embodiment of the present invention Control method corresponding to programmed instruction/module, processor 101 by operation be stored in software program in memory 103 with And module, so as to perform various function application and data processing, that is, realize above-mentioned method.Memory may include random at a high speed Memory, nonvolatile memory is may also include, such as one or more magnetic storage device, flash memory or other are non-volatile Property solid-state memory.In some instances, memory can further comprise relative to the remotely located memory of processor, these Remote memory can pass through network connection to terminal.The example of above-mentioned network includes but is not limited to internet, enterprise In-house network, LAN, mobile radio communication and combinations thereof.
Transmitting device is used to data are received or sent via a network.Above-mentioned network instantiation may include to calculate The wireless network that the communication providerses of machine terminal provide.In an example, transmitting device includes a network adapter (Network Interface Controller, NIC), its can be connected by base station with other network equipments so as to interconnection Net is communicated.In an example, transmitting device can be radio frequency (Radio Frequency, RF) module, and it is used to pass through Wireless mode is communicated with internet.
In order to solve the problems, such as bus hang it is dead, as shown in Fig. 2 passing through bus (including clock bus SCL and data/address bus When SDA) being broken down with the I2C slaves of I2C host communications, it can be realized by the state of timer timing inquiry I2C communications, If overtime, just simultaneously reset I2C main frames and slave, with this come reach release I2C buses purpose, its shortcoming be reset from Need to reset I2C main frames while machine, it is very time-consuming, it is impossible to accomplish real self- recoverage without real-time.
In embodiments herein, in order to improve the reliability and stability of backplane communication, when slave unit breaks down Etc. abnormal conditions when, main equipment, which does not have to reset, can just discharge bus, can be good at solving the problems, such as that bus is hung dead, realize certainly Recover;In addition, using differential transfer, it can be good at solving the problems, such as that transmission range is short and transmission speed is slow.
According to embodiments of the present invention, there is provided a kind of embodiment of the method for the means of communication of veneer, it is necessary to explanation, The step of flow of accompanying drawing illustrates can perform in the computer system of such as one group computer executable instructions, also, , in some cases, can be with different from shown in order execution herein although showing logical order in flow charts The step of going out or describing.
Fig. 3 is the flow chart of the means of communication of veneer according to embodiments of the present invention, as shown in figure 3, this method is included such as Lower step:
Step S301, when main frame is communicated by communication bus and slave, gather the level signal on communication bus.
Step S302, judge communication failure whether occurs between main frame and slave based on two level signals, two level letters Number acquisition time at intervals of preset length;
Step S303, in the case of communication failure occurs between main frame and slave, host driven communication bus is in communication Idle condition, the state that communication idle condition is communicated for permission main frame with slave.
By above-described embodiment, when main frame is communicated by communication bus and slave, the electricity on communication bus is gathered Ordinary mail number;Judge whether communication failure occurs between main frame and slave based on two level signals, wherein, two level signals are adopted Integrate time interval as preset length;In the case of communication failure occurs between main frame and slave, host driven communication bus is in Idle condition is communicated, wherein, the state that communication idle condition is communicated for permission main frame with slave.So as to solve related skill The technical problem that the communication bus of veneer can not after death recover in time in extension in art, the communication bus for realizing veneer are hung after death The technique effect recovered in time.
Alternatively, when Differential Signal Bus is in communication idle condition, main frame drives differential signal by biasing circuit Bus, so that the level on Differential Signal Bus biases.So that one in bus is in logic-high state, it is another Root is the state of logical zero, and so, whether slave is connected to main frame by signal lines electrical level judging.
Alternatively, when Differential Signal Bus is in communication conducting state, main frame does not drive difference to believe by biasing circuit Number bus.
In step S301, main frame carries out communication by Differential Signal Bus with slave to be included:At Differential Signal Bus When conducting state is communicated, main frame sends communication data to slave on Differential Signal Bus according to default communications protocol;With/ Or, when Differential Signal Bus is in communication conducting state, main frame receives slave according to default communication on Differential Signal Bus The reply data that agreement is sent.
Alternatively, presetting communications protocol includes transmitting data to be sent in the following order:Origin identification, data to be sent Data length, blank character, payload user data and end mark, wherein, data to be sent include at least one payload user data, arbitrarily A blank character is provided between two payload user data, blank character is logic high or logic low, with payload user data phase The logic level of two adjacent blank characters is different.
In step s 302, preset length is the time span needed for one payload user data of transmission, wherein, based on two electricity Ordinary mail judges that communication failure whether occurs between main frame and slave to be included:Judge two level signals level state whether phase Together;Wherein, in the case of the level state identical of two level signals is judged, it is determined that being communicated between main frame and slave Failure.
It should be noted that the situation of Communications failure includes at least one of between main frame and slave:Main frame is when default The reply data of slave transmission is not received in long;It is adjacent with any data payload in the reply data that main frame receives The logic level of two blank characters is identical;Communication abnormality information is carried in the reply data that main frame receives, wherein, communication is different Chang Wei, the logic level identical situation of two blank characters adjacent with any data payload in the communication data received Under, the information of slave generation.
After step S303 host driven communication bus is in communication idle condition, main frame is on Differential Signal Bus Communication data is sent again to slave according to default communications protocol.
By above-described embodiment, using differential bus transmission signal, the antijamming capability of backplane communication, this bus can be improved With the ability recovered automatically, the transmission range of bus can be significantly improved.
The means of communication may include following steps between the plate of above-mentioned self recovery:
Step S11, main frame connect slave by a pair of Differential Signal Bus.When communicating idle, main frame and slave are located In reception state, Differential Signal Bus is driven by main frame biasing circuit, and is in logic-high state, and slave is believed by detecting Whether number line electrical level judging is connected to main frame.
Step S12, main frame initiate communication, and communication format is beginning flag, data length, blank character, payload user data, end Symbol.Wherein, for blank character to transmit the separator between each byte data, length is 1 bit, two neighboring blank character logic electricity It is flat opposite.After transmission terminates, main frame is in reception state, waits the response of slave.
Step S13, after slave receives the information of master control, main frame is responded in the time limit of setting.The communication format of response For beginning flag, data length, blank character, payload user data, end mark.Wherein, blank character is between each byte data of transmission Separator, length is 1 bit, be connected two blank character logic levels it is opposite.After response terminates, slave is in reception state. If slave does not respond main frame in the time limit of setting, main frame thinks this Communications failure, can initiate to communicate again.Slave can not Communication is initiated, the information of main frame may only be responded.
Step S14, if main frame during receive information, detects that continuous two blank character level are identical, then it is assumed that Communication abnormality, this information received is abandoned, after waiting signal line recovers idle condition, initiate communication again.
Step S15, if slave during receive information, detects that continuous two blank character level are identical, then it is assumed that Communication abnormality, abandon this information received.After waiting signal line recovers idle condition, slave responds master control and occurs to receive mistake By mistake;Or slave does not respond main frame, main frame thinks Communications failure because not receiving and responding in the time limit in setting.
Using the above method, main frame need not be resetted when slave occurs abnormal, is fundamentally solved in backplane communication Bus hangs the problem of dead, has backplane communication transmission strong antijamming capability, self- recoverage, the advantages of long transmission distance so that backboard Communication can be with reliable and stable transmission.
Below in conjunction with the accompanying drawings 4 and implementation of the accompanying drawing 5 to technical scheme be described in further detail:
As shown in figure 4, if some backboard A has 2 groove positions, groove position 1 (i.e. No. 1 groove position) connects board B (board B conduct Main frame), groove position 2 (i.e. No. 2 groove positions) order plate C (veneer C is as slave unit).Line is connected by backboard between No. 1 and No. 2 groove positions Connect.If the CPU of board B needs to inquire about the temperature of C veneers according to the backplane communication agreement of self-recovering function.
Communication bus uses two cable architectures, only a pair of differential lines (i.e. DATA1+ and DATA1-).The back of the body of self-recovering function The form of board communications agreement is beginning flag, data length, blank character, payload user data, end mark.Assuming that beginning flag is bus From high to low, end mark is from low to high.If the blank character of first data is 0, payload user data form is as follows:First word Section is designator, and designator has RD to read (hexadecimal number 0xA0), and WR writes (hexadecimal number 0xA1), ACK (hexadecimal numbers 0xA2), the second byte is initial address, and remaining byte is real data.If designator is ACK, the 3rd data are 0 representative Response success, 1 represents answer failed.
As shown in Figure 5:
Step S501, if after Board Power up, when communicating idle, main frame and slave are in reception state, differential signal Bus is in high level state by the driving of main frame biasing circuit, namely board B biases driving by main frame and bus is in high electricity Level state.
Step S502, judges whether main frame (i.e. board B) initiates to communicate, if then performing step S503, otherwise returns to step Rapid S501.
Step S503, when main frame board B initiates communication, following form is sent according to the backplane communication agreement of self-recovering function Data:It is 2. data length 1. being beginning flag, is 3. blank character, 4. to being 5. payload user data, wherein, 0xA0 4. is reads Order, is 5. initial address 0x10, is 6. end mark.Table 1 is the data sent.
Table 1
Form
Data 10 0x02 0 0xa0 1 0x10 0 01
Step S504, whether continuous two blank character level are identical from machine testing receive information, if then performing step Rapid S505, otherwise perform step S507.
Step S505, slave abandon this information received, are not responding to main frame.
The data of communication abnormality situation are as shown in table 2:Go out during main frame sends data according to backplane communication agreement Now abnormal, slave receives following information:It is 2. data length 1. being beginning flag, is 3. blank character, it is 4. and 5. net for data Lotus, it is 6. end mark.
Table 2
Form
Data 10 0x02 0 0xA0 1 0xff 1 11
As long as detect that identical (two blank characters are continuous 1 or continuous 0 to be all to continuous two blank character level The situation of communication abnormality, as in table 2 with " 0xff " it is adjacent be 1), slave there will be no response, main frame can not receive response letter Breath, this time communication failure, waits bus to return to idle condition, main frame initiates to communicate again.
Step S506, this time Communications failure, waits bus to initiate to communicate again after entering idle condition.
Step S507, slave respond main frame, and the communication format of response is beginning flag, data length, blank character, data are net Lotus, end mark.
Step S508, judge whether slave response main frame is overtime, if then performing step S506, otherwise performs step S509。
Step S509, whether the two neighboring blank character of information that Host Detection receives is identical, if then performing step S510, otherwise perform step S511.
Communicate normal condition:If backboard communication is normal, veneer C receives information, within the time of setting (if it is 5ms) Main frame can be responded, the information of response is as shown in table 3:It is 2. data length 1. being beginning flag, is 3. blank character, 4. to is 6. Payload user data, wherein, 0xA2 4. is acknowledgement command, is 5. initial address 0x10, is 6. 0, represent slave receive data 7. and 8. data of the slave response to main frame:Temperature is 23 °, is 9. end mark.
Table 3
Step S510, main frame abandon the information this time received, wait bus to enter and initiate communication after idle condition again.
Step S511, main frame receive the information of slave, it is believed that the temperature information successfully, obtained that this time communicates enters idle shape State, wait are transmitted next time.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) method that performs each embodiment of the present invention.
Embodiment 2
A kind of communication device of veneer is additionally provided in the embodiment of the present invention.The device is used to realize above-described embodiment and excellent Embodiment is selected, had carried out repeating no more for explanation.As used below, term " module " can realize predetermined function Software and/or hardware combination.Although device described by following examples is preferably realized with software, hardware, Or the realization of the combination of software and hardware is also what may and be contemplated.
Fig. 6 is the schematic diagram of the communication device of veneer according to embodiments of the present invention.As shown in fig. 6, the device can wrap Include:Collecting unit 61, judging unit 62 and recovery unit 63.
Collecting unit 61, for when main frame is communicated by communication bus and slave, gathering the electricity on communication bus Ordinary mail number;
Judging unit 62, for judging whether communication failure occurs between main frame and slave based on two level signals, wherein, The acquisition time of two level signals is at intervals of preset length;
Recovery unit 63, in the case of communication failure occurs between main frame and slave, driving communication bus is in logical Idle condition is interrogated, wherein, the state that communication idle condition is communicated for permission main frame with slave.
By above-described embodiment, for collecting unit when main frame is communicated by communication bus and slave, collection communication is total Level signal on line;Judging unit judges whether communication failure occurs between main frame and slave based on two level signals, wherein, The acquisition time of two level signals is at intervals of preset length;The situation of communication failure occurs between main frame and slave for recovery unit Under, driving communication bus is in communication idle condition, and communication idle condition is the state for allowing main frame to be communicated with slave, from And the technical problem that the communication bus for solving veneer in correlation technique can not after death recover in time in extension, realize the logical of veneer The technique effect that news bus is after death recovered in time in extension.
Above-mentioned collecting unit 61, judging unit 62 and recovery unit 63 can be the control section of main frame, such as main frame Processor.
Alternatively, said apparatus also includes:Driver element, for driving Differential Signal Bus by biasing circuit, so that Level on Differential Signal Bus biases, and the level indicating slave Differential Signal Bus by biasing is in communication Idle condition.Driver element drives differential signal total when Differential Signal Bus is in communication idle condition by biasing circuit Line, so that the level on Differential Signal Bus biases.So that one in bus is in logic-high state, Ling Yigen For the state of logical zero, so, whether slave is connected to main frame by signal lines electrical level judging.
Driver element is additionally operable to when Differential Signal Bus is in communication conducting state, and it is poor by biasing circuit driving to stop Sub-signal bus.
In the above-described embodiments, communication bus includes Differential Signal Bus, wherein, collecting unit includes:Sending module, use In when Differential Signal Bus is in communication conducting state, communication number is sent according to default communications protocol on Differential Signal Bus According to slave;Receiving module, for Differential Signal Bus be in communication conducting state when, on Differential Signal Bus receive from The reply data that machine is sent according to default communications protocol.
Alternatively, presetting communications protocol includes transmitting data to be sent in the following order:Origin identification, data to be sent Data length, blank character, payload user data and end mark, wherein, data to be sent include at least one payload user data, arbitrarily A blank character is provided between two payload user data, blank character is logic high or logic low, with payload user data phase The logic level of two adjacent blank characters is different.
Alternatively, preset length is the time span needed for one payload user data of transmission, wherein, judging unit includes:Sentence Disconnected module, for judging whether the level state of two level signals is identical;Wherein, the level of two level signals is being judged In the case of state identical, it is determined that communication failure occurs between main frame and slave.
In an optional embodiment, the situation of Communications failure includes at least one of between main frame and slave:Main frame The reply data of slave transmission is not received in preset duration;It is net with any data in the reply data that main frame receives The logic level of two adjacent blank characters of lotus is identical;Communication abnormality information is carried in the reply data that main frame receives, its In, communication abnormality is the logic level phase of two blank characters adjacent with any data payload in the communication data received With in the case of, the information of slave generation.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned modules are with any The form of combination is located in different processors respectively.
Embodiment 3
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can The program code for performing following steps to be arranged to storage to be used for:
S1, when main frame is communicated by communication bus and slave, gather the level signal on communication bus;
S2, judge whether communication failure occurs between main frame and slave based on two level signals, wherein, two level signals Acquisition time at intervals of preset length;
S3, in the case of communication failure occurs between main frame and slave, host driven communication bus, which is in, communicates idle shape State, wherein, the state that communication idle condition is communicated for permission main frame with slave.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Lead in main frame When crossing communication bus and slave and being communicated, the level signal on communication bus is gathered;Judge main frame based on two level signals Whether communication failure occurs between slave, wherein, the acquisition time of two level signals is at intervals of preset length;Main frame with from In the case of communication failure occurs between machine, host driven communication bus is in communication idle condition, wherein, communication idle condition is The state for allowing main frame to be communicated with slave.
Alternatively, the specific example in the present embodiment may be referred to described in above-described embodiment and optional embodiment Example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (13)

  1. A kind of 1. means of communication of veneer, it is characterised in that including:
    When main frame is communicated by communication bus and slave, the level signal on the communication bus is gathered;
    Judge whether communication failure occurs between the main frame and the slave based on two level signals, wherein, two institutes The acquisition time of level signal is stated at intervals of preset length;
    In the case of communication failure occurs between the main frame and the slave, communication bus described in the host driven is in logical Idle condition is interrogated, wherein, the state that the communication idle condition is communicated for the permission main frame with the slave.
  2. 2. according to the method for claim 1, it is characterised in that the communication bus includes Differential Signal Bus, wherein, institute Stating main frame and carrying out communication with slave by the Differential Signal Bus includes:
    In the case where the Differential Signal Bus is in communication conducting state, the main frame is pressed on the Differential Signal Bus Communication data is sent to the slave according to default communications protocol;And/or
    In the case where the Differential Signal Bus is in communication conducting state, the main frame connects on the Differential Signal Bus Receive the reply data that the slave is sent according to the default communications protocol.
  3. 3. according to the method for claim 2, it is characterised in that the default communications protocol includes transmitting in the following order Data to be sent:
    Data length, blank character, payload user data and the end mark of origin identification, the data to be sent, wherein, it is described pending Send data to include at least one payload user data, a blank character is provided between payload user data described in any two, between described It is logic high or logic low every symbol, the logic level of adjacent from the payload user data two blank characters is different.
  4. 4. according to the method for claim 3, it is characterised in that the preset length is one payload user data institute of transmission The time span needed, wherein, judge communication event whether occurs between the main frame and the slave based on two level signals Barrier includes:
    Judge whether the level state of two level signals is identical;
    Wherein, in the case of the level state identical of two level signals is judged, it is determined that the main frame with it is described Communication failure occurs between slave.
  5. 5. according to the method for claim 2, it is characterised in that the main frame drives the differential signal by biasing circuit Bus, so that the level on the Differential Signal Bus biases, and slave institute described in the level indicating by biasing State Differential Signal Bus and be in communication idle condition.
  6. 6. according to the method for claim 5, it is characterised in that be in communication conducting state in the Differential Signal Bus When, the main frame does not drive the Differential Signal Bus by the biasing circuit.
  7. 7. according to the method for claim 2, it is characterised in that it is empty to be in communication in communication bus described in the host driven After not busy state, methods described also includes:
    The main frame sends the communication data to institute again on the Differential Signal Bus according to the default communications protocol State slave.
  8. A kind of 8. communication device of veneer, it is characterised in that including:
    Collecting unit, for when main frame is communicated by communication bus and slave, gathering the level on the communication bus Signal;
    Judging unit, for judging communication event whether occurs between the main frame and the slave based on two level signals Barrier, wherein, the acquisition time of two level signals is at intervals of preset length;
    Recovery unit, in the case of communication failure occurs between the main frame and the slave, drive the communication bus In communication idle condition, wherein, the state that the communication idle condition is communicated for the permission main frame with the slave.
  9. 9. device according to claim 8, it is characterised in that the communication bus includes Differential Signal Bus, wherein, institute Stating collecting unit includes:
    Sending module, for when the Differential Signal Bus is in communication conducting state, being pressed on the Differential Signal Bus Communication data is sent to the slave according to default communications protocol;
    Receiving module, for when the Differential Signal Bus is in communication conducting state, being connect on the Differential Signal Bus Receive the reply data that the slave is sent according to the default communications protocol.
  10. 10. device according to claim 9, it is characterised in that the default communications protocol includes passing in the following order Defeated data to be sent:
    Data length, blank character, payload user data and the end mark of origin identification, the data to be sent, wherein, it is described pending Send data to include at least one payload user data, a blank character is provided between payload user data described in any two, between described It is logic high or logic low every symbol, the logic level of adjacent from the payload user data two blank characters is different.
  11. 11. device according to claim 10, it is characterised in that the preset length is one payload user data of transmission Required time span, wherein, the judging unit includes:
    Judge module, for judging whether the level state of two level signals is identical;
    Wherein, in the case of the level state identical of two level signals is judged, it is determined that the main frame with it is described Communication failure occurs between slave.
  12. 12. device according to claim 9, it is characterised in that described device also includes:
    Driver element, for driving the Differential Signal Bus by biasing circuit, so that the electricity on the Differential Signal Bus It is flat to bias, and Differential Signal Bus described in slave described in the level indicating by biasing is in communication idle condition.
  13. 13. device according to claim 12, it is characterised in that the driver element is additionally operable to total in the differential signal When line is in communication conducting state, stop driving the Differential Signal Bus by the biasing circuit.
CN201610828705.1A 2016-09-18 2016-09-18 The means of communication and device of veneer Pending CN107844441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610828705.1A CN107844441A (en) 2016-09-18 2016-09-18 The means of communication and device of veneer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610828705.1A CN107844441A (en) 2016-09-18 2016-09-18 The means of communication and device of veneer

Publications (1)

Publication Number Publication Date
CN107844441A true CN107844441A (en) 2018-03-27

Family

ID=61656552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610828705.1A Pending CN107844441A (en) 2016-09-18 2016-09-18 The means of communication and device of veneer

Country Status (1)

Country Link
CN (1) CN107844441A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002412A (en) * 2018-07-03 2018-12-14 郑州云海信息技术有限公司 System and method based on I2C bus hold time positioning and communicating failure
CN109495492A (en) * 2018-12-05 2019-03-19 四川奥地建筑设计有限公司 Communication system for intelligent water utilities industry
CN110260475A (en) * 2019-05-13 2019-09-20 珠海格力电器股份有限公司 Bus control method, device, equipment, upper computer and air conditioner
CN111030903A (en) * 2019-11-08 2020-04-17 重庆云铭科技股份有限公司 Communication method and device for electronic detonator

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002412A (en) * 2018-07-03 2018-12-14 郑州云海信息技术有限公司 System and method based on I2C bus hold time positioning and communicating failure
CN109002412B (en) * 2018-07-03 2021-05-25 郑州云海信息技术有限公司 System and method for positioning communication fault based on I2C bus hold time
CN109495492A (en) * 2018-12-05 2019-03-19 四川奥地建筑设计有限公司 Communication system for intelligent water utilities industry
CN109495492B (en) * 2018-12-05 2021-03-23 四川奥地建筑设计有限公司 Communication system for intelligent water business industry
CN110260475A (en) * 2019-05-13 2019-09-20 珠海格力电器股份有限公司 Bus control method, device, equipment, upper computer and air conditioner
CN111030903A (en) * 2019-11-08 2020-04-17 重庆云铭科技股份有限公司 Communication method and device for electronic detonator

Similar Documents

Publication Publication Date Title
EP2854369B1 (en) Method and apparatus for detecting interface connection between devices
CN107844441A (en) The means of communication and device of veneer
US7757020B2 (en) Point-to-point link negotiation method and apparatus
US9043528B2 (en) Bridge between a peripheral component interconnect express interface and a universal serial bus 3.0 device
CN107926075A (en) The system and method for supporting the data communication under isomerous environment
CN103797732A (en) Communication method, peripheral component interconnect express (PCIE) chip and PCIE devices
CN110069437B (en) RS-485 bus polarity self-adaption method based on response frame validity
CN108563595B (en) System and method for long-distance transmission of USB data
CN103577362A (en) Method for improving data transmission and related computer system
CN110708324A (en) Method and system for realizing point-to-point communication between FPGA (field programmable Gate array) board cards
CN104360973A (en) Communicating system, communicating method and relevant communicating devices
CN104850518A (en) Method for remotely logging in computer
CN101345681B (en) Operation method for connecting main unit of intelligent electric appliance through serial bus
RU2018145653A (en) SYSTEMS AND METHODS FOR INITIALIZING THE CONFIGURATION OF DEVICES WORKING IN INDUSTRIAL AUTOMATION ENVIRONMENTS
CN114116574B (en) Data transmission method, device, electronic equipment and storage medium
CN102710760A (en) Embedded network terminal synchronous configuration method and equipment
US9811496B2 (en) Method and apparatus for detecting interface connection between devices
US20100229041A1 (en) Device and method for expediting feedback on changes of connection status of monitioring equipments
CN102609388B (en) Slave node circuit, communication method and communication device
CN109495463B (en) Link width negotiation method, device and computer readable storage medium
CN113806273B (en) Fast peripheral component interconnect data transfer control system
KR101087886B1 (en) Device and method for controlling tcp connection of server
Cisco Troubleshooting
CN102868583A (en) FlexRay bus joint with fault diagnosis function
CN113630294A (en) Switch modularization detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20180419

Address after: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Applicant after: ZTE Corporation

Address before: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68

Applicant before: Nanjing Zhongxing New Software Co., Ltd.

TA01 Transfer of patent application right
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180327

WD01 Invention patent application deemed withdrawn after publication