MAC address processing method, system and device

By performing compliance detection and processing of the WiFi MAC address of the POS device, the problem of tampering or loss of the WiFi MAC address of the POS machine is solved, and the device's network connection recovery is achieved.

CN119211092APending Publication Date: 2024-12-27SHENZHEN XINGUODU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410811434.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The WiFi MAC address of the POS machine is susceptible to tampering or loss, causing the device to be unable to connect to the network normally.

Method used

By obtaining the current WiFi MAC address of the POS device, it is subject to compliance detection and determine whether it is correct. If it does not pass, it will be processed according to the working mode (factory mode or user mode), obtain the initial WiFi MAC address to overwrite the current address, and synchronize to the remote and control the POS device to enter factory mode through the remote server to restore the correct WiFi MAC address.

Benefits of technology

Effectively fix the error of WiFi MAC address of POS devices, avoiding the situation where the device cannot connect to the server, and ensuring the normality of network connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211092A_ABST
    Figure CN119211092A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a system and a device for processing an MAC (Media Access Control) address, which are used for actively repairing a WiFi (Wireless Fidelity) MAC address of POS (Point of Sale) equipment. The method comprises the following steps; the method comprises the steps that a current WiFi MAC address of POS equipment is acquired, compliance detection is carried out on the current WiFi MAC address, and the current WiFi MAC address is the current WiFi MAC address of the POS equipment; judging whether the compliance detection is passed or not; if not, determining a working mode of the POS device, the working mode including a factory mode and a user mode; when the working mode is the factory mode, generating an abnormal information notification; and when the working mode is a user mode, acquiring an initial WiFi MAC address of the POS equipment, and covering the current WiFi MAC address with the initial WiFi MAC address.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of POS machine data processing, and in particular to a MAC address processing method, system and device. Background Art

[0002] POS (Point of Sales) equipment is a terminal reader equipped with barcode or OCR (Optical Character Recognition) code technology, with cash or barter quota cashier function. Its main task is to provide data services and management functions for commodity and media transactions, and perform non-cash settlement.

[0003] In the prior art, due to the particularity of POS machines, WiFi MAC addresses are easily tampered with or lost in the face of malware attacks, driver errors, or abnormal operations by factory production personnel. Incorrect WiFi MAC addresses of POS machines will cause the device to be unable to interact correctly with the router and thus unable to connect to the network normally. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a MAC address processing method, system and device for actively recovering the lost or tampered WiFi MAC address of a POS device.

[0005] The technical solution provided in this application is described below:

[0006] The first aspect of the present application provides a method for processing a MAC address, comprising:

[0007] Obtaining a current WiFi MAC address of the POS device, and performing compliance detection on the current WiFi MAC address, wherein the current WiFi MAC address is the current WiFi MAC address of the POS device;

[0008] Determining whether the compliance test passes;

[0009] If not, determining the working mode of the POS device, wherein the working mode includes a factory mode and a user mode;

[0010] When the working mode is the factory mode, generating an abnormal information notification;

[0011] When the working mode is the user mode, an initial WiFi MAC address of the POS device is obtained, and the initial WiFi MAC address is used to overwrite the current WiFi MAC address.

[0012] Optionally, the performing compliance detection on the current WiFi MAC address includes:

[0013] Perform compliance detection on the code segment and communication method of the current WiFi MAC address;

[0014] If the code segment of the current WiFi MAC address is wrong or the communication mode is multicast, the compliance check fails.

[0015] Optionally, after generating the abnormal information notification, the method further includes:

[0016] Generate a pop-up window prompt, waiting for the current WiFi MAC address to be modified;

[0017] After detecting the modification behavior, checking the compliance of the current WiFi MAC address again;

[0018] When the current WiFi MAC address passes compliance, the current WiFi MAC address is synchronized with the original current WiFi MAC address and the initial WiFi MAC address. The original WiFi MAC address and the machine code are stored in the database of the remote server in correspondence. The initial WiFi MAC address is stored in the system properties of the POS device.

