Charging cabinet and communication connection method

By designing networking units, processing units and control units in the charging cabinet, and using the target serial port and the target interface to establish communication connections with the server, the problem of low network connection reliability of the traditional charging cabinet is solved and a more stable communication connection is achieved.

CN119484606APending Publication Date: 2025-02-18BEIJING QISHENG SCIENCE AND TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310994224.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-08
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The network connection between the traditional charging cabinet and the server is low, resulting in the communication connection being easily disconnected.

Method used

A charging cabinet is designed, including a networking unit, a processing unit and a control unit, and a communication connection is established with the server through the target serial port and the target interface of the networking unit, avoiding the hardware circuit complexity of multiple Ethernet port routers.

Benefits of technology

It improves the reliability of communication connection between the charging cabinet and the server, reduces the complexity of hardware circuits, avoids the problem of network disconnection, and ensures the stability of communication through two independent communication connection channels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484606A_ABST
    Figure CN119484606A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a charging cabinet and a communication connection method. The charging cabinet comprises a networking unit, a processing unit and a control unit. The networking unit comprises a target serial port and a target interface; communication connection is established between the networking unit and the server; the control unit is connected with the networking unit through the target serial port so as to establish communication connection between the control unit and the server; and the processing unit is connected with the networking unit through the target interface so as to establish communication connection between the processing unit and the server. By adopting the method, the reliability of communication connection between the charging cabinet and the server can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to the field of communication technology, and in particular, to a charging cabinet and a communication connection method. Background Art

[0002] With the development of shared electric vehicles and C-end battery replacement business, the number of shared batteries has increased dramatically. Charging cabinets can replenish and replace shared batteries in a timely manner. Charging cabinets are responsible for battery charge and discharge management and battery safety monitoring. To ensure the normal operation of charging cabinets, they need to be connected to the server in real time.

[0003] In traditional technology, each device in the charging cabinet is connected to the network ports of the internal router to achieve network connection with the server.

[0004] However, conventional technologies have the problem of low reliability of the network connection between the charging cabinet and the server. Summary of the invention

[0005] The embodiments of the present disclosure provide a charging cabinet and a communication connection method, which can be used to improve the reliability of the communication connection between the charging cabinet and the server.

[0006] In a first aspect, an embodiment of the present disclosure provides a charging cabinet, the charging cabinet comprising:

[0007] The charging cabinet includes a networking unit, a processing unit and a control unit; the networking unit includes a target serial port and a target interface;

[0008] Establishing a communication connection between the networking unit and the server;

[0009] The control unit is connected to the networking unit via the target serial port to establish a communication connection between the control unit and the server;

[0010] The processing unit is connected to the networking unit through the target interface to establish a communication connection between the processing unit and the server.

[0011] In a second aspect, an embodiment of the present disclosure provides a communication connection method, which is applied to the charging cabinet described in the first aspect above, and the method includes:

[0012] A first control instruction is sent to the networking unit through the target serial port, where the first control instruction is used to instruct the networking unit to establish a communication connection between the control unit and the server.

[0013] In a third aspect, an embodiment of the present disclosure provides a communication connection device, the device comprising:

[0014] A sending module is used to send a first control instruction to the networking unit through the target serial port, wherein the first control instruction is used to instruct the networking unit to establish a communication connection between the control unit and the server.

[0015] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0016] In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0017] In the fifth and sixth aspects, the embodiments of the present disclosure provide a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.

[0018] The charging cabinet and communication connection method provided by the embodiment of the present disclosure, the charging cabinet includes a networking unit, a processing unit and a control unit, the networking unit includes a target serial port and a target interface, and a communication connection is established between the networking unit and the server, so that the control unit is connected to the networking unit through the target serial port, and a communication connection can be established between the control unit and the server, and the processing unit is connected to the networking unit through the target interface, and a communication connection can be established between the processing unit and the server. In the embodiment of the present application, the connection between the control unit and the server, and the communication connection between the processing unit and the server can be achieved only through the target serial port and the target interface of the networking unit, thereby avoiding the problem of complex hardware circuit connection of the charging cabinet communication connection, which leads to easy network disconnection, and improves the reliability of the communication connection between the charging cabinet and the server; in addition, by respectively establishing the communication connection between the control unit and the server, and the communication connection between the processing unit and the server, a communication connection channel between the control unit and the server, and a communication connection channel between the processing unit and the server can be established, and the two communication connection channels do not interfere with each other, further ensuring the reliability of the communication connection between the charging cabinet and the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a schematic diagram of a charging cabinet in one embodiment;

[0020] Figure 2 is a schematic diagram of a charging cabinet in another embodiment;

[0021] Figure 3 is a schematic diagram of a charging cabinet in another embodiment;

[0022] Figure 4is a schematic diagram of a charging cabinet in another embodiment;

[0023] Figure 5 is a schematic diagram of a charging cabinet in another embodiment;

[0024] Figure 6 is a schematic diagram of a charging cabinet in another embodiment;

[0025] Figure 7 is a schematic diagram of a charging cabinet in another embodiment;

[0026] Figure 8 A flowchart of establishing a communication connection between a charging cabinet and a server in one embodiment;

