Configuration method and system of unmanaged switch and storage medium

By integrating NFC card reader and control chip in non-managed switches, the automated configuration of non-managed switches is achieved, solving the problem of inefficient batch deployment and improving configuration accuracy and efficiency.

CN120455413APending Publication Date: 2025-08-08DONGGUAN QUANZHIKE COMM EQUIP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510634522.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

Non-managed switches are inefficient in batch deployment and are prone to configuration errors due to manual operation errors, making it difficult for the existing technology to efficiently update parameters or firmware.

Method used

Integrate the NFC card reader and control chip in the non-managed switch, establish a connection with the configuration tag device through the NFC card reader, read configuration data and write it to the board flash memory, automatically load configuration data during restart, and realize automatic update of parameters or firmware.

Benefits of technology

In large-scale deployment scenarios, no physical connection is required one by one. Automatic configuration can be achieved by placing NFC configuration tag devices, significantly improving deployment efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120455413A_ABST
    Figure CN120455413A_ABST
Patent Text Reader

Abstract

The invention provides a configuration method and system of an unmanaged switch and a storage medium, and belongs to the technical field of switches, the unmanaged switch is integrated with an NFC card reader, a control chip and a board card flash memory, and the method comprises the following steps: responding to an NFC configuration tag device in an induction range of the NFC card reader, and establishing connection between the NFC card reader and the NFC configuration tag device; after the connection between the NFC card reader and the NFC configuration tag equipment is established, the NFC card reader reads configuration data from the NFC configuration tag equipment; the configuration data comprises configuration payload data; the configuration payload data is written into a board card flash memory through the control chip; and in response to the restart request, the control chip loads the configuration payload data from the board card flash memory. According to the embodiment of the invention, the non-managed switches do not need to be configured one by one, and the configuration method provided by the embodiment of the invention is higher in deployment efficiency under the condition that a large number of non-managed switches are deployed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to, but is not limited to, the field of switch technology, and in particular to a configuration method, system, and storage medium for an unmanaged switch. Background Art

[0002] Currently, mainstream switches on the market are categorized into two types: managed and unmanaged. Managed switches typically feature a web-based or command-line interface (CLI) configuration interface, allowing for flexible and detailed parameter settings or firmware updates. However, unmanaged switches are pre-configured with fixed functions at the factory and lack a configuration interface. They often require parameter or firmware updates from third-party devices connected via serial ports or other interfaces. In a batch deployment environment, firmware or parameter updates for unmanaged switches must be performed manually on each device, which is not only inefficient but also prone to configuration errors due to manual operation. Furthermore, parameter or firmware updates using third-party devices often require partial disassembly before the third-party device can be physically connected to the unmanaged switch. Therefore, the configuration methods for unmanaged switches in related technologies are relatively inefficient, and a configuration method that can improve the efficiency of unmanaged switch deployment is urgently needed. Summary of the Invention