[0019] Optionally, after obtaining the initial WiFi MAC address of the POS device and overwriting the current WiFi MAC address with the initial WiFi MAC address, the method further includes:

[0020] The current WiFi MAC address and the machine code of the POS device are uploaded to a remote server, so that the remote server obtains the original WiFi MAC address according to the machine code of the POS device and verifies it with the current WiFi MAC address, and the remote server sets a POS device database.

[0021] Optionally, after uploading the current WiFi MAC address and the machine code of the POS device to the remote server, the method further includes:

[0022] Connecting the POS device through the remote server and controlling the POS device to enter factory mode;

[0023] Verify the current WiFi MAC address and the machine code of the POS device through the POS device database;

[0024] If the verification fails, the remote server sends the original WiFi MAC address and download instructions to the POS device.

[0025] Optionally, after obtaining the current WiFi MAC address of the POS device, the method further includes:

[0026] If the current WiFi MAC address cannot be obtained, the initial WiFi MAC address of the POS device is obtained, and the initial WiFi MAC address is used to overwrite the current WiFi MAC address.

[0027] Optionally, determining the working mode of the POS device includes:

[0028] Determining whether the POS device has received a target instruction, the target instruction being downloaded via a dedicated tool or via a remote server;

[0029] If the POS device receives the target instruction, determining that the working mode is the factory mode;

[0030] If the POS device does not receive the target instruction, it is determined that the working mode is the user mode.

[0031] A second aspect of the present application provides a MAC address processing system, the system comprising:

[0032] A first acquisition unit, configured to acquire a current WiFi MAC address of a POS device and perform compliance detection on the current WiFi MAC address, wherein the current WiFi MAC address is the current WiFi MAC address of the POS device;

[0033] A judging unit, used to judge whether the compliance test is passed;

[0034] a determination unit, configured to determine the working mode of the POS device when the determination result of the determination unit is no, wherein the working mode includes a factory mode and a user mode;

[0035] A first generating unit, configured to generate an abnormal information notification when the working mode is the factory mode;

[0036] The covering unit is used to obtain the initial WiFi MAC address of the POS device when the working mode is the user mode, and to cover the current WiFi MAC address with the initial WiFi MAC address.

[0037] Optionally, the first acquiring unit is further used for:

[0038] Perform compliance detection on the code segment and communication method of the current WiFi MAC address;

[0039] If the code segment of the current WiFi MAC address is wrong or the communication mode is multicast, the compliance check fails.

[0040] Optionally, the system further includes:

[0041] A second generating unit is used to generate a pop-up window prompt, waiting for the current WiFi MAC address to be modified;

[0042] A detection unit, configured to detect the compliance of the current WiFi MAC address again after detecting the modification behavior;

[0043] The synchronization unit is used to synchronize the current WiFi MAC address with the original current WiFi MAC address and the initial WiFi MAC address when the current WiFi MAC address passes compliance. The original WiFi MAC address and the machine code are stored in the database of the remote server in correspondence. The initial WiFi MAC address is stored in the system properties of the POS device.

[0044] Optionally, the system comprises:

[0045] The uploading unit is used to upload the current WiFi MAC address and the machine code of the POS device to a remote server, so that the remote server obtains the original WiFi MAC address according to the machine code of the POS device and verifies it with the current WiFi MAC address, and the remote server sets a POS device database.

[0046] Optionally, the system comprises:

[0047] A control unit, used to connect to the POS device through the remote server and control the POS device to enter the factory mode;

[0048] A verification unit, configured to verify the current WiFi MAC address and the machine code of the POS device through the POS device database;

[0049] The download unit is used for, if the verification fails, the remote server sending the original WiFi MAC address and the download instruction to the POS device.

[0050] Optionally, the system further includes:

[0051] The second acquiring unit is configured to acquire an initial WiFi MAC address of the POS device if the current WiFi MAC address cannot be acquired, and overwrite the current WiFi MAC address with the initial WiFi MAC address.

[0052] Optionally, the determining unit is further configured to:

[0053] Determining whether the POS device has received a target instruction, the target instruction being downloaded via a dedicated tool or via a remote server;

