Data transmission method, device, electronic device and readable storage medium
Through the communication connection between the user terminal and the target charging equipment, the problem of high cost of network facilities is solved, timely uploading of data and cost reduction are achieved, which facilitates the rapid promotion and use of charging equipment.
Patent Information
- Application Number
- CN202210605129.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-05-30
AI Technical Summary
The cost of network facilities in the existing technology is relatively high, which leads to an increase in the deployment, operation and maintenance costs of IoT devices and affects the rapid promotion and use of products.
Through the communication connection between the user terminal and the target charging equipment, the charging business data is received and uploaded to the server, avoiding the direct connection between the target charging equipment and the server, thereby reducing equipment operation and maintenance costs.
It achieves timely uploading of data, reduces the operation and deployment, operation and maintenance costs of charging equipment, and facilitates the rapid promotion and use of charging equipment.
Smart Images

Figure CN115037784B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a data transmission method, device, electronic device and readable storage medium. Background Art
[0002] With the rapid development of Internet of Things technology, more and more smart devices are put into use. These devices generate a large amount of business data, which needs to be reported to the platform or server for analysis and processing through LAN, WiFi or mobile Internet. Deploying these network facilities at the site requires a certain amount of deployment, operation and maintenance costs, which is not conducive to the rapid promotion and use of products. Summary of the invention
[0003] The present invention provides a data transmission method, device, electronic device and readable storage medium, which are used to solve the technical problem of high network facility cost in the prior art.
[0004] The present invention provides a data transmission method, applied to a user terminal, comprising:
[0005] When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, receiving the charging service data sent by the target charging device;
[0006] Sending the charging service data to a server;
[0007] Wherein, the target charging device is disconnected from the server.
[0008] In some embodiments, the method further comprises:
[0009] When the user terminal is in communication connection with the target charging device, a time calibration instruction is sent to the target charging device, where the time calibration instruction is used to calibrate the time of the target charging device.
[0010] The present invention provides a data transmission method, which is applied to a target charging device, comprising:
[0011] When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, sending the charging service data to the user terminal;
[0012] Wherein, the target charging device is disconnected from the server.
[0013] In some embodiments, the target charging device is one of a plurality of charging devices in the same local area network, the plurality of charging devices in the same local area network are all disconnected from the server, and the plurality of charging devices are communicatively connected with each other;
[0014] The method further comprises:
[0015] When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, the charging service data is sent to other charging devices in the same local area network.
[0016] In some embodiments, the method further comprises:
[0017] detecting the operating status of the device at a first time interval;
[0018] In the case where the device operation state meets the target condition, generating first state record data, the target condition includes: the device operation state is a fault state and / or the device operation state is an idle state and the space time exceeds the idle time threshold;
[0019] Sending the first status record data to the other charging device;
[0020] When charging service data is generated in the target charging device, detecting the service status at a second time interval;
[0021] In case the business status changes, generating second status record data;
[0022] The second status record data is sent to the other charging device.
[0023] In some embodiments, the method further comprises:
[0024] When the user terminal is in communication connection with the target charging device, receiving a time calibration instruction sent by the user terminal;
[0025] Correcting the device time based on the time correction instruction and configuring the corrected standard time;
[0026] The standard time is sent to the other charging devices.
[0027] The present invention provides a data transmission device, comprising:
[0028] A first receiving module, configured to receive the charging service data sent by the target charging device when the user terminal is in communication connection with the target charging device and the charging service data is generated in the target charging device;
[0029] A first sending module, used to send the charging service data to a server;
[0030] Wherein, the target charging device is disconnected from the server.
[0031] The present invention also provides a data transmission device, comprising:
[0032] A second sending module, configured to send the charging service data to the user terminal when the user terminal is connected to the target charging device for communication and the charging service data is generated in the target charging device;
[0033] Wherein, the target charging device is disconnected from the server.
[0034] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned data transmission methods is implemented.
[0035] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any of the data transmission methods described above is implemented.
[0036] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned data transmission methods.
[0037] The data transmission method, device, electronic device and readable storage medium provided by the present invention are connected to the target charging device through a communication connection with a user terminal, and then connected to the server through a communication connection with the user terminal. When the target charging device is disconnected from the server, the charging service data generated in the target charging device can be sent to the server through the user terminal, thereby ensuring timely uploading of data and eliminating the need to additionally set up a corresponding communication module in the target charging device, thereby reducing the operation and deployment, operation and maintenance costs of the charging device and facilitating the rapid promotion and use of the charging equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 It is one of the flowcharts of the data transmission method provided by the present invention;
[0040] Figure 2 This is the second flow chart of the data transmission method provided by the present invention;
[0041] Figure 3 It is one of the structural schematic diagrams of the data transmission device provided by the present invention;
[0042] Figure 4 This is the second structural diagram of the data transmission device provided by the present invention;
[0043] Figure 5 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] The terms "first", "second", etc. in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0046] The data transmission method, device, electronic device, and readable storage medium provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0047] Figure 1 This is one of the flow charts of the data transmission method provided by the present invention.
[0048] Reference Figure 1 , an embodiment of the present invention provides a data transmission method, which may include: step 110 and step 120.
[0049] Step 110: When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, the charging service data sent by the target charging device is received.
[0050] Step 120: Send charging service data to the server;
[0051] Among them, the target charging device is disconnected from the server.
[0052] The execution subject of the embodiment of the present invention is a user terminal. The user terminal may include a smart terminal and an electric vehicle, or an electric vehicle with a communication function, which is not specifically limited here. The smart terminal includes but is not limited to a mobile phone, a tablet computer, a computer, a camera, a wearable device, etc.
[0053] It should be noted that, when the user terminal is a smart terminal and an electric vehicle, the smart terminal can be used to communicate with the server, and the electric vehicle is electrically connected to the charging device. The electric vehicle with communication function can be electrically connected to the charging device and can also communicate with the server.
[0054] The target charging device may be a vehicle charging device, such as an IoT charging socket or a vehicle charging pile.
[0055] The communication connection between the user terminal and the target charging device can be a wired communication connection or a wireless communication connection. Considering the equipment cost, the wireless communication connection is given priority.
[0056] The wireless communication connection may adopt wireless communication technologies such as ZigBee, infrared, Bluetooth, Wi-Fi, and radio frequency. The embodiment of the present invention preferably adopts Bluetooth technology.
[0057] It should be noted that Bluetooth technology is an open global standard for wireless data and voice communications. It is a special short-range wireless technology connection based on low-cost short-range wireless connection to establish a communication environment for fixed devices or mobile devices. Bluetooth enables some current portable mobile devices and computer devices to connect to the Internet without cables and can access the Internet wirelessly.
[0058] It is understandable that when the user terminal is connected to the target charging device, if charging service data is generated in the target charging device, the user terminal can directly read the charging service data in the target charging device. The user terminal can also send a data acquisition request to the target charging device, and the target charging device receives the data acquisition request and can respond to the request to send the charging service data to the user terminal.
[0059] After the user terminal obtains the charging service data, the user terminal can report the service data to the server, thereby completing the reporting of the charging service data when the target charging device is disconnected from the server.
[0060] The data transmission method provided by the present invention is connected through the communication between the target charging device and the user terminal, and then connected through the communication between the user terminal and the server. When the target charging device is disconnected from the server, the charging service data generated in the target charging device can be sent to the server through the user terminal, thereby ensuring timely uploading of data and eliminating the need to additionally set up a corresponding communication module in the target charging device, thereby reducing the operation and deployment, operation and maintenance costs of the charging device and facilitating the rapid promotion and use of the charging equipment.
[0061] In some embodiments, the data transmission method further includes:
[0062] When the user terminal is in communication connection with the target charging device, a time calibration instruction is sent to the target charging device, where the time calibration instruction is used to calibrate the time of the target charging device.
[0063] In this step, after the user terminal is connected to the target charging device through communication, the user terminal may automatically send a time calibration instruction to the target charging device, where the time calibration instruction is used to calibrate the time of the target charging device.
[0064] After receiving the time calibration instruction sent by the user terminal, the target charging device starts to calibrate the internal clock of the device and update the internal clock of the device with the standard time to avoid errors in charging service data caused by inaccurate internal clock of the device.
[0065] In actual implementation, the same local area network includes multiple charging devices, the target charging device is one of the multiple charging devices in the same local area network, the multiple charging devices in the same local area network are disconnected from the server, and the multiple charging devices are communicated with each other.
[0066] Multiple charging devices can be connected by wired communication or wireless communication. In consideration of the equipment cost, wireless communication is preferred. Charging devices in the same local area network are disconnected from the server and automatically connected to the network through wireless communication after being turned on.
[0067] The wireless communication connection may adopt wireless communication technologies such as ZigBee, infrared, Bluetooth, Wi-Fi, and radio frequency. The embodiment of the present invention preferably adopts Bluetooth technology.
[0068] In actual implementation, the local area network can be built based on the Bluetooth Mesh network architecture. Mesh network is a wireless mesh network, also known as a wireless multi-hop network, which can be combined with a variety of broadband wireless access technologies and mobile communication technologies to form a wireless mesh network with multi-hop wireless links.
[0069] Taking advantage of the large number of nodes, high security, fast networking speed and low power consumption in the Bluetooth Mesh network, a Bluetooth module can be embedded in each charging device. The distance of Bluetooth communication is limited, but since the Bluetooth Mesh network is many-to-many communication, the Bluetooth relay function can be used to achieve long-distance communication.
[0070] After the time calibration is completed, the target charging device synchronizes the standard time with the time sent to other charging devices in the same local area network.
[0071] In some implementations, when a user terminal is connected to a charging device in a local area network via Bluetooth, parameter information on the charging device side can be queried. Since the parameter information can be adjusted according to the real-time charging situation, the server can configure and send new parameter information to the charging device.
[0072] The parameter information may be charging time, charging current, output voltage, etc.
[0073] When the charging device receives new parameter information, it saves it locally and sends a broadcast notification to other charging devices in the network.
[0074] The data transmission method provided by the present invention can realize automatic time calibration and ensure the accuracy of charging service data by networking the user terminal, the target charging device and other charging devices.
[0075] Figure 2 This is the second flow chart of the data transmission method provided by the present invention.
[0076] Reference Figure 2 , an embodiment of the present invention provides a data transmission method, which may include: step 210.
[0077] Step 210: When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, the charging service data is sent to the user terminal;
[0078] Wherein, the target charging device is disconnected from the server.
[0079] The execution subject of the embodiment of the present invention is a target charging device.
[0080] The target charging device may be a vehicle charging device, such as an IoT charging socket or a vehicle charging pile.
[0081] In actual implementation, the above-mentioned charging equipment can be installed in target areas where a local area network can be established, such as parking lots or centralized charging stations.
[0082] In the embodiment of the present invention, the target charging device is not in communication connection with the server, and can be networked with other devices in the same local area network.
[0083] In this step, the user terminal may include a smart terminal and an electric vehicle, or an electric vehicle with a communication function, which is not specifically limited here. The smart terminal includes but is not limited to a mobile phone, a tablet computer, a computer, a camera, a wearable device, etc.
[0084] This embodiment is described by taking the user terminal including a mobile phone and an electric car as an example.
[0085] The mobile phone is connected to the target charging device in communication. After the electric vehicle is connected to the target charging device for charging, charging can be started on the mobile phone as needed.
[0086] After charging is started, the target charging device will generate charging service data. The charging service data may include charging power, charging time, charging cost, charging order information and other charging service related information.
[0087] When the user wants to obtain charging service data, since the mobile phone is now in communication connection with the target charging device, the mobile phone can directly read the charging service data in the target charging device, or send a data acquisition request to the target charging device.
[0088] The target charging device receives the data acquisition request, can respond to the request, and then send the charging service data to the mobile phone.
[0089] After receiving the charging service data, the mobile phone can send the charging service data to the server because the mobile phone can communicate with the server.
[0090] In some embodiments, the target charging device is one of multiple charging devices in the same local area network, the multiple charging devices in the same local area network are disconnected from the server, and the multiple charging devices are communicatively connected with each other;
[0091] The data transmission method also includes:
[0092] When the user terminal is connected to the target charging device for communication and charging service data is generated in the target charging device, the charging service data is sent to other charging devices in the same local area network.
[0093] It should be noted that in the embodiment of the present invention, the same local area network includes multiple charging devices, and the multiple charging devices are disconnected from the server. The target charging device is one of the multiple charging devices in the same local area network, and the multiple charging devices are connected to each other in communication.
[0094] Therefore, when multiple charging devices are communicatively connected, the target charging device can send charging service data to other charging devices in the same local area network to complete data synchronization.
[0095] Multiple charging devices can be connected by wired communication or wireless communication. In consideration of the equipment cost, wireless communication is preferred. Charging devices in the same local area network are disconnected from the server and automatically connected to the network through wireless communication after being turned on.
[0096] The wireless communication connection may adopt wireless communication technologies such as ZigBee, infrared, Bluetooth, Wi-Fi, and radio frequency. The embodiment of the present invention preferably adopts Bluetooth technology.
[0097] For example, a plurality of charging devices are provided with a Bluetooth module, and the Bluetooth module is used to perform Bluetooth communication with the plurality of charging devices.
[0098] In actual implementation, the local area network can be constructed based on the Bluetooth Mesh network architecture. Mesh network is a wireless mesh network, also known as a wireless multi-hop network, which can be combined with a variety of broadband wireless access technologies and mobile communication technologies to form a wireless mesh network with multi-hop wireless links.
[0099] Taking advantage of the large number of nodes, high security, fast networking speed and low power consumption in the Bluetooth Mesh network, a Bluetooth module can be embedded in each charging device. The distance of Bluetooth communication is limited, but since the Bluetooth Mesh network is many-to-many communication, the Bluetooth relay function can be used to achieve long-distance communication.
[0100] In the embodiment of the present invention, the charging device and the user terminal in the same local area network can both serve as node devices in the Bluetooth Mesh network and can realize data transmission.
[0101] When there are different types of devices in the network, the device type is distinguished by the device ID in the message. Different types of devices can be mixed or networked separately, and the Mesh network is distinguished by the site ID in the message.
[0102] The embodiment of the present invention can realize Mesh networking functions based on Bluetooth Mesh network and use Bluetooth extended broadcast, including data broadcast, forwarding and filtering strategies, and realize synchronization functions such as adding, modifying and deleting business data. Node devices in Bluetooth Mesh network can be installed independently, automatically networked, and easy to deploy and maintain.
[0103] In actual implementation, the target charging device and other charging devices themselves are not connected to the network and are disconnected from the server. After the target charging device and other charging devices are turned on, they can automatically connect to the network via Bluetooth. This embodiment does not specifically limit the number of other charging devices.
[0104] When the user terminal is connected to the target charging device through Bluetooth and the target charging device generates charging service data, the target charging device can send the charging service data to other charging devices through Bluetooth extended broadcast. When other charging devices receive the charging service data, they first save the charging service data locally, and then forward the charging service data in a relay manner through Bluetooth extended broadcast.
[0105] Each piece of business data carries a unique identification code (Serial Number, SN) and forwarding times (Time To Live, TTL). The same piece of business data can be forwarded at most twice.
[0106] It is understandable that when a large amount of data needs to be synchronized in the target charging device, different priorities can be assigned to the data to be sent according to the data type or data requirement. That is, when a target charging device is synchronizing data, it can send data to other charging devices according to the priority. At the same time, to avoid network congestion, the target charging device will make a certain random delay each time it sends data.
[0107] For example, the charging service data may be set to the highest priority, and the target charging device may give priority to sending the charging service data to other charging devices.
[0108] In actual implementation, the target charging device can detect whether there is any data reported to the server at regular intervals. For example, the detection can be performed every two hours.
[0109] If there are unreported records, data synchronization is performed again, that is, the unreported data is sent to other charging devices through Bluetooth extended broadcast to avoid data failure to be reported to the server in time due to synchronization failure.
[0110] After receiving the charging service data, the server may send a deletion instruction to the target charging device, that is, notify the target charging device to delete the reported data.
[0111] After receiving the deletion command, the target charging device deletes the charging service data reported by the device and notifies other charging devices in the network to delete the reported charging service data. For example, if charging devices are connected by Bluetooth, other charging devices can be notified through Bluetooth extended broadcast.
[0112] The data transmission method provided in the embodiment of the present invention can quickly realize data synchronization and sharing among charging devices by networking the target charging device and other charging devices.
[0113] The data transmission method provided in the embodiment of the present invention is connected to the target charging device through a communication connection with the user terminal, and then connected to the server through the user terminal. When the target charging device is disconnected from the server, the charging service data generated in the target charging device can be sent to the server through the user terminal, thereby ensuring timely uploading of data and eliminating the need to additionally set up a corresponding communication module in the target charging device, thereby reducing the operation and deployment, operation and maintenance costs of the charging device and facilitating the rapid promotion and use of the charging equipment; by reporting the charging service data through the user terminal, network traffic can also be saved.
[0114] In some embodiments, the data transmission method further includes:
[0115] detecting the operating status of the device at a first time interval;
[0116] In the case where the device operation state meets the target conditions, first state record data is generated, the target conditions including: the device operation state is a fault state and / or the device operation state is an idle state and the space time exceeds the idle time threshold;
[0117] Sending the first state record data to other charging devices;
[0118] When charging service data is generated in the target charging device, detecting the service status at a second time interval;
[0119] When the business status changes, generating second status record data;
[0120] The second state record data is sent to other charging devices.
[0121] In actual implementation, the first time interval and the second time interval are set according to user requirements, and can be the same time interval or different time intervals.
[0122] After the target charging device is communicatively connected with other charging devices, that is, the target charging device automatically forms a network with other charging devices, the target charging device may detect the device operating status at a first time interval, or may continuously detect the device operating status.
[0123] The device operating status may include: normal operating status, fault status or idle status, etc.
[0124] If the device operation state meets the target condition, that is, the device operation state changes from the normal operation state to other states, the target charging device will automatically generate the corresponding first state record data. The target charging device saves the first state record data locally and can save this first state record data to other devices in the Bluetooth extended broadcast network.
[0125] Among them, the target condition can be that the device operation state is a fault state, the device operation state is an idle state and the space time exceeds the idle time threshold, or there is a fault state in the idle state.
[0126] When the target charging device is communicatively connected with other charging devices and charging service data is generated in the target charging device, the target charging device may detect the service status at the second time interval or may continuously detect the service status.
[0127] The service status includes: charging service not completed, charging service completed, charging service in progress, charging service in progress and the user terminal is disconnected, or charging service to be performed, etc.
[0128] If the service status changes, the target charging device will automatically generate the corresponding second status record data. The target charging device will save the second status record data locally and can save the second status record data to other devices in the Bluetooth extended broadcast network.
[0129] The data transmission method provided by the embodiment of the present invention can quickly realize data synchronization and sharing among charging devices through automatic networking of the target charging device and other charging devices.
[0130] In some embodiments, the data transmission method further includes:
[0131] When the user terminal is in communication connection with the target charging device, receiving a time calibration instruction sent by the user terminal;
[0132] Correct the device time based on the time correction instruction and configure the corrected standard time;
[0133] Send the standard time to other charging devices.
[0134] In actual implementation, after the user terminal establishes a Bluetooth connection with the target charging device, the user terminal may automatically send a time calibration instruction to the target charging device, where the time calibration instruction is used to calibrate the time of the target charging device.
[0135] After receiving the time calibration instruction sent by the user terminal, the target charging device starts to calibrate the internal clock of the device and updates the internal clock of the device with the standard time to avoid the situation where the charging service data is sent incorrectly due to an inaccurate clock.
[0136] After the time calibration of the target charging device is completed, the standard time is sent to other charging devices for synchronization.
[0137] The embodiments of the present invention can be applied to the following scenarios:
[0138] If the target charging device loses power and restarts for some reason, the internal clock of the target charging device will be lost. When the mobile phone connects to the target charging device in the network via Bluetooth, it can send a time calibration command to the target charging device. When the target charging device receives the time calibration command, it configures its own clock and sends a broadcast notification to other charging devices.
[0139] In actual implementation, there may be more than one charging device in the power outage range of the charging station. When the entire charging station loses power and restarts, as long as one device is connected to the user terminal, the time can be corrected, and the corrected time can be further synchronized to other devices.
[0140] The data transmission method provided by the present invention can realize automatic time calibration and ensure the accuracy of charging service data by networking the user terminal, the target charging device and other charging devices.
[0141] The data transmission device provided by the present invention is described below. The data transmission device described below and the data transmission method described above can be referenced to each other.
[0142] Figure 3 This is one of the structural schematic diagrams of the data transmission device provided by the present invention.
[0143] Reference Figure 3 , an embodiment of the present invention provides a data transmission device, which may include: a first receiving module 310 and a first sending module 320.
[0144] A first receiving module 310 is configured to receive the charging service data sent by the target charging device when the user terminal is in communication connection with the target charging device and the charging service data is generated in the target charging device;
[0145] A first sending module 320, configured to send the charging service data to a server;
[0146] Wherein, the target charging device is disconnected from the server.
[0147] The data transmission device provided by the present invention is connected to the user terminal through the target charging device for communication, and then connected to the server through the user terminal for communication. When the target charging device is disconnected from the server, the charging service data generated in the target charging device can be sent to the server through the user terminal, thereby ensuring timely uploading of data and eliminating the need to additionally set up a corresponding communication module in the target charging device, thereby reducing the operation and deployment, operation and maintenance costs of the charging device and facilitating the rapid promotion and use of the charging equipment.
[0148] In some embodiments, the apparatus further comprises:
[0149] The first time calibration module is used to send a time calibration instruction to the target charging device, and the time calibration instruction is used to calibrate the time of the target charging device.
[0150] Figure 4 This is the second structural schematic diagram of the data transmission device provided by the present invention.
[0151] Reference Figure 4 , an embodiment of the present invention provides a data transmission device, which may include: a second sending module 410.
[0152] A second sending module 410 is configured to send the charging service data to the user terminal when the user terminal is in communication connection with the target charging device and the charging service data is generated in the target charging device;
[0153] Wherein, the target charging device is disconnected from the server.
[0154] The data transmission device provided by the present invention is connected to the target charging device through a communication connection with a user terminal, and then connected to the server through a communication connection with the user terminal. When the target charging device is disconnected from the server, the charging service data generated in the target charging device can be sent to the server through the user terminal, thereby ensuring timely uploading of data and eliminating the need to additionally set up a corresponding communication module in the target charging device, thereby reducing the operation and deployment, operation and maintenance costs of the charging device and facilitating the rapid promotion and use of the charging equipment.
[0155] In some embodiments, the target charging device is one of a plurality of charging devices in the same local area network, the plurality of charging devices in the same local area network are all disconnected from the server, and the plurality of charging devices are communicatively connected with each other;
[0156] The device also includes:
[0157] The third sending module is used to send the charging service data to other charging devices in the same local area network when the user terminal is communicatively connected with the target charging device and the charging service data is generated in the target charging device.
[0158] In some embodiments, the apparatus further comprises:
[0159] detecting the operating status of the device at a first time interval;
[0160] A status recording module, configured to generate first status recording data when the device operation status meets a target condition, wherein the target condition includes: the device operation status is a fault state and / or the device operation status is an idle state and the space time exceeds an idle time threshold;
[0161] Sending the first status record data to the other charging device;
[0162] When charging service data is generated in the target charging device, detecting the service status at a second time interval;
[0163] In case the business status changes, generating second status record data;
[0164] The second status record data is sent to the other charging device.
[0165] In some embodiments, the apparatus further comprises:
[0166] A second timing module, configured to receive a timing instruction sent by the user terminal when the user terminal is in communication connection with the target charging device;
[0167] Correcting the device time based on the time correction instruction and configuring the corrected standard time;
[0168] The standard time is sent to the other charging devices.
[0169] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the data transmission method, which includes:
[0170] When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, receiving the charging service data sent by the target charging device;
[0171] Sending the charging service data to a server;
[0172] Wherein, the target charging device is disconnected from the server.
[0173] Alternatively, the method comprises:
[0174] When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, sending the charging service data to the user terminal;
[0175] Wherein, the target charging device is disconnected from the server.
[0176] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0177] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the data transmission method provided by the above methods, the method comprising:
[0178] When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, receiving the charging service data sent by the target charging device;
[0179] Sending the charging service data to a server;
[0180] Wherein, the target charging device is disconnected from the server.
[0181] Alternatively, the method comprises:
[0182] When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, sending the charging service data to the user terminal;
[0183] Wherein, the target charging device is disconnected from the server.
[0184] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the data transmission method provided by the above methods is implemented, and the method includes:
[0185] When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, receiving the charging service data sent by the target charging device;
[0186] Sending the charging service data to a server;
[0187] Wherein, the target charging device is disconnected from the server.
[0188] Alternatively, the method comprises:
[0189] When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, sending the charging service data to the user terminal;
[0190] Wherein, the target charging device is disconnected from the server.
[0191] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0192] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0193] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data transmission method, applied to a user terminal, characterized in that: include: When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, receiving the charging service data sent by the target charging device; Sending the charging service data to a server; The target charging device is disconnected from the server; the target charging device is one of multiple charging devices in the same local area network, the multiple charging devices in the same local area network are all disconnected from the server, and the multiple charging devices are connected in communication; The method further comprises: When the user terminal is in communication connection with the target charging device, a time calibration instruction is sent to the target charging device, and the time calibration instruction is used to calibrate the time of the target charging device; the target charging device is used to synchronize the standard time to other charging devices in the same local area network, and the standard time is determined when the target charging device completes the time calibration; The target charging device is also used to detect the device operating status at a first time interval, and generate first status record data when the charging device operating status meets the target condition, and the target condition includes: the charging device operating status is a fault state and / or the charging device operating status is an idle state and the space time exceeds the idle time threshold; the target charging device is also used to send the first status record data to the other charging devices, and when charging service data is generated in the target charging device, detect the service status at a second time interval, and when the service status changes, generate second status record data, and send the second status record data to the other charging devices.
2. A data transmission method, applied to a target charging device, characterized in that: include: When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, sending the charging service data to the user terminal; The target charging device is disconnected from the server; the target charging device is one of multiple charging devices in the same local area network, the multiple charging devices in the same local area network are all disconnected from the server, and the multiple charging devices are connected in communication; The method further comprises: When the user terminal is in communication connection with the target charging device, receiving a time calibration instruction sent by the user terminal; Correcting the device time based on the time correction instruction and configuring the corrected standard time; sending the standard time to other charging devices; The method further comprises: detecting the operating status of the device at a first time interval; In the case where the operating state of the charging device meets the target condition, generating first state record data, the target condition includes: the operating state of the charging device is a fault state and / or the operating state of the charging device is an idle state and the space time exceeds the idle time threshold; Sending the first status record data to the other charging device; When charging service data is generated in the target charging device, detecting the service status at a second time interval; In case the business status changes, generating second status record data; The second status record data is sent to the other charging device.
3. The data transmission method according to claim 2, characterized in that: The method further comprises: When the user terminal is in communication connection with the target charging device and charging service data is generated in the target charging device, the charging service data is sent to other charging devices in the same local area network.
4. A data transmission device, applied to a user terminal, characterized in that: include: A first receiving module, configured to receive the charging service data sent by the target charging device when the user terminal is in communication connection with the target charging device and the charging service data is generated in the target charging device; A first sending module, used to send the charging service data to a server; The target charging device is disconnected from the server; the target charging device is one of multiple charging devices in the same local area network, the multiple charging devices in the same local area network are all disconnected from the server, and the multiple charging devices are connected in communication; The device also includes: A first time calibration module is used to send a time calibration instruction to the target charging device when the user terminal is in communication with the target charging device, and the time calibration instruction is used to calibrate the time of the target charging device; the target charging device is used to synchronize the standard time to other charging devices in the same local area network, and the standard time is determined when the target charging device completes the time calibration; The target charging device is also used to detect the device operating status at a first time interval, and generate first status record data when the charging device operating status meets the target condition, and the target condition includes: the charging device operating status is a fault state and / or the charging device operating status is an idle state and the space time exceeds the idle time threshold; the target charging device is also used to send the first status record data to the other charging devices, and when charging service data is generated in the target charging device, detect the service status at a second time interval, and when the service status changes, generate second status record data, and send the second status record data to the other charging devices.
5. A data transmission device, applied to a target charging device, characterized in that: include: A second sending module, configured to send the charging service data to the user terminal when the user terminal is connected to the target charging device for communication and the charging service data is generated in the target charging device; The target charging device is disconnected from the server; the target charging device is one of multiple charging devices in the same local area network, the multiple charging devices in the same local area network are all disconnected from the server, and the multiple charging devices are connected in communication; The device also includes: A second timing module, configured to receive a timing instruction sent by the user terminal when the user terminal is in communication connection with the target charging device; Correcting the device time based on the time correction instruction and configuring the corrected standard time; sending the standard time to other charging devices; The device also includes: A first detection module, used to detect the operating status of the device at a first time interval; A first state record data generating module, configured to generate first state record data when the operating state of the charging device meets a target condition, wherein the target condition includes: the operating state of the charging device is a fault state and / or the operating state of the charging device is an idle state and the space time exceeds an idle time threshold; A first status record data sending module, used for sending the first status record data to the other charging device; A second detection module, configured to detect a service status at a second time interval when charging service data is generated in the target charging device; A second state record data generating module, used for generating second state record data when the business state changes; The second status record data sending module is used to send the second status record data to the other charging device.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, it implements the data transmission method according to claim 1, or implements the data transmission method according to claim 2 or 3.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the data transmission method according to claim 1, or implements the data transmission method according to claim 2 or 3.
Citation Information
Patent Citations
Electric vehicle intelligent interactive charging network cluster system
CN102215261A
Charging station and charging billing system
CN105869293A
Peer-to-peer network-based charging pile data storage method and storage apparatus
CN106130772A
Stereoscopic charging station cloud platform intelligent charging and discharging control system and method
CN108183514A
Charging management method and system and equipment
CN108848553A
