A method, system, device and medium for automatically obtaining device IP of a charging pile
By predefining verification information in the IP data packet, automatic IP address acquisition of the charging pile device is realized, which solves the problem of low convenience caused by manually inputting IP numbers in the existing technology, and improves pairing efficiency and user experience.
Patent Information
- Application Number
- CN202210253115.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-03-15
AI Technical Summary
Existing embedded charging pile equipment requires manual input of IP numbers, resulting in low convenience, time-consuming and inefficient retrieval of IP numbers.
By predefining the verification information in the IP data packet and utilizing the automatic pairing of the mobile terminal device and the charging pile central control device, manual input of the IP number is avoided and the IP address is automatically obtained.
It improves the convenience of charging pile equipment, reduces the steps to enter IP numbers, improves pairing efficiency, and simplifies user operations.
Smart Images

Figure CN114842593B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, system, device and medium for a charging pile to automatically obtain a device IP. Background Art
[0002] Embedded charging pile equipment is mainly composed of embedded processors, related supporting hardware and embedded software systems. It is an independently working "device" that integrates hardware and software. It has the characteristics of convenience and flexibility, high performance-price ratio and strong embeddability.
[0003] Existing embedded charging pile devices, such as the common central control device used to control the operation of the charging pile, are usually connected to the mobile phone APP by entering the IP number of the charging pile central control device in the mobile phone APP. After a period of time after setting, it is easy to forget the IP number. It is troublesome, time-consuming and inefficient to retrieve the original IP number. Therefore, a method for the charging pile to automatically obtain the device IP is needed. Summary of the invention
[0004] The object of the present invention is to provide a method for a charging pile to automatically obtain a device IP, which can use verification information for automatic pairing, thereby avoiding the need for manual IP number input and improving convenience.
[0005] The embodiment of the present invention is achieved as follows:
[0006] In the first aspect, an embodiment of the present application provides a method for a charging pile to automatically obtain a device IP, which includes presetting at least one charging pile central control device and at least one mobile terminal device, the mobile terminal device and the central control device are connected to the same router, and the mobile terminal device and the charging pile central control device are adjusted to the same network segment; the mobile terminal device creates a user datagram protocol IP data packet and broadcasts it through a built-in antenna; verification information is predefined in the IP data packet; the charging pile central control device turns on the IP data packet to listen to a fixed port, and after receiving the IP data packet, obtains the verification information in the IP data packet for verification; if the verification passes, the IP address information of the central control device is obtained, and the IP address information is returned to the corresponding mobile terminal device; if the verification fails, a prompt message of verification failure is sent to the mobile terminal device.
[0007] In some embodiments of the present invention, the steps after presetting the charging pile central control device and at least one mobile terminal device include: establishing a server terminal; when there are multiple charging piles, when installing any charging pile, collecting the location information of the charging pile; and uploading the location information to the server terminal.
[0008] In some embodiments of the present invention, when any charging pile is located underground, depth information and underground floor information are added to the location information of the charging pile, and the depth information and underground floor information are prompted in the form of voice broadcast on the mobile terminal.
[0009] In some embodiments of the present invention, if the verification fails, the steps after sending a prompt message of verification failure to the mobile terminal device include: obtaining the charging pile location information through the server terminal, and re-navigating the charging pile location using the navigation software built into the mobile terminal.
[0010] In some embodiments of the present invention, the steps after returning the IP address information to the corresponding mobile terminal device include: when the charging pile corresponding to the IP address information starts charging, the central control device starts timing, and counts the output power of the charging pile through the electric meter set in the charging pile; when the charging pile finishes charging, the central control device sends the output power statistics to the background terminal; when the output interface of the charging pile is disconnected, the central control device stops timing and sends the stay time to the background terminal; the background terminal calculates the charging fee based on the power statistics and the stay time value.
[0011] In some embodiments of the present invention, the steps after the background terminal calculates the charging fee based on the power statistics and the stay time value include: if the charging pile stops charging, the charging device still stays on the output interface of the charging pile, and a first time period is preset. If the stay time does not exceed the first time period, it is free; if it exceeds the first preset time period, a timeout information is sent to the background terminal, and the background terminal charges for overtime occupancy.
[0012] In some embodiments of the present invention, the steps after the background terminal charges for overtime occupancy include: presetting a second time period, the second time period is greater than the first preset time period, when the stay time exceeds the second time period, the central control device sends a timeout information to the background terminal, and the background terminal charges for overtime occupancy and sends a reminder message to the mobile terminal.
[0013] In a second aspect, an embodiment of the present application provides a system for automatically acquiring device IP of a charging pile, which includes a preset module for presetting at least one charging pile central control device and at least one mobile terminal device;
[0014] The network configuration module is used to connect the mobile terminal device and the central control device to the same router, and adjust the mobile terminal device and the charging pile central control device to the same network segment;
[0015] Broadcast module, used for mobile terminal devices to create user datagram protocol IP data packets and broadcast them through the built-in antenna;
[0016] Verification definition module, used to predefine verification information in IP data packets;
[0017] The verification judgment module is used for the charging pile central control device to open the IP data packet to listen to the fixed port. After receiving the IP data packet, it obtains the verification information in the IP data packet for verification; if the verification passes, the IP address information of the central control device is obtained and the IP address information is returned to the corresponding mobile terminal device; if the verification fails, a prompt message of verification failure is sent to the mobile terminal device.
[0018] In a third aspect, an embodiment of the present application provides an electronic device, comprising at least one processor, at least one memory and a data bus; wherein: the processor and the memory communicate with each other through the data bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute a method for a charging pile to automatically obtain a device IP.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for a charging pile to automatically obtain a device IP.
[0020] Compared with the prior art, the embodiments of the present invention have at least the following advantages or beneficial effects:
[0021] In order to solve the problem of needing to enter IP numbers multiple times, this design uses predefined verification information in the IP data packet, where the verification information can be an identity identification code or encrypted verification information. The verification information is then used for automatic pairing, thus avoiding the need to manually enter IP numbers and improving convenience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 This is a flow chart of a method for automatically acquiring device IP for a charging pile in the present invention;
[0024] Figure 2 Another flowchart of a method for automatically obtaining device IP from a charging pile in the present invention;
[0025] Figure 3 Another flowchart of a method for automatically obtaining device IP from a charging pile in the present invention;
[0026] Figure 4This is a schematic diagram of a structure in which a charging pile automatically obtains device IP in the present invention;
[0027] Figure 5 The figure is a schematic diagram of the structure of an electronic device in the present invention.
[0028] Icons: 1. Preset module; 2. Network configuration module; 3. Broadcast module; 4. Verification definition module; 5. Verification judgment module; 6. Processor; 7. Memory; 8. Data bus. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0030] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0031] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0032] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0033] In the description of the present application, it should be noted that the terms "upper", "lower", "inside", "outside", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, or are the orientations or positional relationships in which the product of the application is usually placed when in use. They are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0034] In the description of this application, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "disposed" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0035] In conjunction with the accompanying drawings, some implementation methods of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0036] Example 1
[0037] See also Figure 1 , a method for a charging pile to automatically obtain a device IP provided by an embodiment of the present application, in order to solve the problem of having to input IP numbers multiple times, the present design uses predefined verification information in an IP data packet, wherein the verification information can be an identity identification code or encrypted verification information. Thus, automatic pairing is performed using the verification information, thereby avoiding the need to manually input an IP number and improving convenience.
[0038] S1: Preset at least one charging pile central control device and at least one mobile terminal device;
[0039] In order to facilitate the quick and convenient use of the charging pile using a mobile device, the environment is preset first, that is, at least one charging pile central control device and at least one mobile terminal device.
[0040] S2: The mobile terminal device and the central control device are connected to the same router, and the mobile terminal device and the charging pile central control device are adjusted to the same network segment;
[0041] However, since the processing capacity of the charging pile is limited, when the charging pile receives a large amount of contact information, it will cause its connection load to be high, which will increase the pairing delay. Therefore, the mobile terminal device and the central control device are connected to the same router and adjusted to the same network segment to form a local network. The router is used to physically avoid other redundant connections, thereby improving convenience.
[0042] S3: The mobile terminal device creates a User Datagram Protocol (IP) data packet and broadcasts it through a built-in antenna;
[0043] Utilizing antenna broadcasting for wireless connection and pairing improves convenience.
[0044] S4: Authentication information predefined in the IP data packet;
[0045] At the same time, in order to avoid connection errors caused by the same verification information, different charging pile manufacturers use predefined verification information in the IP data packet. The predefined method can be an identity identification code or encrypted verification information, etc., which improves adaptability.
[0046] S5: The charging pile central control device starts the IP data packet monitoring fixed port, and after receiving the IP data packet, obtains the verification information in the IP data packet for verification;
[0047] The charging pile is verified by monitoring the fixed port, thus providing judgment information for the operation after judgment.
[0048] S6: If the verification is successful, the IP address information of the central control device is obtained, and the IP address information is returned to the corresponding mobile terminal device; if the verification is not successful, a prompt message indicating that the verification failed is sent to the mobile terminal device.
[0049] In order to prompt the user when verification fails, the prompt information can be a voice broadcast or a text message prompt.
[0050] In some embodiments of the present invention, the steps after presetting the charging pile central control device and at least one mobile terminal device include: establishing a server terminal; when there are multiple charging piles, when installing any charging pile, collecting the location information of the charging pile; and uploading the location information to the server terminal.
[0051] Since charging piles are used on a large scale, they need to be built in different places in the city. Therefore, in order to facilitate users to find charging piles, the location information of the charging piles is collected in advance when installing the charging piles, thereby providing guidance for the charging piles and improving convenience.
[0052] In some embodiments of the present invention, when any charging pile is located underground, depth information and underground floor information are added to the location information of the charging pile, and the depth information and underground floor information are prompted in the form of voice broadcast on the mobile terminal.
[0053] As for charging piles for cars, many of them are installed in underground parking lots. Therefore, the collection of depth information and underground floor information will help users find them and further improve convenience.
[0054] In some embodiments of the present invention, if the verification fails, the steps after sending a prompt message of verification failure to the mobile terminal device include: obtaining the charging pile location information through the server terminal, and re-navigating the charging pile location using the navigation software built into the mobile terminal.
[0055] For users who have not passed the verification, it may be that the charging pile cannot be used due to problems or there are too many people using the charging pile. Therefore, the navigation software built into the mobile terminal re-navigates the location of the charging pile to help users find the charging pile again, further improving convenience.
[0056] See also Figure 2 In some embodiments of the present invention, the steps after returning the IP address information to the corresponding mobile terminal device include:
[0057] S601: When the charging pile corresponding to the IP address information starts charging, the central control device starts timing and counts the output power of the charging pile through the electric meter set in the charging pile. When the charging pile finishes charging, the central control device sends the output power statistics to the background terminal;
[0058] During the charging process, if the charging time is long, users may leave their cars or other devices to be charged at the charging station to charge and leave. In order to prevent users from leaving their devices at the charging station for too long when fully charged, charging charges are imposed and timers are included.
[0059] S602: When the charging pile output interface is disconnected, the central control device stops timing and sends the stay time to the background terminal;
[0060] The end of the timing is determined by the disconnection of the charging pile output interface.
[0061] S603: The backend terminal calculates the charging fee according to the power statistics and the stay time value.
[0062] Finally, the backend terminal summarizes all the data and converts the costs.
[0063] See also Figure 3In some embodiments of the present invention, the steps after the background terminal calculates the charging fee according to the power statistics and the stay time value include: S604: If the charging pile stops charging, the charging device still stays on the output interface of the charging pile, and a first time period is preset. If the stay time does not exceed the first time period, it is free; if it exceeds the first preset time period, a timeout information is sent to the background terminal, and the background terminal charges for overtime occupancy.
[0064] Since the charging time is positively correlated with the output power of the charging pile, the first preset time period should be set according to the time it takes for the charging pile to be fully charged. If the time exceeds the first preset time period, it means that the user is staying, and a stay fee will be charged to avoid other vehicles being unable to enter due to the occupation of the car.
[0065] See also Figure 3 In some embodiments of the present invention, the steps after the background terminal charges for overtime occupancy include: S605: presetting a second time period, the second time period is greater than the first preset time period, when the stay time exceeds the second time period, the central control device sends a timeout information to the background terminal, and the background terminal charges for overtime occupancy and sends a reminder message to the mobile terminal.
[0066] For cars that stay for too long, reminder messages are sent to mobile terminals to remind users in time to avoid excessive parking fees. This also provides convenience for subsequent vehicles.
[0067] Example 2
[0068] See also Figure 4 , a system for automatically acquiring device IP of a charging pile provided by the present invention, comprising: a preset module 1, used for presetting at least one charging pile central control device and at least one mobile terminal device; a network configuration module 2, used for connecting the mobile terminal device and the central control device to the same router, and adjusting the mobile terminal device and the charging pile central control device to the same network segment; a broadcast module 3, used for the mobile terminal device to create a user datagram protocol IP data packet and broadcast it through a built-in antenna; a verification definition module 4, used for predefining verification information in the IP data packet; a verification judgment module 5, used for the charging pile central control device to open the IP data packet to listen to a fixed port, and after receiving the IP data packet, obtain the verification information in the IP data packet for verification; if the verification passes, the IP address information of the central control device is obtained, and the IP address information is returned to the corresponding mobile terminal device; if the verification fails, a prompt message of verification failure is sent to the mobile terminal device.
[0069] Example 3
[0070] See also Figure 5, an electronic device provided by the present invention, includes at least one processor 6, at least one memory 7 and a data bus 8; wherein: the processor 6 and the memory 7 communicate with each other through the data bus 8; the memory 7 stores program instructions that can be executed by the processor 6, and the processor 6 calls the program instructions to execute a method for a charging pile to automatically obtain a device IP.
[0071] For example, to implement:
[0072] At least one charging pile central control device and at least one mobile terminal device are preset, the mobile terminal device and the central control device are connected to the same router, and the mobile terminal device and the charging pile central control device are adjusted to the same network segment; the mobile terminal device creates a user datagram protocol IP data packet and broadcasts it through a built-in antenna; verification information is predefined in the IP data packet; the charging pile central control device turns on the IP data packet to listen to a fixed port, and after receiving the IP data packet, obtains the verification information in the IP data packet for verification; if the verification passes, the IP address information of the central control device is obtained, and the IP address information is returned to the corresponding mobile terminal device; if the verification fails, a prompt message of verification failure is sent to the mobile terminal device.
[0073] Example 4
[0074] The present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor 6, a method for a charging pile to automatically obtain a device IP is implemented. For example, the following is implemented:
[0075] At least one charging pile central control device and at least one mobile terminal device are preset, the mobile terminal device and the central control device are connected to the same router, and the mobile terminal device and the charging pile central control device are adjusted to the same network segment; the mobile terminal device creates a user datagram protocol IP data packet and broadcasts it through a built-in antenna; verification information is predefined in the IP data packet; the charging pile central control device turns on the IP data packet to listen to a fixed port, and after receiving the IP data packet, obtains the verification information in the IP data packet for verification; if the verification passes, the IP address information of the central control device is obtained, and the IP address information is returned to the corresponding mobile terminal device; if the verification fails, a prompt message of verification failure is sent to the mobile terminal device.
[0076] Among them, the memory 7 can be but is not limited to, random access memory (RANDOM ACCESS MEMORY, RAM), read only memory (READ ONLY MEMORY, ROM), programmable read-only memory (PROGRAMMABLE READ-ONLYMEMORY, PROM), erasable read-only memory (ERASABLE PROGRAMMABLE READ-ONLY MEMORY, EPROM), electrically erasable read-only memory (ELECTRIC ERASABLE PROGRAMMABLE READ-ONLY MEMORY, EEPROM), etc.
[0077] The processor 6 may be an integrated circuit chip with signal processing capability. The processor 6 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0078] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0079] It will be apparent to those skilled in the art that the present application is not limited to the details of the exemplary embodiments described above, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present application. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A method for automatically obtaining device IP of a charging pile, characterized in that: include: Preset at least one charging pile central control device and at least one mobile terminal device; Establish server terminal; When there are multiple charging piles, when installing any of the charging piles, the location information of the charging piles is collected; Uploading the location information to a server terminal; The mobile terminal device and the central control device are connected to the same router, and the mobile terminal device and the charging pile central control device are adjusted to the same network segment; The mobile terminal device creates a User Datagram Protocol IP data packet and broadcasts it via a built-in antenna; Verification information predefined in the IP data packet; wherein the verification information is an identity identification code or verification information after encryption calculation; The charging pile central control device starts the IP data packet monitoring fixed port, and after receiving the IP data packet, obtains the verification information in the IP data packet for verification; If the verification is successful, the IP address information of the central control device is obtained and the IP address information is returned to the corresponding mobile terminal device; If the verification fails, a prompt message indicating the verification failure is sent to the mobile terminal device, and the location information of the charging pile is obtained through the server terminal, and the charging pile location is re-navigated using the navigation software built into the mobile terminal.
2. A method for automatically obtaining device IP of a charging pile as claimed in claim 1, characterized in that: When any of the charging piles is located underground, depth information and underground floor information are added to the location information of the charging pile, and the depth information and the underground floor information are prompted in the form of voice broadcast on the mobile terminal.
3. A method for automatically obtaining device IP of a charging pile as claimed in claim 1, characterized in that: The steps after returning the IP address information to the corresponding mobile terminal device include: When the charging pile corresponding to the IP address information starts charging, the central control device starts timing and counts the output power of the charging pile through the electric meter set in the charging pile. When the charging pile finishes charging, the central control device sends the output power statistics to the background terminal; When the charging pile output interface is disconnected, the central control device stops timing and sends the stay time to the background terminal; The backend terminal calculates the charging fee according to the power statistics value and the stay time value.
4. A method for automatically obtaining device IP of a charging pile as claimed in claim 3, characterized in that: The steps after the backend terminal calculates the charging fee according to the power statistics value and the stay time value include: If the charging pile stops charging, the charging device will still stay on the output interface of the charging pile, and a first time period is preset. If the stay time does not exceed the first time period, it is free; if it exceeds the first preset time period, a timeout information is sent to the background terminal, and the background terminal charges for overtime occupancy.
5. A method for automatically obtaining device IP of a charging pile as claimed in claim 4, characterized in that: The steps after the backend terminal charges for overtime occupancy include: A second time period is preset, and the second time period is greater than the first preset time period. When the stay time exceeds the second time period, the central control device sends a timeout message to the background terminal. The background terminal charges for the overtime occupancy and sends a reminder message to the mobile terminal.
6. A system for automatically acquiring device IP for a charging pile, characterized in that: include: A preset module, used to preset at least one charging pile central control device and at least one mobile terminal device; Establish server terminal; When there are multiple charging piles, when installing any of the charging piles, the location information of the charging piles is collected; Uploading the location information to a server terminal; A network configuration module, used to connect the mobile terminal device and the central control device to the same router, and adjust the mobile terminal device and the charging pile central control device to the same network segment; A broadcast module, used for the mobile terminal device to create a User Datagram Protocol IP data packet and broadcast it through a built-in antenna; A verification definition module, used for pre-defining verification information in the IP data packet; wherein the verification information is an identity identification code or verification information after encryption calculation; A verification judgment module is used for the charging pile central control device to open the IP data packet to monitor the fixed port, and after receiving the IP data packet, obtain the verification information in the IP data packet for verification; if the verification is successful, obtain the IP address information of the central control device, and return the IP address information to the corresponding mobile terminal device; If the verification fails, a prompt message indicating the verification failure is sent to the mobile terminal device, and the charging pile location information is obtained through the server terminal, and the charging pile location is re-navigated using the navigation software built into the mobile terminal.
7. An electronic device, characterized in that: It includes at least one processor, at least one memory and a data bus; wherein: the processor and the memory communicate with each other through the data bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute any method as claimed in claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