[0054] If the POS device receives the target instruction, determining that the working mode is the factory mode;

[0055] If the POS device does not receive the target instruction, it is determined that the working mode is the user mode.

[0056] A third aspect of the present application provides a MAC address processing device, the device comprising:

[0057] Processor, memory, input-output unit, and bus;

[0058] The processor is connected to the memory, the input and output unit, and the bus;

[0059] The memory stores a program, and the processor calls the program to execute the first aspect and any optional method in the first aspect.

[0060] A fourth aspect of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the program executes the first aspect and any optional method in the first aspect.

[0061] It can be seen from the above technical solutions that this application has the following advantages:

[0062] In the present application, when the compliance test result of the POS device is abnormal, the POS device actively repairs the current WiFi MAC address through the compliance test result, so that the POS device actively obtains the initial WiFi MAC address to overwrite and restore the current WiFi MAC address, thereby avoiding the situation where the POS device cannot connect to the server due to a WiFi MAC address error, and then completes the repair of the WiFi MAC address of the POS device. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of 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 any creative work.

[0064] Figure 1 This is a flow chart of an embodiment of a method for processing a MAC address in the present application;

[0065] Figure 2 This is a flowchart of another embodiment of the method for processing a MAC address in the present application;

[0066] Figure 3 A flowchart of an embodiment of repairing the WiFi MAC address of a POS device in user mode in the MAC address processing method of this application;

[0067] Figure 4 A flowchart of an embodiment of repairing the WiFi MAC address of a POS device in factory mode in the MAC address processing method of this application;

[0068] Figure 5 This is a schematic diagram of the structure of an embodiment of a MAC address processing system in the present application;

[0069] Figure 6 This is a schematic diagram of the structure of another embodiment of the MAC address processing system in the present application;

[0070] Figure 7 A schematic diagram of the structure of an embodiment of a MAC address processing device in the present application. DETAILED DESCRIPTION

[0071] It should be noted that the MAC address processing method provided in this application can be applied to a terminal, a system, or a server. For example, the terminal can be a smart phone or a computer, a tablet computer, a smart TV, a smart watch, a portable computer terminal, or a fixed terminal such as a desktop computer. For the convenience of explanation, this application uses the terminal as an example for the execution subject.

[0072] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0073] See also Figure 1The present application first provides an embodiment of a method for processing a MAC address, the embodiment comprising:

[0074] S101, obtaining the current WiFi MAC address of the POS device, and performing compliance detection on the current WiFi MAC address;

[0075] The WiFi MAC address is a unique identifier for a device, usually consisting of 12 hexadecimal digits. The MAC address consists of three parts: the vendor identifier, the device identifier, and the checksum. The vendor identifier is assigned by the IEEE (Institute of Electrical and Electronics Engineers) to identify the manufacturer.

[0076] Specifically, compliance testing of the WiFi MAC address requires first verifying the compliance of the WiFi MAC address through the manufacturer identification code. The first six characters of the WiFi MAC address represent the device manufacturer, and the POS device's own machine code also carries the manufacturer information, so that the POS device can independently verify the manufacturer identification code of the WiFi MAC address; secondly, verify the check code. The check code is generally set to the last two digits of the WiFi MAC address and is a hexadecimal character. It is used to verify the validity of the MAC address and ensure that the calculation of the check code complies with the standard (usually CRC32 or other algorithms) to ensure that the MAC address has not been tampered with or damaged.

[0077] S102, determining whether the compliance test has passed;

[0078] The compliance check of the WiFi MAC address is a fixed behavior for POS devices. Whenever the POS device is connected to WiFi, the WiFi MAC address will be checked for compliance. After the POS device is put into use, it must be connected to WiFi when in working state. Therefore, the compliance check is a process that must be triggered before the POS device officially enters work. After the POS device performs the compliance check, the POS device can determine whether the compliance check is passed based on the test results fed back by the test. If the compliance check fails, step S103 is executed.

[0079] S103, if not, determining the working mode of the POS device, the working mode including factory mode and user mode;

