CN112947165A - Method for waking up electronic equipment and electronic equipment - Google Patents

Method for waking up electronic equipment and electronic equipment Download PDF

Info

Publication number
CN112947165A
CN112947165A CN202110139003.3A CN202110139003A CN112947165A CN 112947165 A CN112947165 A CN 112947165A CN 202110139003 A CN202110139003 A CN 202110139003A CN 112947165 A CN112947165 A CN 112947165A
Authority
CN
China
Prior art keywords
detection circuit
voltage signal
electronic device
target voltage
network
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
CN202110139003.3A
Other languages
Chinese (zh)
Other versions
CN112947165B (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.)
Shenzhen Hayward Technology Co ltd
Original Assignee
Shenzhen Hayward Technology 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 Shenzhen Hayward Technology Co ltd filed Critical Shenzhen Hayward Technology Co ltd
Priority to CN202110139003.3A priority Critical patent/CN112947165B/en
Publication of CN112947165A publication Critical patent/CN112947165A/en
Application granted granted Critical
Publication of CN112947165B publication Critical patent/CN112947165B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the application provides a method for awakening electronic equipment and the electronic equipment, wherein the method is suitable for the electronic equipment comprising a Controller Area Network (CAN) transceiver, a detection circuit and a single chip microcomputer, the detection circuit comprises a voltage detection circuit, a reverse current prevention circuit and a switch circuit, and the method comprises the following steps: the control voltage detection circuit detects and filters the voltage on the CAN network to generate a target voltage signal; the control prevents the reverse circuit from shielding the signal interference generated by the CAN generator to the voltage detection circuit; the control switch circuit amplifies the target voltage signal and sends the amplified target voltage signal to the single chip microcomputer; and the singlechip judges whether to control the electronic equipment to enter an awakening mode according to the amplified target voltage signal. According to the embodiment of the application, the voltage on the CAN network is detected, filtered and amplified, and then whether the electronic equipment is controlled to enter the awakening mode or not is judged according to the amplified voltage, so that the electronic equipment CAN be automatically awakened along with the starting of a vehicle.

Description