[0027] Fig. 9 is a structural block diagram of a communication connection device in one embodiment;

[0028] Fig.10 is a structural block diagram of a communication connection device in another embodiment;

[0029] Fig.11 This is a diagram of the internal structure of a charging cabinet in one embodiment;

[0030] Description of reference numerals:

[0031] Networking unit: 10; Target serial port: 101; Target interface: 102;

[0032] Switching circuit: 103; Processing unit: 20; Control unit: 30;

[0033] Surveillance cameras:40. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure more clear, the embodiments of the present disclosure are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present disclosure and are not used to limit the embodiments of the present disclosure.

[0035] First of all, before specifically introducing the technical solution of the embodiment of the present disclosure, the technical background or technical evolution context on which the embodiment of the present disclosure is based is introduced. Generally, in the field of communication connection of charging cabinets, the current technical background is: a router including multiple Ethernet ports is set in the charging cabinet, and each device in the charging cabinet establishes a communication connection with the server through the Ethernet port, which leads to the hardware circuit of the communication connection between the charging cabinet and the server being complex, and then leads to the problem of low reliability of the communication connection. Based on this background, the applicant has found through long-term model simulation research and development and the collection, demonstration and verification of experimental data that when the router is set up with an Ethernet port, transformers, demodulators and other equipment are required, which will lead to complex hardware circuit connections, frequent network disconnection failures, and low reliability of communication connections. How to reduce the setting of Ethernet ports and reduce the complexity of hardware circuits has become a difficult problem that needs to be solved urgently. In addition, it should be noted that the applicant has put in a lot of creative work from determining the technical solution to reduce the setting of Ethernet ports and the following embodiments.

[0036] In one embodiment, Figure 1 As shown, a charging cabinet is provided, which includes a networking unit 10, a processing unit 20 and a control unit 30; the networking unit 10 includes a target serial port 101 and a target interface 102; a communication connection is established between the networking unit 10 and the server; the control unit 30 is connected to the networking unit 10 through the target serial port 101 to establish a communication connection between the control unit 30 and the server; the processing unit 20 is connected to the networking unit 10 through the target interface 102 to establish a communication connection between the processing unit 20 and the server.

[0037] Among them, the networking unit 10 is an integrated circuit with communication connection function. The networking unit 10 can be embedded in the charging cabinet. In this embodiment, the networking unit 10 can insert a subscriber identification (Subscriber Identity Module, SIM) card, and realize the communication function after the SIM card is authenticated, thereby establishing a communication connection with the server. Optionally, the networking unit 10 may also have a routing function, and can be connected to other devices through the target serial port 101 and the target interface 102 set in the networking unit 10, so as to provide a communication network for other devices, wherein the serial port is also called a serial communication interface, which is a technology for transmitting data through serial communication, and the interface refers to a communication interface for signal transmission. Optionally, the target serial port 101 may be a universal asynchronous receiver / transmitter (UART) serial port, or the target serial port 101 may be a serial peripheral interface (SPI) for synchronous serial communication, or the target serial port 101 may be an integrated circuit bus (Intel-Integrated Circuitbus, IIC) interface for synchronous half-duplex communication, and the target interface 102 may be a universal serial bus (USB) interface, and this embodiment does not impose any restrictions on this.

[0038] Optionally, the communication connection established between the networking unit 10 and the server can be a communication connection of a 4G CAT1 network, or a communication connection of a 4G CAT4 network, or a communication connection of a 5G network, and this embodiment does not impose any restrictions on this.

[0039] The control unit 30 is an integrated circuit that controls other devices to complete various processing according to the received instructions. For example, the control unit 30 can be a single-chip microcomputer. The control unit 30 can be embedded in the charging cabinet. Optionally, a communication serial port matching the target serial port 101 of the networking unit 10 can be set in the control unit 30, and the target serial port 101 of the networking unit 10 is connected to the control unit 10 through the communication serial port. Alternatively, a communication interface matching the target interface 102 of the networking unit 10 can be set in the control unit 30, and the target interface 102 of the networking unit 10 is connected to the control unit 10 through the communication interface.

[0040] The processing unit 20 is an integrated circuit that processes received data according to received instructions. The processing unit 20 can be embedded in the charging cabinet. Optionally, a communication serial port matching the target serial port 101 of the networking unit 10 can be set in the processing unit 20 to be connected to the target serial port 101 of the networking unit 10, or a communication interface matching the target interface 102 of the networking unit 10 can be set in the processing unit 20 to be connected to the target interface 102 of the networking unit 10.

[0041] In this embodiment, a SIM card can be inserted into the networking unit 10, and the communication function can be realized through the SIM card, and a communication connection between the networking unit 10 and the server can be established to realize the networking function of the networking unit 10. It should be noted that in order to ensure the efficiency and accuracy of data transmission, the networking unit 10 can be connected to different devices through the target serial port 101 and the target interface 102, respectively, so as to provide a communication connection for other devices. When the networking unit 10 realizes the networking function, the networking unit 10 can turn on the routing function, the control unit 30 can be connected to the target serial port 101 of the networking unit 10 through the communication serial port, and the communication connection with the server can be realized through the networking unit 10, and the processing unit 20 can be connected to the target interface 102 through the communication interface, and the communication connection with the server can be realized through the networking unit 10.