[0080] Specifically, in the factory mode, the POS device will be connected to the equipment or server in the manufacturer's factory, and the user mode refers to the mode in which the POS device is put into use or enters the working state after leaving the factory.

[0081] S104, when the working mode is the factory mode, generating an abnormal information notification;

[0082] In factory mode, the POS device can interact with the factory's database. In the factory production environment, when downloading WiFi MAC address information, some staff may mistakenly download other used addresses or the download may be abnormally interrupted, resulting in incomplete information carried in the downloaded WiFi MAC address. These situations can be prompted through real-time pop-up windows, allowing the staff to correct the WiFi MAC address of the POS device according to the pop-up windows.

[0083] S105: When the working mode is user mode, obtain an initial WiFi MAC address of the POS device, and overwrite the current WiFi MAC address with the initial WiFi MAC address.

[0084] In user mode, the POS device cannot connect to the network because of a problem with the WiFi MAC address, and therefore cannot interact with the factory server. In an embodiment of the present application, the WiFi MAC address of the POS device at the time of leaving the factory will be backed up in the system file of the POS device when the POS device leaves the factory, so that when the POS device cannot connect to the server, the network status of the POS device can be restored by overwriting the current WiFi MAC address with the initial WiFi MAC address.

[0085] In actual situations, the initial WiFi MAC address cannot be modified in essence, but the WiFi MAC address of the POS device can still be modified by flashing the device or obtaining developer permissions. Because the manually entered WiFi MAC address is subject to format restrictions, the input format of the modified WiFi MAC address will still conform to the format specification of the WiFi MAC address. Therefore, in user mode, the network connection of the POS device can be restored by overwriting the initial WiFi MAC address.

[0086] In the present application, when the compliance test result of the POS device is abnormal, the POS device actively repairs the current WiFi MAC address based on the compliance test result, so that the POS device actively obtains the initial WiFi MAC address to overwrite and restore the current WiFi MAC address, thereby avoiding the situation where the POS device cannot connect to the network or server due to a WiFi MAC address error.

[0087] See also Figure 2 , the present application embodiment provides another embodiment of a method for processing a MAC address, the embodiment comprising:

[0088] S201, obtaining the current WiFi MAC address of the POS device;

[0089] Step S201 in this embodiment is similar to step S101 in the aforementioned embodiment, and will not be described in detail here.

[0090] S202: If the current WiFi MAC address cannot be obtained, obtain the initial WiFi MAC address of the POS device, and overwrite the current WiFi MAC address with the initial WiFi MAC address;

[0091] In actual situations, the current WiFi MAC address is not obtained before the compliance test. There are two possibilities for this situation. One is that the POS device has not downloaded the corresponding certificate, and the other is that the current WiFi MAC address is accidentally lost. Failure to download the corresponding certificate is the state of the POS device before it leaves the factory, and the certificate will be downloaded according to the subsequent factory process.

[0092] However, during use, there is a situation where the POS device is attacked maliciously, resulting in the loss of the current WiFi MAC address. To avoid this situation, when the current WiFi MAC address cannot be obtained, the POS device will obtain the initial WiFi MAC address from the device system information to overwrite the current WiFi MAC address to obtain the current WiFi MAC address of the POS device.

[0093] S203, performing compliance detection on the code segment and communication mode of the current WiFi MAC address; if the code segment of the current WiFi MAC address is wrong or the communication mode is multicast, determining that the compliance detection fails;

[0094] The method to distinguish unicast and multicast is to judge by the first byte of the WiFi MAC address. However, whether it is a multicast address or a unicast address, the WiFi MAC itself is legal. In the application scenario, the POS device in the multicast state can still communicate with the network normally, but the multicast address is not applicable to the POS machine, which will cause the POS device to be denied access to the WiFi. Therefore, when the compliance check is performed on the current WiFi MAC address, the communication status of the current WiFi MAC address will be judged. If the code segment of the current WiFi MAC address is wrong or the communication mode is multicast, the compliance check will fail.

[0095] S204, determining whether the compliance test has passed;

[0096] Step S204 in this embodiment is similar to step S102 in the above embodiment, and will not be described in detail here.

[0097] S205, if not, determining whether the POS device has received the target instruction, the target instruction is used to enable the POS device to enter the factory operation authority;

[0098] The working modes of POS devices are divided into factory mode and user mode. In factory mode, POS devices are under the control of factory terminal devices or factory remote servers. In this environment, POS devices can access the factory remote server to obtain more data information to repair the current WiFi MAC address. In user mode, the POS device may be unable to connect to WiFi, so the current WiFi MAC address will be repaired first from the data of the POS device itself.

[0099] In the embodiment of the present application, the way to confirm the working mode of the POS device is to obtain the target instruction. The target instruction is issued by the factory equipment or the factory remote server, which can enable the POS device to enter the factory operation mode and thus obtain the instructions of advanced operation permissions in compliance with regulations.

[0100] S206, if the POS device receives the target instruction, it determines that the working mode is the factory mode;

[0101] In factory production, when factory personnel use a dedicated download tool to download the current WiFi MAC address through a PC, the dedicated download tool will send a target instruction to the POS device; in addition, when the POS device is connected to a remote server, the target instruction can be sent to the POS device through the remote server. When the POS device receives the target instruction, it determines that the working mode is the factory mode, and executes the subsequent step S208 to generate an abnormal information notification to notify the factory personnel that the POS device has an abnormality.

[0102] S207, if the POS device does not receive the target instruction, determine that the working mode is the user mode;

[0103] When the target instruction is not obtained, the POS device will handle the exception of the current WiFi MAC address through user mode.

[0104] If the current WiFi MAC address of the POS device is not compliant in user mode, it will be considered as illegally obtaining advanced operation permissions to change device parameters. Therefore, if the compliance test fails in user mode, it is an abnormal situation. At this time, step S209 is executed to restore the networking status of the POS device. S208. When the working mode is factory mode, an abnormal information notification is generated;

[0105] S209: When the working mode is user mode, obtain the initial WiFi MAC address of the POS device, and overwrite the current WiFi MAC address with the initial WiFi MAC address.

[0106] Steps S208 to S209 in this embodiment are similar to steps S104 to S105 in the aforementioned embodiment, and will not be described in detail here.

[0107] The embodiment of the present application describes in detail the process of detecting compliance and how to determine the working mode of the POS device. While detecting compliance, the unicast or multicast status of the POS device is detected to ensure that the POS device can connect to WiFi normally. The working modes of the POS device are distinguished mainly to ensure the reliability of the data obtained by the POS device when recovering the current WiFi MAC address, and to avoid the situation where the WiFi MAC address is tampered with again due to contact with other servers.

[0108] In this application, in order to ensure the validity of the WiFi MAC address of the POS device, different working logics will be generated according to the current operating mode of the POS device. The following is a detailed description of how to repair the WiFi MAC address of the POS device in user mode. Figure 3 , Figure 3 The present application provides an embodiment of repairing the WiFi MAC address of the POS device in user mode after obtaining the initial WiFi MAC address of the POS device and overwriting the current WiFi MAC address with the initial WiFi MAC address. The method includes:

[0109] S301, uploading the current WiFi MAC address and the machine code of the POS device to the remote server, so that the remote server obtains the original WiFi MAC address of the POS device according to the machine code of the POS device, and verifies it with the current WiFi MAC address;

[0110] In user mode, after the current WiFi MAC address is overwritten by the initial WiFi MAC address stored in the POS device system, the POS device can reconnect to the network. At this time, the POS device will record the overwriting action of the initial WiFi MAC address on the current WiFi MAC address. The record content is the number of MAC address loss and malicious attacks on the POS device. When connecting to the remote server, the record content is encapsulated and uploaded to the remote server using the machine code of the POS device as an identity, so that the background server can match the information with the POS device when obtaining the information.

[0111] Specifically, the device information and recorded content uploaded to the remote server need to be processed by data encryption, and the encrypted recorded content is transmitted to the remote server via a TCP / IP connection for recording. In the embodiment of the present application, the encryption method of the recorded content mainly uses AES encryption, and the recorded content is symmetrically encrypted by AES-128 before uploading to the remote server, so as to avoid leaking private data while making the data less lengthy. In addition, the present application can still use other methods for data encryption, and the specific encryption method is not limited here.

[0112] S302, connecting to the POS device through the remote server, and controlling the POS device to enter the factory mode;

[0113] The remote server will periodically check the uploaded POS device information. When the information uploaded by the POS device contains records of MAC address loss and the number of malicious attacks, the remote server will send a target command to the POS device to put the POS device into factory mode.

[0114] S303, verifying the current WiFi MAC address and the machine code of the POS device through the POS device database;

[0115] After confirming that the POS device has entered the factory mode, the remote server will obtain the current machine code of the POS device and compare it with the machine code used to identify the recorded content to determine whether the device information of the currently connected POS device corresponds to the data content to be processed.

[0116] After the POS device passes the device identity information verification, the remote server will obtain the current WiFi MAC address of the POS device and verify it with the original WiFi MAC address. The original WiFi MAC address is the WiFi MAC address that corresponds one-to-one with the machine code of the POS device when the POS device leaves the factory. The original WiFi MAC address is stored in the POS device database of the remote server.

[0117] After obtaining the current WiFi MAC address of the POS device, the remote server obtains the original WiFi MAC address of the POS device in the POS device database through the machine code used to identify the recorded content. By comparing the original WiFi MAC address with the current WiFi MAC address, the correctness of the current WiFi MAC address of the POS device can be diagnosed.

[0118] S304: If the verification fails, the original WiFi MAC address and download instruction sent by the remote server to the POS device are received.

[0119] If the POS device fails the diagnosis, it means that although the current WiFi MAC address of the POS device can connect to the network, it is still in an error state. Therefore, it is necessary to download the original WiFi MAC address to restore the current WiFi MAC address of the POS device.

[0120] In this application, in order to ensure the validity of the WiFi MAC address of the POS device, different working logics will be generated according to the current operating mode of the POS device. The following is a detailed description of how to repair the WiFi MAC address of the POS device in factory mode. Figure 4 , Figure 4 An embodiment of repairing the WiFi MAC address of a POS device in factory mode after generating an abnormal information notification provided by the present application includes:

[0121] S401, generating a pop-up window prompt, waiting for the current WiFi MAC address to be modified;

[0122] In factory mode, there are two situations. One is the first time to download the WiFi MAC address to the POS device. In this case, the possible exceptions include: human error or network error downloading other WiFi MAC addresses that have been used by other POS devices to the POS device or abnormal download interruption resulting in incomplete download data.

[0123] For the first time entering the WiFi MAC address for a POS device, when the compliance check fails, a pop-up window will be directly generated to guide the staff to manually confirm the pop-up information and re-download the corresponding WiFi MAC address for the POS device that generated the pop-up window;

[0124] The other is the factory mode entered by the POS device after receiving the target instruction from the remote server. Specifically, after the POS device uploads the record content of the POS device through the user mode, the remote server will connect to the corresponding POS device according to the machine code identified by the record content. At this time, the POS device enters the factory mode through the target instruction sent by the remote server. The remote server will obtain the current WiFi MAC address and perform a compliance check on it. If the current WiFi MAC address does not match the original WiFi MAC address, a warning notification will be generated. The purpose of the warning notification is to prompt the POS device to abnormally obtain advanced operation permissions and there are security issues. Finally, the remote server controls the corresponding POS device through the target instruction to download the original WiFi MAC address through the factory mode.

[0125] S402, after detecting the modification behavior, re-detect the compliance of the current WiFi MAC address;

[0126] After re-downloading the WiFi MAC address of the POS device, the POS device will restart the WiFi function and perform a compliance check on the current WiFi MAC address newly flashed into the POS device, that is, the original WiFi MAC address.

[0127] The original WiFi MAC address is the information stored in the server database after compliance verification when the POS device leaves the factory. It is a correct WiFi MAC address.