Method for waking up electronic equipment and electronic equipment
Technical Field
The present disclosure relates to the field of automotive diagnostic devices, and in particular, to a method for waking up an electronic device and an electronic device.
Background
In recent years, with the rapid development of the car networking technology, big data acquisition, data return, data analysis and data application based On vehicles are widely applied in the car-related service industry, and an OBD (On-board diagnostic) interface is a unique interface for data exchange between a special car body and the outside provided by a car manufacturer, and can also provide 12V of uninterrupted power supply for external electronic equipment based On the OBD interface, so that the data acquisition of car body data by using the interface has the characteristics and advantages of convenience and rapidness in installation, safety in use and no need of damaging an original car line, and thus, the OBD equipment based On the OBD interface is rapidly developed and applied in the field of car networking. Various vehicle running data obtained by using OBD equipment are widely applied to a plurality of industries such as a vehicle monitoring and positioning industry, a vehicle maintenance service industry, a vehicle insurance service industry and the like.
The OBD equipment is used as a data acquisition terminal installed on an automobile, and has the characteristics of convenience in installation and use by a user, no damage to an original automobile circuit, capability of entering a low power consumption mode when the automobile is flamed out, and capability of automatically entering a working mode when the automobile is ignited. Therefore, the OBD equipment is designed without designing a switch button, the user is not required to turn on the equipment firstly when the vehicle is started, the user is not required to turn off the equipment firstly when the vehicle is off, the original vehicle circuit is not required to be damaged when the OBD equipment is installed, the work of the OBD equipment is in a self-adaptive mode, namely, the OBD equipment can work automatically along with the starting of the vehicle and can sleep automatically along with the flameout of the vehicle.
In conclusion, it can be seen that, the installation of the OBD device is realized by the opposite insertion of the OBD interface, so that the installation is convenient, and the inherent property that the original vehicle line is the OBD device is not damaged. Because the OBD equipment of many vehicles is through OBD interface acquisition power supply now, after the vehicle flame-out, the OBD equipment can get into the low-power consumption mode in order to practice thrift car battery electric quantity, and how to let the OBD equipment can get into operating mode by oneself when the vehicle is igniteed is the technological problem that the OBD equipment will solve.
Therefore, the existing method has defects and needs to be improved and developed.
Disclosure of Invention
The embodiment of the application provides a method for waking up an electronic device and the electronic device, which can realize that the electronic device automatically wakes up along with the starting of a vehicle, so as to enter a working mode.
The embodiment of the application provides a method for awakening electronic equipment, which is suitable for the electronic equipment, wherein the electronic equipment comprises a Controller Area Network (CAN) transceiver, a detection circuit and a single chip microcomputer, the detection circuit comprises a voltage detection circuit, a reverse current prevention circuit and a switch circuit, and the method comprises the following steps:
controlling the voltage detection circuit to detect and filter the voltage on the CAN network so as to generate a target voltage signal;
controlling the reverse-direction prevention circuit to shield the signal interference generated by the CAN generator to the voltage detection circuit;
controlling the switching circuit to amplify the target voltage signal and sending the amplified target voltage signal to the single chip microcomputer;
and controlling the singlechip to judge whether to control the electronic equipment to enter an awakening mode according to the amplified target voltage signal.
In the method for waking up an electronic device according to the embodiment of the present application, the controlling the voltage detection circuit to detect and filter the voltage on the CAN network to generate a target voltage signal includes:
and when the electronic equipment is detected to enter a sleep mode, controlling the voltage detection circuit to detect the voltage on the CAN network, and controlling the voltage detection circuit to filter the voltage on the CAN network so as to generate a target voltage signal.
In the method for waking up an electronic device according to the embodiment of the present application, the controlling the single chip microcomputer to determine whether to control the electronic device to enter a wake-up mode according to the amplified target voltage signal includes:
and when detecting that the amplified target voltage signal is at a high level, controlling the electronic equipment to enter an awakening mode according to the amplified target voltage signal.
In the method for waking up an electronic device according to the embodiment of the present application, after the controlling the single chip microcomputer to enter a wake-up mode according to the amplified target voltage signal, the method further includes:
and configuring an input/output (I/O) port of the singlechip into a working state mode.
In the method for waking up an electronic device according to the embodiment of the present application, the controlling the single chip microcomputer to determine whether to control the electronic device to enter a wake-up mode according to the amplified target voltage signal further includes:
and when the amplified target voltage signal is detected to be zero, controlling the electronic equipment to keep a sleep mode according to the amplified target voltage signal.
In the method for waking up an electronic device according to the embodiment of the present application, before controlling the voltage detection circuit to detect and filter the voltage on the CAN network to generate the target voltage signal, the method further includes:
detecting a current mode of the electronic equipment;
and if the mode of the electronic equipment is detected to be a transition mode, configuring the input/output I/O port of the single chip microcomputer into an interrupt wakeup mode, wherein the transition mode is a mode between a working mode and a sleep mode.
In the method for waking up an electronic device according to the embodiment of the present application, after configuring the input/output I/O port of the single chip microcomputer into the operating mode, the method further includes:
controlling the CAN transceiver to convert CAN signals input from a CAN network side into transistor-transistor logic TTL signals and sending the TTL signals to the singlechip;
the single chip microcomputer is controlled to perform data analysis processing on the TTL signals to obtain CAN network data, wherein the CAN network data comprises at least one of the following data: the system comprises engine rotating speed, vehicle speed, radar information, air conditioner information, mileage information, running time information, rapid acceleration frequency information, rapid deceleration frequency information, fatigue driving information and overspeed running information;
and displaying the CAN network data.
The embodiment of the application also provides electronic equipment which is arranged on an OBD interface of a vehicle and comprises a Controller Area Network (CAN) transceiver, a detection circuit and a single chip microcomputer;
the detection circuit is connected with the CAN network and the singlechip and is connected with the CAN transceiver in parallel;
the detection circuit comprises a voltage detection circuit, a reverse current prevention circuit and a switch circuit, wherein two ends of the voltage detection circuit are respectively connected to the CAN network and the reverse current prevention circuit, two ends of the switch circuit are respectively connected to the reverse current prevention circuit and the single chip microcomputer, the voltage detection circuit is used for detecting and filtering voltage on the CAN network to generate a target voltage signal, the reverse current prevention circuit is used for shielding signal interference generated by the CAN transceiver to the voltage detection circuit, and the switch circuit is used for amplifying the target voltage signal and sending the amplified target voltage signal to the single chip microcomputer;
the single chip microcomputer is used for judging whether to control the electronic equipment to enter an awakening mode or not according to the amplified target voltage signal.
In the electronic device according to the embodiment of the present application, two ends of the CAN transceiver are respectively connected to the CAN network and the single chip microcomputer, and the CAN transceiver is configured to convert a CAN signal into a transistor-transistor logic TTL signal and send the TTL signal to the single chip microcomputer;
the single chip microcomputer is used for carrying out data analysis processing on the TTL signals to obtain CAN network data, wherein the CAN network data comprises at least one of the following data: engine speed, vehicle speed, radar information, air conditioning information, mileage information, travel time information, number of rapid accelerations information, number of rapid decelerations information, fatigue driving information, and overspeed information.
In the electronic device according to the embodiment of the present application, the electronic device further includes a power module, where the power module is configured to supply power to the electronic device when the electronic device is in a sleep mode.
The method for waking up the electronic equipment is suitable for the electronic equipment, and the electronic equipment comprises a Controller Area Network (CAN) transceiver, a detection circuit and a single chip microcomputer, wherein the detection circuit comprises a voltage detection circuit, a reverse current prevention circuit and a switch circuit, and the voltage detection circuit is controlled to detect and filter the voltage on a CAN network so as to generate a target voltage signal; controlling the reverse circuit to shield signal interference generated by the CAN generator; controlling the switching circuit to amplify the target voltage signal and sending the amplified target voltage signal to the single chip microcomputer; and controlling the singlechip to judge whether to control the electronic equipment to enter an awakening mode according to the amplified target voltage signal. This application embodiment detects, filtering and enlargies through the voltage to on the CAN network, then judge whether control electronic equipment gets into awakening mode according to the voltage after the enlargeing, when detecting the voltage after the enlargeing and being the high level, then mean that the vehicle has started, electronic equipment gets into awakening mode, when detecting the voltage after the enlargeing and being zero, then mean that the vehicle is in flame-out state, electronic equipment keeps dormant mode, thereby CAN realize that electronic equipment awakens automatically along with the start-up of vehicle, and then get into operating mode. Compared with the traditional mode of waking up the electronic device through an ACC (adaptive cruise control) signal on the OBD interface (the traditional mode of waking up the electronic device through the ACC signal on the OBD interface, an ACC signal line must be arranged on the OBD interface of the vehicle, and when the CBD interface of the vehicle does not have the ACC signal line, the electronic device cannot be waken up normally), the method has a wider application range and is more convenient.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a flowchart illustrating a method for waking up an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 4 is a circuit diagram of a detection circuit according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The embodiment of the application provides a method for waking up electronic equipment, and the method is suitable for the electronic equipment. The electronic equipment comprises a Controller Area Network (CAN) transceiver, a detection circuit and a single chip microcomputer, wherein the detection circuit comprises a voltage detection circuit, a reverse current prevention circuit and a switch circuit.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for waking up an electronic device according to an embodiment of the present disclosure. The method for waking up the electronic device is applied to the electronic device, and may include the following steps:
step 101, controlling the voltage detection circuit to detect and filter the voltage on the CAN network to generate a target voltage signal.
When the voltage on the CAN network is detected to be not zero, namely the vehicle starts to start, and at the moment of starting the vehicle, the voltage on the CAN network CAN jump between 0-2.5V, so that the voltage is approximately stabilized at a value, the single chip microcomputer CAN conveniently judge the target voltage signal, and the voltage on the CAN network is filtered.
In some embodiments, said controlling said voltage detection circuit to detect and filter a voltage on a CAN network to generate a target voltage signal comprises:
and when the electronic equipment is detected to enter a sleep mode, controlling the voltage detection circuit to detect the voltage on the CAN network, and controlling the voltage detection circuit to filter the voltage on the CAN network so as to generate a target voltage signal.
The vehicle is in a flameout state in the sleep mode, and at the moment, the vehicle does not supply power to the electronic equipment, so that some modules in the electronic equipment do not work and are in the sleep state. For example, when the electronic device is in the sleep mode, the GPS positioning module, the GSM communication module, the beidou positioning module, the OBD fault detection module, and other modules in the electronic device do not work but are in the sleep state because they lack power supply.
In some embodiments, before controlling the voltage detection circuit to detect and filter the voltage on the CAN network to generate the target voltage signal, the method further includes:
detecting a current mode of the electronic equipment;
and if the mode of the electronic equipment is detected to be a transition mode, configuring the input/output I/O port of the single chip microcomputer into an interrupt wakeup mode, wherein the transition mode is a mode between a working mode and a sleep mode.
The operation mode is that the vehicle is in a starting state, and at the moment, the electronic equipment is powered by the vehicle, so that some modules in the electronic equipment start to work and are in an operation state. For example, when the electronic device is in the working mode, the modules in the electronic device, such as the GPS positioning module, the GSM communication module, the beidou positioning module, and the OBD fault detection module, are all working at this time and are in the working state due to the vehicle power supply. Taking the GSM communication module as an example, when the electronic device is in a working mode, that is, when the GSM communication module is in a working state, the electronic device may transmit the positioning information of the vehicle and the real-time running parameters of the vehicle, which are the fault information of the vehicle, back to the server background during the use of the vehicle, and may analyze the user driving data acquired by the OBD interface, so as to obtain data such as the user's daily driving mileage, daily driving time, night driving mileage, total user driving time, total user night driving time, the number of times of user's daily rapid acceleration, the number of times of user's daily rapid deceleration, the user's fatigue driving duration and number, and the user's time, number of times and mileage during overspeed driving. The transition mode is a mode in which the electronic device is ready to end the operation mode, i.e. to enter a critical state of the sleep mode. The input/output I/O port of the singlechip is configured to be in an interrupt awakening mode, so that CAN network data is forbidden to enter the singlechip from the input/output I/O port.
And step 102, controlling the reverse circuit to shield the signal interference generated by the CAN generator to the voltage detection circuit.
Because the detection circuit is connected with the CAN transceiver in parallel, the two paths of sampling signals need to be isolated, and the mutual interference between the signals is prevented, so that the judgment of the single chip microcomputer according to the target voltage signal is influenced.
And 103, controlling the switching circuit to amplify the target voltage signal and sending the amplified target voltage signal to the single chip microcomputer.
Because the voltage change on the CAN network is 0-2.5V, and the single chip microcomputer generally judges the high level to be 3.3-5V, the switching circuit is required to be controlled to amplify the target voltage signal to 3.3-5V, and therefore the single chip microcomputer CAN judge whether the voltage on the CAN network is the high level or zero.
And 104, controlling the single chip microcomputer to judge whether to control the electronic equipment to enter an awakening mode according to the amplified target voltage signal.
However, since the amplified target voltage signal is not necessarily at a high level, the amplified target voltage signal may be zero, that is, the vehicle is not started yet and may still be in a key-off state. Therefore, the single chip microcomputer is controlled to judge whether to control the electronic equipment to enter the wake-up mode or not according to the amplified target voltage signal.
In some embodiments, the controlling the single chip microcomputer to determine whether to control the electronic device to enter the wake-up mode according to the amplified target voltage signal includes:
and when detecting that the amplified target voltage signal is at a high level, controlling the electronic equipment to enter an awakening mode according to the amplified target voltage signal.
When the amplified target voltage signal is detected to be at a high level, it means that the vehicle starts to start, and therefore the control electronic device enters the wake-up mode according to the amplified target voltage signal. For example, when the amplified target voltage signal is detected to be 3.3V, the control electronic device enters the wake-up mode according to the amplified target voltage signal.
In some embodiments, the controlling the single chip microcomputer to determine whether to control the electronic device to enter the wake-up mode according to the amplified target voltage signal further includes:
and when the amplified target voltage signal is detected to be zero, controlling the singlechip to keep a sleep mode according to the amplified target voltage signal.
When the amplified target voltage signal is detected to be zero, the vehicle is still in a flameout state, and therefore the control electronic device keeps the sleep mode according to the amplified target voltage signal.
In some embodiments, after the controlling the single chip microcomputer to enter the wake-up mode according to the amplified target voltage signal, the method further includes:
and configuring an input/output (I/O) port of the singlechip into a working state mode.
The input/output I/O port of the singlechip is configured to be in a working state mode, so that CAN network data CAN enter the singlechip through the input/output I/O port.
In some embodiments, after configuring the input/output I/O port of the single chip microcomputer into the operating mode, the method further includes:
controlling the CAN transceiver to convert CAN signals input from a CAN network side into transistor-transistor logic TTL signals and sending the TTL signals to the singlechip;
the single chip microcomputer is controlled to perform data analysis processing on the TTL signals to obtain CAN network data, wherein the CAN network data comprises at least one of the following data: the system comprises engine rotating speed, vehicle speed, radar information, air conditioner information, mileage information, running time information, rapid acceleration frequency information, rapid deceleration frequency information, fatigue driving information and overspeed running information;
and displaying the CAN network data.
After the input/output I/O port of the singlechip is configured to be in a working state mode, CAN network data CAN enter the singlechip through the input/output I/O port, and the singlechip is controlled to receive and process the CAN network data and display the data on a vehicle driving recorder or a large-screen host computer for a vehicle driver to check. Therefore, the electronic device can make the driver know the information of the vehicle, such as the current engine speed of the vehicle, the current vehicle speed of the vehicle, the time of overspeed driving of the driver, the number of times of overspeed driving, and the like.
To sum up, the method for waking up an electronic device provided in the embodiment of the present application is applicable to an electronic device, where the electronic device includes a Controller Area Network (CAN) transceiver, a detection circuit and a single chip, where the detection circuit includes a voltage detection circuit, a reverse current prevention circuit and a switch circuit, and detects and filters a voltage on a CAN network by controlling the voltage detection circuit to generate a target voltage signal; controlling the reverse-direction prevention circuit to shield the signal interference generated by the CAN generator to the voltage detection circuit; controlling the switching circuit to amplify the target voltage signal and sending the amplified target voltage signal to the single chip microcomputer; and controlling the singlechip to judge whether to control the electronic equipment to enter an awakening mode according to the amplified target voltage signal. This application embodiment detects, filtering and enlargies through the voltage to on the CAN network, then judge whether control electronic equipment gets into awakening mode according to the voltage after the enlargeing, when detecting the voltage after the enlargeing and being the high level, then mean that the vehicle has started, electronic equipment gets into awakening mode, when detecting the voltage after the enlargeing and being zero, then mean that the vehicle is in flame-out state, electronic equipment keeps dormant mode, thereby CAN realize that electronic equipment awakens automatically along with the start-up of vehicle, and then get into operating mode. Compared with the traditional mode of waking up the electronic device through an ACC (adaptive cruise control) signal on the OBD interface (the traditional mode of waking up the electronic device through the ACC signal on the OBD interface, an ACC signal line must be arranged on the OBD interface of the vehicle, and when the CBD interface of the vehicle does not have the ACC signal line, the electronic device cannot be waken up normally), the method has a wider application range and is more convenient.
The embodiment of the present application further provides an electronic device, which is installed on an OBD interface of a vehicle, and referring to fig. 2 to 3, the electronic device 100 includes a controller area network CAN transceiver 10, a detection circuit 20, and a single chip microcomputer 30;
the detection circuit 20 is connected with the CAN network and the single chip 30, and the detection circuit 20 is connected with the CAN transceiver 10 in parallel;
the detection circuit 20 includes a voltage detection circuit 201, a reverse current prevention circuit 202 and a switch circuit 203, two ends of the voltage detection circuit 201 are respectively connected to the CAN network and the reverse current prevention circuit 202, two ends of the switch circuit 203 are respectively connected to the reverse current prevention circuit 202 and the single chip microcomputer 30, the voltage detection circuit 201 is used for detecting and filtering the voltage on the CAN network to generate a target voltage signal, the reverse current prevention circuit 202 is used for shielding signal interference generated by the CAN transceiver 10 on the voltage detection circuit 201, the switch circuit 203 is used for amplifying the target voltage signal and sending the amplified target voltage signal to the single chip microcomputer 30;
the single chip 30 is configured to determine whether to control the electronic device 100 to enter the wake-up mode according to the amplified target voltage signal.
When the voltage on the CAN network is detected to be not zero, namely, the vehicle starts to start, and in the moment of starting the vehicle, the voltage on the CAN network CAN jump between 0V and 2.5V, in order to enable the voltage to be approximately stabilized at a value, the single chip microcomputer is convenient to judge a target voltage signal, and therefore the voltage on the CAN network is filtered by the voltage detection circuit 201. In addition, because the voltage change on the CAN network is 0-2.5V, and the single chip microcomputer 30 generally judges the high level to be 3.3V-5V, the switching circuit 203 is required to amplify the target voltage signal to 3.3V-5V, so that the single chip microcomputer 30 CAN judge whether the voltage on the CAN network is high level or zero. Finally, since the detection circuit 20 is connected in parallel with the CAN transceiver 10, the two sampling signals need to be isolated to prevent mutual interference between the signals, thereby affecting the judgment of the single chip microcomputer 30 according to the target voltage signal.
In some embodiments, two ends of the CAN transceiver 10 are respectively connected to the CAN network and the single chip microcomputer 30, and the CAN transceiver 10 is configured to convert a CAN signal into a transistor-transistor logic TTL signal and send the TTL signal to the single chip microcomputer 30;
the single chip microcomputer 30 is configured to perform data analysis processing on the TTL signal to obtain CAN network data, where the CAN network data includes at least one of the following data: engine speed, vehicle speed, radar information, air conditioning information, mileage information, travel time information, number of rapid accelerations information, number of rapid decelerations information, fatigue driving information, and overspeed information.
After the single chip microcomputer 30 obtains the CAN network data, the CAN network data is displayed on a vehicle data recorder or a large-screen host of the vehicle for a vehicle driver to check. Therefore, the electronic device 100 can make the driver know the information of the vehicle, such as the current engine speed of the vehicle, the current vehicle speed of the vehicle, the time when the driver is speeding, the number of times of speeding, and the like.
In some embodiments, the electronic device 100 further comprises a power module 40, wherein the power module 40 is configured to provide power to the electronic device 100 when the electronic device 100 is in the sleep mode.
Here, when the electronic device 100 is in the sleep mode, that is, the vehicle is in a flameout state, and the vehicle does not supply power to the electronic device 100 at this time, so that in order to enable the CAN transceiver 10, the detection circuit 20 and the single chip microcomputer 30 to operate, the electronic device 100 further includes a power module 40 for supplying power to the electronic device 100 when the electronic device 100 is in the sleep mode.
In some embodiments, the electronic device further comprises at least one of: GPS orientation module 50, GSM communication module 60, big dipper orientation module 70 and OBD fault detection module 80.
When the electronic device 100 is in the working mode, the GPS positioning module 50, the GSM communication module 60, the beidou positioning module 70 and the OBD fault detection module 80 start working, so that the positioning information and the fault information of the vehicle can be acquired. Moreover, through the GSM communication module 60, the electronic device 100 can transmit the positioning information of the vehicle and the real-time running parameters of the vehicle, which are the fault information of the vehicle, back to the server background during the use of the vehicle, and can analyze the user driving data acquired by the OBD interface to obtain data such as the user's daily driving distance, daily driving time, night driving distance, user's total driving time, user's total night driving time, the number of times of user's daily rapid acceleration, the number of times of user's daily rapid deceleration, the user's fatigue driving duration and number of times and the user's time, number of times and mileage of speeding.
Fig. 4 is a circuit diagram of the detection circuit 20 according to the embodiment of the present disclosure, IN which resistances of the resistor R1 and the resistor R2 may be 10K, resistances of the resistor R3 and the resistor R4 may be 100K, a model of the diode D1 may be IN4148, and a model of the transistor Q1 may be 2N 3904.
To sum up, the electronic device 100 provided in the embodiment of the present application includes a controller area network CAN transceiver 10, a detection circuit 20, and a single chip 30; the detection circuit 20 is connected with the CAN network and the single chip 30, and the detection circuit 20 is connected with the CAN transceiver 10 in parallel; the detection circuit 20 includes a voltage detection circuit 201, a reverse current prevention circuit 202 and a switch circuit 203, two ends of the voltage detection circuit 201 are respectively connected to the CAN network and the reverse current prevention circuit 202, two ends of the switch circuit 203 are respectively connected to the reverse current prevention circuit 202 and the single chip microcomputer 30, the voltage detection circuit 201 is used for detecting and filtering the voltage on the CAN network to generate a target voltage signal, the reverse current prevention circuit 202 is used for shielding signal interference generated by the CAN transceiver 10 on the voltage detection circuit 201, the switch circuit 203 is used for amplifying the target voltage signal and sending the amplified target voltage signal to the single chip microcomputer 30; the single chip 30 is configured to determine whether to control the electronic device 100 to enter the wake-up mode according to the amplified target voltage signal. According to the embodiment of the application, the voltage detection circuit 201 detects and filters the voltage on the CAN network to generate the target voltage signal, the target voltage signal is amplified through the switch circuit 203, and finally, whether the electronic device 100 is controlled to enter the awakening mode is judged according to the amplified target voltage signal through the single chip microcomputer 30, when the amplified target voltage signal is detected to be in a high level, the fact that the vehicle is started is meant, the electronic device 100 enters the awakening mode, when the amplified target voltage signal is detected to be zero, the fact that the vehicle is in a flameout state is meant, the electronic device 100 keeps in the dormant mode, and therefore the electronic device CAN be automatically awakened along with the starting of the vehicle and further enters the working mode. Compared with the traditional mode of waking up the electronic device through an ACC (adaptive cruise control) signal on the OBD interface (the traditional mode of waking up the electronic device through the ACC signal on the OBD interface, an ACC signal line must be arranged on the OBD interface of the vehicle, and when the CBD interface of the vehicle does not have the ACC signal line, the electronic device cannot be waken up normally), the method has a wider application range and is more convenient.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The method for waking up the electronic device and the electronic device provided by the embodiment of the present application are introduced in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the technical solution and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A method of waking up an electronic device, the method being applicable to an electronic device comprising a controller area network, CAN, transceiver, a detection circuit and a single chip, wherein the detection circuit comprises a voltage detection circuit, a reverse current prevention circuit and a switching circuit, the method comprising:
controlling the voltage detection circuit to detect and filter the voltage on the CAN network so as to generate a target voltage signal;
controlling the reverse-direction prevention circuit to shield the signal interference generated by the CAN generator to the voltage detection circuit;
controlling the switching circuit to amplify the target voltage signal and sending the amplified target voltage signal to the single chip microcomputer;
and controlling the singlechip to judge whether to control the electronic equipment to enter an awakening mode according to the amplified target voltage signal.
2. The method of waking an electronic device as recited in claim 1, wherein said controlling the voltage detection circuit to detect and filter the voltage on the CAN network to generate a target voltage signal comprises:
and when the electronic equipment is detected to enter a sleep mode, controlling the voltage detection circuit to detect the voltage on the CAN network, and controlling the voltage detection circuit to filter the voltage on the CAN network so as to generate a target voltage signal.
3. The method for waking up an electronic device according to claim 1, wherein the controlling the single chip microcomputer to determine whether to control the electronic device to enter a wake-up mode according to the amplified target voltage signal comprises:
and when detecting that the amplified target voltage signal is at a high level, controlling the electronic equipment to enter an awakening mode according to the amplified target voltage signal.
4. The method for waking up an electronic device according to claim 3, wherein after the controlling the single chip microcomputer enters the wake-up mode according to the amplified target voltage signal, the method further comprises:
and configuring an input/output (I/O) port of the singlechip into a working state mode.
5. The method for waking up an electronic device according to claim 4, wherein the controlling the single chip microcomputer to determine whether to control the electronic device to enter the wake-up mode according to the amplified target voltage signal further comprises:
and when the amplified target voltage signal is detected to be zero, controlling the electronic equipment to keep a sleep mode according to the amplified target voltage signal.
6. A method of waking up an electronic device as recited in claim 5, wherein before controlling the voltage detection circuit to detect and filter the voltage on the CAN network to generate the target voltage signal, further comprises:
detecting a current mode of the electronic equipment;
and if the mode of the electronic equipment is detected to be a transition mode, configuring the input/output I/O port of the single chip microcomputer into an interrupt wakeup mode, wherein the transition mode is a mode between a working mode and a sleep mode.
7. The method for waking up an electronic device according to claim 3, wherein after configuring the input/output I/O port of the single chip into the operating mode, the method further comprises:
controlling the CAN transceiver to convert CAN signals input from a CAN network side into transistor-transistor logic TTL signals and sending the TTL signals to the singlechip;
the single chip microcomputer is controlled to perform data analysis processing on the TTL signals to obtain CAN network data, wherein the CAN network data comprises at least one of the following data: the system comprises engine rotating speed, vehicle speed, radar information, air conditioner information, mileage information, running time information, rapid acceleration frequency information, rapid deceleration frequency information, fatigue driving information and overspeed running information;
and displaying the CAN network data.
8. An electronic device is arranged on an OBD interface of a vehicle and is characterized by comprising a Controller Area Network (CAN) transceiver, a detection circuit and a single chip microcomputer;
the detection circuit is connected with the CAN network and the singlechip and is connected with the CAN transceiver in parallel;
the detection circuit comprises a voltage detection circuit, a reverse current prevention circuit and a switch circuit, wherein two ends of the voltage detection circuit are respectively connected to the CAN network and the reverse current prevention circuit, two ends of the switch circuit are respectively connected to the reverse current prevention circuit and the single chip microcomputer, the voltage detection circuit is used for detecting and filtering voltage on the CAN network to generate a target voltage signal, the reverse current prevention circuit is used for shielding signal interference generated by the CAN transceiver to the voltage detection circuit, and the switch circuit is used for amplifying the target voltage signal and sending the amplified target voltage signal to the single chip microcomputer;
the single chip microcomputer is used for judging whether to control the electronic equipment to enter an awakening mode or not according to the amplified target voltage signal.
9. The electronic device of claim 8, wherein two ends of the CAN transceiver are respectively connected to a CAN network and the single-chip microcomputer, and the CAN transceiver is configured to convert a CAN signal into a transistor-transistor logic TTL signal and send the TTL signal to the single-chip microcomputer;
the single chip microcomputer is used for carrying out data analysis processing on the TTL signals to obtain CAN network data, wherein the CAN network data comprises at least one of the following data: engine speed, vehicle speed, radar information, air conditioning information, mileage information, travel time information, number of rapid accelerations information, number of rapid decelerations information, fatigue driving information, and overspeed information.
10. The electronic device of claim 8, further comprising a power module to power the electronic device when the electronic device is in a sleep mode.
CN202110139003.3A 2021-02-01 2021-02-01 Method for waking up electronic equipment and electronic equipment Active CN112947165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110139003.3A CN112947165B (en) 2021-02-01 2021-02-01 Method for waking up electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110139003.3A CN112947165B (en) 2021-02-01 2021-02-01 Method for waking up electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN112947165A true CN112947165A (en) 2021-06-11
CN112947165B CN112947165B (en) 2024-04-05