[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a configuration method, system and storage medium for an unmanaged switch, which can improve deployment efficiency in the case of large-scale unmanaged switch deployment.

[0004] In a first aspect, an embodiment of the present application provides a configuration method for an unmanaged switch, which is applied to an unmanaged switch, wherein the unmanaged switch integrates an NFC card reader, a control chip, and a board flash memory, and the method includes: In response to the NFC configuration tag device being within the sensing range of the NFC reader, the NFC reader establishing a connection with the NFC configuration tag device; After the NFC card reader establishes a connection with the NFC configuration tag device, the NFC card reader reads configuration data from the NFC configuration tag device; the configuration data includes configuration payload data; Writing the configuration payload data into the board flash memory via the control chip; In response to the restart request, the control chip loads the configuration payload data from the board flash memory.

[0005] In a second aspect, an embodiment of the present application provides a configuration method for an unmanaged switch, which is applied to an NFC configuration tag device. The unmanaged switch is integrated with an NFC card reader and a board flash memory, and the method includes: In response to the NFC configuration tag device being within the sensing range of the NFC reader, establishing a connection with the NFC reader and receiving device parameters of the unmanaged switch sent from the NFC reader; Filtering a target configuration from a preset configuration file according to the device parameters; After establishing a connection with the NFC card reader, generating configuration data according to the target configuration and sending the configuration data to the NFC card reader.

[0006] In a third aspect, an embodiment of the present application provides a configuration system for an unmanaged switch, including: An NFC configuration tag device, wherein the NFC configuration tag device executes the configuration method of the unmanaged switch according to the second aspect.

[0007] Multiple unmanaged switches, each of which integrates an NFC card reader and a card flash memory and executes the configuration method of the unmanaged switch as described in any one of the first aspects.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the configuration method of the unmanaged switch as described in any one of the first aspect and / or the second aspect above.

[0009] The configuration method, device, and storage medium for an unmanaged switch according to the embodiments of the present application have at least the following beneficial effects: by integrating an NFC card reader within the unmanaged switch, configuration data (such as parameters or firmware) can be directly read through the NFC card reader. Through a reboot request, the unmanaged switch automatically loads the configuration data during startup, thereby achieving automatic parameter or firmware updates. Furthermore, in large-scale deployment scenarios, there is no need to physically connect each unmanaged switch through a third-party tool and then manually configure them one by one. With the NFC tag method, automatic configuration can be achieved simply by placing the NFC configuration tag device within the sensing range of the NFC card reader. Therefore, compared with related technologies, the configuration method of the embodiments of the present application has higher deployment efficiency when unmanaged switches are deployed in large quantities. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 This is a flowchart of an unmanaged switch configuration method provided by an embodiment of the present application applied to an unmanaged switch; Figure 2This is a flowchart of applying the configuration method of an unmanaged switch provided by one embodiment of the present application to an NFC configuration tag device; Figure 3 This is a schematic diagram of an application scenario of a configuration method for an unmanaged switch provided by an embodiment of the present application; Figure 4 This is a system diagram of a configuration system for an unmanaged switch provided by an embodiment of the present application; Figure 5 This is a hardware structure diagram of an unmanaged switch provided in one embodiment of the present application. DETAILED DESCRIPTION

[0011] The following describes in detail embodiments of the present application. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and are not to be construed as limiting the present application.

[0012] In the description of this application, "above," "below," and "within" are understood to be exclusive of the number indicated, while "above," "below," and "within" are understood to be inclusive of the number indicated. The use of "first" and "second" is solely for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly specifying the number or order of the indicated technical features.

[0013] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.

[0014] Reference Figure 1 As shown, according to an embodiment of the present application, a configuration method for an unmanaged switch is provided, which is applied to an unmanaged switch. The unmanaged switch is integrated with an NFC card reader and a card flash memory. The method includes: Step S110: In response to the NFC configuration tag device being within the sensing range of the NFC reader, the NFC reader establishes a connection with the NFC configuration tag device; Step S120: After the NFC card reader establishes a connection with the NFC configuration tag device, the NFC card reader reads configuration data from the NFC configuration tag device; the configuration data includes configuration payload data; Step S130: writing the configuration payload data into the board flash memory via the control chip; Step S140: In response to the restart request, the control chip loads the configuration payload data from the board flash memory.

[0015] Therefore, by integrating an NFC reader into an unmanaged switch, configuration data (such as parameters or firmware) can be directly read through the NFC reader. Through a reboot request, the unmanaged switch automatically loads the configuration data during startup, thereby achieving automatic parameter or firmware updates. Furthermore, in large-scale deployment scenarios, there is no need to physically connect each unmanaged switch using a third-party tool and then manually configure them one by one. With the NFC tag method, automatic configuration can be achieved simply by placing the NFC configuration tag device within the sensing range of the NFC reader. Therefore, the configuration method of the embodiments of the present application has a higher deployment efficiency when unmanaged switches are deployed in large quantities.

[0016] The embodiments of the present application do not limit the sensing range of the NFC card reader. In some embodiments, in order to avoid signal interference between two adjacent unmanaged switches, the range of the NFC card reader is usually limited to a relatively small range, such as less than half the thickness of the unmanaged switch. Therefore, by adjusting the position of the NFC card reader in the unmanaged switch housing, it is ensured that there is no mutual interference of NFC signals between two adjacent unmanaged switches in a stacked scenario.

[0017] The embodiment of the present application does not limit the type of NFC configuration tag device. It can be an independent NFC tag device or a terminal device with NFC tool application such as a mobile phone.

[0018] The embodiments of the present application do not restrict whether the configuration payload data is verified or the entity that performs the verification. For example, the configuration payload data can be verified by the NFC card reader or by the control chip. In some embodiments, the configuration payload data can be verified for integrity or source legitimacy, among other things. The integrity check can be to verify whether the bit error rate of the configuration payload data meets the requirements. Those skilled in the art can choose to add verification to the configuration payload data and the content of the verification based on actual needs.

[0019] The restart request in step S140 may be initiated by the control chip itself or caused by an external operation.

[0020] The board flash memory is used to record the system files (such as firmware) and configuration parameters of the unmanaged switch. The control chip loads the contents of the board flash memory during the startup process to ensure that the unmanaged switch can run according to the expected configuration.

[0021] The configuration payload data of step S120 may be a configuration parameter pair (such as a VLAN number, etc.) or firmware data, which is not limited in this embodiment of the present application.

[0022] In some embodiments, when updating multiple unmanaged switches, when updating the configuration parameters, the unmanaged switches can be logically divided into network topology, and the switches with the same or similar configuration parameters can be configured first, and then the others can be configured, thereby reducing the number of NFC tag operations. In other embodiments, all configuration parameters to be configured can be entered into the NFC configuration tag device at one time, and the configuration parameters corresponding to the unmanaged switch can be determined by obtaining the identification identifier of the unmanaged switch from the NFC card reader, and then the configuration data can be dynamically generated. For updating firmware data, the unmanaged switches with the same firmware can be updated first and then the next type can be updated. Alternatively, all firmware data can be entered into the NFC configuration tag device at one time, and the firmware data corresponding to the unmanaged switch can be determined by obtaining the identification identifier of the unmanaged switch from the NFC card reader, and then the configuration data can be dynamically generated. In this regard, those skilled in the art can selectively set the method for generating configuration data on the NFC tag device side according to actual needs.

[0023] It can be understood that the configuration data also includes configuration verification data; the configuration payload data is written to the board flash memory through the control chip, including: Obtaining preset calibration reference values; Starting from the highest bit of the configuration payload data, the checksum is traversed sequentially, and the checksum reference value is updated according to each traversed bit; The last updated calibration reference value is used as the calibration data to be verified; When the verification data to be verified is consistent with the configuration verification data, the configuration payload data is written into the board flash memory through the control chip; The verification reference value is updated according to each traversed bit, including: Perform XOR calculation on the traversed bit and the verification reference value corresponding to the last traversed bit to obtain the data to be verified; Shift the data to be verified left by one position to obtain the shifted data; When the highest bit of the shifted data is a preset first value, the check reference value is updated to the XOR operation result data of the shifted data and the preset polynomial; When the highest bit of the shifted data is a preset second value, the check reference value is updated to the shifted data, and the first value is different from the second value.

[0024] By updating the initial verification reference value on the NFC reader side with reference to the process of generating configuration verification data on the NFC configuration tag device side, and comparing the final generated verification reference value with the configuration verification data, the integrity of the configuration payload data can be verified, thereby ensuring that the received configuration payload data is not missing and further ensuring the accuracy of the configuration.

[0025] The first value and the second value are 0 or 1. The embodiment of the present application does not limit how to select the first value and the second value. When the first value is 0, the second value is 1, and when the first value is 1, the second value is 0.

[0026] The embodiments of the present application do not limit the selection of the polynomial, and those skilled in the art can selectively set the polynomial according to the method for setting the polynomial during the CRC32 check process.

[0027] The embodiments of the present application do not limit the execution entity of the above steps. For example, the steps can be implemented by an NFC card reader or a control chip. When implemented by an NFC card reader, in some embodiments, the control chip writes the polynomial and the initial verification reference value into the NFC card reader. After the NFC card reader establishes a connection with the NFC configuration tag device, the polynomial and the initial verification reference value are sent to the NFC configuration tag device, so that the NFC configuration tag device can verify the configuration payload data and obtain the configuration verification data.

[0028] It is understood that, before the NFC card reader reads the configuration data from the NFC configuration tag device, the method further includes: The NFC card reader sends a verification reference value to the NFC configuration tag device, so that the NFC configuration tag device generates configuration verification data in the configuration data in real time according to the verification reference value; The calibration reference value is determined by the following steps: Obtaining initial calibration reference values under multiple different bit error scenarios; Determine the target bit error scenario based on historical bit error data generated by the unmanaged switch within a preset historical period; According to a target bit error scenario, a calibration reference value is determined from a plurality of initial calibration reference values.

[0029] Historical error data can be error data generated during wireless communication of an unmanaged switch, such as error data generated during NFC communication. Multiple historical durations are historical durations under the same network topology. The historical duration can be set based on the transmission duration of the configuration data. If the historical duration satisfies the requirement that the transmission duration is a multiple of the historical duration, the target error scenario is determined by statistically analyzing the distribution of historical error data within multiple historical durations.

[0030] The verification reference value can change in real time. If the probability of abnormality in the parsed data after verification based on the verification reference value exceeds a preset threshold, the verification reference value will be recalculated. At this time, while the NFC reader and NFC configuration tag device are still connected, the recalculated verification reference value will be sent to the NFC configuration tag device.

[0031] When an unmanaged switch is used for the first time, its calibration reference value is the preset default value. When it is not used for the first time, the calibration reference value is dynamically determined based on historical error data.

[0032] It is understood that, before the NFC card reader reads the configuration data from the NFC configuration tag device, the method further includes: The NFC card reader sends a polynomial to the NFC configuration tag device, where the polynomial is determined by the unmanaged switch based on error distribution data within a plurality of preset historical time periods.

[0033] The real-time dynamically generated polynomial and verification reference values can further ensure the accuracy of the configuration payload data and reduce security risks during the configuration process.

[0034] It can be understood that before the configuration payload data is written into the board flash memory through the control chip, the method further includes: Perform AES decryption on the configuration payload data to obtain the target configuration; The configuration payload data is written to the board flash memory through the control chip, including: Write the target configuration into the board flash memory through the control chip; The control chip loads the configuration payload data from the board's flash memory, including: The control chip loads the target configuration from the board's flash memory.

[0035] By setting the configuration payload data to encrypted data and encrypting it with AES, the security of the configuration payload data can be ensured, reducing the probability of the unmanaged switch configuration being tampered with during the configuration process, thereby further ensuring the security of the unmanaged switch during deployment.

[0036] It can be understood that the configuration data is decrypted by AES to obtain the target configuration, including: Get the vendor identification data of the unmanaged switch; The configuration data is decrypted by AES according to the manufacturer identification data to obtain the target configuration.

[0037] Using manufacturer identification data for AES encryption and decryption makes the encrypted data related to the device, thereby reducing the complexity of the encryption and decryption process while ensuring security.

[0038] The embodiment of the present application does not limit how the NFC configuration tag device obtains the manufacturer identification data. It can be provided by the NFC card reader negotiation process or directly configured by the user.

[0039] It is understood that the unmanaged switch is provided with a configuration update indicator light; before responding to the restart request, the method further includes: Set the status register corresponding to the configuration update indicator to enable; According to the status register, the configuration update indicator light is lit according to a preset first color.

[0040] By setting the configuration update indicator, you can prompt the user whether the relevant configuration is completed after it is stored in the board flash memory. At this time, the user can determine the stage of the unmanaged switch in the deployment process based on the configuration update indicator.

[0041] The configuration update indicator light is also used to indicate the status of the switch. Different colors represent different states, such as green for normal operation, red for loaded configuration but not reset, and yellow for rollback due to an abnormal loading process.

[0042] It is understandable that, referring to Figure 2 As shown, according to a configuration method of an unmanaged switch provided by the present application, which is applied to an NFC configuration tag device, the unmanaged switch is integrated with an NFC card reader and a board flash memory, and the method includes: Step S210: In response to the NFC configuration tag device being within the sensing range of the NFC reader, establishing a connection with the NFC reader and receiving device parameters of the unmanaged switch sent from the NFC reader; Step S220: Filter the target configuration from the preset configuration file according to the device parameters; Step S230: After establishing a connection with the NFC card reader, generate configuration data according to the target configuration and send the configuration data to the NFC card reader.

[0043] Therefore, by integrating an NFC reader into an unmanaged switch, configuration data (such as parameters or firmware) can be directly read through the NFC reader. Through a reboot request, the unmanaged switch automatically loads the configuration data during startup, thereby achieving automatic parameter or firmware updates. Furthermore, in large-scale deployment scenarios, there is no need to physically connect each unmanaged switch using a third-party tool and then manually configure them one by one. With the NFC tag method, automatic configuration can be achieved simply by placing the NFC configuration tag device within the sensing range of the NFC reader. Therefore, the configuration method of the embodiments of the present application has a higher deployment efficiency when unmanaged switches are deployed in large quantities.

[0044] Device parameters are used to indicate the transmission parameters of the unmanaged switch, including but not limited to the integrity check method, device identification, etc. When the integrity check method is CRC check, it also includes a check reference value and polynomial.

[0045] The embodiment of the present application does not limit the process of how the NFC card reader and the NFC configuration tag device negotiate to establish a connection. After the connection is established, configuration data can be transmitted between the NFC card reader and the NFC configuration tag device.

[0046] For example, take an unmanaged switch and NFC configuration tag device as an example, refer to Figure 3 The specific steps are as follows: S1. Establish an NFC connection. The specific steps are as follows: When the NFC configuration tag device is within the sensing range of the unmanaged switch, the NFC reader is activated and negotiates with the NFC configuration tag device to establish an NFC connection.

[0047] S2. The NFC card reader sends a read command to the NFC configuration tag device to request configuration data.

[0048] S3. The NFC configuration tag device sends configuration data to the NFC card reader.

[0049] Among them, the NFC configuration tag device can be a mobile phone application NFC Tools. Taking NFC Tools as an example, by converting the configuration file into configuration data in NFCTools and generating an NFC tag based on the configuration data, the NFC card reader can read the configuration data carried in the NFC tag. The NFC card reader sends the read configuration data to the control chip, which performs an integrity check on the configuration data (such as verifying data integrity through CRC32) and decrypts and authenticates the configuration payload data after integrity verification. Once the decryption authentication is successful, the configuration payload data is written to the onboard flash memory of the unmanaged switch for storage. S4. Release the tag to disconnect the NFC reader and the NFC configuration tag device.

[0050] S5. Restart and reset. The specific steps are as follows: In some embodiments, the unmanaged switch waits for a preset period of time before the control chip automatically restarts to load the new configuration, thereby achieving automated deployment.

[0051] In some embodiments, a corresponding fault tolerance mechanism is also set during reset and restart, as follows: a) Rollback strategy: When the configuration payload data in the board flash memory fails to load or an exception occurs, it will automatically restore to the factory configuration backup state.

