Electronic device communication establishment method, vehicle terminal, and communication establishment system
By detecting the power-on status of battery-less devices, disconnecting and re-establishing the communication connection, the problem of battery-less devices being unable to communicate with the vehicle's infotainment system is solved, achieving simplified control and cost-effectiveness.
Patent Information
- Application Number
- CN202110707707.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-24
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2041-06-24
AI Technical Summary
Devices without batteries cannot power on properly when connected to the vehicle's infotainment system, resulting in a lack of communication with the system. Existing technologies cannot effectively solve this problem.
By detecting whether a battery-free device is powered on, the communication connection with the electronic device is disconnected, and the communication connection is re-established after a set time, thus skipping the CDP detection phase.
It enables normal communication between battery-free devices and electronic devices, avoiding additional component costs and simplifying the control method.
Smart Images

Figure CN115529337B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of device communication, and in particular to an electronic device communication establishment method, a vehicle-mounted terminal, a communication establishment system, an electronic device, and a readable storage medium. BACKGROUND
[0002] With the continuous development of the economy, more and more users drive vehicles for travel.
[0003] In the driving process, when some batteryless devices access the car machine, normal use may not be possible. This is because CDP (Charging Downstream Port) charging protocol detection is required when the batteryless device accesses the car machine and starts up, and the batteryless device does not support the CDP protocol, so that the batteryless device cannot start up normally, and the batteryless device cannot communicate with the car machine. SUMMARY
[0004] One purpose of the present application is to provide an electronic device communication establishment method, which disconnects the communication connection with the electronic device when detecting that the batteryless device starts up, so that the batteryless device skips the CDP detection stage, to achieve the purpose of communication between the batteryless device and the electronic device.
[0005] Another purpose of the present application is to provide an electronic device communication establishment method, which detects whether the batteryless device starts up by detecting whether the batteryless device accesses, so as to achieve the start-up detection of the batteryless device.
[0006] Another purpose of the present application is to provide an electronic device communication establishment method, which detects whether the batteryless device starts up by detecting the start-up signal of the batteryless device, so as to achieve the start-up detection of the batteryless device.
[0007] Another purpose of the present application is to provide an electronic device communication establishment method, which can control the communication connection between the batteryless device and the electronic device by controlling the connection of the DM pin and the DP pin of the communication interface, and the control method is relatively simple, without the need to increase additional devices, thereby reducing the investment of additional costs.
[0008] Another purpose of the present application is to provide an electronic device communication establishment method, which can charge the batteryless device by maintaining the electrical connection with the batteryless device after disconnecting the communication connection with the electronic device.
[0009] Another purpose of the present application is to provide an electronic device communication connection establishment method, which establishes the communication connection between the batteryless device and the electronic device by controlling the connection of the DM pin and the DP pin of the communication interface, and achieves the communication between the batteryless device and the electronic device.
[0010] According to an aspect of the present application, there is provided an electronic device communication establishment method, comprising the steps of:
[0011] detecting whether the batteryless device is powered on;
[0012] if the batteryless device is detected to be powered on, disconnecting the communication connection with the electronic device;
[0013] after a set time length of disconnecting the communication connection, establishing the communication connection with the electronic device.
[0014] According to another aspect of the present application, there is provided a vehicle-mounted terminal,
[0015] after the target device is accessed, establishing the communication connection with the target device;
[0016] judging whether the target device is a batteryless device;
[0017] if yes, disconnecting the communication connection with the batteryless device;
[0018] after a set time length of disconnecting the communication connection, establishing the communication connection with the batteryless device.
[0019] According to another aspect of the present application, there is provided a communication establishment system, comprising a vehicle-mounted terminal and a batteryless device, wherein the vehicle-mounted terminal is electrically connected with the batteryless device;
[0020] the batteryless device detects whether the batteryless device is powered on, and disconnects the communication connection with the vehicle-mounted terminal if the batteryless device is detected to be powered on; and after a set time length of disconnecting the communication connection, establishes the communication connection with the vehicle-mounted terminal.
[0021] According to another aspect of the present application, there is provided a communication establishment system, comprising a vehicle-mounted terminal and a batteryless device, wherein the vehicle-mounted terminal is communicatively connected with the batteryless device;
[0022] the vehicle-mounted terminal judges whether a target device is a batteryless device, and disconnects the communication connection with the batteryless device if yes; and after a set time length of disconnecting the communication connection, establishes the communication connection with the batteryless device.
[0023] According to another aspect of the present application, there is provided an electronic device, comprising:
[0024] a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is executed by the processor to implement the above-mentioned electronic device communication establishment method.
[0025] According to another aspect of the present application, a readable storage medium is provided, which, when instructions in the readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the above-mentioned electronic device communication establishment method.
[0026] The above description is only a summary of the technical solutions of the present application. In order to make the technical means of the present application more clear and understandable, and to enable the above and other purposes, features and advantages of the present application to be more apparent and easy to understand, the following will describe the specific embodiments of the present application in detail. BRIEF DESCRIPTION OF DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0028] Figure 1 A step flow chart of an electronic device communication establishment method provided by the embodiments of the present application;
[0029] Figure 2 An application environment diagram for establishing electronic device communication provided by the embodiments of the present application;
[0030] Figure 3 A step flow chart of a batteryless device power-on detection method provided by the embodiments of the present application;
[0031] Figure 4 A step flow chart of another batteryless device power-on detection method provided by the embodiments of the present application;
[0032] Figure 5 A structure schematic diagram of a vehicle-mounted terminal provided by the embodiments of the present application;
[0033] Figure 6 A structure schematic diagram of a communication establishment system provided by the embodiments of the present application;
[0034] Figure 7 A structure schematic diagram of another communication establishment system provided by the embodiments of the present application;
[0035] Figure 8 A structure schematic diagram of an electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0036] With reference to the drawings and the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.
[0037] Embodiment one
[0038] With reference to Figure 1 , a step flow chart of a method for establishing communication of an electronic device provided by an embodiment of the present application is shown, as shown in Figure 1 , the method for establishing communication of the electronic device can include the following steps:
[0039] Step 101: detecting whether the batteryless device is powered on.
[0040] The embodiments of the present application can be applied to the scenario of disconnecting the communication connection with the electronic device when the batteryless device is powered on to skip the CDP detection stage.
[0041] In this example, the batteryless device refers to a device without a battery inside. The batteryless device can be a batteryless screen projection device, a batteryless sensor device, etc.
[0042] The electronic device can be a vehicle terminal device, or a mobile phone, a tablet computer, etc. Specifically, it can be determined according to business needs, which is not limited in the embodiments.
[0043] When the user uses the batteryless device, first, whether the batteryless device is powered on can be detected. The scheme for detecting whether the batteryless device is powered on can be described in detail as follows in combination with Figure 3 and Figure 4 .
[0044] With reference to Figure 3 , a step flow chart of a method for detecting whether a batteryless device is powered on provided by an embodiment of the present application is shown, as shown in Figure 3 , the method for detecting whether the batteryless device is powered on can include the following steps:
[0045] Step 301: detecting whether the batteryless device is connected to the electronic device.
[0046] In this embodiment, for the batteryless device that is powered on by being connected to the electronic device, whether the batteryless device is connected to the electronic device can be detected. Specifically, whether the batteryless device is electrically connected to the electronic device can be determined.
[0047] After detecting whether the batteryless device is connected to the electronic device, step 302 is performed.
[0048] Step 302: If yes, it is detected that the batteryless device is powered on.
[0049] If it is detected that the batteryless device accesses the electronic device, it means that it is detected that the batteryless device is powered on.
[0050] Referring to Figure 4 , a flow chart of steps of another batteryless device powered-on detection method provided by the embodiment is shown, as shown in Figure 4 , the batteryless device powered-on detection method can include the following steps:
[0051] Step 401: After the batteryless device accesses the electronic device, it is judged whether the powered-on signal of the batteryless device is received.
[0052] In this example, for the batteryless device which needs to input the powered-on signal to be powered on, after the batteryless device accesses the electronic device, it can be judged whether the powered-on signal of the batteryless device is received. In this example, the powered-on signal can be the signal generated by the user touching the powered-on control provided on the batteryless device, or the signal generated by the user inputting the powered-on voice through the voice receiving interface on the batteryless device, etc.
[0053] After the batteryless device accesses the electronic device, it can be judged whether the powered-on signal of the batteryless device is received.
[0054] If the powered-on signal of the batteryless device is not received, it means that it is detected that the batteryless device is not powered on.
[0055] If the powered-on signal of the batteryless device is received, step 402 is executed.
[0056] Step 402: It is detected that the batteryless device is powered on
[0057] When the powered-on signal of the batteryless device is received, it means that it is detected that the batteryless device is powered on.
[0058] The embodiment can realize the powered-on detection of the batteryless device which is powered on after accessing the electronic device and the batteryless device which needs to input the powered-on signal to be powered on, by detecting whether the batteryless device accesses the electronic device or the powered-on signal of the batteryless device.
[0059] After detecting that the batteryless device is powered on, step 102 is executed.
[0060] Step 102: If it is detected that the batteryless device is powered on, the communication connection with the electronic device is disconnected.
[0061] After it is detected that the batteryless device is powered on, the communication connection with the electronic device can be disconnected. After the communication connection is disconnected, the batteryless device can skip the CDP detection stage.
[0062] In this embodiment, the manner of disconnecting the communication connection with the electronic device can be: disconnecting the communication connection with the batteryless device by disconnecting the DM pin and the DP pin of the communication interface, specifically, the USB (Universal Serial Bus) interface is provided on the batteryless device, the USB interface includes the DM pin and the DP pin for communication connection with the electronic device, the corresponding switches are respectively arranged at the DM pin and the DP pin, after detecting that the batteryless device is powered on, the corresponding switches of the DM pin and the DP pin can be controlled to be disconnected by the GPIO (General Purpose Input Output), so that the communication connection with the electronic device can be disconnected.
[0063] Of course, after the communication connection with the electronic device is disconnected, the batteryless device can still maintain the electrical connection with the electronic device, so that the electronic device can provide a small current for the batteryless device to avoid the interruption of the power-on of the batteryless device.
[0064] After the communication connection with the electronic device is disconnected, step 103 is performed.
[0065] Step 103: After the set duration of disconnecting the communication connection, the communication connection with the electronic device is established.
[0066] The set duration refers to the duration set in advance for maintaining the disconnection of the communication connection. In this example, the set duration can be 12s, 11s, etc. Specifically, the specific value of the set duration can be determined according to business needs, and the present embodiment does not limit this.
[0067] After the communication connection with the electronic device is disconnected, the timing can be started, and when the timing duration reaches the set duration, the communication connection with the electronic device can be established, in this process, the batteryless device can skip the CDP detection stage, and the purpose of the communication between the batteryless device and the electronic device can be achieved.
[0068] In this example, the manner of establishing the communication connection with the electronic device can be: connecting the DM pin and the DP pin of the communication interface to establish the communication connection with the electronic device, specifically, after the set duration of disconnecting the communication connection with the electronic device, the corresponding switches of the DM pin and the DP pin can be controlled to be closed by the GPIO (General Purpose Input Output), so that the communication connection with the electronic device can be established.
[0069] The above process can be combined with Figure 2 The following detailed description is made.
[0070] Referring to Figure 2 , a kind of application environment diagram for establishing electronic equipment communication connection provided by the embodiment of the application is shown, as Figure 2 As shown in the figure, vehicle terminal 220 is arranged in vehicle 210, after batteryless device 230 accesses vehicle terminal and starts, the communication connection of vehicle terminal 220 and batteryless device 230 can be disconnected, after the set duration of disconnecting communication connection, the communication connection of vehicle terminal 220 and batteryless device 230 can be established, in this process, batteryless device 230 can be made to skip CDP detection stage, and then reach the purpose of communication of vehicle terminal and batteryless device.
[0071] The electronic equipment communication establishment method provided by the embodiment of the application, by detecting whether batteryless device is started, if detecting that batteryless device is started, the communication connection with electronic equipment is disconnected, after the set duration of disconnecting communication connection, the communication connection with electronic equipment is established. The embodiment of the application disconnects the communication connection with electronic equipment when detecting that batteryless device is started, so that batteryless device skips CDP detection stage, to reach the purpose of communication of batteryless device and vehicle terminal.
[0072] Embodiment two
[0073] Referring to Figure 5 , a kind of structure schematic diagram of vehicle terminal provided by the embodiment of the application is shown.
[0074] The vehicle terminal 510 is used for:
[0075] After target device accesses, the communication connection with the target device is established.
[0076] In the embodiment of the application, target device refers to external device accessing vehicle terminal, and in specific implementation, target device can access vehicle terminal by USB interface and the like.
[0077] After target device accesses vehicle terminal 510, vehicle terminal 510 can power supply target device, and establish the communication connection with target device.
[0078] After vehicle terminal 510 establishes the communication connection with target device, the next step can be executed by vehicle terminal 510.
[0079] Judge whether the target device is batteryless device.
[0080] After the vehicle terminal 510 establishes a communication connection with the target device, it can be determined whether the target device is a batteryless device. Specifically, when the target device is connected through the USB interface of the vehicle terminal 510, the vehicle terminal 510 can detect the PID (Product ID) and VID (Vender ID) of the USB interface to determine whether the target device is a batteryless device.
[0081] When the vehicle terminal 510 detects that the target device is a battery device, it can normally communicate with the target device and does not need to perform subsequent steps.
[0082] When the vehicle terminal 510 detects that the target device is a batteryless device, the vehicle terminal 510 can perform the next step.
[0083] Disconnecting the communication connection with the batteryless device.
[0084] When the vehicle terminal 510 determines that the target device is a batteryless device, the vehicle terminal 510 can disconnect the communication connection with the batteryless device 520 to enable the batteryless device 520 to skip the CDP detection stage.
[0085] The vehicle terminal 510 can disconnect the communication connection with the batteryless device by disconnecting the DM pin and the DP pin of the communication interface of the batteryless device 520. Specifically, the vehicle terminal 510 is provided with a USB interface including a DM pin and a DP pin for communication connection with an external connected device, and corresponding switches are arranged at the DM pin and the DP pin. After detecting that the batteryless device 520 is powered on, the corresponding switches of the DM pin and the DP pin can be controlled to be disconnected, thereby disconnecting the communication connection with the batteryless device 520.
[0086] After the vehicle terminal 510 disconnects the communication connection with the batteryless device 520, the vehicle terminal 510 can perform the next step.
[0087] After a set time period of disconnecting the communication connection, the communication connection with the batteryless device 520 is established.
[0088] After a set time period of disconnecting the communication connection with the batteryless device 520, the vehicle terminal 510 can establish the communication connection with the batteryless device 520. Specifically, after a set time period of disconnecting the communication connection with the batteryless device, the corresponding switches of the DM pin and the DP pin can be controlled to be connected, thereby establishing the communication connection with the batteryless device.
[0089] The application embodiment can make the batteryless device skip the CDP detection stage, and avoid the problem that the CDP protocol detection fails to cause the communication failure between the batteryless device and the vehicle terminal.
[0090] The vehicle terminal provided by the application embodiment establishes the communication connection with the target device after the target device is accessed, judges whether the target device is a batteryless device, and if so, disconnects the communication connection with the batteryless device, and establishes the communication connection with the batteryless device after a set duration of the disconnected communication connection. The application embodiment disconnects the communication connection with the batteryless device when the accessed device is a batteryless device, so that the batteryless device skips the CDP detection stage, and the batteryless device and the vehicle terminal can communicate.
[0091] Embodiment three
[0092] Reference Figure 6 , a structure schematic diagram of a communication establishment system provided by the application embodiment is shown, as shown in Figure 6 , the communication establishment system 600 can include a vehicle terminal 620 and a batteryless device 610, and the vehicle terminal 620 is electrically connected with the batteryless device 610.
[0093] The batteryless device 610 detects whether the batteryless device 610 is powered on, disconnects the communication connection with the vehicle terminal 620 if it is detected that the batteryless device 610 is powered on, and establishes the communication connection with the vehicle terminal 620 after a set duration of the disconnected communication connection.
[0094] The communication establishment system provided by the application embodiment detects whether the batteryless device 610 is powered on, disconnects the communication connection with the vehicle terminal 620 if it is detected that the batteryless device 610 is powered on, and establishes the communication connection with the vehicle terminal 620 after a set duration of the disconnected communication connection. The application embodiment disconnects the communication connection with the vehicle terminal 620 when it is detected that the batteryless device 610 is powered on, so that the batteryless device 610 skips the CDP detection stage, and the batteryless device 610 and the vehicle terminal 620 can communicate.
[0095] Embodiment four
[0096] Reference Figure 7 , a structure schematic diagram of another communication establishment system provided by the application embodiment is shown, as shown in Figure 7 , the communication establishment system 700 can include a vehicle terminal 710 and a batteryless device 720, and the vehicle terminal 710 is in communication connection with the batteryless device 720.
[0097] The vehicle terminal 710 judges whether the target device is a batteryless device, and if yes, disconnects the communication connection with the batteryless device 720, and after a set time length of disconnecting the communication connection, establishes the communication connection with the batteryless device 720.
[0098] The communication establishment system provided by the embodiment of the application judges whether the target device is a batteryless device, and if yes, disconnects the communication connection with the batteryless device 720, and after a set time length of disconnecting the communication connection, establishes the communication connection with the batteryless device 720. The embodiment of the application disconnects the communication connection with the batteryless device 720 when the accessed device is the batteryless device 720, so that the batteryless device 720 skips the CDP detection stage, and the purpose of the communication between the batteryless device 720 and the vehicle terminal 710 is achieved.
[0099] Embodiment five
[0100] The embodiment of the application provides an electronic device, including a memory, a processor and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the electronic device communication establishment method is realized.
[0101] Reference Figure 8 , a structure schematic diagram of an electronic device provided by the embodiment of the application is shown, as Figure 8 shown, the electronic device 800 includes a central processing unit (CPU) 801, which can execute various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 802 or computer program instructions loaded from a storage unit 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The CPU 801, the ROM 802 and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0102] A plurality of components in the electronic device 800 are connected to the I / O interface 805, including an input unit 806, such as a keyboard, a mouse, a microphone, etc.; an output unit 807, such as various types of displays, a loudspeaker, etc.; a storage unit 808, such as a magnetic disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.
[0103] The various processes and processes described above can be performed by processing unit 801. For example, the methods of any of the embodiments described above can be implemented as a computer software program that is tangibly embodied in a computer readable medium, such as storage unit 808. In some embodiments, portions of the computer program, or all of the computer program, can be loaded onto the electronic device 800 via, for example, ROM 802 and / or communication unit 809. When a computer program is loaded onto the RAM 803 and executed by the CPU 801, one or more acts of any of the above described methods can be performed.
[0104] Embodiment six
[0105] The embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to realize various processes of the above-mentioned electronic device communication establishment method embodiment, and the same technical effects can be achieved. To avoid repetition, it will not be repeated here. Among them, the computer readable storage medium, such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk or optical disk, etc.
[0106] It should be noted that in this paper, the term "include", "contain" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0107] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) execute the method described in each embodiment of the present application.
[0108] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the specific embodiments described above, and the specific embodiments described above are merely illustrative, but not restrictive, and a person of ordinary skill in the art can make many forms under the inspiration of the present application without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection of the present application.
[0109] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the embodiments of the present application can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software mode depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0110] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
[0111] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0112] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected to achieve the purpose of the embodiments of the present application according to actual needs.
[0113] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.
[0114] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the parts that contribute to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, etc.
[0115] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. An electronic device communication establishment method, characterized by, The method comprises the following steps: Detecting whether the batteryless device is powered on, wherein the batteryless device comprises a communication interface, the communication interface comprises a GPIO general input / output port, a DM pin and a DP pin connected with the electronic device, and the DM pin and the DP pin respectively comprise corresponding switches; If it is detected that the batteryless device is powered on, then disconnecting the communication connection with the electronic device while maintaining the electrical connection between the batteryless device and the electronic device; After a set time length of disconnecting the communication connection, establishing the communication connection with the electronic device; If it is detected that the batteryless device is powered on, then disconnecting the communication connection with the electronic device while maintaining the electrical connection between the batteryless device and the electronic device; After a set time length of disconnecting the communication connection, establishing the communication connection with the electronic device.
2. The method according to claim 1, wherein the step of detecting whether the batteryless device is powered on comprises the following steps: Detecting whether the batteryless device is connected to the electronic device; If yes, then detecting that the batteryless device is powered on.
3. The method according to claim 1, wherein the step of detecting whether the batteryless device is powered on comprises the following steps: After the batteryless device is connected to the electronic device, judging whether a power-on signal of the batteryless device is received; If yes, then detecting that the batteryless device is powered on.
4. A vehicle terminal, characterized by comprising: The vehicle-mounted terminal is provided with a communication interface; the communication interface comprises a GPIO general input / output port, a DM pin and a DP pin connected with the batteryless device, and the DM pin and the DP pin respectively comprise corresponding switches; After the target device is connected, establishing the communication connection with the target device; Judging whether the target device is a batteryless device; If yes, then disconnecting the communication connection with the batteryless device while maintaining the electrical connection between the batteryless device and the electronic device; After a set time length of disconnecting the communication connection, establishing the communication connection with the batteryless device; Disconnecting the communication connection with the batteryless device by controlling the switches corresponding to the DM pin and the DP pin to be disconnected through the GPIO general input / output port; Establishing the communication connection with the batteryless device by controlling the switches corresponding to the DM pin and the DP pin to be connected through the GPIO general input / output port.
5. A communication setup system, characterized by, The system comprises a vehicle terminal and a battery-free device, the vehicle terminal is electrically connected with the battery-free device; the battery-free device comprises a communication interface, the communication interface comprises a GPIO general input / output port, a DM pin and a DP pin which are in communication connection with the vehicle terminal, and the DM pin and the DP pin respectively comprise corresponding switches; The battery-free device detects whether the battery-free device is powered on; if it is detected that the battery-free device is powered on, the communication connection with the vehicle terminal is disconnected, and the electrical connection between the battery-free device and the vehicle terminal is maintained; after a set time length of disconnection of the communication connection, the communication connection with the vehicle terminal is established; if it is detected that the battery-free device is powered on, the communication connection with the vehicle terminal is disconnected, which comprises that if it is detected that the battery-free device is powered on, the switches corresponding to the DM pin and the DP pin are controlled to be disconnected by the GPIO general input / output port, so that the communication connection with the vehicle terminal is disconnected; after a set time length of disconnection of the communication connection, the communication connection with the vehicle terminal is established, which comprises that after a set time length of disconnection of the communication connection, the switches corresponding to the DM pin and the DP pin are controlled to be connected by the GPIO general input / output port, so that the communication connection with the vehicle terminal is established.
6. A communication setup system, characterized by The system comprises a vehicle terminal and a battery-free device, the vehicle terminal is in communication connection with the battery-free device; the vehicle terminal is provided with a communication interface; the communication interface comprises a GPIO general input / output port, a DM pin and a DP pin which are in communication connection with the battery-free device, and the DM pin and the DP pin respectively comprise corresponding switches; The vehicle terminal judges whether a target device is a battery-free device; if yes, the communication connection with the battery-free device is disconnected, and the electrical connection between the vehicle terminal and the battery-free device is maintained; after a set time length of disconnection of the communication connection, the communication connection with the battery-free device is established; the communication connection with the battery-free device is disconnected, which comprises that the switches corresponding to the DM pin and the DP pin are controlled to be disconnected by the GPIO general input / output port, so that the communication connection with the battery-free device is disconnected; the communication connection with the battery-free device is established, which comprises that the switches corresponding to the DM pin and the DP pin are controlled to be connected by the GPIO general input / output port, so that the communication connection with the battery-free device is established.
7. An electronic device, comprising: It comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, when the computer program is executed by the processor, the electronic device communication establishment method in any one of claims 1 to 3 is realized.
8. A readable storage medium, characterized by, When the instructions in the readable storage medium are executed by the processor of the electronic device, the electronic device can execute the electronic device communication establishment method in any one of claims 1 to 3.
Citation Information
Patent Citations
Electronic equipment control method and device, control circuit and electronic equipment
CN108845655A
Vehicle-mounted information system USB charging mode control method and device
CN110601287A
Method for controlling transmissions from a resource-restricted device, and batteryless device
US20120056728A1