Family

ID=76241144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110139003.3A Active CN112947165B (en) 2021-02-01 2021-02-01 Method for waking up electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN112947165B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114002980A (en) * 2021-10-29 2022-02-01 北京乐驾科技有限公司 System and method for detecting automobile ignition moment, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981489A (en) * 2012-12-04 2013-03-20 北京汽车股份有限公司 Device and method for waking up automobile CAN (Controller Area Network) bus as well as vehicle
CN105353681A (en) * 2015-11-20 2016-02-24 云南名网卫星通讯运用股份有限公司 Method waking up OBD equipment through voltage fluctuation
CN105717841A (en) * 2016-03-21 2016-06-29 广州橙行智动汽车科技有限公司 Power supply circuit of electric automobile central control system and implementation method thereof
US20170059325A1 (en) * 2015-09-02 2017-03-02 Renesas Electronics Corporation Pll circuit, semiconductor device, electronic control unit, and control method of pll circuit
CN106985771A (en) * 2017-04-21 2017-07-28 华南理工大学 A kind of onboard diagnostic device dormancy start-up circuit
CN209409961U (en) * 2018-11-30 2019-09-20 深圳市元征科技股份有限公司 A kind of igniting wakes up detection circuit and mobile unit
CN112109646A (en) * 2020-09-14 2020-12-22 广州汽车集团股份有限公司 System and method for realizing low-power-consumption vehicle-mounted communication management

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981489A (en) * 2012-12-04 2013-03-20 北京汽车股份有限公司 Device and method for waking up automobile CAN (Controller Area Network) bus as well as vehicle
US20170059325A1 (en) * 2015-09-02 2017-03-02 Renesas Electronics Corporation Pll circuit, semiconductor device, electronic control unit, and control method of pll circuit
CN105353681A (en) * 2015-11-20 2016-02-24 云南名网卫星通讯运用股份有限公司 Method waking up OBD equipment through voltage fluctuation
CN105717841A (en) * 2016-03-21 2016-06-29 广州橙行智动汽车科技有限公司 Power supply circuit of electric automobile central control system and implementation method thereof
CN106985771A (en) * 2017-04-21 2017-07-28 华南理工大学 A kind of onboard diagnostic device dormancy start-up circuit
CN209409961U (en) * 2018-11-30 2019-09-20 深圳市元征科技股份有限公司 A kind of igniting wakes up detection circuit and mobile unit
CN112109646A (en) * 2020-09-14 2020-12-22 广州汽车集团股份有限公司 System and method for realizing low-power-consumption vehicle-mounted communication management

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114002980A (en) * 2021-10-29 2022-02-01 北京乐驾科技有限公司 System and method for detecting automobile ignition moment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112947165B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
US8174382B2 (en) Diagnostic system having a wake-up circuit
CN112380045B (en) Vehicle abnormality detection method, device, equipment and storage medium
EP3559625B1 (en) Device and method for managing an electric vehicle
WO2021179992A1 (en) Disconnection detection method for obd module, obd vehicle-mounted monitoring terminal, obd monitoring system
CN112241164B (en) Automobile network dormancy testing method, device, equipment and storage medium
CN105501154A (en) Vehicle-mounted terminal sleep and wakeup method
CN208232982U (en) A kind of monitoring device and automobile of accumulator electric-quantity
CN202472410U (en) Automobile OBD fault diagnostic device based on wireless technology
CN104635690A (en) Vehicle control unit of pure electric vehicle integrating gateway function
CN203276018U (en) Vehicle information acquisition device based on OBD (On-Board Diagnostics)-II
CN105425774B (en) control method and device for vehicle-mounted diagnosis connector and vehicle-mounted diagnosis connector
CN107415741A (en) Control method and device for working state of vehicle-mounted charger controller and electric vehicle
CN105353681A (en) Method waking up OBD equipment through voltage fluctuation
CN111332156A (en) Safety control system of fuel cell vehicle
CN112947165B (en) Method for waking up electronic equipment and electronic equipment
CN113965483A (en) Device and method for testing time from auto TOSAR network management pre-dormancy to dormancy
CN206155352U (en) A power management system for mobile unit
CN112414447A (en) Method and system for remotely diagnosing sensor fault
CN204440127U (en) Vehicle control unit of pure electric vehicle integrating gateway function
CN113961386A (en) Automatic management method for software version of whole vehicle
TWM502862U (en) System of intelligently managing in-vehicle equipment via OBD-II on-board diagnostic interface
CN111443644A (en) OBD power control management system and OBD monitor terminal
CN203713581U (en) Internal combustion forklift combined instrument based on controller area network (CAN) bus
CN116127152A (en) Vehicle condition information query method and device, vehicle-mounted terminal and storage medium
CN110949405B (en) Method for controlling module to enter sleep state and method for detecting quiescent current

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