[0042] The above-mentioned charging cabinet includes a networking unit, a processing unit and a control unit. The networking unit includes a target serial port and a target interface. A communication connection is established between the networking unit and the server, so that the control unit is connected to the networking unit through the target serial port, and a communication connection can be established between the control unit and the server, and the processing unit is connected to the networking unit through the target interface, and a communication connection can be established between the processing unit and the server. In the embodiment of the present application, the connection between the control unit and the server, and the communication connection between the processing unit and the server can be achieved only through the target serial port and the target interface of the networking unit, so that the charging cabinet does not need to be provided with a router including multiple Ethernet ports, avoiding the complex hardware circuit connection of the charging cabinet communication connection, which leads to the problem of easy network disconnection, and improves the reliability of the communication connection between the charging cabinet and the server; in addition, by respectively establishing the communication connection between the control unit and the server, and the communication connection between the processing unit and the server, a communication connection channel between the control unit and the server, and a communication connection channel between the processing unit and the server can be established, and the two communication connection channels do not interfere with each other, further ensuring the reliability of the communication connection between the charging cabinet and the server.

[0043] In one embodiment, please continue to refer to Figure 1The control unit 30 is used to send a first control instruction to the networking unit 10 through the target serial port 101, and the first control instruction is used to instruct the networking unit 10 to establish a communication connection between the control unit 30 and the server.

[0044] Among them, the first control instruction is sent by the control unit 30 to the networking unit 10. After receiving it, the networking unit 10 can recognize and execute the instruction of the response operation. In this embodiment, the first control instruction can be used to instruct the networking unit 10 to establish a communication connection between the control unit 30 and the server.

[0045] As an optional implementation, the first control instruction may also carry information to be sent by the control unit 30. Optionally, the information to be sent may be status information of the charging cabinet. For example, the status information may be the charging status of the battery of each charging compartment in the charging cabinet. Furthermore, the control unit 30 sends the first control instruction to the networking unit 10 through the target serial port 101. In addition to instructing the networking unit 10 to establish a communication connection between the control unit 30 and the server, the information to be sent by the control unit 30 may also be forwarded to the server.

[0046] As an optional implementation, the control unit 30 may also receive control instructions sent by the server through the networking unit 10, such as Figure 2 As shown, the control unit 30 may also be connected to the processing unit 20 via a communication serial port to send the received control instructions to the processing unit 20 .

[0047] In this embodiment, the control unit 30 can be connected to the target serial port 101 of the networking unit 10 through the communication serial port set on the control unit 30, and the first control instruction can be sent to the networking unit 10 through the target serial port 101. After receiving the first control instruction, the networking unit 10 can forward the first control instruction to the server, thereby sending the message in the control unit 30 to the server and establishing a communication connection between the control unit 30 and the server. Exemplarily, if the target serial port 101 is a UART serial port and the first control instruction is an AT instruction, the control unit 30 can send the AT instruction to the networking unit 10 through the UART serial port, and the networking unit 10 can forward the received AT instruction to the server to establish a communication connection between the control unit 30 and the server.

[0048] In an embodiment of the present application, the control unit is used to send a first control instruction to the networking unit through the target serial port, and can instruct the networking unit to establish a communication connection between the control unit and the server through the first control instruction, thereby realizing the communication connection function of the control unit, and then establishing a communication connection between the charging cabinet and the server.

[0049] In the scenario where the control unit 30 is connected to the networking unit 10 through the target serial port 101 to establish a communication connection between the control unit 30 and the server, the control unit 30 can determine whether to establish a connection with the server based on whether a response message sent by the networking unit 10 is received. Figure 1 The control unit 30 is used to determine that the control unit 30 establishes a communication connection with the server when receiving the response information sent by the networking unit 10; the response information is sent by the server to the networking unit 10 in response to the first control instruction.

[0050] The response message is generated by the server according to the first control instruction. It is understandable that after receiving the first control instruction generated by the control unit 30, the server can generate a response message according to the first control instruction and send the response message to the networking unit 10. After receiving the response message, the networking unit 10 can forward the response message to the control unit 30 according to the identification information carried in the response message.

[0051] In this embodiment, if the control unit 30 receives a response message sent by the networking unit 10, it means that the server has successfully received the first control instruction, that is, the control unit 30 and the server can communicate normally, then the control unit 30 can determine that a communication connection has been established with the server.

[0052] In an embodiment of the present application, the control unit is used to quickly determine that a communication connection is established between the control unit and the server based on the response message when the control unit receives the response information sent by the networking unit, so that the status information of the charging cabinet can be reported to the server based on the communication connection channel between the control unit and the server.

[0053] In the scenario where the control unit 30 determines to establish a communication connection with the server upon receiving the response information sent by the networking unit 10, the control unit 30 may determine whether the establishment of the communication connection with the server fails based on whether the response information is not received within a preset time period. Figure 1 The control unit 30 is further configured to determine that the communication connection with the server fails to be established when no response information is received within a preset time period.

[0054] It is understandable that if a network failure occurs, the first control instruction sent by the control unit 30 may not be sent to the server, and the server cannot generate a response message; or, after the server receives the first control instruction, the network fails, the response message generated by the server cannot be sent to the networking unit 10, and the control unit 30 cannot receive the response message; or, if a network delay occurs, the response message generated by the server may be sent to the networking unit 10 after a delay period, and the control unit 30 may receive the response message after the delay period. Optionally, the delay period may be 60ms, or 80ms. The delay period may also be set according to the actual communication connection rate requirements, and this embodiment does not impose any restrictions on this.

[0055] In this embodiment, the control unit 30 can determine whether the communication connection with the server is successful based on the waiting time of the received response message. If the control unit 30 does not receive a response message within the preset time, the control unit 30 can determine that the communication connection with the server has failed.

[0056] In an embodiment of the present application, the control unit can determine that the communication connection with the server has failed to be established by not receiving a response message within a preset time period, thereby being able to promptly determine whether the communication connection between the control unit and the server is normal, thereby avoiding the problem of abnormal communication connection and the inability to promptly repair the charging cabinet.

[0057] In the case where the control unit 30 does not receive a response message within a preset time period and determines that the communication connection with the server fails to be established, the control unit 30 may send a second control instruction to the networking unit 10 to instruct the networking unit 10 to power off and restart. Figure 1 The control unit 30 is also used to send a second control instruction to the networking unit 10 when it is determined that the communication connection with the server has failed to be established; the second control instruction is used to instruct the networking unit 10 to power off and restart.

[0058] Among them, the second control instruction is an instruction sent by the control unit 30 to the networking unit 10, so that the networking unit 10 performs a response operation according to the second control instruction. In this embodiment, the second control instruction is used to instruct the networking unit 10 to power off and restart. Exemplarily, the second control instruction can be a high level and a low level output through the output port of the control unit 30. Optionally, if the control unit 30 outputs a high level, the second control instruction can be to control the networking unit 10 to start; if the control unit 30 outputs a low level, the second control instruction can be to control the networking unit 10 to power off. It can be understood that if the communication connection function of the networking unit 10 fails, it may cause the failure of the communication connection between the control unit 30 and the server. Therefore, the networking unit 10 can be restarted to enable the networking unit 10 to re-establish the communication connection with the server.

[0059] In this embodiment, if the control unit 30 determines that the communication connection with the server has failed to be established, it can send a second control instruction to the networking unit 10, and control the networking unit 10 to power off and restart through the second control instruction, so as to control the networking unit 10 to re-establish the communication connection with the server.

[0060] In an embodiment of the present application, the control unit can, upon determining that the communication connection with the server has failed to be established, send a second control instruction to the networking unit, thereby controlling the networking unit to power off and restart, so that the networking unit can re-establish the communication connection with the server, and then the control unit can re-establish the communication connection with the service period through the networking unit.

[0061] In the above scenario where the control unit 30 sends the second control instruction to the networking unit 10 to instruct the networking unit 10 to power off and restart, the control unit 30 may send the second control instruction to the switch circuit 103 of the networking unit 10 to control the networking unit 10 to power off and restart through the switch circuit 103. In one embodiment, Figure 3 As shown, the networking unit 10 includes a switch circuit 103; a control unit 30 is used to send a second control instruction to the switch circuit 103, and control the networking unit 10 to power off and restart through the switch circuit 103.

[0062] Among them, the switch circuit 103 is used to control the conduction and power-off of the networking unit 10. Optionally, the switch circuit 103 can be a relay, or the switch circuit 103 can also be an isolating switch; or, the switch circuit 103 can also be a transistor switch, which is not limited in this embodiment.

[0063] In this embodiment, the control unit 30 can control the networking unit 10 to power off and restart by sending a second control instruction to the switch circuit 103 and controlling the conduction and disconnection of the switch circuit 103 through the second control instruction. By way of example, the control unit 30 can send a second control instruction carrying a low-level signal to the switch circuit 103 to control the networking unit 10 to power off. When the networking unit 10 is powered off, the control unit 30 can send a second control instruction carrying a high-level signal to the switch circuit 103 to control the networking unit 10 to power on and restart.

[0064] In the embodiment of the present application, the control unit can conveniently control the on and off of the switch circuit by sending a second control instruction to the switch circuit, thereby conveniently controlling the power off and restart of the networking unit, and further realizing the function of self-recovery of the networking unit when the network is disconnected. There is no need for operation and maintenance personnel to go to the charging cabinet site to power off and restart, thereby reducing the maintenance cost of the charging cabinet.

[0065] In one embodiment, Figure 4 As shown, the charging cabinet also includes: a monitoring camera 40, which includes a network interface; the processing unit 20 also includes a communication interface; the monitoring camera 40 is connected to the communication interface of the processing unit 20 through the network interface to establish a communication connection with the server.

[0066] Among them, the monitoring camera 40 can be used to record the operation of the charging cabinet, for example, it can record whether there is a battery charging in each charging compartment in the charging cabinet, and it can also record whether the cabinet door of each charging compartment is closed normally. Optionally, the data transmission method of the monitoring camera 40 can be wired transmission or wireless transmission. It should be noted that after the processing unit 20 establishes a communication connection with the server through the networking unit 10, it can also have a soft routing function, and other devices in the charging cabinet can establish a communication connection with the server by connecting to the processing unit 20.