[0052] b) Configuration verification: Use CRC32 to verify the integrity of the configuration payload data to ensure data accuracy.

[0053] In some embodiments, the NFC reader supports the ISO 14443 / 15693 protocol and operates in an active reader mode, and the NFC reader is activated when the NFC configuration tag device is within the sensing range.

[0054] In some embodiments, the NFC configuration tag device stores configuration payload data in JSON format. In some embodiments, when used for configuration parameters, the configuration payload data mainly includes parameters such as VLAN settings, port enable status, rate limit, etc. When used for firmware configuration, the configuration payload data is firmware data.

[0055] In some embodiments, to prevent unauthorized access, a manufacturer ID field is added, and the payload data is configured to be protected using the AES-128 encryption algorithm.

[0056] Among them, in some embodiments, in order to ensure the integrity of the data received on the NFC reader side, the NFC configuration tag device and the NFC reader are verified by interacting with the reference value and the polynomial, so that the same process is adopted on the NFC configuration tag device and the NFC reader side to generate respective verification data for the configuration payload data obtained by each side (wherein the above-mentioned configuration verification data is the verification data generated by the NFC configuration tag device and sent to the NFC reader, and the above-mentioned verification data to be verified is the verification data generated by the NFC reader), and the received verification value is compared with the verification value generated by itself on the NFC reader side to determine the integrity of the configuration payload data.

