CN102354305A - Serial communication system between devices and method - Google Patents

Serial communication system between devices and method Download PDF

Info

Publication number
CN102354305A
CN102354305A CN2011102894325A CN201110289432A CN102354305A CN 102354305 A CN102354305 A CN 102354305A CN 2011102894325 A CN2011102894325 A CN 2011102894325A CN 201110289432 A CN201110289432 A CN 201110289432A CN 102354305 A CN102354305 A CN 102354305A
Authority
CN
China
Prior art keywords
slave unit
main equipment
signal
slave
packet
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.)
Granted
Application number
CN2011102894325A
Other languages
Chinese (zh)
Other versions
CN102354305B (en
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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201110289432.5A priority Critical patent/CN102354305B/en
Publication of CN102354305A publication Critical patent/CN102354305A/en
Application granted granted Critical
Publication of CN102354305B publication Critical patent/CN102354305B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a serial communication system between devices and a method. The serial communication system between the devices comprises a master device, at least one slave device and an SPI (serial peripheral interface) bus for communication between the master device and the slave device. The SPI bus comprises a master-out slave-in signal line MOSI, a master-in slave-out signal line MISO, a clock signal line SCK, a chip selection signal line CS, a master transmission request and transmission completion signal line AP_RTS, a master reception preparation and completion signal line AP_RDY, a slave transmission request and transmission completion signal line BP_RTS, a slave reception preparation and completion signal line BP_RDY, a signal line AP_SLEEP for a master to awaken up a slave or control the slave to sleep, a slave sleeping state signal line BP_SLEEP and a slave abnormality state signal line BP_ERR. By adopting the system and the method, the transmission speed is high, and the cost of implementation is low. In addition, the system also has the functions of awakening up the sleep state and processing abnormalities, the failure in data communication in the sleep state of the slave device can be controlled promptly, the power consumption can be reduced, and the real-time monitoring of abnormal working states of the slave device can be achieved.

Description

Equipment room serial communication system and method
Technical field
The present invention relates to communication field, relate in particular to a kind of equipment room serial communication system and method.
Background technology
In electronic product, will use various peripheral hardware chips or module, the center divides peripheral hardware chip or module to carry out data communication at a high speed, for example mixed-media network modules mixed-media and data acquisition module with main equipment.Spi bus is to be applicable to serial communication bus between a kind of of this situation, and it provides two data pins, a clock pin and a sheet to select pin.But in order to have extensive applicability, basic spi bus function ratio is more limited, and the transmission of data must be initiated by the SPI main equipment, inquires about the slave unit state then or transmits data.When peripheral module need with main equipment on one's own initiative during the quick exchange data, basic spi bus can't satisfy the requirement of this quick response high-speed transfer.
Summary of the invention
To the problems referred to above, the present invention provides a kind of can improve two data transfer between devices speed, can effectively reduce the equipment room serial communication system and the method for power consumption again.
For achieving the above object, serial communication system between present device comprises: main equipment, at least one slave unit, and the spi bus of realizing said main equipment and said slave unit data communication;
Said spi bus comprises: main frame send slave receive signal wire MOSI, main frame receive slave send signal wire MISO, clock cable SCK, chip selection signal line CS, main frame send request with send accomplish signal wire AP_RTS, main frame receive be ready to complete signal wire AP_RDY, slave send request with send accomplish signal wire BP_RTS, slave receives and is ready to complete signal wire BP_RDY, host wake-up slave or control slave sleep signal line AP_SLEEP, slave sleep status signal line BP_SLEEP and slave abnormality signal wire BP_ERR;
Said main equipment is used for sending request signal through the output of the said slave unit of said AP_RTS alignment, after receiving reception that said slave unit returns and be ready to complete signal through said BP_RDY line, sends first packet through the said slave unit of said MOSI alignment; Also be used to receive said slave unit behind the transmission request signal of BP_RTS line output, return the reception ready signal through the said slave unit of said AP_RDY alignment; Also be used to receive second packet that said slave unit sends; Also be used for detecting the dormant state of said slave unit, wake slave unit up through said AP_SLEEP line or control said slave unit entering dormancy according to testing result through said BP_SLEEP line; After also being used for receiving said slave unit operation irregularity signal, finish the data communication between said main equipment and the slave unit through said BP_ERR line;
Said slave unit is used for sending request signal through the output of the said main equipment of said BP_RTS alignment, after receiving reception that said main equipment returns and be ready to complete signal through said AP_RDY line, sends second packet through the said main equipment of MISO alignment; After also being used to receive said main equipment and sending request signal, return to receive to said main equipment and be ready to complete signal through the output of said AP_RTS line; Also be used to receive first packet that said main equipment sends; Also be used to receive said main equipment and waken or get into up dormancy through said AP_SLEEP line output signal; Also be used for sending the operation irregularity signal through said AP_ERR line.
For achieving the above object, equipment room serial communication method of the present invention comprises, main equipment, slave unit and be connected the serial communication bus between the said master-slave equipment comprise the steps:
When main equipment when slave unit sends data:
Said main equipment detects said slave unit and whether is in dormancy, if detecting said slave unit is in dormancy, said main equipment wakes said slave unit up and continues following steps; Otherwise, directly carry out following steps;
Said main equipment sends request signal to the output of said slave unit, receives after reception that said slave unit returns is ready to complete signal, sends first packet to said slave unit;
Said main equipment is sending in the process of first packet to said slave unit, and said main equipment is the said slave unit of monitoring operation irregularity whether in real time, if monitor said slave unit operation irregularity, said main equipment stop and said slave unit between data communication;
After send accomplishing, said main equipment sends to the slave unit output data and accomplishes signal, after said slave unit receives this signal, first packet that receives is committed in the upper level applications handles;
After above-mentioned each step was accomplished, if said main equipment detects the transmitting-receiving that said slave unit no longer carries out data, said main equipment sent dormant control signal to said slave unit, so that said slave unit gets into dormant state;
When slave unit when main equipment sends data:
Said slave unit sends request signal to said main equipment output data, after said main equipment receives this signal, judges whether main equipment is in busy condition, is, does not handle this signal; Otherwise said main equipment receives to said slave unit output and is ready to complete signal;
After said slave unit receives this signal, send second packet to said main equipment;
Said slave unit is sending in the process of second packet to said main equipment, and said main equipment is the said slave unit of monitoring operation irregularity whether in real time, if monitor said slave unit operation irregularity, said main equipment stop and said slave unit between data communication;
After send accomplishing, said slave unit sends to said main equipment output data and accomplishes signal, after said main equipment receives this signal, second packet that receives is committed in the upper level applications handles;
After above-mentioned each step was accomplished, if said main equipment detects the transmitting-receiving that said slave unit no longer carries out data, said main equipment sent dormant control signal to said slave unit, so that said slave unit gets into dormant state.
The invention has the beneficial effects as follows:
Adopt equipment room serial communication system of the present invention and method, transmission speed is high, and realizes that cost is low.In addition; The present invention also has dormancy awakening and abnormality processing function; Can in time control slave unit and when not carrying out data communication, be in dormant state to reduce power consumption; Can also be real-time slave unit is carried out the monitoring of abnormal work state, the communication of end data timely and resetting when slave unit is in the abnormal work state.
Description of drawings
Fig. 1 is the structural representation of a specific embodiment of equipment room serial communication system according to the invention;
Fig. 2 is main equipment of the present invention sends a process flow diagram from a specific embodiment of data to slave unit;
Fig. 3 is slave unit of the present invention sends a process flow diagram from a specific embodiment of data to main equipment.
Embodiment
Below in conjunction with Figure of description the present invention is done further description.
As shown in Figure 1, a specific embodiment of equipment room serial communication system according to the invention, this system comprises: main equipment, at least one slave unit, and the spi bus of realizing said main equipment and said slave unit data communication;
Said spi bus comprises:
First group, basic spi bus signal wire, promptly main frame sends slave and receives signal wire MOSI, main frame reception slave transmission signal wire MISO, clock cable SCK and chip selection signal line CS;
Second group; Data transfer request and response signal line, i.e. main frame transmission ask to be ready to complete signal wire AP_RDY, slave transmission request and transmission completion signal wire BP_RTS with transmission completion signal wire AP_RTS, main frame reception and the slave reception is ready to complete signal wire BP_RDY;
The 3rd group, dormancy awakening control and status signal lines, i.e. host wake-up slave or control slave sleep signal line AP_SLEEP and slave sleep status signal line BP_SLEEP;
The 4th group, slave abnormality signal wire BP_ERR;
Said main equipment is used for sending request signal through the output of the said slave unit of said AP_RTS alignment, after receiving reception that said slave unit returns and be ready to complete signal through said BP_RDY line, sends first packet through the said slave unit of said MOSI alignment; Also be used to receive said slave unit behind the transmission request signal of BP_RTS line output, return the reception ready signal through the said slave unit of said AP_RDY alignment; Also be used to receive second packet that said slave unit sends; Also be used for detecting the dormant state of said slave unit, wake slave unit up through said AP_SLEEP line or control said slave unit entering dormancy according to testing result through said BP_SLEEP line; After also being used for receiving said slave unit operation irregularity signal, finish the data communication between said main equipment and the slave unit through said BP_ERR line;
Said slave unit is used for sending request signal through the output of the said main equipment of said BP_RTS alignment, after receiving reception that said main equipment returns and be ready to complete signal through said AP_RDY line, sends second packet through the said main equipment of MISO alignment; After also being used to receive said main equipment and sending request signal, return to receive to said main equipment and be ready to complete signal through the output of said AP_RTS line; Also be used to receive first packet that said main equipment sends; Also be used to receive said main equipment and waken or get into up dormancy through said AP_SLEEP line output signal; Also be used for sending the operation irregularity signal through said AP_ERR line.
As the present invention embodiment further; If the main equipment described in the foregoing description is receiving after said slave unit sends the operation irregularity signal through the AP_ERR line; For said slave unit is resetted, said spi bus also comprises host computer control slave reseting signal line AP_RESET; Said main equipment receives said slave unit behind the operation irregularity signal of said BP_ERR line output, through the said AP_RESET line said slave unit that resets.Certainly, the pin that is used to connect on the slave unit of said AP_RESET line also can be connected to external reset circuit, uses this circuit reset slave unit.
Among above-mentioned two embodiment, the effective status value and the functional definition that are used for connecting the corresponding pin of first group of signal wire can realize through the related register that the spi bus controller is set at software.Being used to connect the signal condition that the corresponding pin of second group, three groups, four groups and AP_RESET line representes representes through the level value of pin; The level value of useful signal state is in high level/low level for the level of this pin; Perhaps from the downward saltus step edge of high level to the low level variation; Perhaps from the upwards saltus step edge of low level to the high level variation, the level value of each pin useful signal state is configured to equal values in the software of main equipment and slave unit.
In the application of reality; Main equipment and slave unit pass through the software arrangements related register of spi bus controller separately; Main equipment is configured to the SPI main equipment, and slave unit is configured to the SPI slave unit, and the configuration both sides are parameters such as identical SPI mode of operation, clock frequency.When certain equipment need be when the opposing party be transmitted data; Through RTS pin output useful signal (can in software regulation useful signal be height/low level or level saltus step edge); The other side interrupts receiving this signal through I/O;, the process judgement disposes RDY pin output useful signal if can receiving; Transmission initiator's equipment interrupt to receive this signal through I/O, uses spi bus to send packet after receiving signal.
Workflow in the face of the equipment room serial communication system described in the foregoing description is further described down.
(1) main equipment sends data to slave unit
This process is initiated by the control module of main equipment.Whether the control module of the main equipment control module of inquiry slave unit earlier is in dormant state, and querying method is for detecting the level value that slave unit is used to connect the BP_SLEEP pin of BP_SLEEP line.If BP_SLEEP pin level value is the normal operating conditions level, illustrate that the control module of slave unit is not in dormant state.If this pin level value is the significant level of dormant state; The control module that slave unit is described is in dormant state; Then the control module of main equipment wakes significant level up through AP_SLEEP pin (being used to connect the pin of AP_SLEEP line on the main equipment) output (this level can be specific level; Also can be level saltus step edge) to the control module transmission wake-up signal of slave unit, the BP_SLEEP pin level of cyclic query slave unit becomes the level value of normal operating conditions up to this level then.The control module of confirming slave unit is not in after the dormant state, can begin to send data.
The control module of main equipment at first sends request signal through AP_RTS pin (being used to connect the pin of said AP_RTS line on the main equipment) to the control module output data of slave unit, waits for that then the control module of slave unit is ready to complete signal in the last reception of responding of BP_RDY pin (slave unit is used to connect the pin of said BP_RDY line).The control module of main equipment is through after interrupting receiving this signal, and log-on data is sent handling procedure, with the packing data that needs send, passes to main equipment and sends buffer zone, disposes the spi bus controller at last packet is sent.The control module of slave unit deposits the packet of receiving in the slave unit send buffer in.
After sending completion, the control module of main equipment sends to the control module output data of slave unit through the AP_RTS pin and accomplishes signal.After the control module of slave unit receives this signal, the data in the slave unit send buffer are submitted to upper level applications handle, this flow process finishes.
(2) slave unit sends data to main equipment
This process is initiated by the control module of slave unit.The control module of slave unit sends request signal through BP_RTS pin (being used to connect the pin of BP_RTS line on the slave unit) to the control module output data of main equipment.The control module of main equipment judges through after interrupting receiving this signal whether this machine is in busy condition, if main equipment is in busy condition and does not then handle this signal; Otherwise the control module log-on data received processing program of main equipment at first is ready to complete signal through AP_RDY pin (being used to connect the pin of said AP_RDY line on the main equipment) to the control module output reception of slave unit.After the control module of slave unit receives this signal,, be passed to slave unit and send buffer zone, dispose the spi bus controller at last packet is sent packing data to be sent.
After the control module of slave unit sends and accomplishes, send the completion signal to the control module output data of main equipment, the output of this signal realizes through the level value that BP_RTS pin (being used to connect the pin of said BP_RTS line on the slave unit) is set.After the control module of main equipment receives this packet, deposit packet in the main equipment send buffer.The data that the control module of main equipment receives the control module output of slave unit are submitted to upper level applications with the data of main equipment send buffer and are handled after sending and accomplishing signal, and this flow process finishes.
In two above-mentioned processes, the control module of main equipment can also order the control module of slave unit to get into dormancy, perhaps it is waken up from dormant state.Its method is for exporting the significant level value through main equipment AP_SLEEP pin (being used to connect the pin of said AP_SLEEP line on the main equipment), for example sleep signal be high level to low level hopping edge, wake-up signal is the hopping edge of low level to high level.The control module of slave unit is set to interrupt input with slave unit AP_SLEEP pin (being used to connect the pin of said AP_SLEEP line on the slave unit); After detecting the significant level of sleep signal; Forbid new data transfer request; Wait for the DTD of well afoot; Handle and empty slave unit transmission/send buffer then, get into energy-saving mode after dormancy preliminary work is accomplished and go up output dormant state level value at slave unit BP_SLEEP pin (being used to connect the pin of said BP_SLEEP line on the slave unit).When the control module of main equipment need wake the control module of slave unit up, on main equipment AP_SLEEP pin, output to the corresponding level value of wake-up signal.The control module of slave unit wakes this machine and get into up normal operating conditions through after interrupting receiving this signal, at last output normal operating conditions level on slave unit BP_SLEEP pin.After the control module of main equipment detected slave unit BP_SLEEP pin and becomes the normal operating conditions level, the process of waking the control module of slave unit up finished.
In addition; In two above-mentioned processes; If if severely subnormal takes place in the control module of slave unit in data communication process; Get into the deadlock state or other serious exception errors take place, send slave severely subnormal signal to the control module of main equipment through slave unit BP_ERR pin (being used to connect the pin of said BP_ERR line on the slave unit).The control module of main equipment is through interrupting after receiving this signal on this pin; Notify upper level applications on the one hand; Finish on the one hand and data transmit-receive flow process from the control module of control module slave unit, at last through main equipment pin AP_RESET pin (being used to connect the pin of said AP_RESET line on the main equipment) to slave unit control module transmission reset signal.After the slave unit control module received this signal, this machine that resets was restarted software.This process also can be connected to the AP_RESET pin on the slave unit on the external reset circuit, uses the control module of this circuit reset from the control module slave unit.
As shown in Figures 2 and 3, equipment room serial communication method of the present invention comprises, main equipment, slave unit and be connected the serial communication bus between the said master-slave equipment comprise the steps:
When main equipment when slave unit sends data:
Said main equipment detects said slave unit and whether is in dormant state, if detecting said slave unit is in dormant state, said main equipment wakes said slave unit up and continues following steps; Otherwise, directly carry out following steps;
Said main equipment sends request signal to the output of said slave unit, receives after reception that said slave unit returns is ready to complete signal, sends first packet to said slave unit;
Said main equipment is sending in the process of first packet to said slave unit, and said main equipment is the said slave unit of monitoring operation irregularity whether in real time, if monitor said slave unit operation irregularity, said main equipment stop and said slave unit between data communication;
After send accomplishing, said main equipment sends to the slave unit output data and accomplishes signal, after said slave unit receives this signal, first packet that receives is committed in the upper level applications handles;
After above-mentioned each step was accomplished, if said main equipment detects the transmitting-receiving that said slave unit no longer carries out data, said main equipment sent dormant control signal to said slave unit, so that said slave unit gets into dormant state;
When slave unit when main equipment sends data:
Said slave unit sends request signal to said main equipment output data, after said main equipment receives this signal, judges whether main equipment is in busy condition, is, does not handle this signal; Otherwise said main equipment receives to said slave unit output and is ready to complete signal;
After said slave unit receives this signal, send second packet to said main equipment;
Said slave unit is sending in the process of second packet to said main equipment, and said main equipment is the said slave unit of monitoring operation irregularity whether in real time, if monitor said slave unit operation irregularity, said main equipment stop and said slave unit between data communication;
After send accomplishing, said slave unit sends to said main equipment output data and accomplishes signal, after said main equipment receives this signal, second packet that receives is committed in the upper level applications handles;
After above-mentioned each step was accomplished, if said main equipment detects the transmitting-receiving that said slave unit no longer carries out data, said main equipment sent dormant control signal to said slave unit, so that said slave unit gets into dormant state.
Further embodiment as the foregoing description; Above-mentioned said main equipment is sending in the process of first packet to said slave unit; Said main equipment is the said slave unit of monitoring operation irregularity whether in real time; If monitor said slave unit operation irregularity, said main equipment stop and said slave unit between data communication; This step also comprises:
Said main equipment resets to control said slave unit to said slave unit output reset signal.
Further, the main equipment described in the foregoing description detects said slave unit and whether is in dormant state, and wherein, detection method is specific as follows:
Detect the level of said slave unit corresponding pin, if this level is the significant level of normal operating conditions, the not dormancy of then said slave unit; If this level value is the significant level of dormant state, then said slave unit is in dormant state;
Wherein, the significant level of said normal operating conditions is different with the significant level of said dormant state.
In the application process of reality, the significant level of described normal operating conditions can be high level or low level; The significant level of said dormant state is a low level to the hopping edge of high level or high level to low level hopping edge.
Further, in the foregoing description, described main equipment sends request signal to the output of said slave unit, receives after reception that said slave unit returns is ready to complete signal, sends first packet to said slave unit, and this step specifically comprises:
Said main equipment sends request signal to said slave unit output; Receive after reception that said slave unit returns is ready to complete signal; Log-on data is sent handling procedure; Packing data with the needs transmission; Be passed to main equipment and send buffer zone, dispose said serial communication bus first packet is sent to said slave unit.
Again further, in the foregoing description, after described slave unit receives this signal, send second packet to said main equipment, this step specifically comprises:
After said slave unit receives this signal, with packing data to be sent and be passed to the slave unit buffer zone, dispose said serial communication bus second packet is sent to said main equipment.
Again further, in the foregoing description, described main equipment sends dormant control signal to said slave unit, so that said slave unit gets into dormant state, concrete implementation method is following:
Said main equipment sends the dormancy significant level to said slave unit; After said slave unit receives the dormancy significant level; Forbid new data communications requests; The data communication of waiting for well afoot finishes, and handles simultaneously and empties and send buffer zone and send buffer entering dormancy energy-saving mode and export the dormant state level.Wherein, said dormancy significant level can be a high level to low level hopping edge or the low level hopping edge to high level.
More than; Only be preferred embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain that claim was defined.

Claims (10)

1. an equipment room serial communication system is characterized in that, said system comprises: main equipment, at least one slave unit, and the spi bus of realizing said main equipment and said slave unit data communication;
Said spi bus comprises: main frame send slave receive signal wire MOSI, main frame receive slave send signal wire MISO, clock cable SCK, chip selection signal line CS, main frame send request with send accomplish signal wire AP_RTS, main frame receive be ready to complete signal wire AP_RDY, slave send request with send accomplish signal wire BP_RTS, slave receives and is ready to complete signal wire BP_RDY, host wake-up slave or control slave sleep signal line AP_SLEEP, slave sleep status signal line BP_SLEEP and slave abnormality signal wire BP_ERR;
Said main equipment is used for sending request signal through the output of the said slave unit of said AP_RTS alignment, after receiving reception that said slave unit returns and be ready to complete signal through said BP_RDY line, sends first packet through the said slave unit of said MOSI alignment; Also be used to receive said slave unit behind the transmission request signal of BP_RTS line output, return the reception ready signal through the said slave unit of said AP_RDY alignment; Also be used to receive second packet that said slave unit sends; Also be used for detecting the dormant state of said slave unit, wake slave unit up through said AP_SLEEP line or control said slave unit entering dormancy according to testing result through said BP_SLEEP line; After also being used for receiving said slave unit operation irregularity signal, finish the data communication between said main equipment and the slave unit through said BP_ERR line;
Said slave unit is used for sending request signal through the output of the said main equipment of said BP_RTS alignment, after receiving reception that said main equipment returns and be ready to complete signal through said AP_RDY line, sends second packet through the said main equipment of MISO alignment; After also being used to receive said main equipment and sending request signal, return to receive to said main equipment and be ready to complete signal through the output of said AP_RTS line; Also be used to receive first packet that said main equipment sends; Also be used to receive said main equipment and waken or get into up dormancy through said AP_SLEEP line output signal; Also be used for sending the operation irregularity signal through said AP_ERR line.
2. equipment room serial communication system according to claim 1 is characterized in that, said spi bus also comprises host computer control slave reseting signal line AP_RESET; Said main equipment receives said slave unit behind the operation irregularity signal of said BP_ERR line output, through the said AP_RESET line said slave unit that resets.
3. an equipment room serial communication method comprises, main equipment, slave unit and be connected the serial communication bus between the said master-slave equipment is characterized in that, comprise the steps:
When main equipment when slave unit sends data:
Said main equipment detects said slave unit and whether is in dormancy, if detecting said slave unit is in dormancy, said main equipment wakes said slave unit up and continues following steps; Otherwise, directly carry out following steps;
Said main equipment sends request signal to the output of said slave unit, receives after reception that said slave unit returns is ready to complete signal, sends first packet to said slave unit;
Said main equipment is sending in the process of first packet to said slave unit, and said main equipment is the said slave unit of monitoring operation irregularity whether in real time, if monitor said slave unit operation irregularity, said main equipment stop and said slave unit between data communication;
After send accomplishing, said main equipment sends to the slave unit output data and accomplishes signal, after said slave unit receives this signal, first packet that receives is committed in the upper level applications handles;
After above-mentioned each step was accomplished, if said main equipment detects the transmitting-receiving that said slave unit no longer carries out data, said main equipment sent dormant control signal to said slave unit, so that said slave unit gets into dormant state;
When slave unit when main equipment sends data:
Said slave unit sends request signal to said main equipment output data, after said main equipment receives this signal, judges whether main equipment is in busy condition, is, does not handle this signal; Otherwise said main equipment receives to said slave unit output and is ready to complete signal;
After said slave unit receives this signal, send second packet to said main equipment;
Said slave unit is sending in the process of second packet to said main equipment, and said main equipment is the said slave unit of monitoring operation irregularity whether in real time, if monitor said slave unit operation irregularity, said main equipment stop and said slave unit between data communication;
After send accomplishing, said slave unit sends to said main equipment output data and accomplishes signal, after said main equipment receives this signal, second packet that receives is committed in the upper level applications handles;
After above-mentioned each step was accomplished, if said main equipment detects the transmitting-receiving that said slave unit no longer carries out data, said main equipment sent dormant control signal to said slave unit, so that said slave unit gets into dormant state.
4. equipment room serial communication method according to claim 3; It is characterized in that; Said main equipment is sending in the process of first packet to said slave unit; Said main equipment is the said slave unit of monitoring operation irregularity whether in real time; If monitor said slave unit operation irregularity, said main equipment stop and said slave unit between data communication; This step also comprises:
Said main equipment resets to control said slave unit to said slave unit output reset signal.
5. equipment room serial communication method according to claim 3 is characterized in that, said main equipment detects said slave unit and whether is in dormancy, and wherein, detection method is specific as follows:
Detect the level of said slave unit corresponding pin, if this level is the significant level of normal operating conditions, the not dormancy of then said slave unit; If this level value is the significant level of dormant state, then said slave unit is in dormant state;
Wherein, the significant level of said normal operating conditions is different with the significant level of said dormant state.
6. equipment room serial communication method according to claim 5 is characterized in that, the significant level of said dormant state is a low level to the hopping edge of high level or high level to low level hopping edge.
7. equipment room serial communication method according to claim 3; It is characterized in that said main equipment sends request signal to the output of said slave unit, receive after reception that said slave unit returns is ready to complete signal; Send first packet to said slave unit, this step specifically comprises:
Said main equipment sends request signal to said slave unit output; Receive after reception that said slave unit returns is ready to complete signal; Log-on data is sent handling procedure; Packing data with the needs transmission; Be passed to main equipment and send buffer zone, dispose said serial communication bus first packet is sent to said slave unit.
8. equipment room serial communication method according to claim 3 is characterized in that, after said slave unit receives this signal, sends second packet to said main equipment, and this step specifically comprises:
After said slave unit receives this signal, with packing data to be sent and be passed to the slave unit buffer zone, dispose said serial communication bus second packet is sent to said main equipment.
9. equipment room serial communication method according to claim 3 is characterized in that said main equipment sends dormant control signal to said slave unit, so that said slave unit gets into dormant state, concrete implementation method is following:
Said main equipment sends the dormancy significant level to said slave unit; After said slave unit receives the dormancy significant level; Forbid new data communications requests; The data communication of waiting for well afoot finishes, and handles simultaneously and empties and send buffer zone and send buffer entering dormancy energy-saving mode and export the dormant state level.
10. equipment room serial communication method according to claim 3 is characterized in that, said dormancy significant level is a high level to low level hopping edge or the low level hopping edge to high level.
CN201110289432.5A 2011-09-27 2011-09-27 Serial communication system between devices and method Expired - Fee Related CN102354305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110289432.5A CN102354305B (en) 2011-09-27 2011-09-27 Serial communication system between devices and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110289432.5A CN102354305B (en) 2011-09-27 2011-09-27 Serial communication system between devices and method

Publications (2)

Publication Number Publication Date
CN102354305A true CN102354305A (en) 2012-02-15
CN102354305B CN102354305B (en) 2016-08-03

Family

ID=45577871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110289432.5A Expired - Fee Related CN102354305B (en) 2011-09-27 2011-09-27 Serial communication system between devices and method

Country Status (1)

Country Link
CN (1) CN102354305B (en)

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102928690A (en) * 2012-09-28 2013-02-13 珠海德百祺科技有限公司 Anomaly detection method for electronic device
CN103810052A (en) * 2012-11-15 2014-05-21 联咏科技股份有限公司 Bus detection and control method and device and mobile industry processor interface system thereof
CN104133792A (en) * 2013-05-03 2014-11-05 珠海全志科技股份有限公司 RSB communication method and RSB communication system
CN104253900A (en) * 2013-06-28 2014-12-31 展讯通信(上海)有限公司 Smart phone and data transmission method and data transmission system thereof
CN104298630A (en) * 2013-07-17 2015-01-21 展讯通信(上海)有限公司 Communication method, communication devices and equipment based on SPI
CN104636303A (en) * 2015-03-09 2015-05-20 联想(北京)有限公司 Bus control method, electronic equipment and bus system
CN105024900A (en) * 2015-08-03 2015-11-04 艾德克斯电子(南京)有限公司 Multi-machine synchronous communication system and method
CN105068951A (en) * 2015-07-27 2015-11-18 中国科学院自动化研究所 On-chip system bus with anisochronous transmission structure
US9298655B2 (en) 2012-11-13 2016-03-29 Novatek Microelectronics Corp. Bus detection and control method and bus detection and control device and mobile industry processor interface system thereof
CN106218550A (en) * 2016-07-29 2016-12-14 北京车和家信息技术有限责任公司 The control method of electronic control unit, electronic control unit, system and vehicle
CN106301712A (en) * 2015-06-05 2017-01-04 国民技术股份有限公司 A kind of synchronized communication method and application apparatus, system
CN107346294A (en) * 2016-05-04 2017-11-14 上海商米科技有限公司 Data-flow-control system and method based on SPI protocol
CN107370651A (en) * 2017-06-26 2017-11-21 中国人民解放军91388部队 A kind of communication means between SPI slaves
WO2018000193A1 (en) * 2016-06-28 2018-01-04 北京小米移动软件有限公司 Pin control method and device
CN107578612A (en) * 2016-07-05 2018-01-12 深圳市芯智科技有限公司 A kind of 2.4G wireless remote-control systems and method based on drive recorder
CN107681707A (en) * 2016-10-17 2018-02-09 深圳市东方之星电源有限公司 A kind of automobile and automobile power supply system dormancy control circuit
CN108804259A (en) * 2018-06-14 2018-11-13 北京旅居四方科技有限公司 Water power stake and the method and apparatus that program operation is detected
CN109561233A (en) * 2017-09-26 2019-04-02 佳能株式会社 Information processing equipment and its control method
CN109660506A (en) * 2017-10-11 2019-04-19 大众汽车有限公司 Message sequence and identification are transmitted to the method and apparatus of the attack of message sequence
CN109781802A (en) * 2019-03-07 2019-05-21 北京佳华储良科技有限公司 A kind of capacitance type sensor
WO2020150954A1 (en) * 2019-01-24 2020-07-30 深圳市汇顶科技股份有限公司 Method and apparatus for spi-based asynchronous handling of events, and storage medium
CN112034973A (en) * 2020-09-08 2020-12-04 杭州万高科技股份有限公司 Serial port communication device
CN113037419A (en) * 2021-03-22 2021-06-25 英博超算(南京)科技有限公司 Stable data transmission system based on SPI communication
CN113169907A (en) * 2018-06-08 2021-07-23 住友电装株式会社 Communication apparatus and control method
CN113176751A (en) * 2021-04-28 2021-07-27 青岛歌尔智能传感器有限公司 Data transmission method, device and computer readable storage medium
CN113407478A (en) * 2021-08-23 2021-09-17 上海泰矽微电子有限公司 Method for realizing active application transmission of SPI slave equipment
CN114528235A (en) * 2022-01-21 2022-05-24 厦门亿联网络技术股份有限公司 SPI (Serial peripheral interface) -based communication method, slave equipment and system
CN116185936A (en) * 2023-04-23 2023-05-30 常州星宇车灯股份有限公司 SPI communication data receiving and transmitting abnormity detection control system and detection method
CN116938631A (en) * 2023-09-19 2023-10-24 芯原科技(上海)有限公司 Configuration bus generation method, system, storage medium and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060187969A1 (en) * 2004-06-30 2006-08-24 Ricoh Company, Ltd. Serial communication device, method thereof and communication system using the same
CN102193405A (en) * 2010-03-09 2011-09-21 佳能株式会社 Serial communication apparatus and image forming apparatus including the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060187969A1 (en) * 2004-06-30 2006-08-24 Ricoh Company, Ltd. Serial communication device, method thereof and communication system using the same
CN102193405A (en) * 2010-03-09 2011-09-21 佳能株式会社 Serial communication apparatus and image forming apparatus including the same

Cited By (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102928690B (en) * 2012-09-28 2015-11-25 珠海德百祺科技有限公司 For the method for detecting abnormality of electron device
CN102928690A (en) * 2012-09-28 2013-02-13 珠海德百祺科技有限公司 Anomaly detection method for electronic device
US9298655B2 (en) 2012-11-13 2016-03-29 Novatek Microelectronics Corp. Bus detection and control method and bus detection and control device and mobile industry processor interface system thereof
CN103810052A (en) * 2012-11-15 2014-05-21 联咏科技股份有限公司 Bus detection and control method and device and mobile industry processor interface system thereof
CN103810052B (en) * 2012-11-15 2017-05-03 联咏科技股份有限公司 Bus detection and control method and device and mobile industry processor interface system thereof
CN104133792A (en) * 2013-05-03 2014-11-05 珠海全志科技股份有限公司 RSB communication method and RSB communication system
CN104133792B (en) * 2013-05-03 2017-02-15 珠海全志科技股份有限公司 RSB communication method and RSB communication system
CN104253900A (en) * 2013-06-28 2014-12-31 展讯通信(上海)有限公司 Smart phone and data transmission method and data transmission system thereof
CN104298630A (en) * 2013-07-17 2015-01-21 展讯通信(上海)有限公司 Communication method, communication devices and equipment based on SPI
CN104298630B (en) * 2013-07-17 2017-06-30 展讯通信(上海)有限公司 Communication means, device and equipment based on Serial Peripheral Interface (SPI)
CN104636303B (en) * 2015-03-09 2018-10-12 联想(北京)有限公司 A kind of bus control method, electronic equipment and bus system
CN104636303A (en) * 2015-03-09 2015-05-20 联想(北京)有限公司 Bus control method, electronic equipment and bus system
CN106301712A (en) * 2015-06-05 2017-01-04 国民技术股份有限公司 A kind of synchronized communication method and application apparatus, system
CN105068951A (en) * 2015-07-27 2015-11-18 中国科学院自动化研究所 On-chip system bus with anisochronous transmission structure
CN105068951B (en) * 2015-07-27 2018-05-08 中国科学院自动化研究所 A kind of system-on-chip bus with non-isochronous transfers structure
CN105024900B (en) * 2015-08-03 2018-11-27 艾德克斯电子(南京)有限公司 A kind of Multi-Machine Synchronous communication system and method
CN105024900A (en) * 2015-08-03 2015-11-04 艾德克斯电子(南京)有限公司 Multi-machine synchronous communication system and method
CN107346294A (en) * 2016-05-04 2017-11-14 上海商米科技有限公司 Data-flow-control system and method based on SPI protocol
WO2018000193A1 (en) * 2016-06-28 2018-01-04 北京小米移动软件有限公司 Pin control method and device
CN107578612A (en) * 2016-07-05 2018-01-12 深圳市芯智科技有限公司 A kind of 2.4G wireless remote-control systems and method based on drive recorder
CN106218550B (en) * 2016-07-29 2019-02-19 北京车和家信息技术有限公司 Control method, electronic control unit, system and the vehicle of electronic control unit
CN106218550A (en) * 2016-07-29 2016-12-14 北京车和家信息技术有限责任公司 The control method of electronic control unit, electronic control unit, system and vehicle
CN107681707A (en) * 2016-10-17 2018-02-09 深圳市东方之星电源有限公司 A kind of automobile and automobile power supply system dormancy control circuit
CN107370651A (en) * 2017-06-26 2017-11-21 中国人民解放军91388部队 A kind of communication means between SPI slaves
CN107370651B (en) * 2017-06-26 2020-04-10 中国人民解放军91388部队 Communication method between SPI slave machines
CN109561233A (en) * 2017-09-26 2019-04-02 佳能株式会社 Information processing equipment and its control method
US11500450B2 (en) 2017-09-26 2022-11-15 Canon Kabushiki Kaisha Information processing apparatus including controller capable of communicating with connected external apparatus and shifting to power-saving state, and control method therefor
CN109561233B (en) * 2017-09-26 2022-03-15 佳能株式会社 Information processing apparatus, control method therefor, and storage medium
CN109660506A (en) * 2017-10-11 2019-04-19 大众汽车有限公司 Message sequence and identification are transmitted to the method and apparatus of the attack of message sequence
US11394726B2 (en) 2017-10-11 2022-07-19 Volkswagen Aktiengesellschaft Method and apparatus for transmitting a message sequence over a data bus and method and apparatus for detecting an attack on a message sequence thus transmitted
CN113169907A (en) * 2018-06-08 2021-07-23 住友电装株式会社 Communication apparatus and control method
CN113169907B (en) * 2018-06-08 2022-06-07 住友电装株式会社 Communication apparatus and control method
CN108804259A (en) * 2018-06-14 2018-11-13 北京旅居四方科技有限公司 Water power stake and the method and apparatus that program operation is detected
WO2020150954A1 (en) * 2019-01-24 2020-07-30 深圳市汇顶科技股份有限公司 Method and apparatus for spi-based asynchronous handling of events, and storage medium
CN109781802A (en) * 2019-03-07 2019-05-21 北京佳华储良科技有限公司 A kind of capacitance type sensor
CN112034973A (en) * 2020-09-08 2020-12-04 杭州万高科技股份有限公司 Serial port communication device
CN113037419A (en) * 2021-03-22 2021-06-25 英博超算(南京)科技有限公司 Stable data transmission system based on SPI communication
CN113176751A (en) * 2021-04-28 2021-07-27 青岛歌尔智能传感器有限公司 Data transmission method, device and computer readable storage medium
CN113407478A (en) * 2021-08-23 2021-09-17 上海泰矽微电子有限公司 Method for realizing active application transmission of SPI slave equipment
CN114528235A (en) * 2022-01-21 2022-05-24 厦门亿联网络技术股份有限公司 SPI (Serial peripheral interface) -based communication method, slave equipment and system
CN114528235B (en) * 2022-01-21 2024-05-31 厦门亿联网络技术股份有限公司 SPI-based communication method, slave device and system
CN116185936A (en) * 2023-04-23 2023-05-30 常州星宇车灯股份有限公司 SPI communication data receiving and transmitting abnormity detection control system and detection method
CN116185936B (en) * 2023-04-23 2023-07-14 常州星宇车灯股份有限公司 SPI communication data receiving and transmitting abnormity detection control system and detection method
CN116938631A (en) * 2023-09-19 2023-10-24 芯原科技(上海)有限公司 Configuration bus generation method, system, storage medium and electronic device
CN116938631B (en) * 2023-09-19 2023-12-29 芯原科技(上海)有限公司 Configuration bus generation method, system, storage medium and electronic device

Also Published As

Publication number Publication date
CN102354305B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN102354305A (en) Serial communication system between devices and method
US7490255B2 (en) Power efficient flow control model for USB asynchronous transfers
EP1386219B1 (en) Entering and exiting power managed states without disrupting accelerated graphics port transactions
US8375148B2 (en) Computer system, device sharing method, and device sharing program
CN102819512A (en) Full-duplex communication device based on SPI and method thereof
CN101581964B (en) Computer system and peripheral equipment drive method
US7467313B2 (en) Method for transmitting a power-saving command between a computer system and peripheral system chips
CN1873585A (en) Information processing apparatus and controlling method thereof
CN102306133B (en) USB (universal serial bus) host controller and data transfer method thereof
US10394309B2 (en) Power gated communication controller
CN116150051A (en) Command processing method, device and system
CN101699419A (en) Data transmission method and universal serial bus host controller using same
JP2005122372A (en) Data transfer controller, electronic equipment and data transfer control method
CN102087589A (en) Remote management device capable of detecting state of controlled computer
CN103077144A (en) Serial peripheral interface (SPI) communication interface for ensuring data integrity, and communication method thereof
CN105718396B (en) A kind of I of big data master transmissions2C bus units and its means of communication
CN102193683B (en) Control board and serial communication arbiter for touch screen with camera
CN107066413A (en) A kind of method and its bus system for being used to handle multiple bus apparatus data
CN112347017A (en) PS/2 keyboard dual-host plug-in system with LPC bus interface and switching method
CN113220107A (en) Power consumption management method for PCIe link, terminal device and storage medium
CN1577213A (en) Method for pci express power management using a pci pm mechanism in a computer system
CN103353750A (en) Multi-bus microwave metallurgical control system and method
CN100452005C (en) System and method for controlling interrput
CN203117968U (en) SPI (Serial Peripheral Interface) communication interface
CN212324117U (en) RS485 bus multi-host competition switching system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160803

Termination date: 20190927