Network distribution method, electronic device and readable storage medium
Through the distribution network data request and response mechanism between the imaging device and the main control device, the problem of insufficient distribution network reliability and flexibility in the prior art is solved, and a high reliability and flexibility distribution process is achieved.
Patent Information
- Application Number
- CN202210690461.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-17
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2042-06-17
AI Technical Summary
In the prior art, when configuring a wireless network for an imaging device, the main control device cannot confirm whether the imaging device has received the distribution network information, and the imaging device cannot control the transmission time of the distribution network information, resulting in low reliability and insufficient flexibility.
The imaging device broadcasts the distribution network data request, the main control device responds to and broadcasts the distribution network data, the imaging device monitors and verifies the distribution network data, and then determines that the reception is correct and broadcasts the first indication information to confirm that the distribution network is completed.
The reliability of the distribution network process is improved, and the main control device can promptly understand the distribution network progress of the imaging device, and the imaging device can actively control the transmission time of distribution network information, improving the flexibility of the distribution network.
Smart Images

Figure CN115103422B_ABST
Abstract
Description
[Technical field]
[0001] The present application relates to the field of communication technology, and in particular to a network distribution method, an electronic device and a readable storage medium. [Background technology]
[0002] With the continuous development of Internet of Things technology, many imaging devices such as printers, copiers, scanners, etc. can be connected to wireless networks for use. At present, when configuring wireless networks for imaging devices (hereinafter referred to as "network configuration"), one of the common methods is that the main control device (such as PC terminal, mobile phone terminal, etc.) broadcasts the network configuration information, and after the imaging device monitors the network configuration information, it can configure the network according to the network configuration information.
[0003] However, when the network is configured using the above method, on the one hand, the main control device cannot confirm whether the imaging device has received the above network configuration information, nor can it determine whether the imaging device has completed the network configuration, and the reliability is low; on the other hand, the imaging device cannot control the sending time of the network configuration information, and the flexibility is insufficient. [Summary of the invention]
[0004] The embodiments of the present application provide a network configuration method, an electronic device, and a readable storage medium to improve the reliability and flexibility of the network configuration process.
[0005] In a first aspect, an embodiment of the present application provides a network configuration method, which is applied to an imaging device, and the method includes: broadcasting a network configuration data request; monitoring the network configuration data broadcast by the main control device in response to the network configuration data request; performing network configuration according to the network configuration data, and broadcasting a first indication information, wherein the first indication information is used to indicate that the network configuration is completed.
[0006] In one possible implementation manner, broadcasting a request for network configuration data includes: setting a device name according to a serial number identifier of the network configuration data to be requested.
[0007] In one possible implementation manner, monitoring the network configuration data broadcasted by the master control device in response to the network configuration data request includes: monitoring the network configuration data packet broadcasted by the master control device in response to the searched device name, the network configuration data packet including the network configuration data.
[0008] In one possible implementation, before performing network configuration according to the network configuration data, the method further includes: performing data verification on the network configuration data contained in the network configuration data packet to determine that the network configuration data is received correctly; and / or, determining that complete network configuration data has been received based on the size of the network configuration data packet.
[0009] In one possible implementation, the network configuration data packet also includes verification information; the network configuration data included in the network configuration data packet is verified to determine that the network configuration data is correctly received, including: using a cyclic redundancy check rule to calculate a verification value of the network configuration data; the verification value is consistent with the verification information included in the network configuration data packet, and it is determined that the network configuration data is correctly received; or, the network configuration data included in the network configuration data packets monitored by each broadcast channel are compared; the network configuration data monitored by each broadcast channel are consistent, and it is determined that the network configuration data is correctly received.
[0010] In one possible implementation, the method further includes: the verification value is inconsistent with the verification information included in the network configuration data packet, determining that the network configuration data is received incorrectly; or, the network configuration data monitored by the various broadcast channels are inconsistent, determining that the network configuration data is received incorrectly; after determining that the network configuration data is received incorrectly, the method further includes: maintaining the current device name; and monitoring the network configuration data packet rebroadcast by the master control device in response to the searched device name.
[0011] In one possible implementation manner, determining that complete network configuration data has been received according to the size of the network configuration data packet includes: determining that complete network configuration data has been received when the network configuration data packet is smaller than a preset transmission threshold.
[0012] In one possible implementation, the method further includes: the network configuration data packet is equal to a preset transmission threshold, and it is determined that the complete network configuration data has not been received; after determining that the complete network configuration data has not been received, the method further includes: setting the device name according to the serial number identifier of the next network configuration data to be requested; and listening to the next network configuration data packet broadcast by the master control device according to the searched device name.
[0013] In one possible implementation manner, broadcasting the first indication information includes: setting a device name according to the first indication information.
[0014] In a second aspect, an embodiment of the present application provides a network configuration method, which is applied to a master control device, and the method includes: in response to a monitored network configuration data request, broadcasting network configuration data; in response to a monitored first indication information, determining that the imaging device network configuration is completed.
[0015] In one possible implementation, in response to a monitored network configuration data request, broadcasting network configuration data includes: determining a serial number identifier of the network configuration data to be requested in response to a searched device name of the imaging device; and broadcasting a corresponding network configuration data packet according to the serial number identifier of the network configuration data, wherein the network configuration data packet includes the network configuration data.
[0016] In one possible implementation, before broadcasting the corresponding network configuration data packet according to the serial number identifier of the network configuration data, the method further includes: splitting the complete network configuration data according to a preset transmission threshold to obtain at least one network configuration data; and assigning corresponding serial number identifiers to the at least one network configuration data according to a preset numbering rule.
[0017] In one possible implementation manner, the network configuration data packet further includes verification information, and the verification information is obtained by verifying the network configuration data using a cyclic redundancy check rule.
[0018] In one possible implementation, after broadcasting the corresponding network configuration data packet according to the serial number identifier of the network configuration data, the method further includes: re-searching the device name of the imaging device; if the re-searched device name is still the serial number identifier of the network configuration data, re-broadcasting the network configuration data packet; if the re-searched device name is the serial number identifier of the next network configuration data, broadcasting the next network configuration data packet.
[0019] In one possible implementation, in response to the monitored first indication information, determining that the imaging device network configuration is completed includes: determining the first indication information in response to the device name of the searched imaging device; and determining that the imaging device network configuration is completed according to the first indication information.
[0020] In a third aspect, an embodiment of the present application provides a network configuration device, comprising: a first broadcast module, used to broadcast a network configuration data request; a first monitoring module, used to monitor the network configuration data broadcast by the main control device in response to the network configuration data request; a network configuration module, used to perform network configuration according to the network configuration data, and broadcast a first indication information, wherein the first indication information is used to indicate that the network configuration is completed.
[0021] In a fourth aspect, an embodiment of the present application provides a network configuration device, comprising: a second broadcast module, used to broadcast network configuration data in response to a monitored network configuration data request; and a determination module, used to determine that the network configuration of the imaging device is completed in response to a monitored first indication information.
[0022] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method described in the first aspect.
[0023] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method described in the second aspect.
[0024] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method described in the first aspect and the second aspect.
[0025] In the above technical solution, first, the imaging device can broadcast a network configuration data request, and the main control device can broadcast the network configuration data in response to the monitored network configuration data request. Then, after the imaging device monitors the network configuration data broadcast by the main control device, it can perform network configuration according to the network configuration data and broadcast the first indication information. Finally, the main control device can determine that the imaging device network configuration is completed in response to the monitored first indication information. Through the above technical solution, the main control device can timely obtain the network configuration progress of the imaging device, improve the reliability of the network configuration process, and the imaging device can actively control the sending time of the network configuration information, thereby improving the flexibility of the network configuration process.
Brief Description of the Drawings
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A flow chart of a network distribution method provided in an embodiment of the present application;
[0028] Figure 2 A flowchart of another network distribution method provided in an embodiment of the present application;
[0029] Figure 3 A flowchart of another network distribution method provided in an embodiment of the present application;
[0030] Figure 4 A schematic diagram of the structure of a distribution network device provided in an embodiment of the present application;
[0031] Figure 5 A schematic diagram of the structure of another network distribution device provided in an embodiment of the present application;
[0032] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. [Specific implementation method]
[0033] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0034] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. 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.
[0035] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said", "first" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0036] In this application, the main control device is the network configuration device, and the imaging device is the network configuration device. The main control device is used to send network configuration related data to the imaging device, so that the imaging device completes the network configuration and then accesses the local area network.
[0037] Among them, the main control device can be, for example, any terminal device such as a personal computer (PC), a personal digital assistant (PDA), a wireless handheld device, a tablet computer (Tablet Computer), a mobile phone, etc., and this application does not impose any restrictions on this.
[0038] Figure 1 A flow chart of a network distribution method provided in an embodiment of the present application is as follows: Figure 1 As shown, the above network configuration method may include:
[0039] Step 101: An imaging device broadcasts a request for network configuration data.
[0040] After the imaging device is powered on, it can enter the network configuration mode in response to the received mode setting operation. Exemplarily, the mode setting operation can be a pressing operation on one or more designated keys on the imaging device, a clicking operation on a designated button in the display interface, etc. The network configuration mode can be, for example, a Bluetooth mode or a wireless access point (AP) mode.
[0041] After entering the network configuration mode, the imaging device can automatically broadcast a network configuration data request to request the master device to broadcast the network configuration data.
[0042] In a feasible implementation, the imaging device can add the network configuration data request to the device name of the imaging device. Thus, after searching for the imaging device, the master device can respond to the network configuration data request according to the device name. The specific form of the network configuration data request can be determined by the protocol between the imaging device and the master device. For example, it can be PW_Req, etc., which is not limited in this application.
[0043] Step 102: The master control device broadcasts network configuration data in response to the monitored network configuration data request.
[0044] After the network configuration program in the master control device is started, the imaging device currently in the network configuration mode can be searched. After searching for the corresponding imaging device, the master control device can determine that the imaging device is requesting network configuration data according to the device name of the imaging device. Then, the master control device can respond to the network configuration data request and broadcast the network configuration data. Specifically, the master control device can encapsulate the network configuration data in a network configuration data packet for broadcasting.
[0045] Step 103: The imaging device monitors the network configuration data broadcast by the master control device.
[0046] Step 104: The imaging device performs network configuration according to the network configuration data and broadcasts first indication information.
[0047] After the imaging device logs in to the local area network according to the network configuration data, the device name can be set according to the first indication information. In the embodiment of the present application, the first indication information can be used to indicate that the network configuration is complete. The specific form of the first indication information can be determined by the protocol between the imaging device and the master control device, for example, it can be COMPLETE. In an exemplary implementation, the imaging device can set the device name according to the first indication information by setting the device name to PW_COMPLETE.
[0048] Step 105: The main control device determines that the network configuration of the imaging device is completed in response to the monitored first indication information.
[0049] In the embodiment of the present application, after searching for the imaging device, the main control device can determine the first indication information according to the device name of the imaging device, and then determine that the imaging device network configuration is completed according to the first indication information.
[0050] Through the above technical solution, the main control device can timely learn the network configuration progress of the imaging device, thereby improving the reliability of the network configuration process. In addition, the imaging device can actively control the sending time of the network configuration information, thereby improving the flexibility of the network configuration process.
[0051] In another embodiment of the present application, the implementation method of the above-mentioned network distribution method is further explained.
[0052] In the embodiment of the present application, in order to improve the data transmission efficiency, the master device and the imaging device may pre-agree on a transmission threshold. The transmission threshold may be used to specify the maximum amount of data transmitted between the master device and the imaging device each time. The specific value of the transmission threshold may be set according to the requirements, for example, it may be set to the maximum transmission threshold allowed by the broadcast.
[0053] Based on the above description, the master control device can split the complete network configuration data according to the preset transmission threshold to obtain multiple network configuration data. Then, the master control device can assign corresponding serial number identifiers to each of the split network configuration data according to the preset numbering rules. The serial number identifier can be any identifier that can represent the order defined according to the protocol, such as numbers, letters, a combination of numbers and letters, etc.
[0054] In particular, when the complete network distribution data is less than the preset transmission threshold, the number of network distribution data obtained by splitting is 1 (ie, no splitting is required). At this time, the master control device can assign a sequence number identifier representing the sequence 1 to the complete network distribution data according to the preset numbering rule.
[0055] Based on the above-mentioned master control device splitting principle and numbering principle for complete distribution network data, such as Figure 2 As shown, in the embodiment of the present application, the above network configuration method may include:
[0056] Step 201: The imaging device sets the device name of the imaging device according to the serial number identifier of the network configuration data to be requested.
[0057] In the embodiment of the present application, the device name set by the imaging device may include not only the network configuration data request but also the serial number identification of the network configuration data to be requested. Specifically, since the imaging device is not sure about the number of network configuration data obtained by splitting at the master device at this time, in a feasible implementation, the imaging device may add the corresponding serial number identification to the device name of the imaging device in sequence according to the coding order.
[0058] For example, when requesting network configuration data for the first time, the imaging device may set the device name of the imaging device to: PW_Req_001. PW_Req may represent a network configuration data request, and 001 may represent a request for the first network configuration data. It should be noted that at this time, the network configuration data obtained by splitting at the imaging device may be only one or more.
[0059] Step 202: The main control device broadcasts corresponding network configuration data according to the device name of the imaging device.
[0060] The master device can determine the serial number identifier of the network configuration data to be requested according to the device name of the imaging device. Furthermore, the master device can broadcast the corresponding network configuration data according to the serial number identifier of the network configuration data. Specifically, it can be a broadcast response network configuration data packet, in which the corresponding network configuration data is encapsulated.
[0061] In the embodiment of the present application, further, in order to identify the service type corresponding to the data packet, the header position of the above-mentioned network configuration data packet may also add a network configuration service identifier. Exemplarily, the network configuration service identifier may be, for example, PW_RESPONSE, which is used to indicate a network configuration data response. And, the above-mentioned network configuration data packet may also include a serial number identifier of the network configuration data.
[0062] Step 203: The imaging device monitors the network configuration data broadcast by the master device according to the device name.
[0063] Step 204: The imaging device determines whether the complete network configuration data has been received according to the size of the network configuration data packet. If yes, execute step 205; otherwise, continue to execute step 201.
[0064] In the embodiment of the present application, considering that the complete network configuration data may be split into multiple parts, each time the imaging device monitors the network configuration data broadcast by the master control device, it can determine whether the complete network configuration data has been received.
[0065] It can be understood that, under the premise of splitting the complete distribution network data according to the preset transmission threshold, in most cases, the amount of data contained in each distribution network data packet obtained by splitting will be: the amount of data contained in the last distribution network data packet obtained by splitting is less than the preset transmission threshold, while the amount of data contained in the remaining distribution network data packets is equal to the preset transmission threshold.
[0066] Therefore, on this basis, in a feasible implementation method, the imaging device can judge the data volume of the network configuration data packet received this time. If it is less than the preset transmission threshold, then the currently received network configuration data packet can be considered to be the last one, that is, the complete network configuration data has been received. Otherwise, it is considered that some network configuration data has not been received.
[0067] In another feasible implementation, when broadcasting the last network configuration data packet, the master control device may add a preset identifier to it to identify the current network configuration data packet as the last data packet. The specific form of the preset identifier may be determined by the protocol between the imaging device and the master control device, for example, it may be FINALLY. Each time the imaging device receives a network configuration data packet, it may confirm whether it contains the above preset identifier. If so, it may be confirmed that the complete network configuration data has been received. Otherwise, it is considered that some network configuration data has not yet been received.
[0068] On the basis of determining that the complete network configuration data has been received, the imaging device can continue to execute the subsequent method flow. On the contrary, when the network configuration data packet is equal to the preset transmission threshold, the imaging device has not received the complete network configuration data. At this time, the imaging device can re-execute the above step 201 and set the device name again according to the sequence number identifier of the next network configuration data to be requested, such as PW_Req_002. Then, the next network configuration data packet broadcasted by the master control device can be continuously monitored. This process is executed repeatedly until the imaging device determines that the complete network configuration data has been received.
[0069] Step 205: The imaging device performs network configuration according to the network configuration data and broadcasts first indication information.
[0070] Step 206: The main control device determines that the imaging device network configuration is completed in response to the monitored first indication information.
[0071] In the above technical solution, the master control device can split the complete network distribution data and broadcast it to improve the data transmission efficiency. The imaging device can judge the integrity of the received network distribution data, and when it is determined that the complete network distribution data has not been received, it can broadcast the network distribution data request again. Accordingly, when it is determined that the complete network distribution data has been received, the network distribution can be implemented. In the scenario of broadcasting network distribution data, the flexibility of data broadcasting is improved.
[0072] Figure 3 A flowchart of another network distribution method provided in an embodiment of the present application. Figure 3 As shown, the network configuration method provided in the embodiment of the present application may include the following process:
[0073] Step 301: An imaging device broadcasts a request for network configuration data.
[0074] Step 302: The master control device broadcasts network configuration data in response to the monitored network configuration data request.
[0075] In the embodiment of the present application, the master control device may verify the network configuration data using a preset verification rule in response to the network configuration data request to generate verification information. The preset verification rule may be, for example, any one of a cyclic redundancy check rule and the like. Then, the master control device may encapsulate the verification information and the network configuration data into a network configuration data packet and broadcast the network configuration data packet.
[0076] Step 303: The imaging device monitors the network configuration data broadcast by the master control device in response to the network configuration data request.
[0077] Step 304: The imaging device performs data verification on the network configuration data to determine whether the network configuration data is received correctly. If correct, execute step 305; otherwise, execute step 301.
[0078] In the embodiment of the present application, the imaging device may verify the received network configuration data to verify whether the received network configuration data is correct.
[0079] In a possible implementation, after receiving the network configuration data packet broadcasted by the master control device, the imaging device can extract the network configuration data and verification information contained therein respectively. Then, the imaging device can re-verify the network configuration data according to the above-mentioned preset verification rules, such as cyclic redundancy check rules, to obtain a verification value. Then, the imaging device can compare the obtained verification value with the verification information in the network configuration data packet. If the comparison result is consistent, then it can be considered that the verification is passed and the network configuration data is received correctly. Otherwise, if the verification value is inconsistent with the verification information contained in the network configuration data packet, it is considered that the verification has failed and the network configuration data is received incorrectly.
[0080] In another possible implementation, for the scenario of network configuration in Bluetooth mode, the imaging device can simultaneously monitor the network configuration data broadcast by the master control device from multiple broadcast channels, and then compare the network configuration data monitored by each broadcast channel. If the network configuration data monitored by each broadcast channel are consistent, or the network configuration data monitored by any two broadcast channels are consistent, it can be determined that the network configuration data is received correctly. Otherwise, if the network configuration data monitored by each broadcast channel are inconsistent, it can be determined that the network configuration data is received incorrectly.
[0081] When it is determined that the network configuration data is received correctly, the imaging device can continue to execute the subsequent process. When the network configuration data is received incorrectly, the imaging device can re-execute the above step 301 to request the master device to rebroadcast the network configuration data. Specifically, the imaging device can keep the current device name unchanged, and then, when the master device re-searches the device name, it can rebroadcast the corresponding network configuration data.
[0082] Step 305: The imaging device performs network configuration according to the network configuration data and broadcasts first indication information.
[0083] Step 306: The main control device determines that the network configuration of the imaging device is completed in response to the monitored first indication information.
[0084] In the above technical solution, the imaging device can verify the received network distribution data to ensure the correctness of the received network distribution data. In addition, the imaging device can also retransmit the data when the verification fails. Through the above technical solution, the reliability of the network distribution process can be further improved.
[0085] Figure 4 This is a schematic diagram of the structure of a distribution network device provided in an embodiment of the present application. Figure 4 As shown, the above-mentioned network distribution device may include: a first broadcast module 41, a first monitoring module 42 and a network distribution module 43.
[0086] The first broadcast module 41 is used to broadcast a network configuration data request.
[0087] The first monitoring module 42 is used to monitor the network configuration data broadcasted by the master control device in response to the network configuration data request.
[0088] The network configuration module 43 is used to perform network configuration according to the network configuration data and broadcast first indication information, where the first indication information is used to indicate that the network configuration is completed.
[0089] In a specific implementation, the first broadcast module 41 is specifically used to set the device name according to the serial number identifier of the network configuration data to be requested.
[0090] In a specific implementation, the first monitoring module 42 is specifically used to monitor the network configuration data packet broadcasted by the master control device in response to the searched device name, where the network configuration data packet includes the network configuration data.
[0091] In a specific implementation, the above-mentioned device also includes a first verification module 44, which is used to perform data verification on the network configuration data contained in the network configuration data packet to determine whether the network configuration data is received correctly; and / or the above-mentioned device also includes a first determination module 45, which is used to determine that the complete network configuration data has been received based on the size of the network configuration data packet.
[0092] In a specific implementation, the first verification module 44 is specifically used to calculate the verification value of the network configuration data using a cyclic redundancy check rule; the verification value is consistent with the verification information contained in the network configuration data packet, and it is determined that the network configuration data is received correctly; or, the network configuration data contained in the network configuration data packets monitored by each broadcast channel are compared; the network configuration data monitored by each broadcast channel are consistent, and it is determined that the network configuration data is received correctly.
[0093] In a specific implementation, the first verification module 44 is also used to determine that the network configuration data is received incorrectly if the verification value is inconsistent with the verification information included in the network configuration data packet; or, the network configuration data monitored by each broadcast channel is inconsistent, thereby determining that the network configuration data is received incorrectly; after the first verification module 44 determines that the network configuration data is received incorrectly, the first broadcast module 41 is also used to maintain the current device name; the first monitoring module 42 is also used to monitor the network configuration data packet re-broadcasted by the master control device in response to the searched device name.
[0094] In a specific implementation, the first determining module 45 is specifically configured to determine that complete network configuration data has been received if the network configuration data packet is smaller than a preset transmission threshold.
[0095] In a specific implementation, the first determination module 45 is also used to determine that the complete network configuration data packet is equal to a preset transmission threshold, and that the complete network configuration data has not been received; after the first determination module 45 determines that the complete network configuration data has not been received, the first broadcast module 41 is also used to set the device name according to the serial number identifier of the next network configuration data to be requested; the first monitoring module 42 is also used to monitor the next network configuration data packet broadcast by the master control device according to the searched device name.
[0096] Figure 5 This is a schematic diagram of the structure of another network distribution device provided in an embodiment of the present application. Figure 5 As shown, the above-mentioned network distribution device may include: a second broadcast module 51 and a second determination module 52.
[0097] The second broadcast module 51 is used to broadcast the network configuration data in response to the monitored network configuration data request.
[0098] The second determining module 52 is configured to determine that the network configuration of the imaging device is completed in response to the monitored first indication information.
[0099] In a specific implementation, the second broadcast module 51 is specifically used to determine the serial number identifier of the network configuration data to be requested in response to the device name of the searched imaging device; broadcast the corresponding network configuration data packet according to the serial number identifier of the network configuration data, and the network configuration data packet contains the network configuration data.
[0100] In a specific implementation, the above method also includes a data splitting module 53, which is used to split the complete distribution network data according to a preset transmission threshold to obtain at least one distribution network data; a numbering module 54, which is used to assign a corresponding serial number identifier to at least one distribution network data according to a preset numbering rule.
[0101] In a specific implementation, the above device further includes a second verification module 55, which is used to verify the distribution network data using a cyclic redundancy check rule to obtain verification information.
[0102] In a specific implementation, the second broadcast module 51 is also used to re-search the device name of the imaging device; if the re-searched device name is still the serial number identifier of the network configuration data, the network configuration data packet is re-broadcast; if the re-searched device name is the serial number identifier of the next network configuration data, the next network configuration data packet is broadcast.
[0103] In a specific implementation, the second determining module 52 is specifically configured to determine the first indication information in response to the device name of the searched imaging device; and determine that the imaging device network configuration is completed according to the first indication information.
[0104] Figure 6This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device may include at least one processor; and at least one memory communicatively connected to the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the network configuration method provided in an embodiment of the present application.
[0105] Figure 6 A block diagram of an exemplary electronic device suitable for implementing the embodiments of the present application is shown. Figure 6 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0106] like Figure 6 As shown, the electronic device is in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: one or more processors 410, a memory 430, and a communication bus 440 connecting different system components (including the memory 430 and the processor 410).
[0107] The communication bus 440 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.
[0108] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0109] The memory 430 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. Figure 6Not shown, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the communication bus 440 via one or more data medium interfaces. The memory 430 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.
[0110] A program / utility having a set (at least one) of program modules may be stored in memory 430, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules typically perform the functions and / or methods of the embodiments described herein.
[0111] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via the communication interface 420. Furthermore, the electronic device may also communicate with the network adapter ( Figure 6 The network adapter may communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via the communication bus 440. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Drives; hereinafter referred to as: RAID) systems, tape drives, and data backup storage systems.
[0112] The processor 410 executes various functional applications and network configuration by running the programs stored in the memory 430, for example, implementing the network configuration method provided in the embodiment of the present application.
[0113] An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions, and the computer instructions enable the computer to execute the network configuration method provided by the embodiment of the present application.
[0114] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ReadOnly Memory; hereinafter referred to as: ROM), an erasable programmable read-only memory (Erasable Programmable ReadOnly Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0115] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0116] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0117] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0118] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0119] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0120] It should be noted that the terminals involved in the embodiments of the present application may include but are not limited to printers, personal computers (Personal Computer; hereinafter referred to as: PC), personal digital assistants (Personal Digital Assistant; hereinafter referred to as: PDA), wireless handheld devices, tablet computers (Tablet Computer), mobile phones, MP3 players, MP4 players, etc.
[0121] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0122] 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 hardware plus software functional units.
[0123] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A network distribution method, characterized in that: Applied to an imaging device, the method comprises: Request for network data via wireless broadcast; Monitoring the network configuration data broadcasted by the master control device in response to the network configuration data request; Performing network configuration according to the network configuration data, and wirelessly broadcasting first indication information, where the first indication information is used to indicate that the network configuration is completed; The network configuration data request includes: setting a device name according to a serial number identifier of the network configuration data to be requested; The request for network configuration data through wireless broadcasting includes: in response to the received mode setting operation, the imaging device enters the network configuration mode, the device name of the imaging device wirelessly broadcasting to the outside includes a first device name, so that after the main control device searches for the imaging device, it determines that the imaging device is requesting network configuration data according to the first device name; The network configuration is performed according to the network configuration data, and the first indication information is wirelessly broadcasted, including: after the imaging device logs into the local area network according to the network configuration data, the device name for external wireless broadcast is set to include a second device name, so that the main control device obtains the second device name to determine that the imaging device has completed network configuration.
2. The method according to claim 1, characterized in that Monitoring the network configuration data broadcasted by the master control device in response to the network configuration data request includes: The monitoring master device broadcasts a network configuration data packet in response to the searched device name, wherein the network configuration data packet includes the network configuration data.
3. The method according to claim 2, characterized in that Before performing network configuration according to the network configuration data, the method further includes: Performing data verification on the network configuration data contained in the network configuration data packet to determine that the network configuration data is received correctly; and / or, According to the size of the network configuration data packet, it is determined that the complete network configuration data has been received.
4. The method according to claim 3, characterized in that The network configuration data packet also includes verification information; Verifying the network configuration data contained in the network configuration data packet to determine whether the network configuration data is received correctly includes: Calculate the check value of the distribution network data using a cyclic redundancy check rule; The verification value is consistent with the verification information included in the network configuration data packet, and it is determined that the network configuration data is received correctly; or, Comparing the network configuration data contained in the network configuration data packets monitored by each broadcast channel; The network configuration data monitored by the various broadcast channels are consistent, and it is determined that the network configuration data is received correctly.
5. The method according to claim 4, characterized in that The method further includes: if the check value is inconsistent with the check information included in the network configuration data packet, determining that the network configuration data is received incorrectly; or if the network configuration data monitored by each broadcast channel is inconsistent, determining that the network configuration data is received incorrectly; After determining that the network configuration data is received incorrectly, the method further includes: Keep the current device name; The network configuration data packet rebroadcasted by the master device in response to the searched device name is monitored.
6. The method according to claim 3, characterized in that According to the size of the network configuration data packet, it is determined that the complete network configuration data has been received, including: The network configuration data packet is smaller than a preset transmission threshold, and it is determined that the complete network configuration data has been received.
7. The method according to claim 6, characterized in that The method further includes: the network configuration data packet is equal to a preset transmission threshold, and determining that complete network configuration data has not been received; After determining that the complete network configuration data has not been received, the method further includes: Set the device name according to the serial number identifier of the next network configuration data to be requested; Monitor the next network configuration data packet broadcast by the master control device according to the searched device name.
8. A network distribution method, characterized in that: Applied to a master control device, the method comprises: In response to the monitored network configuration data request, wirelessly broadcast the network configuration data; In response to the monitored first indication information, determining that the network configuration of the imaging device is completed; The completion of the network configuration of the imaging device includes: after the imaging device logs into the local area network according to the network configuration data, setting the device name for external wireless broadcasting to include the second device name, so that the main control device monitors the second device name to determine that the imaging device has completed the network configuration; The network configuration data request includes: according to the sequence number of the network configuration data to be requested, Set the device name; The network configuration data request includes a first device name, where the first device name is different from the second device name; The wireless broadcasting of network configuration data in response to the monitored network configuration data request includes: In response to the searched first device name of the imaging device, determining a serial number identifier of the network configuration data to be requested; Broadcasting a corresponding network configuration data packet according to the serial number identifier of the network configuration data, wherein the network configuration data packet includes the network configuration data; Before broadcasting the corresponding network configuration data packet according to the sequence number identifier of the network configuration data, the method further includes: The complete network configuration data is split according to a preset transmission threshold to obtain at least one network configuration data; the preset transmission threshold is used for the imaging device to determine that the complete network configuration data has been received when it is determined that the network configuration data packet is less than the preset transmission threshold; According to a preset numbering rule, a corresponding serial number identifier is respectively allocated to the at least one network configuration data.
9. The method according to claim 8, characterized in that In response to the monitored network configuration data request, broadcast network configuration data, including: In response to the device name of the searched imaging device, determining a serial number identifier of the network configuration data to be requested; A corresponding network configuration data packet is broadcast according to the serial number identifier of the network configuration data, and the network configuration data packet includes the network configuration data.
10. The method according to claim 9, characterized in that Before broadcasting the corresponding network configuration data packet according to the sequence number identifier of the network configuration data, the method further includes: Splitting the complete distribution network data according to a preset transmission threshold to obtain at least one distribution network data; According to a preset numbering rule, a corresponding serial number identifier is respectively allocated to the at least one network configuration data.
11. The method according to claim 10, characterized in that After broadcasting the corresponding network configuration data packet according to the sequence number identifier of the network configuration data, the method further includes: Re-searching the device name of the imaging device; If the device name found again is still the serial number identifier of the network configuration data, rebroadcast the network configuration data packet; If the device name found again is the serial number identifier of the next network configuration data, the next network configuration data packet is broadcasted.
12. An electronic device, characterized in that: include: at least one processor; as well as at least one memory in communication with the processor, wherein: The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 7 by calling the program instructions.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Network configuration method, terminal equipment and readable storage medium
CN113316147A