[0128] S403: When the current WiFi MAC address passes compliance, synchronize the current WiFi MAC address as the initial WiFi MAC address.

[0129] If the current WiFi MAC address of the POS device passes the compliance verification in factory mode, it means that the address of this compliance verification is the correct WiFi MAC address of the POS device currently connected to the remote server. At this time, the POS device will store the current WiFi MAC address after being overwritten by the original WiFi MAC address as the initial WiFi MAC address.

[0130] The initial WiFi MAC address is the WiFi MAC address stored in the POS device system, and the original WiFi MAC address is the WiFi MAC address stored in the factory remote server database.

[0131] The above is a detailed description of the MAC address processing method in the embodiment of the present application. The following is a detailed description of the MAC address processing system and device.

[0132] See also Figure 5 The present application provides an embodiment of a MAC address processing system, which includes:

[0133] The first acquisition unit 501 acquires the current WiFi MAC address of the POS device and performs compliance detection on the current WiFi MAC address;

[0134] A determination unit 502, used to determine whether the compliance test has passed;

[0135] The determination unit 503 is used to determine the working mode of the POS device when the determination result of the determination unit is no, and the working mode includes a factory mode and a user mode;

[0136] A first generating unit 504, configured to generate an abnormal information notification when the working mode is the factory mode;

[0137] The overwriting unit 505 is used to obtain the initial WiFi MAC address of the POS device when the working mode is the user mode, and overwrite the current WiFi MAC address with the initial WiFi MAC address.

[0138] In this embodiment, the functions of each unit are the same as those described above. Figure 1 The steps in the illustrated embodiments correspond to each other and will not be described again here.

[0139] See also Figure 6 The present application provides an embodiment of a MAC address processing system, which includes:

[0140] The first acquisition unit 601 is used to acquire the current WiFi MAC address of the POS device and perform compliance detection on the current WiFi MAC address;

[0141] The second acquisition unit 602 is configured to acquire an initial WiFi MAC address of the POS device if the current WiFi MAC address cannot be acquired, and overwrite the current WiFi MAC address with the initial WiFi MAC address.

[0142] A judging unit 603 is used to judge whether the compliance test is passed;

[0143] The determination unit 604 is used to determine the working mode of the POS device when the determination result of the determination unit is no, and the working mode includes a factory mode and a user mode;

[0144] The first generating unit 605 is used to generate an abnormal information notification when the working mode is the factory mode;

[0145] The second generating unit 606 is used to generate a pop-up window prompt, waiting for the current WiFi MAC address to be modified;

[0146] A detection unit 607, configured to detect the compliance of the current WiFi MAC address again after detecting the modification behavior;

[0147] The synchronization unit 608 is configured to synchronize the current WiFi MAC address to the initial WiFi MAC address when the current WiFi MAC address passes the compliance test.

[0148] The overwriting unit 609 is used to obtain the initial WiFi MAC address of the POS device when the working mode is the user mode, and overwrite the current WiFi MAC address with the initial WiFi MAC address.

[0149] The uploading unit 610 is used to upload the current WiFi MAC address and the machine code of the POS device to the remote server, so that the remote server obtains the original WiFi MAC address of the POS device according to the machine code of the POS device and verifies it with the current WiFi MAC address.

[0150] The control unit 611 is used to connect to the POS device through the remote server and control the POS device to enter the factory mode;

[0151] A verification unit 612, used to verify the current WiFi MAC address and the machine code of the POS device through the POS device database;

[0152] The download unit 613 is used to receive the original WiFi MAC address and download instruction sent by the remote server to the POS device if the verification fails.

[0153] The first acquisition unit 601 is further used for:

[0154] Perform compliance check on the code segment and communication method of the current WiFi MAC address;

[0155] If the code segment of the current WiFi MAC address is wrong or the communication mode is multicast, it is determined that the compliance check fails.

[0156] The determining unit 604 is further configured to:

[0157] Determine whether the POS device has received a target instruction, the target instruction is used to enable the POS device to enter factory operation authority;

[0158] If the POS device receives the target command, it determines that the working mode is the factory mode;