[0057] In summary, the above embodiments of the present application have the following effective effects: 1) Through the close integration of hardware and firmware, the configuration of unmanaged switches without an operating system can be automated, greatly improving deployment efficiency.

[0058] 2) Utilize NFC near-field communication technology to achieve fast data exchange between unmanaged switches and NFC tags, allowing users to complete configuration updates with just a touch.

[0059] 3) Through automated configuration and reliable fault-tolerant mechanisms, the tedious steps of configuring each switch individually in batch deployment of traditional unmanaged switches are eliminated. It is suitable for scenarios such as the Internet of Things and industrial networks that have high requirements on cost and deployment efficiency.

[0060] It is understandable that, referring to Figure 4 As shown, a configuration system for an unmanaged switch provided by the present application includes: An NFC configuration tag device executes a configuration method for an unmanaged switch applied to the NFC configuration tag device.

[0061] Multiple unmanaged switches, each of which is integrated with an NFC card reader and a card flash memory and executes the unmanaged switch configuration method applied to the unmanaged switch.

[0062] like Figure 5 As shown, Figure 5 This is a hardware structure diagram of an unmanaged switch provided by an embodiment of the present application, including an NFC card reader, a control chip, a board memory, and multiple communication interfaces, wherein the NFC card reader is communicatively connected to the control chip, the board memory is communicatively connected to the control chip, and the communication interface is connected to the control chip.