[0067] In this embodiment, the monitoring camera 40 may include a network interface, which is connected to the communication interface of the processing unit 20 through the network interface to establish a communication connection between the monitoring camera 40 and the server, so that the monitoring data can be sent to the processing unit 20, and the monitoring data is forwarded to the server through the processing unit 20 to establish a communication connection with the server. Optionally, in this embodiment, the network interface in the monitoring camera 40 can be an RJ45 network port, through which another RJ45 network port can be connected, through which another RJ45 network port can be connected to a physical layer (Physical Layer, PHY) chip, through which the PHY chip can be connected to a media access control (Media Access Control, MAC) chip in the communication interface built into the processing unit 20, thereby establishing an Ethernet connection channel between the monitoring camera 40 and the processing unit 20, and sending monitoring data to the processing unit 20 through the Ethernet connection channel.

[0068] It can be understood that after receiving the monitoring data, the server can generate a response message based on the received monitoring data and send the response message to the networking unit 10. The networking unit 10 can forward the received response message to the processing unit 20. The processing unit 20 can determine that the communication connection between the monitoring camera 40 and the service interval has been successfully established upon receiving the response message.

[0069] As an optional implementation, if the processing unit 20 does not receive a response message within a preset time period, it can be determined that the communication connection between the surveillance camera 40 and the server has failed to be established. The processing unit 20 can send the information of the failure to establish the communication connection to the communication serial port of the control unit 30 through the communication serial port. After the control unit 30 receives the information of the failure to establish the communication connection, it can send a second control instruction to the switch circuit 103 of the networking unit 10 after a preset time period, so as to control the networking unit 10 to power off and restart through the switch circuit 103.

[0070] Optional, such as Figure 5 As shown, the charging cabinet provided in the embodiment of the present application may further include a display screen 50. The display screen 50 may be connected to the processing unit 20 by setting a display interface. When the processing unit 20 receives a display instruction sent by the control unit 30, the processing unit 20 may send the content to be displayed to the display screen 50 through the display interface for display according to the display instruction. Exemplarily, if the control unit 30 receives an instruction from the server to display the screen of the first charging compartment, the control unit 30 may send the instruction to the processing unit 20. After the processing unit 20 receives the instruction, it may send the screen of the first charging compartment through the display interface to the display screen 50 for display. Optionally, a real-time image may be displayed, or a historical image of a specified historical time period may be displayed.

[0071] In an embodiment of the present application, the charging cabinet also includes a monitoring camera, which can be connected to the communication interface of the processing unit through the included network interface, so that a communication connection with the server can be established, and the operating status information of the charging cabinet recorded by the monitoring camera can be transmitted to the server, so that the operation and maintenance personnel can obtain the operating status of the charging cabinet on the server side.

[0072] In one embodiment, Figure 6 As shown, the networking unit 10 and the processing unit 20 are integrated in the charging cabinet.

[0073] In this embodiment, the networking unit 10 and the processing unit 20 can be integrated into a circuit, and the integrated circuit can be set in the charging cabinet. The processing unit 20 can then directly send the received data to the networking unit 10 without the need to set up an additional communication interface. It is only necessary to set up the target serial port 101 to connect with the control unit 30 to establish a communication connection between different devices in the charging cabinet and the server.

[0074] In the embodiment of the present application, by integrating the networking unit and the processing unit in the charging cabinet, the line settings for establishing the communication connection between the networking unit and the processing unit can be reduced. Since the line connections are reduced, the problem of communication connection failure due to complex lines is avoided, which can further improve the reliability of the communication connection between the charging cabinet and the server.

[0075] For example, Figure 7 A complete description of the charging cabinet provided in the embodiment of the present application is given. The connection relationship between the networking unit 10, the control unit 30, the processing unit 20, the monitoring camera 40 and the display screen 50 in the charging cabinet provided in the embodiment of the present application can be as follows: Figure 7 As shown, the control unit 30 is connected to the UART serial port of the networking unit 10 through the UART serial port, so as to establish a communication connection with the server; the processing unit 20 is connected to the USB interface 102 of the networking unit 10 through the USB interface, so as to establish a communication connection with the server; the processing unit 20 is connected to the UART serial port of the control unit 30 through the UART serial port, so as to receive the control command sent by the server forwarded by the control unit 30; the monitoring camera 40 is connected to the MAC chip of the processing unit 20 through the RJ45 network port and the PHY chip, so as to send the monitoring data to the processing unit 20 and establish a communication connection with the server; the display screen 50 is connected to the processing unit 20 through the display interface, so as to display the display content sent by the processing unit 20; the antenna is used to transmit or receive electromagnetic waves.

[0076] In one embodiment, a communication connection method is also provided. The communication connection method can be applied to the charging cabinet. Figure 1 Taking the control unit in as an example, it includes: sending a first control instruction to the networking unit through the target serial port, and the first control instruction is used to instruct the networking unit to establish a communication connection between the control unit and the server.

[0077] Among them, the target serial port is a serial interface in the networking unit used to establish a communication connection with other devices. The first control instruction is sent by the control unit to the networking unit. After receiving it, the networking unit can recognize and execute the response operation instruction. In this embodiment, the first control instruction can be used to instruct the networking unit to establish a communication connection between the control unit and the server.

