CN107678995A - Data communications method and electronic equipment - Google Patents

Data communications method and electronic equipment Download PDF

Info

Publication number
CN107678995A
CN107678995A CN201710881572.9A CN201710881572A CN107678995A CN 107678995 A CN107678995 A CN 107678995A CN 201710881572 A CN201710881572 A CN 201710881572A CN 107678995 A CN107678995 A CN 107678995A
Authority
CN
China
Prior art keywords
data
interface
sent
power interface
single 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.)
Granted
Application number
CN201710881572.9A
Other languages
Chinese (zh)
Other versions
CN107678995B (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201710881572.9A priority Critical patent/CN107678995B/en
Publication of CN107678995A publication Critical patent/CN107678995A/en
Application granted granted Critical
Publication of CN107678995B publication Critical patent/CN107678995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling

Abstract

The invention discloses a kind of data communications method and a kind of electronic equipment, this method is applied to electronic equipment, and the electronic equipment includes microcontroller, and the power interface being connected respectively with the single bus interface of the microcontroller and the battery component.Methods described includes:Detection power interface whether there is data reception event, and if there is the data reception event, data to be received are received by the power interface.Detect whether that data be present sends event, and event is sent if there is the data, data to be sent are sent by the power interface.The invention provides a kind of reliability for being not easy disturbed wired communication mode, substantially increasing communication.

Description

Data communications method and electronic equipment
Technical field
The invention belongs to electronic technology field, specifically, is related to a kind of data communications method and a kind of electronic equipment.
Background technology
Due to being directed to fire resistance characteristic in design of electronic products, functional characteristic requirement and appearance design requirement are increasingly Height, therefore the external interface design of electronic product is more and more brief so that electronic product generally only retains power interface.
In the prior art, due to being needed and PC (PC) during electronic product production test, maintenance or use End or mobile terminal enter row data communication, the electronic equipment for only remaining with power interface, are only capable of passing through communication Such as:BLE (Bluetooh Low Energy, low-power consumption bluetooth), Bluetooh (bluetooth), Wifi (Wireless Fidelity, wireless network) etc. realize data transfer.But due to air interference be present in communication environment, easily cause radio communication not It is stable, cause communication failure rate higher, the reliability of data communication is poor.
The content of the invention
In view of this, the invention provides a kind of data communications method and a kind of electronic equipment, for solving due to electronics Reliability is poor when equipment is only capable of entering row data communication by radio communication the problem of causing communication failure rate high, ensure that this The reliability of data communication.
In order to solve the above-mentioned technical problem, the invention provides a kind of data communications method, methods described to include:
Detection power interface whether there is data reception event;
If there is the data reception event, data to be received are received by the power interface;Wherein described power supply The single bus interface of interface and microcontroller connects;
Detect whether that data be present sends event;
Event is sent if there is the data, data to be sent are sent by the power interface.
Preferably, methods described also includes:
Event is sent if there is the data reception event or the data, control charge control components cut off the electricity The charging connection of source interface and battery component;Wherein, the charge control components respectively with the microcontroller and the battery Component connects.
Preferably, it is described if there is the data reception event, packet to be received is received by the power interface Include:
If there is the data reception event, number to be received is received from the power interface using the single bus interface According to;
Described to send event if there is the data, sending data to be sent by the power interface includes:
Event is sent if there is the data, the single bus interface is configured and is used to send data;
The data to be sent transmitted from the single bus interface are sent by the power interface;
If the data to be sent are sent completely, it is original state to reset the single bus interface;Wherein, the list is total The original state of line interface is reception data.
Preferably, it is described if there is the data reception event, packet to be received is received by the power interface Include:
If there is the data reception event, connect by the first interface of the single bus interface from the power interface Receive data to be received;
Described to send event if there is the data, sending data to be sent by the power interface includes:
Event is sent if there is the data, the current state for configuring the first interface is to forbid receiving data, institute The current state for stating the second interface of single bus interface is used to send data for recommending output mode;
The data to be sent transmitted from the second interface are sent by the power interface;
If the data to be sent are sent completely, it is corresponding to reset the first interface and the second interface respectively Original state;Wherein, for the original state of the first interface to receive data, the original state of the second interface is that open-drain is defeated Go out.
The present invention proposes a kind of electronic equipment, including microcontroller, be connected with the microcontroller battery component, with And the power interface being connected respectively with the single bus interface of the microcontroller and the battery component;
The power interface thinks the battery component charging for connecting power supply;
When the microcontroller has data reception event for detecting power interface, received and treated by the power interface Receive data;When detection has data transmission event, pass through the power interface and send data to be sent.
Preferably, in addition to respectively the charge control components being connected with the microcontroller and the battery component;
The power interface connects the battery component by the charge control components, to establish and the battery component Charging connection;
The microcontroller is additionally operable to detect described when the data reception event be present or sending event, is filled described in control Electric control component cuts off the charging connection of the power interface and the battery component.
Preferably, in addition to voltage conversion circuit, the power interface connect the list by the voltage conversion circuit EBI.
Preferably, the voltage conversion circuit includes:Pull-up resistor, metal-oxide-semiconductor, protective resistance;
The first end of the metal-oxide-semiconductor connects the first end of the pull-up resistor;The single bus interface connects described respectively The first end of the first end of metal-oxide-semiconductor and the pull-up resistor;
Second end of the metal-oxide-semiconductor connects the power interface by the protective resistance.
Preferably, the original state that the microcontroller configures the single bus interface is reception data;
It is to be received from power interface reception using the single bus interface when detection has the data reception event Data;
When detection has the data transmission event, configure the single bus interface and be used to send data;Pass through the electricity Source interface sends the data to be sent from single bus interface transmission;Detect the data to be sent to be sent completely, reset institute It is the original state to state single bus interface.
Preferably, the single bus interface includes being connected first interface and second interface with the power interface;
The microcontroller configures the original state of the first interface to receive data, and the original state of second interface is Open-drain output;
When detection has the data reception event, number to be received is received from the power interface using the first interface According to;
When detection has the data transmission event, the current state of the first interface is configured to forbid receiving data, The current state of the second interface is that recommending output mode is used to send data;Sent from described second and connect by the power interface The data to be sent of port transmission;When detecting the data to be sent and being sent completely, the first interface and described are resetted respectively Two interfaces are corresponding original state.
Preferably, in addition to mu balanced circuit, the power interface connect the single bus interface by the mu balanced circuit.
Preferably, the mu balanced circuit includes voltage-regulator diode and electrochemical capacitor;
The first end of the voltage-regulator diode connects the single bus interface and the respectively first end with the electrochemical capacitor And the power interface positive pole connection;
The battery component connects the first end of the electrochemical capacitor and the first end of the voltage-regulator diode respectively;
Second end of the voltage-regulator diode respectively with the second end of the electrochemical capacitor and the negative pole of the power interface Connection.
Compared with prior art, the present invention can be obtained including following technique effect:
The invention provides a kind of data communications method and a kind of electronic equipment, methods described is applied to small volume, only Using battery and specific microcontroller and only retain in power interface electronic equipment, by by the list of power interface and microcontroller The multiplexing of EBI, there is provided a kind of wired communication mode realizes data transfer, in particular by the detection power interface With the presence or absence of data reception event, when detecting the presence of the data reception event, received by the power interface to be received Data.And detect whether that data be present sends event, sends event in the data detecting, is sent out by the power interface Send data to be sent.So as to solve to cause mortality during test is higher to ask due to being only capable of being tested by radio communication Topic, there is provided it is a kind of to be not easy disturbed wired communication mode, the reliability of communication is substantially increased, and improve electronics production Success rate when product communicate.
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 present invention, 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 electrical block diagram of one embodiment of a kind of electronic equipment of the embodiment of the present invention;
Fig. 2 is an electrical block diagram of a kind of electronic equipment of the embodiment of the present invention;
Fig. 3 is another electrical block diagram of a kind of electronic equipment of the embodiment of the present invention;
Fig. 4 is a kind of flow chart of one embodiment of data communications method of the embodiment of the present invention;
Fig. 5 is a kind of structural representation of one embodiment of data communication equipment of the embodiment of the present invention.
Embodiment
Embodiments of the present invention are described in detail below in conjunction with drawings and Examples, and thereby how the present invention is applied Technological means can fully understand and implement according to this to solve technical problem and reach the implementation process of technical effect.
Offer scheme of the present invention is applicable but is not limited to low using STMicw Electronics's Cortex-Mx series monolithics or Nordic The microcontrollers such as power consumption bluetooth serial monolithic and there is no USB (Universal Serial Bus, USB), UART Communication interfaces such as (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiving-transmitting transmitters), makes Only retain the electronic product of power interface with battery powered.Such as motion bracelet, spectacle-type video camera, it is pocket shooting it is first-class will Ask water resistance high, be easy to carry, the electronic product of small volume.
Because the electronic equipment does not retain wired communication interface, it is only capable of entering row data communication by radio communication.But by When radio communication is being carried out, it will usually because the air interference in communication environment influences the stability of data communication.Such as When testing the electronic product, due to 2.4GHz air interference in test workshop be present, or other electronic products without Line disturbs, and so as to influence the stability of test data communication, causes mortality during test higher.
In order to solve due to electronic equipment is only capable of entering row data communication by radio communication when reliability is poor causes to communicate The high technical problem of mortality, inventor have researched and proposed technical scheme by a series of.In the present invention, lead to Cross the multiplexing of the single bus interface by power interface and microcontroller, there is provided a kind of wired communication mode realizes data transfer, It whether there is data reception event in particular by the power interface is detected, when detecting the presence of the data reception event, Data to be received are received by the power interface.And detect the microcontroller and send event with the presence or absence of data, detecting Event is sent to the data be present, data to be sent are sent by the power interface.It is not easy to be done so as to provide one kind The wired communication mode disturbed, substantially increases the reliability of communication, and further increases the success when electronic product communicates Rate.
Technical solution of the present invention is described in detail below in conjunction with accompanying drawing.
Fig. 1 is the structural representation of one embodiment of a kind of electronic equipment provided in an embodiment of the present invention, the equipment bag Include microcontroller 101, the battery component 102 being connected with the microcontroller 101 and respectively with the microcontroller 101 The power interface 103 that single bus interface and the battery component 102 connect.
The power interface 103 thinks that the battery component 102 charges for connecting power supply.
In the present invention, single bus interface realizes the string of power interface by being multiplexed with the power supply supply lines of power interface 103 Mouth function.Now, power interface 103 can charge to battery component 102, and the pinboard that can also turn serial ports by USB connects Connect computer terminal or mobile terminal realizes the communication of data.
Wherein, USB turns the pinboard of serial ports and electronic equipment power source interface 103 of the present invention matches, it is possible to achieve The serial data of the single bus interface transmission of electronic equipment, which is converted to, can transmit the USB numbers for treating computer terminal or mobile terminal According to.
When the microcontroller 101 has data reception event for detecting the power interface 103, pass through the power supply Interface 103 receives data to be received;When detection has data transmission event, number to be sent is sent by the power interface 103 According to.
The single bus interface of the microcontroller 101 is usually arranged as data receiving state, when detecting that power interface 103 deposits In data reception event, you can receive data to be received by the power interface 103.In order to ensure the number of the electronic equipment According to communication, it is necessary to which task dispatcher in electronic equipment detection method, detects the power interface 103 using time-sharing polling With the presence or absence of data reception event.If there is data reception event, then the data reception event is handled.
In the present invention, when the electronic equipment needs to send data by single bus interface, single bus interface tune can be generated With instruction, microcontroller 101 can determine whether to exist data according to the single bus interface call instruction and send event, at the same by with The power interface 103 of single bus interface connection sends data, so as to complete data communication.
In the embodiment of the present invention, by by the multiplexing of power interface and the single bus interface of microcontroller, there is provided a kind of Wired communication mode realizes data transfer, so as to solve to cause mistake during test due to being only capable of being tested by radio communication Lose the problem of rate is higher, there is provided it is a kind of to be not easy disturbed wired communication mode, the reliability of communication is substantially increased, enters one Step improves success rate during electronic product communication.
During actual data communication, power interface 103 can be while row data communication be entered to battery component 102 Charged, be not disturbed, can also be cut off to power interface 103 to battery component 102 of course for ensureing that data communicate Charging, after the completion of data communication, then recover the charging to battery component 102.
In order to realize the control charged to battery component 102, in certain embodiments, the electronic equipment can also wrap Include the charge control components being connected respectively with microcontroller 102 and the battery component 102;Power interface 103 passes through charging Control assembly connects battery component 102, to establish the charging connection with battery component 102;
Microcontroller 101 be additionally operable to detect power interface 103 exist data reception event or send event when, control charging Control assembly is cut off the electricity supply the charging connection of interface 103 and battery component 102.
In the embodiment of the present invention, when entering row data communication by power interface, pass through microprocessor control charge control Component is cut off the electricity supply the charging connection of interface and the battery component, you can ensures the data transmitted when entering row data communication not It can be disturbed by charging current, the reliability and stability of data communication can be greatly improved.
In actual applications, voltage when power interface 103 connects the charging device of outside is usually 5v, and microcontroller The voltage of 101 GPIO interface is usually 3.3V, it is necessary to set voltage conversion circuit to ensure the single bus interface and power interface During 103 connection, the voltage at single bus interface can maintain 3.3V.Therefore one embodiment is used as, the electronic equipment may be used also To connect the single bus interface by the voltage conversion circuit including voltage conversion circuit, the power interface 103.
In the present invention, voltage conversion circuit can include:Pull-up resistor, metal-oxide-semiconductor, protective resistance;Wherein, the metal-oxide-semiconductor can To be (N-Mosefet, N-type Metal-oxide-semicondutor).
The first end of the metal-oxide-semiconductor connects the first end of the pull-up resistor;Single bus interface connects the metal-oxide-semiconductor respectively The first end of first end and the pull-up resistor;
Second end of metal-oxide-semiconductor connects the power interface by protective resistance.
In actual applications, when the input voltage of power interface 103 is 5V power supplys or 5V signals are ' 1 ', VGS (supervise by video Control running guarantee system, Video Guarantee System) it is less than threshold value, the metal-oxide-semiconductor is not turned on, and single bus interface is kept The upper pull-up voltages of 3.3V, it is ' 1 ';When single bus interface output is ' 1 ', VGS is less than threshold value, and the metal-oxide-semiconductor is not turned on, power interface 103 voltage is 5V power supplys or 5V signals ' 1 ', i.e., when power interface 103 is charged or carried out data transmission to microcontroller The upper electric protection of device 101 so that the voltage of single bus interface may remain in 3.3V.
In order to carry out charge protection to battery component 102, as one embodiment, the electronic equipment also includes voltage stabilizing electricity Road, power interface 103 connect the single bus interface by mu balanced circuit.
In the present embodiment, the mu balanced circuit can include voltage-regulator diode and electrochemical capacitor.
Wherein, electrochemical capacitor has filter action, and there is voltage-regulator diode overcurrent protection effect to ensure the voltage of output It is maintained at stable state.
The first end of the voltage-regulator diode connects the single bus interface and the respectively first end with the electrochemical capacitor It is connected with the power interface positive pole;
The battery component 102 connects the first end of the electrochemical capacitor and the first end of the voltage-regulator diode respectively;
Second end of the voltage-regulator diode is negative with the second end of the electrochemical capacitor and the power interface 103 respectively Pole connects.
Electronic equipment utilizes GPIO (the General Purpose Input of microcontroller in being sent out due to the present invention Output, universal input/output) characteristic, the serial ports output of single bus interface is realized, therefore be applicable but be not limited to using meaning method half The microcontroller such as conductor Cortex-Mx series monolithics or Nordic low-power consumption bluetooth series monolithics.
In actual use, when the magnitude of voltage of power interface 103 is different from the magnitude of voltage of the GPIO interface of the microcontroller When, need to set voltage conversion circuit between single bus interface and power interface 103, now voltage conversion circuit is to pass through voltage stabilizing Circuit is connected with power interface, and in the embodiment of the present invention, the equipment also includes mu balanced circuit and voltage conversion circuit.
Wherein, the voltage conversion circuit includes:Pull-up resistor, metal-oxide-semiconductor, protective resistance;The mu balanced circuit includes steady Press diode and electrochemical capacitor.
The first end of the metal-oxide-semiconductor connects the first end of the pull-up resistor;The single bus interface connects described respectively The first end of the first end of metal-oxide-semiconductor and the pull-up resistor;
Second end of the metal-oxide-semiconductor connects the first end of the voltage-regulator diode by the protective resistance;
The first end of the voltage-regulator diode connect the first end of the protective resistance and respectively with the electrochemical capacitor First end and the connection of the positive pole of the power interface 103;
The battery component 102 connects the first end of the electrochemical capacitor and the first end of the voltage-regulator diode respectively;
Second end of the voltage-regulator diode is negative with the second end of the electrochemical capacitor and the power interface 103 respectively Pole connects.
In the present embodiment, the annexation of voltage conversion circuit is also add in addition to mu balanced circuit is increased, there is provided more The multiplex circuit of complete single bus interface.As one embodiment of the invention, the electronic equipment can be used with work( The Nordic low-power consumption bluetooth series monolithics or other similar single-chip microcomputers that energy pin can be arbitrarily multiplexed are as microcontroller 101。
Now, the single bus interface includes single bus interface;The single bus interface connects with the power interface 103 Connect;The original state that the microcontroller 101 configures the single bus interface is reception data;
It is understood that because the functional pin of the microcontroller 101 has the characteristic of any multiplexing, the monobus connects Mouth can be any functional pin of the microcontroller 101, by regarding the multiplexing of any functional pin as I/O (input/output) Interface, and the I/O interfaces are connected as single bus interface with power interface 103 and realize that data communicate.
When the microcontroller 101 detects the power interface 103 and the data reception event be present, pass through the power supply Interface 103 receives data to be received:When detecting the power interface 103 and the data reception event be present, institute is utilized State single bus interface and receive data to be received from the power interface 103.
Because the original state of single bus interface is configured to receive data mode, therefore, detecting that power interface 103 deposits The data to be received are received in data reception event.In order to realize the data sending function of single bus interface, the detection When the microcontroller 101 has the data transmission event, data to be sent are sent by the power interface 103 and specifically may be used To be:When detecting the microcontroller 101 and the data be present and send event, configure the single bus interface and be used to send number According to;The data to be sent transmitted from the single bus interface are sent by the power interface 103;Detect the data to be sent It is sent completely, it is the original state to reset the single bus interface.
Exemplified by microcontroller 101 using Nordic NRF51822 series monolithics as the electronic equipment, Fig. 2 be based on The electrical block diagram of Nordic NRF51822 series monolithics.
In the Fig. 2, electrochemical capacitor C1 and voltage-regulator diode D1 form mu balanced circuit, metal-oxide-semiconductor Q1, protective resistance R1 and on Pull-up resistor R2 forms voltage conversion circuit.Pull-up resistor R2 is connected with single bus interface P0.20 and metal-oxide-semiconductor, pull-up resistor R2 Power-on voltage is 3.3V.
Wherein, charge control components or battery component 102 can with electrochemical capacitor C1, power interface J1 positive pole JI.2 and Voltage-regulator diode D1 connections, are filtered by mu balanced circuit to electric current and voltage stabilizing protects charging voltage and is maintained at 5V.In Fig. 2 Other electronic building bricks are the peripheral circuit of the microcontroller 101, be will not be repeated here.
The P0.20 pins that the microcontroller 101 is configured by initialization program are single bus interface, are often in reception data State, P0.21 pins are often in transmission data mode.But in actual connection, P0.21 pins are idle state, not with power supply Interface J1 connections, data mode is received so as to ensure that single bus interface is in.
When the microcontroller 101 needs to send data to be sent, P0.20 and P0.21 pins are replaced by configurator Function, also i.e. by P0.20 be configured to send data mode, P0.21 configuration receive data mode, now single bus interface for hair Data mode is sent, ensure that single bus interface is in and send data mode.After judging that data to be sent are sent completely, resetting should P0.20 and P0.21 GPIO functions so that single bus interface is in the original state for receiving data.
In the embodiment of the present invention, by the way that any functional interface of microcontroller is multiplexed with input/output function I/O interfaces configure the init state of the single bus interface to receive data as the single bus interface, and by configurator State, so that the single bus interface can receive the data to be received, when detecting that microcontroller has data and send thing During part, single bus interface is configured to send data mode by configurator, you can number to be sent is realized by single bus interface According to transmission.So as to which the data to be sent to be sent to computer terminal or mobile terminal to the biography for realizing data by power interface It is defeated.I/O interfaces can be multiplexed with by using the functional pin of the microcontroller, can not only greatly save the electronic equipment Design cost, circuit design is simplified, while realize the data transfer of wire communication, improved when the electronic product communicates Success rate.
From the foregoing, as one embodiment of the invention, the electronic equipment can also use can be with GPIO It is configured to the STMicw Electronics Cortex-Mx series monolithic of the characteristic of open-drain output and recommending output mode or other similar single-chip microcomputers As microcontroller 101.
Now the single bus interface includes first interface and second interface;The first interface and second interface with it is described Power interface 103 connects;The original state that the microcontroller 101 configures the first interface is reception data, second interface Original state be open-drain output.
It is understood that the first interface and the GPIO interface that second interface is the microcontroller 101 in the present embodiment, In order to ensure the original state of the single bus interface to receive data mode.The original state for configuring first interface is reception number According to the original state for configuring second interface is open-drain output.Now, second interface is off-state, exports high level signal ' 1 ', so as to avoid influence first interface from receiving the function of the data to be received.
When the microcontroller 101 detects the power interface 103 and the data reception event be present, pass through the power supply Interface 103 receives data to be received:When detecting the power interface 103 and the data reception event be present, profit With the second interface data to be received are received from the power interface 103.
The data to be received are received when detecting that power interface 103 has data reception event.It is single total in order to realize The data sending function of line interface, when the detection microcontroller 101 has the data transmission event, pass through the electricity Source interface 103 sends data to be sent:When detecting the microcontroller 101 and the data be present and send event, configuration To forbid receiving data, the current state of the second interface is used to send the current state of the first interface for recommending output mode Data;The data to be sent transmitted from the second interface are sent by the power interface 103;Detect the data to be sent When being sent completely, it is corresponding original state to reset the first interface and the second interface respectively.
Exemplified by microcontroller 102 using STM32 series monolithics as the electronic equipment, Fig. 3 is single based on STM32 series The electrical block diagram of piece machine.
In the Fig. 3, electrochemical capacitor C1 and voltage-regulator diode D1 form mu balanced circuit, metal-oxide-semiconductor Q1, protective resistance R1 and on Pull-up resistor R2 forms voltage conversion circuit.Pull-up resistor R2 is connected with single bus interface PA9, PA10 and metal-oxide-semiconductor, the pull-up resistor R2 power-on voltages are 3.3V.
Wherein charge control components or battery component 102 can be with electrochemical capacitor C1, power interface JI positive poles and voltage stabilizings two Pole pipe D1 connections, are filtered by mu balanced circuit to electric current and voltage stabilizing protects charging voltage and is maintained at 5V.Other electricity in Fig. 4 Sub-component forms the peripheral circuit of the microcontroller 101, will not be repeated here.
The PA10 pins that the microcontroller 101 configures the microcontroller by initialization program are first interface, are often in Data mode is received, because the GPIO interface of STM32 series monolithics is configurable to the characteristic of open-drain output and recommending output mode, Configuration PA9 pins are that second interface is often in open-drain output state.Now, PA9 pins are in blank state, therefore second interface For off-state output ' 1 ', data to be received are received by PA10, data mode is received so as to ensure that single bus interface is in.
When the microcontroller 101 needs to send data to be sent, forbid PA10 reception data work(by configurator Can, and it is recommending output mode state to configure PA9, now second interface sends the number to be sent to send data mode by PA9 According to.After judging that data to be sent are sent completely, the PA9 and PA10 GPIO functions are resetted so that single bus interface, which is in, to be connect Receive the original state of data.
In the embodiment of the present invention, by the way that the GPIO pin of microcontroller could be arranged into open-drain output and recommending output mode Characteristic, and the init state of the first interface is configured to receive data mode, the initialization of second interface by configurator State is open-drain output state, so that the first interface can receive the data to be received.When detecting that microcontroller deposits When data send event, it is to forbid sending data mode to configure first interface by configurator, and second interface is defeated to recommend Do well, you can the transmission of data to be sent is realized by second interface.It is achieved thereby that data communicate, can not only save significantly The design cost of the electronic equipment is saved, simplifies circuit design, while realizes the data transfer of wire communication, improves the electricity Success rate during sub- product communication.
Fig. 4 is a kind of flow chart of one embodiment of data communications method provided in an embodiment of the present invention, and this method should For electronic equipment, the electronic equipment includes housing, the microcontroller that is installed in housing, and be installed on surface of shell with it is micro- The power interface of the single bus interface connection of controller.
This method can include:
401:Detection power interface whether there is data reception event.
402:If there is the data reception event, data to be received are received by the power interface.
In the present invention, single bus interface realizes the serial ports work(of power interface by being multiplexed with the power supply supply lines of power interface Energy.Now, power interface can charge to supplying cell, can also turn the pinboard connection computer terminal of serial ports by USB Or mobile terminal realizes the communication of data.
Wherein, USB turns the pinboard of serial ports and electronic equipment power source interface of the present invention matches, it is possible to achieve electronics The serial data of the single bus interface transmission of equipment, which is converted to, can transmit the usb data for treating computer terminal or mobile terminal.
The single bus interface of the microcontroller is usually arranged as data receiving state, when detecting that power interface has data During reception event, you can receive data to be received by the power interface.Communicate, need in order to ensure the data of the electronic equipment Task dispatcher that will be in electronic equipment detection method, detects the power interface and whether there is data using time-sharing polling Reception event.If there is data reception event, then the data reception event is handled.
When single bus interface receives the data to be received, an interrupt instruction can be produced so as to interrupt background program Operation operation, after microcontroller receives interrupt processing, by interrupt processing function notify backstage perform corresponding processing operation and The operation operation of background program is continued executing with after the completion of data reception event processing.
Because the data of power interface transmission are to be transmitted as electronic signals, therefore can be according to power interface Level change carries out judging that power interface whether there is data reception event.If the level change for detecting the power interface is Predetermined level state, then it may determine that the power interface has data reception event.
Wherein, the predetermined level state can be set according to the serial communication protocol of electronic equipment in practical application, example Such as, predetermined level variable condition includes start bit and stop bits, is respectively ' 11100101 ' and ' 01110010 ', when detecting electricity When the level state change of source interface turns to ' 11100101 ' ' 01110010 ', you can determine that the power interface has correct data Reception event.Wherein, ' 1 ' high level is represented, ' 0 ' represents low level.
403:Detect whether that data be present sends event.
404:Event is sent if there is the data, data to be sent are sent by the power interface.
In the present invention, when the electronic equipment needs to send data by single bus interface, single bus interface tune can be generated With instruction, microcontroller can determine whether to exist data according to the single bus interface call instruction and send event, at the same by with this The power interface of single bus interface connection sends data, so as to complete data communication.
In the embodiment of the present invention, by the way that the single bus interface of power interface and microcontroller is multiplexed, there is provided Yi Zhongyou Line communication mode realizes data transfer, is only capable of being tested by radio communication during causing test so as to solve electronic equipment The problem of mortality is higher, there is provided it is a kind of to be not easy disturbed wired communication mode, the reliability of communication is substantially increased, is entered One step improves success rate during electronic product communication.
During actual data communication, power interface can fill while row data communication is entered to battery component Electricity, it is not disturbed of course for ensureing that data communicate, can also cut off the electricity supply charging of the interface to battery component, be communicated in data After the completion of, then recover the charging to battery component.
In order to realize the control charged to battery component, in the embodiment of the present invention, the electronic equipment also includes difference The charge control components being connected with the microcontroller and the battery component;The power interface passes through the charge control Component connects the battery component, to establish the charging connection with the battery component.
This method also includes:
Event is sent if there is the data reception event or the data, control charge control components cut off the electricity The charging connection of source interface and battery component;Wherein, the charge control components respectively with microcontroller and the battery component Connection.
In the embodiment of the present invention, when entering row data communication by power interface, pass through microprocessor control charge control Component is cut off the electricity supply the charging connection of interface and the battery component, you can ensures the data transmitted when entering row data communication not It can be disturbed by charging current, the reliability and stability of data communication can be greatly improved.
Electronic equipment utilizes GPIO (universal input/output) characteristic of microcontroller in being sent out due to the present invention, realizes single total The serial ports output of line interface, therefore be applicable but be not limited to low using STMicw Electronics's Cortex-Mx series monolithics or Nordic The microcontrollers such as power consumption bluetooth serial monolithic.
As one embodiment of the invention, the electronic equipment can use what can arbitrarily be multiplexed with functional pin Nordic low-power consumption bluetooth series monolithics or other similar single-chip microcomputers are as microcontroller.
Now, the single bus interface is connected with the power interface;The microcontroller configures the initial of single bus interface State is reception data.
It is understood that because the functional pin of the microcontroller has the characteristic of any multiplexing, the single bus interface Can be any functional pin of the microcontroller, by the way that any functional pin is multiplexed as I/O (input/output) interface, And the I/O interfaces are connected as single bus interface with power interface and realize that data communicate.
It is described if there is the data reception event, receiving data to be received by the power interface can include:
If there is the data reception event, number to be received is received from the power interface using the single bus interface According to.
Because the original state of single bus interface is configured to receive data mode, therefore, power interface presence is being detected The data to be received are received during data reception event.In order to realize the data sending function of single bus interface, if the institute State microcontroller and the data transmission event be present, sending data to be sent by the power interface can include:
Event is sent if there is the data, the single bus interface is configured and is used to send data;
The data to be sent transmitted from the single bus interface are sent by the power interface;
If the data to be sent are sent completely, it is the original state to reset the single bus interface.
Reset the original state of the single bus interface so that the single bus interface can continue to detect data reception event.
In the embodiment of the present invention, by the way that any functional interface of microcontroller is multiplexed with input/output function I/O interfaces configure the init state of the single bus interface to receive data as the single bus interface, and by configurator State, so that the single bus interface can receive the data to be received, when detecting that microcontroller has data and send thing During part, single bus interface is configured to send data mode by configurator, you can number to be sent is realized by single bus interface According to transmission.So as to which the data to be sent to be sent to computer terminal or mobile terminal to the biography for realizing data by power interface It is defeated.I/O interfaces can be multiplexed with by using the functional pin of the microcontroller, can not only greatly save the electronic equipment Design cost, circuit design is simplified, while realize the data transfer of wire communication, improved when the electronic product communicates Success rate.
From the foregoing, as one embodiment of the invention, the electronic equipment can also use can be with GPIO It is configured to the STMicw Electronics Cortex-Mx series monolithic of the characteristic of open-drain output and recommending output mode or other similar single-chip microcomputers As microcontroller.
Now the single bus interface in the electronic equipment can include first interface and second interface;The first interface and The second interface is connected with the power interface;The original state that the microcontroller configures the first interface is reception number According to the original state of the second interface is open-drain output.
It is understood that the first interface and the GPIO interface that second interface is the microcontroller in the present embodiment, are Ensure the original state of the single bus interface to receive data mode.The original state of first interface is configured to receive data, The original state for configuring second interface is open-drain output.Now, second interface is off-state, exports high level signal ' 1 ', from And it can avoid influenceing the function that first interface receives the data to be received.
It is described if there is the data reception event, receiving data to be received by the power interface includes:
If there is the data reception event, connect by the first interface of the single bus interface from the power interface Receive data to be received.
The data to be received are received when detecting the presence of data reception event.In order to realize the data of single bus interface Sending function, described to send event if there is the data, sending data to be sent by the power interface can include:
Event is sent if there is the data, the current state for configuring the first interface is to forbid receiving data, institute The current state for stating the second interface of single bus interface is used to send data for recommending output mode;
The data to be sent transmitted from the second interface are sent by the power interface;
Now, the current state of first interface is arranged to forbid the state for receiving data, therefore can avoid sending The interference of data communication is caused because first interface receives data during data, while the current state for configuring second interface is to recommend During output state, there is the second interface and send data function and connect the second interface and power interface, complete to be sent The transmission of data.
If the data to be sent are sent completely, it is corresponding to reset the first interface and the second interface respectively Original state.
It is respectively corresponding original state to reset the first interface and second interface so that the single bus interface is reception number It can continue to detect data reception event according to state.
In the embodiment of the present invention, by the way that the GPIO pin of microcontroller could be arranged into open-drain output and recommending output mode Characteristic, and the init state of the first interface is configured to receive data mode, the initialization of second interface by configurator State is open-drain output state, so that the first interface can receive the data to be received.When detecting that microcontroller deposits When data send event, it is to forbid sending data mode to configure first interface by configurator, and second interface is defeated to recommend Do well, you can the transmission of data to be sent is realized by second interface.It is achieved thereby that data communicate, can not only save significantly The design cost of the electronic equipment is saved, simplifies circuit design, while realizes the data transfer of wire communication, improves the electricity Success rate during sub- product communication.
Fig. 5 is a kind of structural representation of one embodiment of data communication equipment provided in an embodiment of the present invention, the device Applied to electronic equipment, the electronic equipment includes housing, the microcontroller that is installed in housing, and be installed on surface of shell with The power interface of the single bus interface connection of microcontroller.
The device can include:
First detection module 501, it whether there is data reception event for detecting the power interface.
Data module 502 is received, for if there is the data reception event, being received by the power interface waiting Receive data.
In the present invention, single bus interface realizes the serial ports work(of power interface by being multiplexed with the power supply supply lines of power interface Energy.Now, power interface can charge to supplying cell, can also turn the pinboard connection computer terminal of serial ports by USB Or mobile terminal realizes the communication of data.
Wherein, USB turns the pinboard of serial ports and electronic equipment power source interface of the present invention matches, it is possible to achieve electronics The serial data of the single bus interface transmission of equipment, which is converted to, can transmit the usb data for treating computer terminal or mobile terminal.
The single bus interface of the microcontroller is usually arranged as data receiving state, when detecting that power interface has data During reception event, you can receive data to be received by the power interface.Communicate, need in order to ensure the data of the electronic equipment Task dispatcher that will be in electronic equipment detection method, detects the power interface and whether there is data using time-sharing polling Reception event.If there is data reception event, then the data reception event is handled.
Second detection module 503, for detecting whether data be present sends event.
Data module 504 is sent, for sending event if there is the data, is sent by the power interface pending Send data.
In the present invention, when the electronic equipment needs to send data by single bus interface, single bus interface tune can be generated With instruction, microcontroller can determine whether to exist data according to the single bus interface call instruction and send event, at the same by with this The power interface of single bus interface connection sends data, so as to complete data communication.
In the embodiment of the present invention, by by the multiplexing of power interface and the single bus interface of microcontroller, there is provided a kind of Wired communication mode realizes data transfer, when being only capable of being tested by radio communication to cause test so as to solve electronic equipment Mortality it is higher the problem of, there is provided it is a kind of to be not easy disturbed wired communication mode, substantially increase the reliability of communication, Further increase success rate during electronic product communication.
During actual data communication, power interface can fill while row data communication is entered to battery component Electricity, it is not disturbed of course for ensureing that data communicate, can also cuts off to charging of the power interface to battery component, lead in data After the completion of letter, then recover the charging to supplying cell.
In order to realize the control charged to battery component, in the embodiment of the present invention, the electronic equipment also includes difference The charge control components being connected with the microcontroller and the battery component;The power interface passes through the charge control Component connects the battery component, to establish the charging connection with the battery component.
The device also includes:
Control module, if the data reception event or data transmission event be present for described, control the charging Control assembly cuts off the charging connection of the power interface and the battery component.
In the embodiment of the present invention, when entering row data communication by power interface, pass through microprocessor control charge control Component is cut off the electricity supply the charging connection of interface and the battery component, you can ensures the data transmitted when entering row data communication not It can be disturbed by charging current, the reliability and stability of data communication can be greatly improved.
Electronic equipment utilizes GPIO (universal input/output) characteristic of microcontroller in being sent out due to the present invention, realizes single total The serial ports output of line interface, therefore be applicable but be not limited to low using STMicw Electronics's Cortex-Mx series monolithics or Nordic The microcontrollers such as power consumption bluetooth serial monolithic.
As one embodiment of the invention, the electronic equipment can use what can arbitrarily be multiplexed with functional pin Nordic low-power consumption bluetooth series monolithics or other similar single-chip microcomputers are as microcontroller.
Now, the single bus interface is connected with the power interface;The microcontroller configures single bus interface initial shape State is reception data.
It is understood that because the functional pin of the microcontroller has the characteristic of any multiplexing, the single bus interface Can be any functional pin of the microcontroller, by the way that any functional pin is multiplexed as I/O (input/output) interface, And the I/O interfaces are connected as single bus interface with power interface and realize that data communicate.
The reception data module 502 specifically can be used for:
It is waiting from power interface reception using the single bus interface if described have the data reception event Receive data.
Because the original state of single bus interface is configured to receive data mode, therefore, power interface presence is being detected The data to be received are received during data reception event.In order to realize the data sending function of single bus interface, the transmission number Specifically it can be used for according to module 504:
Event is sent if there is the data, the single bus interface is configured and is used to send data;
The data to be sent transmitted from the single bus interface are sent by the power interface;
If the data to be sent are sent completely, it is the original state to reset the single bus interface.
Reset the original state of the single bus interface so that the single bus interface can continue to detect data reception event.
In the embodiment of the present invention, by the way that any functional interface of microcontroller is multiplexed with input/output function I/O interfaces configure the init state of the single bus interface to receive data as the single bus interface, and by configurator State, so that the single bus interface can receive the data to be received, when detecting that microcontroller has data and send thing During part, single bus interface is configured to send data mode by configurator, you can number to be sent is realized by single bus interface According to transmission.So as to which the data to be sent to be sent to computer terminal or mobile terminal to the biography for realizing data by power interface It is defeated.I/O interfaces can be multiplexed with by using the functional pin of the microcontroller, can not only greatly save the electronic equipment Design cost, circuit design is simplified, while realize the data transfer of wire communication, improved when the electronic product communicates Success rate.
From the foregoing, as one embodiment of the invention, the electronic equipment can also use can be with GPIO It is configured to the STMicw Electronics Cortex-Mx series monolithic of the characteristic of open-drain output and recommending output mode or other similar single-chip microcomputers As microcontroller.
Now the single bus interface in the electronic equipment can include first interface and second interface;The first interface and The second interface is connected with the power interface;The original state that the microcontroller configures the first interface is reception number According to the original state of the second interface is open-drain output.
It is understood that the first interface and the GPIO interface that second interface is the microcontroller in the present embodiment, are Ensure the original state of the single bus interface to receive data mode.The original state of first interface is configured to receive data, The original state for configuring second interface is open-drain output.Now, second interface is off-state, exports high level signal ' 1 ', from And it can avoid influenceing the function that first interface receives the data to be received.
The reception data module 502 specifically can be used for:
If there is the data reception event, connect using the first interface of the single bus interface from the power interface Receive data to be received.
The data to be received are received when detecting the presence of data reception event.In order to realize the data of single bus interface Sending function, the transmission data module specifically can be used for:
Event is sent if there is the data, the current state for configuring the first interface is to forbid receiving data, institute The current state for stating the second interface of single bus interface is used to send data for recommending output mode;
The data to be sent transmitted from the second interface are sent by the power interface;
Now, the current state of first interface is arranged to forbid the state for receiving data, therefore can avoid sending The interference of data communication is caused because first interface receives data during data, while the current state for configuring second interface is to recommend During output state, there is the second interface and send data function and connect the second interface and power interface, complete to be sent The transmission of data.
If the data to be sent are sent completely, it is corresponding to reset the first interface and the second interface respectively Original state.
It is respectively corresponding original state to reset the first interface and second interface so that the single bus interface is reception number It can continue to detect data reception event according to state.
In the embodiment of the present invention, by the way that the GPIO pin of microcontroller could be arranged into open-drain output and recommending output mode Characteristic, and the init state of the first interface is configured to receive data mode, the initialization of second interface by configurator State is open-drain output state, so that the first interface can receive the data to be received.When detecting that microcontroller deposits When data send event, it is to forbid sending data mode to configure first interface by configurator, and second interface is defeated to recommend Do well, you can the transmission of data to be sent is realized by second interface.It is achieved thereby that data communicate, can not only save significantly The design cost of the electronic equipment is saved, simplifies circuit design, while realizes the data transfer of wire communication, improves the electricity Success rate during sub- product communication.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
Some vocabulary has such as been used to censure specific components among specification and claim.Those skilled in the art should It is understood that hardware manufacturer may call same component with different nouns.This specification and claims are not with name The difference of title is used as the mode for distinguishing component, but is used as the criterion of differentiation with the difference of component functionally.Such as logical The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit In "." substantially " refer in receivable error range, those skilled in the art can be described within a certain error range solution Technical problem, basically reach the technique effect.In addition, " coupling " one word is herein comprising any direct and indirect electric property coupling Means.Therefore, if the first device of described in the text one is coupled to a second device, representing the first device can directly electrical coupling The second device is connected to, or the second device is electrically coupled to indirectly by other devices or coupling means.Specification Subsequent descriptions for implement the present invention better embodiment, so it is described description be by illustrate the present invention rule for the purpose of, It is not limited to the scope of the present invention.Protection scope of the present invention is worked as to be defined depending on appended claims institute defender.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising, so that commodity or system including a series of elements not only include those key elements, but also including without clear and definite The other element listed, or also include for this commodity or the intrinsic key element of system.In the feelings not limited more Under condition, the key element that is limited by sentence "including a ...", it is not excluded that in the commodity including the key element or system also Other identical element be present
Some preferred embodiments of the present invention have shown and described in described above, but as previously described, it should be understood that the present invention Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and available for various other combinations, Modification and environment, and above-mentioned teaching or the technology or knowledge of association area can be passed through in application contemplated scope described herein It is modified., then all should be in this hair and the change and change that those skilled in the art are carried out do not depart from the spirit and scope of the present invention In the protection domain of bright appended claims.

Claims (12)

1. a kind of data communications method, it is characterised in that methods described includes:
Detection power interface whether there is data reception event;
If there is the data reception event, data to be received are received by the power interface;Wherein described power interface It is connected with the single bus interface of microcontroller;
Detect whether that data be present sends event;
Event is sent if there is the data, data to be sent are sent by the power interface.
2. according to the method for claim 1, it is characterised in that methods described also includes:
Event is sent if there is the data reception event or the data, control charge control components cut off the power supply and connect The charging connection of mouth and battery component;Wherein, the charge control components respectively with the microcontroller and the battery component Connection.
3. according to the method for claim 1, it is characterised in that
It is described if there is the data reception event, receiving data to be received by the power interface includes:
If there is the data reception event, data to be received are received from the power interface using the single bus interface;
Described to send event if there is the data, sending data to be sent by the power interface includes:
Event is sent if there is the data, the single bus interface is configured and is used to send data;
The data to be sent transmitted from the single bus interface are sent by the power interface;
If the data to be sent are sent completely, it is original state to reset the single bus interface;Wherein, the monobus connects The original state of mouth is reception data.
4. according to the method for claim 1, it is characterised in that it is described if there is the data reception event, pass through institute Stating power interface reception data to be received includes:
If there is the data reception event, received and treated from the power interface by the first interface of the single bus interface Receive data;
Described to send event if there is the data, sending data to be sent by the power interface includes:
Event is sent if there is the data, the current state for configuring the first interface is to forbid receiving data, the list The current state of the second interface of EBI is that recommending output mode is used to send data;
The data to be sent transmitted from the second interface are sent by the power interface;
If the data to be sent are sent completely, it is initial for corresponding to that the first interface and the second interface are resetted respectively State;Wherein, for the original state of the first interface to receive data, the original state of the second interface is open-drain output.
5. a kind of electronic equipment, it is characterised in that the battery component that is connected including microcontroller, with the microcontroller and The power interface being connected respectively with the single bus interface of the microcontroller and the battery component;
The power interface thinks the battery component charging for connecting power supply;
When the microcontroller has data reception event for detecting power interface, received by the power interface to be received Data;When detection has data transmission event, pass through the power interface and send data to be sent.
6. equipment according to claim 5, it is characterised in that also include respectively with the microcontroller and the battery The charge control components of component connection;
The power interface connects the battery component by the charge control components, is filled with establishing with the battery component Electrical connection;
The microcontroller is additionally operable to detect described when the data reception event be present or sending event, controls the charging control Component processed cuts off the charging connection of the power interface and the battery component.
7. equipment according to claim 5, it is characterised in that also pass through including voltage conversion circuit, the power interface The voltage conversion circuit connects the single bus interface.
8. equipment according to claim 7, it is characterised in that the voltage conversion circuit includes:Pull-up resistor, metal-oxide-semiconductor, Protective resistance;
The first end of the metal-oxide-semiconductor connects the first end of the pull-up resistor;The single bus interface connects the metal-oxide-semiconductor respectively First end and the pull-up resistor first end;
Second end of the metal-oxide-semiconductor connects the power interface by the protective resistance.
9. equipment according to claim 5, it is characterised in that
The original state that the microcontroller configures the single bus interface is reception data;
When detection has the data reception event, number to be received is received from the power interface using the single bus interface According to;
When detection has the data transmission event, configure the single bus interface and be used to send data;Connect by the power supply Mouth sends the data to be sent from single bus interface transmission;Detect the data to be sent to be sent completely, reset the list EBI is the original state.
10. equipment according to claim 5, it is characterised in that the single bus interface includes connecting with the power interface The first interface and second interface connect;
The microcontroller configures the original state of the first interface to receive data, and the original state of second interface is open-drain Output;
When detection has the data reception event, data to be received are received from the power interface using the first interface;
When detection has the data transmission event, the current state of the first interface is configured to forbid receiving data, it is described The current state of second interface is that recommending output mode is used to send data;Sent from the second interface and passed by the power interface Defeated data to be sent;When detecting the data to be sent and being sent completely, the first interface is resetted respectively and described second is connect Mouth is corresponding original state.
11. equipment according to claim 5, it is characterised in that also pass through described including mu balanced circuit, the power interface Mu balanced circuit connects the single bus interface.
12. equipment according to claim 11, it is characterised in that the mu balanced circuit includes voltage-regulator diode and electrolysis electricity Hold;
The first end of the voltage-regulator diode connects the single bus interface and the respectively first end with the electrochemical capacitor and institute State the connection of power interface positive pole;
The battery component connects the first end of the electrochemical capacitor and the first end of the voltage-regulator diode respectively;
Second end of the voltage-regulator diode is connected with the second end of the electrochemical capacitor and the negative pole of the power interface respectively.
CN201710881572.9A 2017-09-26 2017-09-26 Data communication method and electronic equipment Active CN107678995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710881572.9A CN107678995B (en) 2017-09-26 2017-09-26 Data communication method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710881572.9A CN107678995B (en) 2017-09-26 2017-09-26 Data communication method and electronic equipment

Publications (2)

Publication Number Publication Date
CN107678995A true CN107678995A (en) 2018-02-09
CN107678995B CN107678995B (en) 2024-04-02

Family

ID=61137147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710881572.9A Active CN107678995B (en) 2017-09-26 2017-09-26 Data communication method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107678995B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116701289A (en) * 2022-09-15 2023-09-05 荣耀终端有限公司 Communication method and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820372A (en) * 2010-03-17 2010-09-01 浙江大学 TDM (Time Division Multiplexing) single-bus communication system of power supply, data signals and audio analog signals
CN102289420A (en) * 2011-06-28 2011-12-21 电子科技大学 Simple single-bus interface conversion circuit and data acquisition system adopting same
CN202196398U (en) * 2011-07-13 2012-04-18 青岛海信移动通信技术股份有限公司 Power supply managing circuit of charging/ communication multiplex interface and digital electronic product
CN103684943A (en) * 2012-09-02 2014-03-26 刘新丽 Bus system with power supply transmission and data communication functions
CN205212860U (en) * 2015-12-23 2016-05-04 上海神开石油化工装备股份有限公司 Single bus communication module
CN205829202U (en) * 2016-04-26 2016-12-21 广州同明太阳能科技有限公司 A kind of power supply is powered and serial communication multiplex circuit
CN208188729U (en) * 2017-09-26 2018-12-04 歌尔科技有限公司 Electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820372A (en) * 2010-03-17 2010-09-01 浙江大学 TDM (Time Division Multiplexing) single-bus communication system of power supply, data signals and audio analog signals
CN102289420A (en) * 2011-06-28 2011-12-21 电子科技大学 Simple single-bus interface conversion circuit and data acquisition system adopting same
CN202196398U (en) * 2011-07-13 2012-04-18 青岛海信移动通信技术股份有限公司 Power supply managing circuit of charging/ communication multiplex interface and digital electronic product
CN103684943A (en) * 2012-09-02 2014-03-26 刘新丽 Bus system with power supply transmission and data communication functions
CN205212860U (en) * 2015-12-23 2016-05-04 上海神开石油化工装备股份有限公司 Single bus communication module
CN205829202U (en) * 2016-04-26 2016-12-21 广州同明太阳能科技有限公司 A kind of power supply is powered and serial communication multiplex circuit
CN208188729U (en) * 2017-09-26 2018-12-04 歌尔科技有限公司 Electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116701289A (en) * 2022-09-15 2023-09-05 荣耀终端有限公司 Communication method and equipment
CN116701289B (en) * 2022-09-15 2024-04-12 荣耀终端有限公司 Communication method and equipment

Also Published As

Publication number Publication date
CN107678995B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
US20150236522A1 (en) Usb charging system with variable charging voltage, charger and smart terminal
CN102387022A (en) Power over Ethernet method and device
TW201234184A (en) Adaptive USB charging method and system
US9018896B2 (en) Method and system for determining whether a portable device is charging
CN111404219A (en) Method for fast USB charging, electronic device and charger device
CN106464163B (en) System for implementing modular mobile electronic devices
CN110829540B (en) Load access identification method, charging control method and device
CN110417085A (en) A kind of system and method whether being inserted into for detecting apple equipment
CN105162213A (en) USB controller, and device
CN106329630B (en) A kind of charging method and device
US11011945B2 (en) Systems and methods for wireless charging and wired data transfer
CN108027780B (en) Memory content protection circuit
CN104932662B (en) A kind of control method and electronic equipment
CN104617643A (en) Charging method, equipment to be charged, power supply equipment and charging system
CN208188729U (en) Electronic equipment
CN107678995A (en) Data communications method and electronic equipment
CN106329625B (en) charging method and device
CN202995613U (en) Crash resetting device
CN103268143B (en) A kind of USB mobile device realizes the method stored without electricity
CN206610191U (en) The control circuit and control device of a kind of voltage break-make
CN106329628B (en) A kind of charging method and device
CN104268109A (en) Data interface communication method and device
CN203117961U (en) Dead halt monitoring and resetting device
CN105045751A (en) Serial TTL/RS232 electrical level adaptive apparatus
CN103049063A (en) Computer crash resetting device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant