CN112305345A - Vehicle-mounted navigator interface state recovery method, device and system and electronic equipment - Google Patents

Vehicle-mounted navigator interface state recovery method, device and system and electronic equipment Download PDF

Info

Publication number
CN112305345A
CN112305345A CN202011120989.1A CN202011120989A CN112305345A CN 112305345 A CN112305345 A CN 112305345A CN 202011120989 A CN202011120989 A CN 202011120989A CN 112305345 A CN112305345 A CN 112305345A
Authority
CN
China
Prior art keywords
state
interface
vehicle
data
mounted navigator
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
CN202011120989.1A
Other languages
Chinese (zh)
Other versions
CN112305345B (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.)
Beijing China Tsp Technology Co ltd
Jiangsu Bdstar Navigation Automotive Electronics Co ltd
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Original Assignee
Beijing China Tsp Technology Co ltd
Jiangsu Bdstar Navigation Automotive Electronics Co ltd
BDstar Intelligent and Connected Vehicle 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 Beijing China Tsp Technology Co ltd, Jiangsu Bdstar Navigation Automotive Electronics Co ltd, BDstar Intelligent and Connected Vehicle Technology Co Ltd filed Critical Beijing China Tsp Technology Co ltd
Priority to CN202011120989.1A priority Critical patent/CN112305345B/en
Publication of CN112305345A publication Critical patent/CN112305345A/en
Application granted granted Critical
Publication of CN112305345B publication Critical patent/CN112305345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/005Testing of electric installations on transport means
    • G01R31/006Testing of electric installations on transport means on road vehicles, e.g. automobiles or trucks
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Abstract

The invention provides a method, a device and a system for recovering the interface state of a vehicle-mounted navigator and electronic equipment, and relates to the technical field of automotive electronics, wherein the method comprises the steps of acquiring the state data of the interface of the vehicle-mounted navigator; performing state recognition on the state data based on a preset controller software library; the preset controller software library is generated according to a universal serial bus communication protocol; and when the state data is abnormal, performing state recovery on the vehicle-mounted navigator interface through a preset state recovery unit. The invention improves the state detection and state recovery efficiency of the vehicle-mounted navigator interface, and further improves the rapidity, effectiveness and safety of using the USB equipment.

Description