[0078] As an optional implementation, the first control instruction may also carry information to be sent by the control unit. The control unit sends the first control instruction to the networking unit through the target serial port, which can instruct the networking unit to establish a communication connection between the control unit and the server, and forward the information to be sent by the control unit to the server. Optionally, the information to be sent may be status information of the charging cabinet, for example, the status information may be the charging status of the battery of each charging compartment in the charging cabinet.

[0079] In this embodiment, the control unit can be connected to the target serial port of the networking unit through the communication serial port set on the control unit, and send a first control instruction to the networking unit through the target serial port. After receiving the first control instruction, the networking unit can forward the first control instruction to the server, thereby sending the message in the control unit to the server and establishing a communication connection between the control unit and the server.

[0080] In the embodiment of the present application, the control unit sends a first control instruction to the networking unit through the target serial port, which can instruct the networking unit to send the first control instruction to the server, so that a communication connection between the control unit and the server can be established. In the embodiment of the present application, the connection between the control unit and the server can be achieved only through the target serial port of the networking unit, and there is no need to set up a router including multiple Ethernet ports, which avoids the complex hardware circuit connection of the charging cabinet communication connection, which may lead to network disconnection problems, and improves the reliability of the communication connection between the charging cabinet and the server.

[0081] In one embodiment, the above method further includes: determining to establish a communication connection with the server when receiving response information sent by the networking unit; the response information is sent by the server to the networking unit in response to the first control instruction.

[0082] The response message is generated by the server according to the first control instruction. It is understandable that after receiving the first control instruction generated by the control unit, the server can generate a response message according to the first control instruction and send the response message to the networking unit. After receiving the response message, the networking unit can forward the response message to the control unit according to the identification information carried in the response message.

[0083] In this embodiment, if the control unit receives a response message sent by the networking unit, it means that the server has successfully received the first control instruction, that is, the control unit and the server can communicate normally, so the control unit can determine that a communication connection has been established with the server.

[0084] In an embodiment of the present application, the control unit is used to quickly determine that a communication connection is established between the control unit and the server based on the response message when the control unit receives the response information sent by the networking unit, so that the status information of the charging cabinet can be reported to the server based on the communication connection channel between the control unit and the server.

[0085] In one embodiment, the method further includes: if no response information is received within a preset time period, determining that the communication connection with the server has failed to be established.

[0086] It is understandable that if a network failure occurs, the first control instruction sent by the control unit may not be sent to the server, and the server cannot generate a response message, the networking unit cannot receive the response message, and the control unit cannot receive the response message.

[0087] In this embodiment, the control unit can determine whether the communication connection with the server is successful based on the waiting time of the received response message. If the control unit does not receive a response message within the preset time, the control unit can determine that the communication connection with the server has failed.

[0088] In an embodiment of the present application, the control unit can determine that the communication connection with the server has failed to be established by not receiving a response message within a preset time period, thereby being able to promptly determine whether the communication connection between the control unit and the server is normal, thereby avoiding the problem of abnormal communication connection and the inability to promptly repair the charging cabinet.

[0089] Optionally, when it is determined that the communication connection with the server has failed to be established, a second control instruction is sent to the networking unit; the second control instruction is used to instruct the networking unit to power off and restart.

[0090] The second control instruction is an instruction sent by the control unit to the networking unit so that the networking unit executes a response operation according to the second control instruction. It is understandable that if the communication connection function of the networking unit fails, it may cause the communication connection between the control unit and the server to fail to be established. Therefore, the networking unit can be restarted to enable the networking unit to re-establish the communication connection with the server.

[0091] In this embodiment, if the control unit determines that the communication connection with the server has failed to be established, a second control instruction can be sent to the networking unit, and the second control instruction can be used to control the networking unit to power off and restart so that the networking unit can re-establish the communication connection with the server.

[0092] In an embodiment of the present application, the control unit can, upon determining that the communication connection with the server has failed to be established, send a second control instruction to the networking unit, thereby controlling the networking unit to power off and restart, so that the networking unit can re-establish the communication connection with the server, and then the control unit can re-establish the communication connection with the service period through the networking unit.

[0093] Optionally, the networking unit includes a switching circuit; sending the second control instruction to the networking unit includes: sending the second control instruction to the switching circuit.

[0094] Among them, the switch circuit is used to control the conduction and power-off of the networking unit. Optionally, the switch circuit can be a relay, or the switch circuit can also be an isolating switch; or, the switch circuit can also be a transistor switch, which is not limited in this embodiment.

[0095] In this embodiment, the control unit can control the power-off and restart of the networking unit by sending a second control instruction to the switching circuit and controlling the conduction and disconnection of the switching circuit through the second control instruction. Exemplarily, the control unit can send a second control instruction carrying a low-level signal to the switching circuit to control the power-off of the networking unit. When the networking unit is powered off, the control unit can send a second control instruction carrying a high-level signal to the switching circuit to control the power-on and restart of the networking unit.