[0063] In some embodiments, as Figure 5 As shown, the NFC card reader and the control chip are connected via I2C, and the control chip and the board memory are connected via SPI.

[0064] For example, refer to Figure 1 and Figure 5 As shown in the figure, after the NFC reader obtains the configuration data from the NFC configuration tag device, it sends the configuration data to the control chip. The control chip performs an integrity check and decrypts the configuration data. If the integrity check passes, it decrypts the configuration payload data to obtain the target configuration and writes the target configuration to the board's flash memory. After the control chip restarts, it reads the target configuration from the board's flash memory and loads it.

[0065] In other embodiments, the NFC card reader may decrypt and perform integrity verification on the read configuration data, and then write the target configuration into the board flash memory through the control chip.

[0066] An embodiment of the present application further provides a computer-readable storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the configuration method of the unmanaged switch is implemented.

[0067] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory optionally includes a memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of the above-mentioned networks include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0068] Those skilled in the art will appreciate that all or some of the steps and systems disclosed above can be implemented as software, firmware, hardware, or any suitable combination thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is well known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVDs) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically includes computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0069] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation mode. Technical personnel familiar with the art can also make various equivalent modifications or substitutions under the shared conditions that do not violate the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A configuration method for an unmanaged switch, characterized in that: Applied to an unmanaged switch, the unmanaged switch is integrated with an NFC card reader, a control chip, and a card flash memory, the method comprising: In response to the NFC configuration tag device being within the sensing range of the NFC reader, the NFC reader establishing a connection with the NFC configuration tag device; After the NFC card reader establishes a connection with the NFC configuration tag device, the NFC card reader reads configuration data from the NFC configuration tag device; the configuration data includes configuration payload data; Writing the configuration payload data into the board flash memory via the control chip; In response to the restart request, the control chip loads the configuration payload data from the board flash memory.

