Method, device and electronic device for modifying device address based on Bluetooth
The automatic IP address modification method based on Bluetooth solves the problems of low efficiency and misoperation caused by manual debugging in the existing technology, realizes rapid and accurate modification of the IP address of production equipment, and improves production efficiency and user experience.
Patent Information
- Application Number
- CN202211554609.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-06
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-12-06
AI Technical Summary
The existing technology requires manual on-site debugging when modifying the IP address of production equipment, resulting in low efficiency and misoperation, affecting production efficiency.
Using a Bluetooth-based method, the IP address of the production equipment and control equipment is obtained through the server, and modification instructions are automatically sent to the control chip of the production equipment to realize automatic modification of the IP address, and the control equipment is monitored and restarted through the Bluetooth module to ensure that the modification is successful and User experience.
There is no need for manual debugging, which improves the efficiency of IP address modification of production equipment, reduces the probability of errors, and improves user experience and production efficiency.
Smart Images

Figure CN115914172B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic device communication, and in particular to a method, apparatus and electronic device for modifying a device address based on Bluetooth. Background Art
[0002] With the development of technology, many manufacturing companies need to set the device address of the remote communication module when developing production equipment to determine the fixed communication location. When performing production operations or maintenance operations, it is necessary to switch different production equipment. Modifying the corresponding device address can make the IP address of the control device consistent with the IP address of the production equipment to ensure the normal operation of the production equipment.
[0003] At present, the main methods for modifying the IP address of production equipment are to modify the hardware network port or to modify the address pin of the production equipment by using a dip switch. Both methods require maintenance workers to perform on-site debugging, and during the debugging process, repeated debugging is required to prevent errors. This process will cause the production equipment to not work properly, thereby reducing production efficiency. Summary of the invention
[0004] In order to improve the production efficiency of manufacturing companies when performing production operations, the present application provides a method, apparatus and electronic device for modifying device addresses based on Bluetooth.
[0005] In the first aspect of the present application, a method for modifying a device address based on Bluetooth is provided, which is applied to a server, and the method includes: obtaining a first IP address sent by a first production device, the first IP address being the IP address of the first production device; comparing the first IP address with a second IP address, the second IP address being the IP address of a control device, and the control device being a device that controls the operation of the first production device; when the first IP address is inconsistent with the second IP address, sending an IP address modification instruction to the first production device so that the first production device receives the IP address modification instruction, and sending the second IP address to the control chip of the first production device so that the control chip modifies the first IP address to the second IP address, so that the first production device establishes a connection with the control device.
[0006] By adopting the above technical solution, the server sends the IP address of the control device to the Bluetooth module, and the Bluetooth module modifies the IP address of the production equipment. Manual debugging is no longer required, which speeds up the efficiency of modifying the IP address of the production equipment and thus improves production efficiency.
[0007] Optionally, the obtaining of the first IP address sent by the first production device is specifically: sending a signal connection request to the first production device; after the first production device responds to the signal connection request, obtaining first basic information sent by the first production device, the first basic information being the basic information of the production device; matching the first basic information with a device information library to determine an IP address corresponding to the first basic information, the device information library including a correspondence between the basic information of the production device and the IP address; when the IP address is consistent with the first IP address, obtaining the IP address.
[0008] By adopting the above technical solution, the server obtains the basic information of the first production device to determine the IP address of the first production device, thereby preventing the IP addresses of other production devices from being modified and affecting the normal operation of other production devices.
[0009] Optionally, when the first IP address is inconsistent with the second IP address, after sending the IP address modification instruction to the first production device, it also includes: obtaining a third IP address sent by the first production device, the third IP address being an address formed after the control chip modifies the first IP address to the second IP address; comparing the third IP address with the second IP address; when the third IP address is consistent with the second IP address, sending a restart instruction to the control device to cause the control device to restart, delete the program for controlling the previous first production device, and call the program for controlling the current first production device.
[0010] By adopting the above technical solution, when the IP address of the production device is successfully modified, the control device needs to be restarted and the legacy running program of the control device needs to be deleted, thereby reducing the impact of the legacy running program in the control device on the operation of the first production device and causing the first production device to malfunction.
[0011] Optionally, when the third IP address is consistent with the second IP address, after sending a restart instruction to the control device, it includes: obtaining a first operating state of the first production device, and sending a fault prompt message to the user device, the first operating state being the operating state when the first production device sends a fault; after a first preset time period, obtaining a second operating state of the first production device; when the first operating state is consistent with the second operating state, sending an IP address modification guide to the user device, the IP address modification guide including steps for modifying the IP address of the production device, so that the user device responds to the modification operation and controls the first production device to modify the IP address.
[0012] By adopting the above technical solution, after the IP address of the production equipment is successfully modified, when the production equipment still cannot operate, an IP address modification guide is sent to the user device, allowing the user to modify the IP address of the production equipment according to the correct modification steps, which speeds up the modification efficiency and improves the user experience.
[0013] Optionally, when the first operating state is consistent with the second operating state, after sending the IP address modification guide to the user device, it includes: obtaining a third operating state, the third operating state being an operating state in which erroneous parameter information appears during operation of the first production device; matching the third operating state with the fault information library to determine the first fault information; the fault information library is composed of the correspondence between the operating state of the production device and the fault information; and sending the first fault information to the user device.
[0014] By adopting the above technical solution, when the production equipment is successfully running, the server monitors the working status of the production equipment. When the working status of the production equipment is abnormal, the server determines the fault information of the production equipment according to the working status of the production equipment, and sends the fault to the user device to help the user quickly understand the cause of the fault.
[0015] Optionally, after sending the first fault information to the user device, the method includes: sending modification information to the first production device, wherein the modification information is parameter information that needs to be modified for the first production device; obtaining second basic information, wherein the second basic information is parameter information after the parameter information of the first production device is modified; and sending the second basic information to the user device to determine that the modification of the second basic information is correct.
[0016] By adopting the above technical solution, when the user needs to modify the parameter information of the production equipment, the server sends the parameter information to be modified to the Bluetooth module, and the Bluetooth module directly modifies the parameter information of the production equipment, thereby simplifying the process of modifying the parameter information.
[0017] Optionally, the method includes: obtaining the connection status of the first signal link and the second signal link; the first signal link corresponds to the first production device, and the second signal link corresponds to the second production device; when the first signal link is not connected to the server, sending the first signal link to the user device.
[0018] By adopting the above technical solution, since there are many production equipment in the production plant, the connection request of the production equipment that has not yet been connected to the control device will be sent to the user device, so that when the user queries the production equipment whose IP address needs to be modified, it can more intuitively find the corresponding production equipment, thereby improving the user experience.
[0019] Optionally, the method includes: obtaining a confirmation information request sent by the first production device, the confirmation information request being an information request requiring user confirmation after the IP address of the first production device is modified; after a second preset time period, when the user device does not respond to the confirmation information request, confirming that the first IP address is incorrect, and sending the second IP address to the first production device.
[0020] By adopting the above technical solution, after the IP address of the production device is modified, the user is required to confirm whether the IP address of the production device is correct. If the user fails to confirm for a long time, the second IP address of the control device is sent to the Bluetooth module again, thereby reducing the possibility of incorrect modification of the IP address of the production device.
[0021] In a second aspect of the present application, a device for modifying a device address based on Bluetooth is provided, wherein the device is a server, and the device includes an acquisition module, a processing module, and a sending module, wherein the acquisition module is used to acquire a first IP address sent by a first production device, wherein the first IP address is the IP address of the first production device; the processing module is used to compare the first IP address with a second IP address, wherein the second IP address is the IP address of a control device, and the control device is a device that controls the operation of the first production device; the sending module is used to send an IP address modification instruction to the first production device when the first IP address is inconsistent with the second IP address, so that the first production device receives the IP address modification instruction and sends the second IP address to the control chip of the first production device, so that the control chip modifies the first IP address to the second IP address, so that the first production device establishes a connection with the control device.
[0022] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.
[0023] In summary, the present application includes at least one of the following beneficial technical effects:
[0024] 1. The server sends the IP address of the control device to the Bluetooth module, and the Bluetooth module modifies the IP address of the production equipment. Manual debugging is no longer required, which speeds up the efficiency of modifying the IP address of the production equipment, thereby improving production efficiency;
[0025] 2. After the IP address of the production device is successfully modified, if the production device still cannot operate, the IP address modification guide is sent to the user device, allowing the user to modify the IP address of the production device according to the correct modification steps, which speeds up the modification efficiency and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a flowchart of a method for modifying a device address based on Bluetooth according to an embodiment of the present application.
[0027] Figure 2 It is a flowchart of another method for modifying a device address based on Bluetooth according to an embodiment of the present application.
[0028] Figure 3 This is a flowchart of another method for modifying a device address based on Bluetooth according to an embodiment of the present application.
[0029] Figure 4 This is a signal connection display diagram of a method for modifying a device address based on Bluetooth according to an embodiment of the present application.
[0030] Figure 5 It is a module diagram of a device for modifying device address based on Bluetooth provided in an embodiment of the present application.
[0031] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0032] Explanation of the reference numerals: 1. Acquisition module; 2. Processing module; 3. Sending module; 1000. Electronic device; 1001. Processor; 1002. Communication bus; 1003. User interface; 1004. Network interface; 1005. Memory. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0034] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0035] In the description of the embodiments of the present application, unless otherwise stated, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0036] The production equipment and the control equipment are both provided with a communication module, wherein the communication module can be a Bluetooth module and a WIFI chip module; the communication module is wirelessly connected to the server for transmitting data information, and the production equipment and the control equipment communicate wirelessly so that the control equipment controls the production equipment to perform normal production operations. It should be noted that the communication module in the embodiment of the present application only takes the Bluetooth module as an example.
[0037] In the production workshops of many manufacturing companies, there are usually multiple production equipment working at the same time. When one production equipment completes the production task, it needs to switch to another production equipment to continue processing. At this time, it is necessary to modify the IP address of the production equipment so that the IP address of the control device is consistent with the IP address of the production equipment to ensure the normal operation of the production equipment.
[0038] At present, the methods for modifying the IP address of production equipment mainly adopt hardware network port modification or use DIP switch to modify the address pin of production equipment. Both methods require maintenance workers to perform on-site debugging. Since the debugging process requires maintenance workers to constantly compare the IP address of production equipment with the IP address of control equipment, it is easy to cause modification errors, and the time for modifying IP address is relatively long. This process will also make production equipment unable to work normally, thereby reducing the efficiency of production and processing.
[0039] In order to solve this problem, the present application discloses a method for modifying device address based on Bluetooth, which is applied to a server, such as Figure 1 As shown, the method includes steps S101 to S103.
[0040] S101. Obtain a first IP address sent by a first production device, where the first IP address is the IP address of the first production device.
[0041] Specifically, the server sends a signal connection request to the Bluetooth module, and the Bluetooth module responds to the signal connection request. At this time, the Bluetooth module establishes a wireless connection with the server. The Bluetooth module obtains the basic information of the first production device, wherein the basic information includes the model, serial number, software and hardware version, supported communication protocol address, version and parameter information of the production device, and the parameter information includes the program for running the first production device; the server matches the basic information with the device information library, determines the first IP address of the first production device, and completes the pairing of the server and the first production device. Among them, the device information library includes the basic information of all production devices and the current IP address of each production device. When the server is successfully paired with the first production device, the first IP address of the first production device is obtained.
[0042] S102. Compare the first IP address with the second IP address, where the second IP address is the IP address of a control device, and the control device is a device that controls the operation of the first production device.
[0043] Specifically, the Bluetooth module obtains the second IP address of the control device and sends the second IP address to the server. The control device can send a preset control instruction to the Bluetooth module, and the Bluetooth module sends the preset control instruction to the first production device, and the first production device completes the preset control instruction issued by the control device. The server compares the first IP address with the second IP address to determine whether the first IP address is consistent with the second IP address. The maintenance personnel do not need to use the hardware network port or the dip switch to check the IP address of the modified production device, which reduces the probability of error in checking the first IP address and the second IP address, and generates a first comparison result.
[0044] S103. When the first IP address is inconsistent with the second IP address, send an IP address modification instruction to the first production device so that the first production device receives the IP address modification instruction, send the second IP address to the control chip of the first production device, so that the control chip modifies the first IP address to the second IP address, so that the first production device establishes a connection with the control device.
[0045] Specifically, when the first IP address is inconsistent with the second IP address, the server sends an IP address modification instruction to the Bluetooth module, and the Bluetooth module receives the IP address modification instruction and modifies the first IP address of the first production device to the second IP address. After the Bluetooth module completes the modification of the first IP address of the first production device, the server obtains the first IP address of the first production device and the second IP address of the control device again. The first IP address is compared with the second IP address to generate a second comparison result. When the first IP address and the second IP address are consistent in the second comparison result, the server sends a restart instruction to the Bluetooth module; after the Bluetooth module receives the restart instruction sent by the server, it sends a restart signal to the control device, and the control device restarts at this time. When the control device restarts, the pre-stored running program in the control device is deleted to ensure that the control device prevents the production device from misoperating when controlling the production device. After the control device restarts, the server re-enters a new running program into the control device to control the production device to work with the new running program.
[0046] In a possible implementation, in order to verify whether the IP address of the production device is modified correctly, such as Figure 2 As shown, the method includes steps S201 to 203. When the third IP address is consistent with the second IP address, after sending a restart instruction to the control device, it includes:
[0047] S201. Acquire a first operating state of a first production device, and send a fault prompt message to a user device, where the first operating state is the operating state of the first production device when the first production device sends a fault.
[0048] S202: After a first preset time period, obtain a second operating state of the first production equipment.
[0049] S203. When the first operating state is consistent with the second operating state, an IP address modification guide is sent to the user device, where the IP address modification guide includes steps for modifying the IP address of the production device so that the user device responds to the modification operation and controls the first production device to modify the IP address.
[0050] Specifically, when the control device completes the restart, the control device sends a working signal to the production device to verify whether the IP address of the production device has been successfully modified. When the production device starts to run, the Bluetooth module obtains the current first operating state of the production device. When the production device fails in the first operating state, a fault prompt message is sent to the user device to verify whether the cause of the fault is an error in modifying the IP address of the production device. After the first preset time period, the Bluetooth module obtains the second operating state of the production device and sends the second operating state to the server; wherein the first preset time period can be 1 hour; the server determines whether the first operating state is consistent with the second operating state, and at this time the second operating state is the operating state of the production device after the IP address is re-modified. When the first operating state is consistent with the second operating state, it is determined that the operating steps of the maintenance personnel when modifying the IP address of the production device are wrong, and at this time an IP address modification guide is sent to the user device, wherein the IP address modification guide is the steps for modifying the IP address of the production device.
[0051] In a possible implementation, after determining that the IP address of the production device is successfully modified, in order to monitor whether other faults occur in the production device, such as Figure 3 As shown, the method includes steps S301 to 303.
[0052] When the first operating state is consistent with the second operating state, after sending the IP address modification guide to the user equipment, the method includes:
[0053] S301. Acquire a third operating state, where the third operating state is an operating state in which error parameter information occurs during the operation of the first production equipment.
[0054] S302, matching the third operating state with a fault information database to determine first fault information; the fault information database is composed of a correspondence between the operating state of the production equipment and the fault information.
[0055] S303: Send first fault information to user equipment.
[0056] Specifically, after the maintenance personnel modify the IP address of the production equipment according to the correct IP address modification steps, the control device sends a working signal to the production equipment, and the production equipment starts to run after receiving the working signal. During the operation, when the production equipment has a parameter information error that causes the production equipment to stop running, the Bluetooth module obtains the third operating state of the production equipment and sends it to the server. The server receives the third operating state of the production equipment, matches the third operating state with the fault information library, and thus confirms that the production equipment is in the third operating state. The fault information of the production equipment, the server sends the fault information to the user device, so that the user can quickly find the cause of the failure of the production equipment.
[0057] In a possible implementation, after sending the first fault information to the user device, it includes: sending modification information to the first production device, the modification information is parameter information that needs to be modified for the first production device; obtaining second basic information, the second basic information is the parameter information of the first production device after being modified; sending the second basic information to the user device to determine that the second basic information is modified correctly.
[0058] Specifically, when the user needs to modify the operating parameters of the production equipment, the server sends the modification information to the Bluetooth module, the Bluetooth module sends the information modification signal and the modification information to the control device, and the control device updates the parameter information stored in the control device according to the modification information. When the update is completed, the control device sends the modified parameter information to the Bluetooth module, and the Bluetooth module sends the modified parameter information to the server so that the user can confirm whether the information modification is correct.
[0059] For example, when a user needs to set the processing time of a product from 2 minutes to 1 minute, the server sends the modification information of the processing time to the Bluetooth module, and the Bluetooth module sends the information modification signal and the modification information of the processing time to the control device. The control device modifies the currently stored processing time of 2 minutes to 1 minute, and sends the modified information to the server through the Bluetooth module to allow the user to confirm whether the parameter information modification is correct. If there is an error in the parameter information, the server sends the correct parameter information to the Bluetooth module again.
[0060] In a possible implementation, the connection status of the first signal link and the second signal link is obtained; the first signal link corresponds to the first production device, and the second signal link corresponds to the second production device; when the first signal link is not connected to the server, the first signal link is sent to the user device.
[0061] Specifically, since there are a large number of production equipment in the production workshop, each production equipment corresponds to a Bluetooth module. In order to connect to the correct Bluetooth module, the server obtains the signal links of multiple Bluetooth modules and the corresponding connection status. Among them, the signal links of multiple Bluetooth modules include a first signal link and a second signal link. When the first signal link does not establish a signal connection with the server and the second signal link establishes a signal connection with the server, the first signal link is sent to the user device, so that the user can quickly query the Bluetooth module that needs to be connected, thereby improving the user experience.
[0062] For example, the signal links acquired by the server include the signal links of device No. 1, device No. 2, and device No. 3. At this time, the server recognizes that the Bluetooth module of device No. 1 and the Bluetooth module of device No. 2 have not established a signal connection with the server, and the Bluetooth module of device No. 3 has established a signal connection with the server. Figure 4As shown, the server sends the signal connection of device No. 1 and the signal connection of device No. 2 to the user device, and the user does not need to search for the required signal link among a large number of signal links.
[0063] In one possible implementation, a confirmation information request sent by the first production device is obtained, where the confirmation information request is an information request requiring user confirmation after the IP address of the first production device is modified; after a second preset time period, when the user device does not respond to the confirmation information request, it is confirmed that the first IP address is wrong, and a second IP address is sent to the first production device.
[0064] Specifically, when the IP address of the production device is modified, the Bluetooth module sends a confirmation information request to the server to determine whether the modified IP address is correct. The confirmation information request is an information request that requires user confirmation after the IP of the production device is modified, and the confirmation information request also includes the IP address of the production device before modification and the IP address after modification. After the second preset time period, when the server does not respond to the confirmation information request, it is determined that there is an error in the modified IP address, and the server sends the second IP address to the Bluetooth module again, reducing the possibility of modifying the IP address of the production device incorrectly.
[0065] The implementation principle of a method for modifying a device address based on Bluetooth in an embodiment of the present application is as follows:
[0066] When the user needs to switch the device address, the server establishes a signal connection with the Bluetooth device, and the Bluetooth module obtains the first IP address of the production device and the second IP address of the control device, and compares the first IP address with the second IP address. The maintenance personnel no longer need to constantly debug the IP address, which reduces the probability of errors in modifying the IP address of the production device. When the first IP address and the second IP address are inconsistent, the server sends an IP address modification instruction to the Bluetooth module, so that the Bluetooth module modifies the IP address of the production device from the first IP address to the second IP address, completing the modification of the IP address.
[0067] The present application also discloses a device for modifying device address based on Bluetooth, the device is a server, such as Figure 5 As shown, the device includes an acquisition module 1, a processing module 2 and a sending module 3, wherein:
[0068] An acquisition module 1 is used to acquire a first IP address sent by a first production device, where the first IP address is the IP address of the first production device;
[0069] Processing module 2, used for comparing the first IP address with the second IP address, where the second IP address is the IP address of the control device, and the control device is a device that controls the operation of the first production device;
[0070] The sending module 3 is used to send an IP address modification instruction to the first production device when the first IP address is inconsistent with the second IP address, so that the first production device receives the IP address modification instruction and sends the second IP address to the control chip of the first production device, so that the control chip modifies the first IP address to the second IP address, so that the first production device establishes a connection with the control device.
[0071] In a possible implementation, obtaining a first IP address sent by a first production device is specifically as follows: sending a signal connection request to the first production device; obtaining first basic information sent by the first production device after the first production device responds to the signal connection request, the first basic information being the basic information of the production device; matching the first basic information with a device information library to determine an IP address corresponding to the first basic information, the device information library including a correspondence between the basic information of the production device and the IP address; obtaining the IP address when the IP address is consistent with the first IP address.
[0072] In a possible implementation, when the first IP address is inconsistent with the second IP address, after sending the IP address modification instruction to the first production device, it also includes: obtaining a third IP address sent by the first production device, the third IP address being an address formed after the control chip modifies the first IP address to the second IP address; comparing the third IP address with the second IP address; when the third IP address is consistent with the second IP address, sending a restart instruction to the control device to cause the control device to restart, delete the program for controlling the previous first production device, and call the program for controlling the current first production device.
[0073] In a possible implementation, when the third IP address is consistent with the second IP address, after sending a restart instruction to the control device, it includes: obtaining a first operating state of the first production device, and sending a fault prompt message to the user device, the first operating state is the operating state when the first production device sends a fault; after a first preset time period, obtaining a second operating state of the first production device; when the first operating state is consistent with the second operating state, sending an IP address modification guide to the user device, the IP address modification guide includes steps for modifying the IP address of the production device, so that the user device responds to the modification operation and controls the first production device to modify the IP address.
[0074] In a possible implementation, when the first operating state is consistent with the second operating state, after sending the IP address modification guide to the user device, it includes: obtaining a third operating state, the third operating state is an operating state in which the first production device has erroneous parameter information during operation; matching the third operating state with a fault information library to determine the first fault information; the fault information library is composed of the correspondence between the operating state of the production device and the fault information; and sending the first fault information to the user device.
[0075] In a possible implementation, after sending the first fault information to the user device, it includes: sending modification information to the first production device, the modification information is parameter information that needs to be modified for the first production device; obtaining second basic information, the second basic information is the parameter information of the first production device after being modified; sending the second basic information to the user device to determine that the second basic information is modified correctly.
[0076] In a possible implementation, the connection status of the first signal link and the second signal link is obtained; the first signal link corresponds to the first production device, and the second signal link corresponds to the second production device; when the first signal link is not connected to the server, the first signal link is sent to the user device.
[0077] In one possible implementation, a confirmation information request sent by the first production device is obtained, where the confirmation information request is an information request requiring user confirmation after the IP address of the first production device is modified; after a second preset time period, when the user device does not respond to the confirmation information request, it is confirmed that the first IP address is wrong, and a second IP address is sent to the first production device.
[0078] The present application also discloses an electronic device. Figure 6 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .
[0079] The communication bus 1002 is used to realize the connection and communication between these components.
[0080] The user interface 1003 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface.
[0081] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0082] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.
[0083] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may also be optionally at least one storage device located away from the aforementioned processor 1001. As Figure 6 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program based on a method for modifying a device address based on Bluetooth.
[0084] exist Figure 6In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call an application program stored in the memory 1005 for a method for modifying the device address based on Bluetooth. When executed by one or more processors 1001, the electronic device 1000 executes one or more of the methods described in the above embodiments.
[0085] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0086] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0087] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0088] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0089] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0090] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0091] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for modifying a device address based on Bluetooth, characterized in that: Applied to a server, the method comprises: Obtain a first IP address sent by the first production device, where the first IP address is the IP address of the first production device; Compare the first IP address with a second IP address, where the second IP address is an IP address of a control device, and the control device is a device that controls the operation of the first production device; When the first IP address is inconsistent with the second IP address, an IP address modification instruction is sent to the first production device to obtain a third IP address sent by the first production device, where the third IP address is an address formed after the control chip modifies the first IP address to the second IP address; the third IP address is compared with the second IP address; when the third IP address is consistent with the second IP address, a restart instruction is sent to the control device to cause the control device to restart, delete the program that controls the previous first production device, and call the program that controls the current first production device; after sending the restart instruction to the control device when the third IP address is consistent with the second IP address, the first IP address of the first production device is obtained. running state, and sending a fault prompt information to the user device, the first running state is the running state when the first production device sends a fault; after a first preset time period, the second running state of the first production device is obtained; when the first running state is consistent with the second running state, an IP address modification guide is sent to the user device, and the IP address modification guide includes steps for modifying the IP address of the production device, so that the user device responds to the modification operation and controls the first production device to modify the IP address; so that the first production device receives the IP address modification instruction and sends the second IP address to the control chip of the first production device, so that the control chip modifies the first IP address to the second IP address, so that the first production device establishes a connection with the control device.
2. According to a method for modifying a device address based on Bluetooth according to claim 1, it is characterized in that: The obtaining of the first IP address sent by the first production device is specifically: Sending a signal connection request to the first production device; After the first production device responds to the signal connection request, obtaining first basic information sent by the first production device, where the first basic information is basic information of the production device; Matching the first basic information with a device information database to determine an IP address corresponding to the first basic information, wherein the device information database includes a correspondence between basic information of production equipment and IP addresses; When the IP address is consistent with the first IP address, the IP address is acquired.
3. According to the method for modifying device address based on Bluetooth in claim 1, it is characterized in that: When the first operating state is consistent with the second operating state, after sending the IP address modification guide to the user equipment, the method includes: Acquire a third operating state, where the third operating state is an operating state in which error parameter information occurs during the operation of the first production equipment; Matching the third operating state with the fault information library to determine the first fault information; the fault information library is composed of the corresponding relationship between the operating state of the production equipment and the fault information; The first fault information is sent to a user device.
4. A method for modifying a device address based on Bluetooth according to claim 3, characterized in that: After sending the first fault information to the user equipment, the method includes: Sending modification information to the first production equipment, where the modification information is parameter information of the first production equipment that needs to be modified; Acquire second basic information, where the second basic information is parameter information of the first production equipment after the parameter information is modified; The second basic information is sent to the user equipment to determine whether the second basic information is modified correctly.
5. The method for modifying a device address based on Bluetooth according to claim 1, characterized in that: The method comprises: Acquire the connection status of the first signal link and the second signal link; the first signal link corresponds to the first signal link production equipment, the second signal link corresponds to a second production equipment; When the first signal link is not connected to the server, the first signal link is sent to a user device.
6. The method for modifying a device address based on Bluetooth according to claim 1, characterized in that: The method comprises: Obtaining a confirmation information request sent by the first production device, where the confirmation information request is an information request requiring user confirmation after the IP address of the first production device is modified; After a second preset time period, when the user device does not respond to the confirmation information request, it is confirmed that the first IP address is wrong, and the second IP address is sent to the first production device.
7. A device for modifying device address based on Bluetooth, characterized in that: The device is a server, comprising an acquisition module (1), a processing module (2) and a sending module (3), wherein: The acquisition module (1) is used to acquire a first IP address sent by a first production device, wherein the first IP address is the IP address of the first production device; The processing module (2) is used to compare the first IP address with a second IP address, where the second IP address is the IP address of a control device, and the control device is a device that controls the operation of the first production device; The sending module (3) is used to send an IP address modification instruction to the first production device when the first IP address is inconsistent with the second IP address, obtain a third IP address sent by the first production device, and the third IP address is an address formed after the control chip modifies the first IP address to the second IP address; compare the third IP address with the second IP address; when the third IP address is consistent with the second IP address, send a restart instruction to the control device to cause the control device to restart, delete the program that controls the previous first production device, and call the program that controls the current first production device; obtain the first operating state of the first production device, and send a fault prompt message to the user device; when the third IP address is consistent with the second IP address, When the second IP address is consistent, after sending a restart instruction to the control device, the first operating state is the operating state when the first production device sends a fault; after a first preset time period, the second operating state of the first production device is obtained; when the first operating state is consistent with the second operating state, an IP address modification guide is sent to the user device, and the IP address modification guide includes steps for modifying the IP address of the production device, so that the user device responds to the modification operation and controls the first production device to modify the IP address; so that the first production device receives the IP address modification instruction and sends the second IP address to the control chip of the first production device, so that the control chip modifies the first IP address to the second IP address, so that the first production device establishes a connection with the control device.
8. An electronic device, characterized in that: The electronic device (1000) comprises a processor (1001), a memory (1005), a user interface (1003) and a network interface (1004), wherein the memory (1005) is used to store instructions, the user interface (1003) and the network interface (1004) are used to communicate with other devices, and the processor (1001) is used to execute the instructions stored in the memory (1005) so that the electronic device (1000) executes the method according to any one of claims 1 to 6.