[0096] In the embodiment of the present application, the control unit can conveniently control the on and off of the switch circuit by sending a second control instruction to the switch circuit, thereby conveniently controlling the power off and restart of the networking unit, and further realizing the function of self-recovery of the networking unit when the network is disconnected. There is no need for operation and maintenance personnel to go to the charging cabinet site to power off and restart, thereby reducing the maintenance cost of the charging cabinet.

[0097] The following describes an embodiment of the present disclosure in conjunction with a specific scenario of establishing a communication connection between a charging cabinet and a server. Figure 8 , the method comprises the following steps:

[0098] S1, start the charging cabinet.

[0099] S2, start the control unit.

[0100] S3, the control unit controls the networking unit and the processing unit to start.

[0101] S4, the control unit sends a first control instruction to the networking unit through the UART serial port, and sends the status information of the charging cabinet monitored by the control unit to the server through the networking unit.

[0102] S5, if the control unit does not receive the response information sent by the server within the preset time, it determines that the communication connection with the server has failed to be established, and sends a second control instruction to the switch circuit of the networking unit to instruct the networking unit to power off and restart.

[0103] S6, the processing unit sends the information to be transmitted to the networking unit through the USB interface, and the networking unit sends the information to be transmitted to the server.

[0104] S7, if the processing unit does not receive the response information sent by the server within the preset time, it determines that the communication connection with the server fails to be established, and sends the information of the failure to establish the communication connection to the control unit.

[0105] S8, after a preset time, the control unit sends a second control instruction to the switch circuit of the networking unit to instruct the networking unit to power off and restart.

[0106] S9, when the communication connection between the processing unit and the server is normal, the processing unit is connected to the monitoring camera through the MAC chip, the PHY chip and the network cable loopback head to receive the monitoring data sent by the monitoring camera.

[0107] S10, the processing unit sends the received monitoring data to the server through the networking unit.

[0108] S11, if the processing unit does not receive the response information sent by the server within the preset time, it determines that the communication connection with the server fails to be established, and sends the information of the communication connection failure to the control unit.

[0109] S12, after a preset time, the control unit sends a second control instruction to the switch circuit of the networking unit to instruct the networking unit to power off and restart.

[0110] It should be noted that for the descriptions in the above S1-S12, reference may be made to the relevant descriptions in the above embodiments, and the effects are similar, so this embodiment will not be repeated here.

[0111] It should be understood that, although the various steps in the above flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0112] In one embodiment, Fig. 9 As shown, a communication connection device is provided, comprising: a first sending module 50, wherein:

[0113] The first sending module 50 is used to send a first control instruction to the networking unit through the target serial port, and the first control instruction is used to instruct the networking unit to establish a communication connection between the control unit and the server.

[0114] The communication connection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0115] In one embodiment, Fig.10 As shown, the device further includes: a first determining module 51, wherein:

[0116] The first determination module 51 is used to determine to establish a communication connection with the server when receiving response information sent by the networking unit; the response information is sent by the server to the networking unit in response to the first control instruction.

[0117] In one embodiment, please continue to refer to Fig.10 The device further comprises: a second determining module 52, wherein:

[0118] The second determination module 52 is configured to determine that the communication connection with the server has failed to be established if no response information is received within a preset time period.

[0119] In one embodiment, please continue to refer to Fig.10 The device further comprises: a second sending module 53, wherein:

[0120] The second sending module 53 is used to send a second control instruction to the networking unit when it is determined that the communication connection with the server fails to be established; the second control instruction is used to instruct the networking unit to power off and restart.

[0121] The communication connection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0122] In one embodiment, the networking unit includes a switch circuit. Please continue to refer to Fig.10 The device further comprises: a third sending module 54, wherein:

[0123] The third sending module 54 is used to send a second control instruction to the switch circuit.

[0124] The communication connection device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0125] For the specific definition of the communication connection device, please refer to the definition of the communication connection method above, which will not be repeated here. Each module in the above-mentioned communication connection device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0126] Fig.11 1 is a block diagram of a charging cabinet 1300 according to an exemplary embodiment. Fig.11 The charging cabinet 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power component 1306, a multimedia component 1308, an audio component 1310, an input / output (I / O) interface 1312, a sensor component 1314, and a communication component 1316. The memory stores a computer program or instruction running on the processor.

[0127] The processing component 1302 generally controls the overall operation of the charging cabinet 1300, such as operations associated with display, data communication, surveillance camera operation, and recording operation. The processing component 1302 may include one or more processors 1320 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 1302 may include one or more modules to facilitate the interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate the interaction between the multimedia component 1308 and the processing component 1302.

[0128] The memory 1304 is configured to store various types of data to support operations on the charging cabinet 1300. Examples of such data include instructions for any application or method operating on the charging cabinet 1300, contact data, phone book data, messages, pictures, videos, etc. The memory 1304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0129] The power supply assembly 1306 provides power to the various components of the charging cabinet 1300. The power supply assembly 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the charging cabinet 1300.

[0130] The multimedia component 1308 includes a touch screen that provides an output interface between the charging cabinet 1300 and the user. In some embodiments, the touch screen may include a liquid crystal display (LCD) and a touch panel (TP). The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1308 includes a front camera and / or a rear camera. When the charging cabinet 1300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0131] The audio component 1310 is configured to output and / or input audio signals. For example, the audio component 1310 includes a microphone (MIC), and when the electronic device 1300 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1304 or sent via the communication component 1316. In some embodiments, the audio component 1310 also includes a speaker for outputting audio signals.