Vehicle-mounted navigator interface state recovery method, device and system and electronic equipment
Technical Field
The invention relates to the technical field of automotive electronics, in particular to a method, a device and a system for recovering the interface state of a vehicle-mounted navigator and electronic equipment.
Background
With the continuous improvement of the living standard of people, the number of automobiles is also increased sharply, the functional requirements of users on the vehicle-mounted navigator are increased day by day, and the vehicle-mounted navigator which only supports the functions of satellite navigation, visual backing, driving recording, Bluetooth telephone and the like cannot meet the use requirements of the users. The in-vehicle entertainment function has become an indispensable function of the in-vehicle navigator. A large number of users use Universal Serial Bus (USB) interfaces to connect devices such as a USB disk and a mobile phone, and perform operations such as listening to music, watching videos, playing games, and interconnecting mobile phones.
At present, a plurality of various vehicle-mounted navigators are on the market, and most of the vehicle-mounted navigators are provided with USB interfaces, so that when a user uses a USB flash disk or a mobile phone to access the vehicle-mounted navigator, the user may not play music, play videos, play games, interconnect the mobile phone and the like due to the abnormal USB interfaces, and even may damage and burn out USB equipment such as the USB flash disk or the mobile phone.
Disclosure of Invention
The invention aims to provide a method, a device and a system for recovering a state of a vehicle-mounted navigator interface and electronic equipment, which improve the efficiency of state detection and state recovery of the vehicle-mounted navigator interface and further improve the rapidity, effectiveness and safety of using USB equipment.
In a first aspect, an embodiment of the present invention provides a method for recovering a state of an interface of a vehicle-mounted navigator, where the method includes: acquiring state data of a vehicle-mounted navigator interface; performing state recognition on the state data based on a preset controller software library; the preset controller software library is generated according to a universal serial bus communication protocol; and when the state data is abnormal, performing state recovery on the vehicle-mounted navigator interface through a preset state recovery unit.
In an optional embodiment, before the step of acquiring the status data of the car navigator interface, the method further includes: acquiring sampling configuration information; the sampling configuration information includes at least a sampling time threshold and a sampling number threshold.
In an alternative embodiment, the vehicle navigator interface comprises a universal serial bus interface; the method comprises the following steps of detecting the interface state of a vehicle-mounted navigator interface, wherein the method comprises the following steps: if the current sampling time reaches a sampling time threshold value, acquiring a signal voltage and an equipment node file of a universal serial bus interface; a first interface state of the universal serial bus interface is determined based on the high and low states of the signal voltage and the level state of the device node file.
In an alternative embodiment, the vehicle navigator interface comprises a hub interface; the method comprises the following steps of detecting the interface state of a vehicle-mounted navigator interface, wherein the method comprises the following steps: detecting the level state of a data line connected with a pull-up resistor; a second interface state of the hub interface is determined based on the level state.
In an optional embodiment, the step of performing state identification on the state data based on a preset controller software library includes: and if the current sampling times reach the sampling times threshold value, performing state identification on the state data based on a preset controller software library.
In an alternative embodiment, the state recovery unit includes a universal serial bus state recovery unit and a hub state recovery unit; the state data comprises an overcurrent state, an abnormal state and a mounting state; when the state data is abnormal, the step of carrying out state recovery on the corresponding vehicle-mounted navigator interface through a preset state recovery unit comprises the following steps: when the state data of the universal serial bus interface is in an overcurrent state, driving the first data line to a reset state for first state recovery through the universal serial bus state recovery unit according to a first duration; when the state data of the universal serial bus interface is in an abnormal state, driving the second data line to a reset state for second state recovery through the hub state recovery unit according to a second duration; and when the mounting state is identified for the specified times in the specified time period, driving the third data line to the reset state for a third duration through the universal serial bus state recovery unit to perform third state recovery.
In an alternative embodiment, the state data further includes an idle state; the method further comprises the following steps: when the state is the idle state, the state recovery is not performed.
In a second aspect, an embodiment of the present invention provides a system for recovering an interface state of a vehicle-mounted navigator, where the system is configured to execute the method for recovering an interface state of an apparatus according to any one of the foregoing embodiments; the system comprises an interface detection unit and a state recovery unit which are respectively connected with a preset controller software library; the interface detection unit is used for detecting the interface state of the vehicle-mounted navigator interface and sending the detected state data to the controller software library; the vehicle-mounted navigator interface comprises a universal serial bus interface and a hub interface; the controller software library is used for carrying out state identification on the state data; and the state recovery unit is used for recovering the state of the corresponding vehicle-mounted navigator interface when the state data is abnormal.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory; the memory has stored thereon a computer program which, when executed by the processor, performs the device interface state recovery method of any of the preceding embodiments.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer software instructions for the device interface state recovery method according to any one of the foregoing embodiments.
The invention provides a method, a device and a system for recovering a vehicle-mounted navigator interface state and electronic equipment. According to the mode, the state data of the vehicle-mounted navigator interface is subjected to state recovery through the preset controller software library, and when the state data are abnormal, the state recovery is performed through the preset state recovery unit, so that the state detection and state recovery efficiency of the vehicle-mounted navigator interface is improved, and the rapidity, effectiveness and safety of using the USB device are further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of a vehicle-mounted navigator interface state recovery system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of another vehicle-mounted navigator interface state recovery system according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for recovering a state of an interface of a vehicle-mounted navigator according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating another method for recovering interface status of a vehicle-mounted navigator according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Icon: 10-a preset controller software library; 20-an interface detection unit; 30-a state recovery unit; 201-a USB detection unit; 202-HUB detection unit; 203-broadcast receiving unit; 301-USB recovery unit; 302-HUB recovery unit.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings or the orientations or positional relationships that the products of the present invention are conventionally placed in use, and are only used for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Furthermore, the terms "horizontal", "vertical", "overhang" and the like do not imply that the components are required to be absolutely horizontal or overhang, but may be slightly inclined. For example, "horizontal" merely means that the direction is more horizontal than "vertical" and does not mean that the structure must be perfectly horizontal, but may be slightly inclined.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
In consideration of the problems that the conventional vehicle-mounted navigator is provided with a USB interface, when a user uses a USB disk or a mobile phone to access the vehicle-mounted navigator, the USB interface is abnormal, music playing, video playing, game playing, mobile phone interconnection and the like cannot be performed, and even USB equipment such as the USB disk or the mobile phone is damaged and burnt, the embodiment of the invention provides a method, a device, a system and electronic equipment for recovering the state of the vehicle-mounted navigator interface, so that the state detection and state recovery efficiency of the vehicle-mounted navigator interface is improved, and the rapidity, the effectiveness and the safety of using the USB equipment are further improved.
For convenience of understanding, firstly, a car navigator interface state recovery system provided in this embodiment for implementing an interface state recovery method of a car navigator is described, referring to a schematic structural diagram of a car navigator interface state recovery system shown in fig. 1, which includes an interface detection unit 20 and a state recovery unit 30 respectively connected to a preset controller software library 10. The interface detection unit 20 is configured to detect an interface state of the vehicle-mounted navigator interface, and send detected state data to the controller software library, where the vehicle-mounted navigator interface includes a universal serial bus interface and a hub interface, the controller software library is configured to perform state identification on the state data, and the state recovery unit 30 is configured to perform state recovery on a corresponding vehicle-mounted navigator interface when the state data is abnormal.
According to the vehicle-mounted navigator interface state recovery system provided by the embodiment of the invention, the preset controller software library 10 is used for carrying out state recovery on the state data of the vehicle-mounted navigator interface, and when the state data is abnormal, the preset state recovery unit 30 is used for carrying out state recovery, so that the state detection and state recovery efficiency of the vehicle-mounted navigator interface is improved, and the rapidity, the effectiveness and the safety of using USB equipment are further improved.
In an embodiment, the interface detecting unit 20 may include a Universal Serial Bus (USB) detecting unit, a HUB (english name: HUB) detecting unit, and a broadcast receiving unit 203, the state recovering unit 30 includes a USB recovering unit 301 and a HUB recovering unit 302, referring to a schematic structural diagram of another interface state recovering system of a car navigation system shown in fig. 2, the USB detecting unit 201 determines a USB state by detecting a signal voltage of a port and reports the USB state to a preset controller software library 10, the HUB detecting unit 202 determines a USB state by detecting a level state (high level or low level) of a data line with a pull-up resistor and reports the USB state to the preset controller software library 10, the broadcast receiving unit 203 determines a mount state of a USB device (i.e., a device connected to a USB interface) by receiving a USB mount broadcast, and reports to the preset controller software library 10. Then, the preset controller software library 10 calculates and identifies a normal state, an idle (idle) state, a mounted state, an unloaded state, and an overcurrent state according to the state data reported by the USB monitoring unit, the HUB monitoring unit, and the broadcast receiving unit 203, and performs USB rescue through the USB recovery unit 301 and the HUB recovery unit 302. The USB recovery unit 301 performs state recovery on the USB by driving the data lines to a reset state (D + and D-are all low level) for at least 10 ms. The HUB recovery unit 302 performs state recovery on the HUB by driving the data lines to the reset state (D + and D-are all low) for at least 10 ms. It can be understood that the system provided by the embodiment can also be applied to intelligent devices such as vehicle-mounted multimedia hosts and the like based on android systems and including USB interfaces.
Further, an embodiment of the present invention provides a method for recovering an interface state of a vehicle-mounted navigator, where the method is executed by the system for recovering an interface state of a vehicle-mounted navigator, and refer to a schematic flow chart of the method for recovering an interface state of a vehicle-mounted navigator shown in fig. 3, and the method mainly includes the following steps S302 to S306:
and step S302, acquiring the state data of the vehicle-mounted navigator interface.
In an embodiment, the vehicle-mounted navigator interface may include a universal serial bus interface (that is, a USB interface), when detecting state data of the USB interface, the method may include first determining whether sampling time reaches a sampling time threshold, if so, obtaining a signal voltage and a device node file of the universal serial bus interface, and determining a first interface state of the universal serial bus interface based on a high-low state of the signal voltage and a level state of the device node file, where the device node file is a device node file in which a USB driver interacts with software and may also be referred to as an IO file, and the level state of the IO file is a 0 state or a 1 state in an IP file. The USB interface may further include a microsusb interface, a miniUSB interface, a type c interface, and an OTG (On The Go) interface (The OTG interface is mainly applied to The connection between various different devices or mobile devices for data exchange), and The USB detection unit 201 detects The signal voltage high/low state of The port, and reads The 0 or 1 state in The IO file to determine The signal state (i.e., state data) of The microsusb, miniUSB, type c interface, and OTG interface.
In another embodiment, the car navigator interface may include a HUB interface (i.e., a HUB interface), and when detecting status data of the HUB interface, the level status of a data line connected with a pull-up resistor may be detected, and the second interface status of the HUB interface may be determined based on the level status. The level status includes a high level and a low level, and the HUB signal status supporting the USB2.0, USB3.0 and USB3.1 protocols is determined by detecting whether the data line having the pull-up resistor is a high level or a low level, such as when the data line having the pull-up resistor is detected to be a high level, determining that the HUB signal status is a normal status, and when the data line having the pull-up resistor is a low level, determining that the HUB signal status is an abnormal status. In practical applications, the level may be determined according to actual needs, and is not limited in detail here.
In step S304, the state data is subjected to state recognition based on the preset controller software library 10.
The preset controller software library 10 is a controller software library generated according to a universal serial bus communication protocol (that is, a USB communication rule), the preset controller software library 10 may include a plurality of USB state data, and the vehicle-mounted navigator interface state recovery system may compare the real-time detected USB state with the USB state in the controller software library, so as to quickly and accurately identify whether the current USB state is normal.
And step S306, when the state data is abnormal, performing state recovery on the vehicle-mounted navigator interface through the preset state recovery unit 30.
In one embodiment, the status data may include an overcurrent status, an abnormal status, and a mount status, and the status recovery unit 30 includes a universal serial bus status recovery unit 30 (i.e., a USB recovery unit 301) and a HUB status recovery unit 30 (i.e., a HUB recovery unit 302). The preset controller software library 10 performs recognition analysis on the state data, so as to determine the current state data, and further analyze the state data, so as to perform state recovery by using the USB recovery unit 301 or the HUB recovery unit 302 correspondingly.
According to the method for recovering the interface state of the vehicle-mounted navigator provided by the embodiment of the invention, the preset controller software library 10 is used for recovering the state data of the interface of the vehicle-mounted navigator, and when the state data is abnormal, the preset state recovery unit 30 is used for recovering the state, so that the state detection and state recovery efficiency of the interface of the vehicle-mounted navigator is improved, and the rapidity, the effectiveness and the safety of using USB equipment are further improved.
Before acquiring the state data of the interface of the vehicle-mounted navigator, first acquiring sampling configuration information, such as reading the sampling configuration information from a database, and configuring the sampling configuration information to the state recovery system of the interface of the vehicle-mounted navigator, wherein the sampling configuration information at least comprises a sampling time threshold and a sampling frequency threshold, and in addition, the sampling configuration information may also comprise the number of times of recovering the USB state and the number of times of recovering the HUB state.
Because the vehicle-mounted navigator interface state recovery system is configured with the sampling configuration information in advance, if the current sampling times reach the sampling times threshold value, the state data is subjected to state identification based on a controller software library in the vehicle-mounted navigator interface state recovery system. The reason for judging the sampling times is as follows: if the sampling frequency threshold value is set to be smaller, the controller software library can be subjected to state recognition as long as the interface state is collected, so that the recognition cost of the controller software library is higher, the working efficiency is lower, the recognition cost of the controller software library can be reduced by setting the sampling frequency threshold value, and the efficiency of state recognition is improved.
Furthermore, the determination method is different for different interface status signals. For example, when the status data of the USB interface is in the overcurrent state, the USB state recovery unit 30 drives the first data line to the reset state for a first duration, which may be, for example, 10ms, or other durations, and the reset state is a state where D + and D-are all low level. When the status data of the USB interface is in an abnormal status, the HUB recovery unit 302 drives the second data line to the reset status for a second duration to perform a second status recovery, where the second duration may be set to 10ms, or may be set to another duration, and is not limited herein. When the mount state is recognized a specified number of times in a specified time period, the third data line is driven to the reset state by the USB state recovery unit 30 for a third duration, which may be set to 10ms or other durations, and is not limited herein.
In addition, the state data also comprises an idle state, and when the state is the idle state, the state recovery is not carried out.
The present embodiment also provides another vehicle-mounted navigator interface state recovery method, referring to a flow schematic diagram of another vehicle-mounted navigator interface state recovery method shown in fig. 4, the method mainly includes the following steps S402 to S420:
and S402, starting the vehicle-mounted navigator, and detecting that the vehicle-mounted navigator can be normally used.
And S404, reading the sampling configuration information from the database, and configuring the sampling configuration information to the interface state recovery system of the vehicle-mounted navigator. The sampling configuration information includes at least a sampling time and a sampling number.
Step S406, determining whether the sampling time is reached, if the sampling time is reached, executing step S408, otherwise, continuing to wait.
Step S408, USB state data is collected, and the state comprises 5 states of idle, mounting, unloading, overflowing and abnormal.
Step S410, judging whether the sampling times are reached, recording the continuous times of various states, if the sampling times are reached, executing step S412, otherwise, turning to step 406.
And step S412, calculating a target recovery state according to 5 states of idle state, mounting state, unloading state, overcurrent state and abnormity state of the USB. The target recovery state comprises a USB state recovery state and a HUB state recovery state, and in one embodiment, the USB state recovery state is required to be carried out in an overcurrent state; the abnormal state needs to be recovered by the HUB state; the mount state of specified times appears in specified time, and the USB state needs to be recovered; the idle state does not require any state recovery operations.
Step S414, based on the calculated target recovery state, determines whether the HUB state recovery is required, if so, step S416 is executed, otherwise, the process goes to step S418.
In step S416, the HUB status recovery is performed by the HUB recovery unit. The HUB recovery unit performs state recovery on the USB for at least 10ms by driving the data lines to a reset state (D + and D-are all low), and the state recovery is completed.
Step S418, based on the calculated target recovery state, determines whether USB state recovery is required, if so, step S420 is executed, otherwise, step S406 is performed.
In step S420, the USB state is restored by the USB restoring unit. The USB recovery unit drives the data line to a reset state (D + and D-are all low level), and the USB is recovered for at least 10ms, and the state recovery is completed.
In one embodiment, when the USB state changes, the USB detection unit 201, the HUB detection unit 202, or the broadcast receiving unit 203 detects the status signal, and after the control software library determines the signal processing, the USB recovery unit 301 and the HUB recovery unit 302 respond differently according to the relevant status. When the USB current exceeds the preset current, a USB state recovery mechanism can be set to close the USB function, stop supplying power to the USB interface and prompt that 'overcurrent is detected and the USB storage equipment is required to be checked or replaced'.
According to the vehicle-mounted navigator interface state recovery method provided by the embodiment of the invention, the USB interface is controlled by automatically detecting the USB state and the HUB state, the USB interface can be uniformly and efficiently managed, the rapidity, the effectiveness and the safety of using the USB equipment are improved, the future requirements of vehicle type development are met, and the rapid, effective and safe use guarantee is continuously carried out on the USB equipment with the increasing complexity.
The embodiment of the invention provides electronic equipment, which particularly comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above described embodiments.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 100 includes: the device comprises a processor 50, a memory 51, a bus 52 and a communication interface 53, wherein the processor 50, the communication interface 53 and the memory 51 are connected through the bus 52; the processor 50 is arranged to execute executable modules, such as computer programs, stored in the memory 51.
The memory 51 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 53 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 52 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
The memory 51 is used for storing a program, the processor 50 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 50, or implemented by the processor 50.
The processor 50 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 50. The Processor 50 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 51, and the processor 50 reads the information in the memory 51 and completes the steps of the method in combination with the hardware thereof.
The method, the device and the system for recovering the interface state of the vehicle-mounted navigator, and the computer program product of the electronic device provided by the embodiments of the present invention include a computer-readable storage medium storing a nonvolatile program code executable by a processor, where the computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the method described in the foregoing method embodiments is executed.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing embodiments, and is not described herein again.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for recovering interface state of a vehicle-mounted navigator is characterized by comprising the following steps:
acquiring state data of a vehicle-mounted navigator interface;
performing state recognition on the state data based on a preset controller software library; the preset controller software library is a controller software library generated according to a universal serial bus communication protocol;
and when the state data is abnormal, performing state recovery on the vehicle-mounted navigator interface through a preset state recovery unit.
2. The method of claim 1, wherein prior to the step of obtaining status data of the vehicle navigator interface, the method further comprises:
acquiring sampling configuration information; the sampling configuration information at least comprises a sampling time threshold and a sampling time threshold.
3. The method of claim 2, wherein the vehicle navigator interface comprises a universal serial bus interface; the step of obtaining the state data of the vehicle-mounted navigator interface comprises the following steps:
if the current sampling time reaches the sampling time threshold value, acquiring the signal voltage of the universal serial bus interface and an equipment node file;
determining a first interface state of the universal serial bus interface based on the high-low state of the signal voltage and the level state of the device node file.
4. The method of claim 1, wherein the vehicle navigator interface comprises a hub interface; the step of obtaining the state data of the vehicle-mounted navigator interface comprises the following steps:
detecting the level state of a data line connected with a pull-up resistor;
determining a second interface state of the hub interface based on the level state.
5. The method of claim 2, wherein the step of identifying the status of the status data based on a preset controller software library comprises:
and if the current sampling times reach the sampling times threshold value, performing state identification on the state data based on a preset controller software library.
6. The method of claim 3, wherein the state recovery unit comprises a universal serial bus state recovery unit and a hub state recovery unit; the state data comprises an overcurrent state, an abnormal state and a mounting state;
when the state data is abnormal, the step of carrying out state recovery on the corresponding vehicle-mounted navigator interface through a preset state recovery unit comprises the following steps:
when the state data of the universal serial bus interface is in the overcurrent state, driving a first data line to a reset state for first state recovery through a universal serial bus state recovery unit according to a first duration;
when the state data of the universal serial bus interface is in the abnormal state, driving a second data line to a reset state for second state recovery through a hub state recovery unit according to second duration;
and when the mounting state is identified for a specified number of times in a specified time period, driving a third data line to a reset state for a third state recovery by a universal serial bus state recovery unit according to a third duration.
7. The method of claim 1, wherein the state data further comprises an idle state; the method further comprises the following steps:
and when the state is the idle state, not recovering the state.
8. A vehicle-mounted navigator interface state recovery system characterized in that the system is configured to execute the vehicle-mounted navigator interface state recovery method according to any one of claims 1 to 7; the system comprises an interface detection unit and a state recovery unit which are respectively connected with a preset controller software library;
the interface detection unit is used for detecting the interface state of the vehicle-mounted navigator interface and sending the detected state data to the controller software library; the vehicle-mounted navigator interface comprises a universal serial bus interface and a hub interface;
the controller software library is used for carrying out state identification on the state data;
and the state recovery unit is used for recovering the state of the corresponding vehicle-mounted navigator interface when the state data is abnormal.
9. An electronic device comprising a processor and a memory;
the memory has stored thereon a computer program which, when executed by the processor, performs the method of any of claims 1 to 7.
10. A computer readable storage medium for storing computer software instructions for use in the method of any one of claims 1 to 7.
CN202011120989.1A 2020-10-19 2020-10-19 Vehicle-mounted navigator interface state recovery method, device and system and electronic equipment Active CN112305345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011120989.1A CN112305345B (en) 2020-10-19 2020-10-19 Vehicle-mounted navigator interface state recovery method, device and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011120989.1A CN112305345B (en) 2020-10-19 2020-10-19 Vehicle-mounted navigator interface state recovery method, device and system and electronic equipment