2. The configuration method of an unmanaged switch according to claim 1, wherein: The configuration data also includes configuration verification data; and writing the configuration payload data into the board flash memory through the control chip includes: Obtaining preset calibration reference values; Starting from the highest bit of the configuration payload data, traversing in sequence, and updating the verification reference value according to each traversed bit; Using the verification reference value updated last time as the verification data to be verified; When the verification data to be verified is consistent with the configuration verification data, the configuration payload data is written into the board flash memory through the control chip; The updating of the verification reference value according to each traversed bit position includes: Performing XOR calculation on the traversed bits and the verification reference value to obtain the data to be verified; Shifting the data to be verified left by one position to obtain shifted data; When the highest bit of the shifted data is a preset first value, updating the check reference value to data resulting from an exclusive OR operation of the shifted data and a preset polynomial; When the highest bit of the shifted data is a preset second value, the verification reference value is updated to the shifted data, and the first value is different from the second value.

3. The configuration method of an unmanaged switch according to claim 2, wherein: Before the NFC card reader reads the configuration data from the NFC configuration tag device, the method further includes: The NFC card reader sends the verification reference value to the NFC configuration tag device, so that the NFC configuration tag device generates the configuration verification data in the configuration data in real time according to the verification reference value; The calibration reference value is determined by the following steps: Obtaining initial calibration reference values under multiple different bit error scenarios; determining a target bit error scenario based on historical bit error data generated by the unmanaged switch within a plurality of preset historical time periods; According to the target bit error scenario, the calibration reference value is determined from a plurality of the initial calibration reference values.