[0132] I / O interface 1312 provides an interface between processing component 1302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0133] The sensor assembly 1314 includes one or more sensors for providing various aspects of status assessment for the charging cabinet 1300. For example, the sensor assembly 1314 can detect the open / closed state of the charging cabinet 1300, the relative positioning of the components, such as the display and keypad of the electronic device 1300, and the sensor assembly 1314 can also detect the position change of the electronic device 1300 or a component of the electronic device 1300, the presence or absence of contact between the user and the electronic device 1300, the orientation or acceleration / deceleration of the charging cabinet 1300, and the temperature change of the charging cabinet 1300. The sensor assembly 1314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1314 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0134] The communication component 1316 is configured to facilitate wired or wireless communication between the charging cabinet 1300 and other devices. The charging cabinet 1300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0135] In an exemplary embodiment, the charging cabinet 1300 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned communication connection method.

[0136] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1304 including instructions, which can be executed by a processor 1320 of the charging cabinet 1300 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0137] In an exemplary embodiment, a computer program product is also provided, and when the computer program is executed by a processor, the above method can be implemented. The computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, part or all of the above method can be implemented in whole or in part according to the process or function described in the embodiment of the present disclosure.

[0138] It should be noted that the solutions described in this specification and the embodiments, if they involve the processing of personal information, will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and will only be processed within the scope of regulations or agreements. If a user refuses to process personal information other than the necessary information for basic functions, it will not affect the user's use of basic functions.

[0139] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the embodiments of the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0140] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0141] The above-described embodiments only express several implementation methods of the embodiments of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the embodiments of the present disclosure, and these all belong to the protection scope of the embodiments of the present disclosure. Therefore, the protection scope of the patent of the embodiments of the present disclosure shall be subject to the attached claims.

Claims

1. A charging cabinet, characterized in that: The charging cabinet includes a networking unit, a processing unit and a control unit; the networking unit includes a target serial port and a target interface; Establishing a communication connection between the networking unit and the server; The control unit is connected to the networking unit via the target serial port to establish a communication connection between the control unit and the server; The processing unit is connected to the networking unit through the target interface to establish a communication connection between the processing unit and the server.

2. The charging cabinet according to claim 1, characterized in that: The control unit is used to send a first control instruction to the networking unit through the target serial port, and the first control instruction is used to instruct the networking unit to establish a communication connection between the control unit and the server.

3. The charging cabinet according to claim 2, characterized in that: The control unit is used to determine that the control unit establishes a communication connection with the server when receiving response information sent by the networking unit; the response information is sent by the server to the networking unit in response to the first control instruction.

4. The charging cabinet according to claim 3, characterized in that: The control unit is further configured to determine that establishment of the communication connection with the server fails when the response information is not received within a preset time period.

5. The charging cabinet according to claim 4, characterized in that: The control unit is further configured to send a second control instruction to the networking unit when it is determined that the communication connection with the server fails to be established; the second control instruction is configured to instruct the networking unit to power off and restart.

6. The charging cabinet according to claim 5, characterized in that: The networking unit includes a switch circuit; the control unit is used to send the second control instruction to the switch circuit, and control the networking unit to power off and restart through the switch circuit.

7. The charging cabinet according to any one of claims 1 to 6, characterized in that: The charging cabinet further includes: a monitoring camera, the monitoring camera includes a network interface; the processing unit further includes a communication interface; The monitoring camera is connected to the communication interface of the processing unit through the network interface to establish a communication connection with the server.

8. The charging cabinet according to claim 7, characterized in that: The target interface includes a universal serial bus USB interface; the target serial port includes a universal asynchronous receiver / transmitter UART serial port.

9. The charging cabinet according to claim 8, characterized in that: The communication connection established between the networking unit and the server includes any one of a 4G CAT1 network connection, a 4G CAT4 network connection or a 5G network connection.

10. The charging cabinet according to any one of claims 1 to 6, characterized in that: The networking unit and the processing unit are integrated in the charging cabinet.

11. A communication connection method, characterized in that: The communication connection method is applied to the charging cabinet according to any one of claims 1 to 10, and the method includes: A first control instruction is sent to the networking unit through the target serial port, where the first control instruction is used to instruct the networking unit to establish a communication connection between the control unit and the server.

12. The method according to claim 11, characterized in that The method further comprises: In the case of receiving the response information sent by the networking unit, determining to establish a communication connection with the server; the response information is sent by the server to the networking unit in response to the first control instruction.

13. The method according to claim 12, characterized in that The method further comprises: If the response information is not received within the preset time period, it is determined that the communication connection with the server has failed to be established.

14. The method according to claim 13, characterized in that The method further comprises: When it is determined that the communication connection with the server fails to be established, a second control instruction is sent to the networking unit; the second control instruction is used to instruct the networking unit to power off and restart.

15. The method according to claim 14, characterized in that The networking unit includes a switch circuit; and sending a second control instruction to the networking unit includes: The second control instruction is sent to the switch circuit.