Publications (2)

Publication Number Publication Date
CN112305345A true CN112305345A (en) 2021-02-02
CN112305345B CN112305345B (en) 2024-01-30

Family

ID=74328392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011120989.1A Active CN112305345B (en) 2020-10-19 2020-10-19 Vehicle-mounted navigator interface state recovery method, device and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN112305345B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479214A (en) * 2002-08-30 2004-03-03 联想(北京)有限公司 Realizing method of universal serial bus equipment safety switch on
CN103200460A (en) * 2013-04-10 2013-07-10 孙根海 Personal mobile information terminal function multiplexing method by vehicle-mounted navigator
CN103446756A (en) * 2013-06-04 2013-12-18 浙江吉利汽车研究院有限公司杭州分公司 Vehicular entertainment platform and control method thereof
CN103761112A (en) * 2011-12-30 2014-04-30 深圳市大富科技股份有限公司 Vehicle-mounted multimedia device and control method thereof
CN104422443A (en) * 2013-09-09 2015-03-18 阿尔派株式会社 Navigation device and information providing method
CN207758725U (en) * 2017-10-30 2018-08-24 湖州优创科技有限公司 A kind of new-energy automobile remote monitoring terminal
CN108491343A (en) * 2018-02-11 2018-09-04 广州视源电子科技股份有限公司 Terminal device, data transmission system and method
CN110046108A (en) * 2019-01-09 2019-07-23 阿里巴巴集团控股有限公司 USB peripheral control device, system and its control method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479214A (en) * 2002-08-30 2004-03-03 联想(北京)有限公司 Realizing method of universal serial bus equipment safety switch on
CN103761112A (en) * 2011-12-30 2014-04-30 深圳市大富科技股份有限公司 Vehicle-mounted multimedia device and control method thereof
CN103200460A (en) * 2013-04-10 2013-07-10 孙根海 Personal mobile information terminal function multiplexing method by vehicle-mounted navigator
CN103446756A (en) * 2013-06-04 2013-12-18 浙江吉利汽车研究院有限公司杭州分公司 Vehicular entertainment platform and control method thereof
CN104422443A (en) * 2013-09-09 2015-03-18 阿尔派株式会社 Navigation device and information providing method
CN207758725U (en) * 2017-10-30 2018-08-24 湖州优创科技有限公司 A kind of new-energy automobile remote monitoring terminal
CN108491343A (en) * 2018-02-11 2018-09-04 广州视源电子科技股份有限公司 Terminal device, data transmission system and method
CN110046108A (en) * 2019-01-09 2019-07-23 阿里巴巴集团控股有限公司 USB peripheral control device, system and its control method

Also Published As

Publication number Publication date
CN112305345B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN109558282B (en) PCIE link detection method, system, electronic equipment and storage medium
CN106569047B (en) A kind of analytical equipment and method of vehicle-mounted CAN bus
CN110545220B (en) Automobile diagnosis protocol detection method and related product
CN103488401A (en) Voice assistant activating method and device
CN112257542B (en) Obstacle sensing method, storage medium and electronic device
CN115720253A (en) Video processing method, device, vehicle and storage medium
CN107608923B (en) Test processing method and related product
CN112305345B (en) Vehicle-mounted navigator interface state recovery method, device and system and electronic equipment
CN113147671A (en) Vehicle, platform and remote vehicle locking method and device
CN111813080A (en) CAN bus pin identification method and device of vehicle OBD interface
CN107205241B (en) Wireless communication detection method and equipment thereof
CN115202949A (en) Chip signal monitoring device and method, computer equipment and storage medium
US11030832B2 (en) Apparatus and method for generating test case for vehicle
CN112187937B (en) Unpairing method and device, terminal equipment and storage medium
CN113950044A (en) Method and device for identifying user identification card, terminal equipment and storage medium
CN114691397A (en) Disk repairing method and device, electronic equipment and storage medium
CN111210035A (en) Vehicle maintenance management method and system
CN112822666A (en) Communication method, communication device, electronic equipment and storage medium
CN113901285B (en) Vehicle road test method, device, electronic equipment and storage medium
CN113176984A (en) Broadcast box alarm control method, device and equipment based on android and storage medium
CN113740732B (en) Battery cell outlier detection method and device and electronic equipment
CN111506477B (en) Log capture method and device of touch screen and mobile terminal
CN114312608A (en) Vehicle restarting method, device, vehicle, equipment and storage medium
CN116142217A (en) Vehicle-mounted sensor fault diagnosis method, device, medium and vehicle
CN117891525A (en) Information reporting method and device, electronic equipment and storage medium

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