[0159] If the POS device does not receive the target command, it determines that the working mode is the user mode. Figures 2 to 4 The steps in the illustrated embodiments correspond to each other and will not be described again here.

[0160] See also Figure 7 The present application embodiment provides another embodiment of a MAC address processing device, including:

[0161] Processor 701, memory 702, input and output unit 703, bus 704;

[0162] The processor 701 is connected to the memory 702, the input and output unit 703 and the bus 704;

[0163] Processor 701 specifically executes Figures 1 to 4 The operations corresponding to the steps in the method are not described in detail here.

[0164] The present application also relates to a computer-readable storage medium on which a program is stored, wherein when the program is run on a computer, the computer is caused to execute any of the above methods.

[0165] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0166] 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 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0167] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0168] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0169] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, etc. Various media that can store program codes.

Claims

1. A method for processing a MAC address, characterized in that: The method comprises: Obtain the current WiFi MAC address of the POS device, and perform compliance detection on the current WiFi MAC address; Determining whether the compliance test passes; If not, determining the working mode of the POS device, the working mode including factory mode and user mode; When the working mode is the factory mode, generating an abnormal information notification; When the working mode is the user mode, an initial WiFi MAC address of the POS device is obtained, and the initial WiFi MAC address is used to overwrite the current WiFi MAC address.

2. The method according to claim 1, characterized in that The compliance detection of the current WiFi MAC address includes: Perform compliance detection on the code segment and communication method of the current WiFi MAC address; If the code segment of the current WiFi MAC address is wrong or the communication mode is multicast, it is determined that the compliance check fails.

3. The method according to claim 1, characterized in that After generating the abnormal information notification, the method further includes: Generate a pop-up window prompt, waiting for the current WiFi MAC address to be modified; After detecting the modification behavior, checking the compliance of the current WiFi MAC address again; When the current WiFi MAC address passes compliance, the current WiFi MAC address is synchronized as the initial WiFi MAC address.

4. The method according to claim 1, characterized in that After obtaining the initial WiFi MAC address of the POS device and overwriting the current WiFi MAC address with the initial WiFi MAC address, the method further includes: The current WiFi MAC address and the machine code of the POS device are uploaded to a remote server, so that the remote server obtains the original WiFi MAC address of the POS device according to the machine code of the POS device, and verifies it with the current WiFi MAC address.

5. The method according to claim 4, characterized in that After uploading the current WiFi MAC address and the machine code of the POS device to the remote server, the method further includes: Connecting the POS device through the remote server and controlling the POS device to enter factory mode; Verify the current WiFi MAC address and the machine code of the POS device through the POS device database; If the verification fails, the original WiFi MAC address and download instruction sent by the remote server to the POS device are received.

6. The method according to any one of claims 1 to 5, characterized in that After obtaining the current WiFi MAC address of the POS device, the method further includes: If the current WiFi MAC address cannot be obtained, the initial WiFi MAC address of the POS device is obtained, and the initial WiFi MAC address is used to overwrite the current WiFi MAC address.

7. The method according to any one of claims 1 to 5, characterized in that Determining the working mode of the POS device includes: Determining whether the POS device has received a target instruction, the target instruction being used to enable the POS device to enter factory operation authority; If the POS device receives the target instruction, determining that the working mode is the factory mode; If the POS device does not receive the target instruction, it is determined that the working mode is the user mode.

8. A MAC address processing system, characterized in that: The system comprises: An acquisition unit, used to acquire a current WiFi MAC address of a POS device and perform compliance detection on the current WiFi MAC address; A judging unit, used to judge whether the compliance test is passed; a determination unit, configured to determine a working mode of the POS device when the determination result of the determination unit is no, wherein the working mode includes a factory mode and a user mode; A generating unit, configured to generate an abnormal information notification when the working mode is the factory mode; The overwriting unit is used to obtain the initial WiFi MAC address of the POS device when the working mode is the user mode, and overwrite the current WiFi MAC address with the initial WiFi MAC address.

9. A MAC address processing device, characterized in that: The device comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, performs the method according to any one of claims 1 to 7.