4. The configuration method of an unmanaged switch according to claim 2, wherein: Before the NFC card reader reads the configuration data from the NFC configuration tag device, the method further includes: The NFC card reader sends the polynomial to the NFC configuration tag device, wherein the polynomial is determined by the unmanaged switch based on error distribution data within a plurality of preset historical time periods.

5. The configuration method of an unmanaged switch according to claim 1, wherein: Before writing the configuration payload data into the board flash memory through the control chip, the method further includes: Performing AES decryption on the configuration payload data to obtain the target configuration; Writing the configuration payload data into the board flash memory through the control chip includes: Writing the target configuration into the board flash memory via the control chip; The control chip loads the configuration payload data from the board flash memory, including: The control chip loads the target configuration from the board flash memory.

6. The configuration method of an unmanaged switch according to claim 5, characterized in that: The performing AES decryption on the configuration payload data to obtain the target configuration includes: Obtaining manufacturer identification data of the unmanaged switch; The configuration payload data is decrypted by AES according to the manufacturer identification data to obtain the target configuration.

7. The configuration method of an unmanaged switch according to claim 1, wherein: The unmanaged switch is provided with a configuration update indicator light; before responding to the restart request, the method further includes: Setting the status register corresponding to the configuration update indicator light to enable by the control chip; According to the status register, the configuration update indicator light is lit in a preset first color by the control chip.

8. A configuration method for an unmanaged switch, characterized in that: Applied to NFC configuration tag devices, the unmanaged switch is integrated with an NFC card reader and a card flash memory, and the method includes: In response to the NFC configuration tag device being within the sensing range of the NFC reader, establishing a connection with the NFC reader and receiving device parameters of the unmanaged switch sent from the NFC reader; Filtering a target configuration from a preset configuration file according to the device parameters; After establishing a connection with the NFC card reader, generating configuration data according to the target configuration and sending the configuration data to the NFC card reader.

9. A configuration system for an unmanaged switch, characterized in that: include: An NFC configuration tag device, wherein the NFC configuration tag device executes the configuration method of the unmanaged switch according to claim 8; Multiple unmanaged switches, each of which integrates an NFC card reader and a card flash memory and executes the configuration method of the unmanaged switch according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the configuration method of the unmanaged switch according to any one of claims 1 to 8.