Remote control method, system and equipment for electronic scale

By obtaining the weight data and environmental information of the electronic scale, dynamically determine the length and type of remote control instructions, and using encryption and variation technology, the problem of wasted instruction transmission resources and insufficient accuracy and reliability in the existing remote control methods of electronic scales is solved, achieving more efficient and secure remote control.

CN120301920AInactive Publication Date: 2025-07-11SHENZHEN FAYA WEIGHING APP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510490357.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-18
Publication Date
2025-07-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The remote control method of existing electronic scales lacks sufficient consideration of the actual working status and environment, resulting in wasted instruction transmission resources or inability to meet measurement requirements, and the measurement accuracy and reliability are reduced.

Method used

By obtaining the weight data and environmental information of the electronic scale, dynamically determine the length and type of remote control instructions, generate highly adaptable remote control instructions, and use encryption and mutation technologies to improve the security of instruction transmission.

Benefits of technology

Optimize data transmission efficiency, improve the measurement accuracy and reliability of electronic scales in complex environments, and enhance the flexibility and security of remote control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120301920A_ABST
    Figure CN120301920A_ABST
Patent Text Reader

Abstract

The invention provides a remote control method, system and equipment for an electronic scale. The remote control method comprises the steps of obtaining weight data of the electronic scale and environment information of an environment where the electronic scale is located; determining length information of a remote control instruction based on the weight data; determining type information of a remote control instruction based on the environment information; generating a corresponding remote control instruction based on the length information and the type information of the remote control instruction; and sending the remote control instruction to the electronic scale for remote control. In the embodiment of the invention, the length information and the type information of the remote control instruction are determined by acquiring the weight data and the environment information of the environment, so that the defect that the actual working state and the environment are not combined when the electronic scale is remotely controlled at present is overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and particularly relates to a remote control method, system and device for an electronic scale. Background Art

[0002] In industrial production, electronic scales are used in raw material batching, product quality inspection and other links to ensure the accuracy and stability of the production process; the logistics and transportation industry relies on electronic scales to weigh and charge goods to improve the efficiency of logistics operations.

[0003] With the rise of the Internet of Things technology, realizing the remote control of electronic scales has become an important direction to improve their convenience and intelligence. The traditional control methods of electronic scales are mostly local operations. Operators need to perform operations such as data reading and parameter setting on the spot of the electronic scale, which is extremely inconvenient in scenarios such as large warehouses and distributed production workshops, seriously restricting work efficiency. Although some existing electronic scales already have remote control functions, there are still many defects.

[0004] The generation of existing remote control instructions often lacks sufficient consideration of the actual working state and the environment of the electronic scale. In most cases, the instruction length is fixed and cannot be flexibly adjusted according to factors such as the weight data range measured by the electronic scale and the measurement frequency, resulting in waste of instruction transmission resources or the instruction content not meeting actual requirements; the instruction types are single, without distinguishing different environmental scenarios such as indoor and outdoor, and cannot effectively compensate and control the influence of environmental factors on the measurement results of the electronic scale, greatly reducing the measurement accuracy and reliability of the electronic scale in complex environments. Summary of the Invention

[0005] The main purpose of the present invention is to provide a remote control method, system and device for an electronic scale, aiming to overcome the defect that the current remote control of the electronic scale does not combine the actual working state and the environment.

[0006] To achieve the above purpose, the present invention provides a remote control method for an electronic scale, including the following steps:

[0007] Obtain the weight data of the electronic scale and the environmental information of the environment where it is located;

[0008] Determine the length information of the remote control instruction based on the weight data; determine the type information of the remote control instruction based on the environmental information;

[0009] Generate the corresponding remote control instruction based on the length information and type information of the remote control instruction;

[0010] Send the remote control instruction to the electronic scale for remote control.

[0011] Further, the weight data includes a weighing range and a weighing frequency; the environmental information includes an indoor scene or an outdoor scene.

[0012] Further, determine the length information of the remote control instruction based on the weight data; determine the type information of the remote control instruction based on the environmental information;

[0013] Encode the weighing range and the weighing frequency respectively to obtain a first encoding and a second encoding; obtain the total character length of the first encoding and the second encoding as the length information of the remote control instruction;

[0014] Based on a preset mapping relationship between environmental information and the packet format of the control instruction, determine the packet format corresponding to the environmental information as the type information of the remote control instruction.

[0015] Further, generating a corresponding remote control instruction based on the length information and the type information of the remote control instruction includes:

[0016] Generate an empty instruction packet with a corresponding quantity according to the length information;

[0017] Packetize the real control instruction of the electronic scale according to the type information to obtain a target control instruction;

[0018] Randomly add the target control instruction to any one of the empty instruction packets to obtain a target control instruction packet;

[0019] Perform multiple different local mutations on the target control instruction to obtain multiple different mutated instructions, and add each of the mutated instructions to the empty instruction packet respectively to obtain a mutated instruction packet;

[0020] Generate an identifier for the target control instruction packet based on each of the mutated instruction packets, and combine the mutated instruction packets and the target control instruction packet to obtain the remote control instruction.

[0021] Further, generating an identifier for the target control instruction packet based on each of the mutated instruction packets includes:

[0022] Assign serial numbers to each of the mutated instruction packets and the target control instruction packet; combine the serial numbers to obtain a serial number combination;

[0023] Adjust a preset data conversion table based on the attributes of the serial number combination to obtain a corresponding adjusted conversion table; convert the serial number combination into corresponding conversion data based on the adjusted conversion table;

[0024] Select the identification characters from the conversion data, add the identification characters to the identification of the target control instruction packet, and randomly add the characters other than the identification characters in the conversion data to the identifications of the respective mutation instruction packets as interference.

[0025] Further, adjust the preset data conversion table based on the attributes of the serial number combination to obtain a corresponding adjusted conversion table, including:

[0026] Obtain a preset data conversion table; the data conversion table includes a corresponding original data column and a conversion data column;

[0027] Obtain the attributes of the serial number combination, and generate a straight line in the coordinate system based on the attributes; wherein, the attributes include the character length of the serial number combination and the sum of the numbers of each character;

[0028] Add the data conversion table to the coordinate system, and identify the data in the data conversion table that is crossed by the straight line as the target data;

[0029] Based on the target data, adjust the sorting of the data in the conversion data column to obtain a corresponding adjusted conversion table.

[0030] Further, generate an identification for the target control instruction packet based on each of the mutation instruction packets, including:

[0031] For each mutation instruction packet, calculate the checksum of the mutation instructions therein respectively;

[0032] Sort the respective checksums to obtain a checksum sequence;

[0033] Generate a first encryption key based on the checksum sequence; obtain the total number of the mutation instruction packets and the target control instruction packet, and generate a second encryption key based on the total number using a preset rule;

[0034] Encrypt each of the mutation instruction packets based on the second encryption key, encrypt the target control instruction packet based on the first encryption key, and form an identification for differentiating the target control instruction packet through different encryption keys.

[0035] The present invention also provides a remote control system for an electronic scale, including:

[0036] An acquisition module, configured to acquire the weight data of the electronic scale and the environmental information of the environment where it is located;

[0037] A determination module, configured to determine the length information of the remote control instruction based on the weight data; determine the type information of the remote control instruction based on the environmental information;

[0038] A generation module, configured to generate a corresponding remote control instruction based on the length information and type information of the remote control instruction;

[0039] A control module, configured to send the remote control instruction to the electronic scale for remote control.

[0040] The present invention further provides a computer device, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps of the method described in any one of the above are implemented.

[0041] The present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any one of the above are implemented.

[0042] The remote control method, system and device for an electronic scale provided by the present invention include: obtaining the weight data of the electronic scale and the environmental information of the environment where it is located; determining the length information of the remote control instruction based on the weight data; determining the type information of the remote control instruction based on the environmental information; generating a corresponding remote control instruction based on the length information and type information of the remote control instruction; and sending the remote control instruction to the electronic scale for remote control. In this embodiment, by obtaining the weight data and the environmental information of the environment where it is located, and then determining the length information and type information of the remote control instruction, the defect that the current remote control of the electronic scale does not combine the actual working state and the environment where it is located is overcome. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 is a schematic diagram of the steps of the remote control method for an electronic scale in an embodiment of the present invention;

[0044] Figure 2 is a block diagram of the structure of the remote control system for an electronic scale in an embodiment of the present invention;

[0045] Figure 3 is a schematic block diagram of the structure of a computer device in an embodiment of the present invention.

[0046] The implementation, features and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0047] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0048] Refer to Figure 1, in an embodiment of the present invention, a method for remotely controlling an electronic scale is provided, including the following steps:

[0049] Step S1, obtain the weight data of the electronic scale and the environmental information of the environment where it is located;

[0050] Step S2, determine the length information of the remote control instruction based on the weight data; determine the type information of the remote control instruction based on the environmental information;

[0051] Step S3, generate a corresponding remote control instruction based on the length information and type information of the remote control instruction;

[0052] Step S4, send the remote control instruction to the electronic scale for remote control.

[0053] In this embodiment, as described in step S1 above, the electronic scale converts the gravity exerted by an object into an electrical signal through an internal weighing sensor, such as a strain gauge sensor or an electromagnetic force balance sensor. These electrical signals are processed through amplification, analog-to-digital conversion, etc. to obtain digital weight data that can represent the weight of the object. At the same time, the electronic scale is equipped with a variety of environmental sensors. For example, a temperature sensor (such as a thermistor type or a thermocouple type) is used to measure the environmental temperature, a humidity sensor (such as a capacitive type or a resistive type) is used to detect the environmental humidity, and a light sensor is used to sense the environmental light intensity, etc., so as to obtain comprehensive environmental information of the environment where it is located. Specifically, the weighing sensor collects weight data in real time, and the collection frequency can be set according to the accuracy requirements and application scenarios of the electronic scale. For example, in a high-precision industrial measurement scenario, it may be collected multiple times per second; in an ordinary commercial weighing scenario, collecting once per second can meet the requirements. The environmental sensors also work continuously, collecting surrounding environmental parameters without interruption. These collected data are transmitted to the data processing unit inside the electronic scale, waiting for subsequent processing.

[0054] Obtaining accurate weight data is the core of realizing the basic function of the electronic scale, and environmental information is crucial for precisely controlling the electronic scale and ensuring the accuracy of measurement results. Different environmental factors, such as high temperature may cause thermal expansion and contraction of internal components of the electronic scale, affecting weighing accuracy; a high-humidity environment may cause electronic components to get damp and cause failures. By obtaining environmental information in real time, subsequent steps can perform targeted control and adjustment on the electronic scale based on this, improving the reliability of measurement.

[0055] As described in step S2 above, for weight data, it is divided into different levels according to a preset weight range and measurement frequency threshold. For example, when the weight data is in a high-precision measurement range and the measurement frequency is high, it means that more detailed and rich control instructions need to be transmitted to ensure measurement accuracy and real-time performance, and a longer instruction length is correspondingly determined; if the weight data is in a normal range and the measurement frequency is moderate, the instruction length is of the ordinary level; when the weight is in a large weight range and the measurement frequency is low, to simplify data transmission, the instruction length is short. For environmental information, according to the indoor and outdoor scenarios and different specific environmental parameters, the possible impacts on the electronic scale are judged. For example, in an indoor environment with complex electromagnetic interference, an instruction type with anti-interference and error-correction functions needs to be adopted; in an outdoor harsh weather (strong wind, high temperature, etc.) environment, an instruction type including an environmental compensation function needs to be used.

[0056] Specifically, in the data processing unit of the electronic scale, a corresponding judgment algorithm is run. The real-time obtained weight data is compared with the preset weight range threshold, and at the same time, combined with the measurement frequency, the instruction length level is determined. For environmental information, first, it is judged whether it is an indoor or outdoor scene through a positioning module (such as GPS, base station positioning) or a preset scene identifier, and then, according to the data collected by each environmental sensor, it is compared with the impact threshold of the corresponding environmental parameter to determine the instruction type.

[0057] Dynamically determining the instruction length and type according to the weight data and environmental information avoids the drawbacks of the traditional fixed instruction mode. The precisely adapted instruction length can optimize the data transmission efficiency, reduce network bandwidth occupancy or avoid insufficient instruction content; the appropriate instruction type can enable the electronic scale to better cope with different working conditions, improve the effectiveness and accuracy of remote control, and ensure that the electronic scale can work stably and accurately under various complex conditions.

[0058] As described in step S3 above, according to the determined instruction length information, first, a corresponding number of empty instruction packets are generated as instruction carriers. Then, according to the instruction type information, specific packet processing is performed on the real control instructions that the electronic scale actually needs to execute. For example, if the instruction type is anti-interference and error-correction type, information such as redundant check codes and error-correction algorithm identifiers is added during the packet process to obtain the target control instruction. Then, the target control instruction is randomly placed into one of the empty instruction packets to form a target control instruction packet. To enhance the security and identifiability of instruction transmission, the target control instruction is subjected to multiple different local mutations to generate multiple different mutated instructions, which are respectively added to the remaining empty instruction packets to obtain multiple mutated instruction packets. Finally, based on the characteristics of the mutated instruction packets, such as the checksum of the instruction content, the value of specific bytes, etc., an identifier that can uniquely identify the target control instruction packet is generated, and the mutated instruction packets and the target control instruction packet are combined together to form a complete remote control instruction.

[0059] During the data processing, a program module for generating instructions is called. According to the instruction length information, the memory allocation function is used to generate the corresponding number of empty instruction packets. According to the instruction type, the real control instruction is packetized through a specific encoding function. The random number generation function is used to determine the position of the empty instruction packet where the target control instruction is placed. The mutation algorithm is used to mutate the target control instruction, and the mutated instruction is added to the empty instruction packet. Then, the identifier of the target control instruction packet is generated through a function for calculating the eigenvalue of the mutated instruction packet, and all the instruction packets are combined in a specific format.

[0060] In the above method for generating remote control instructions, on the one hand, by setting the mutated instruction packet and the identifier, the security of the instruction during transmission is improved, so that the instruction can still be correctly recognized even if it is maliciously intercepted and tampered with; on the other hand, adapted instructions are generated according to different instruction lengths and types to ensure that the electronic scale can accurately understand and execute the remote control intention, enhancing the reliability and flexibility of the remote control.

[0061] As described in step S4 above, a connection is established between the electronic scale and the remote control terminal through wireless communication technology. Common communication methods include Wi-Fi, Bluetooth, 4G / 5G, NB-IoT, etc. Before sending the remote control instruction, the instruction is first encrypted, for example, using the AES (Advanced Encryption Standard) encryption algorithm to convert the instruction data into ciphertext form. Then, according to the selected communication protocol, such as the TCP / IP protocol (applicable to Wi-Fi, 4G / 5G communication) or the Bluetooth protocol stack (applicable to Bluetooth communication), the encrypted instruction data is packetized and encapsulated, and communication header information such as source address, destination address, and check information is added, and then sent to the electronic scale through the wireless communication module.

[0062] Safely and accurately sending the generated remote control instruction to the electronic scale is a key step in realizing the remote control function. Encryption processing ensures the confidentiality of the instruction during transmission and prevents data leakage; following the communication protocol for data transmission ensures that the instruction can reach the electronic scale correctly and without error in different network environments, enabling the electronic scale to execute corresponding operations according to the remote control intention, completing the remote control task, and enhancing the convenience and intelligence level of using the electronic scale.

[0063] In one embodiment, the weight data includes the weighing range and the weighing frequency; the environmental information includes an indoor scene or an outdoor scene.

[0064] In one embodiment, the length information of the remote control instruction is determined based on the weight data; the type information of the remote control instruction is determined based on the environmental information;

[0065] Encode the weighing range and weighing frequency respectively to obtain a first code and a second code; obtain the total character length of the first code and the second code as the length information of the remote control instruction;

[0066] Based on a preset mapping relationship between environmental information and the packet format of control instructions, determine the packet format corresponding to the environmental information as the type information of the remote control instruction.

[0067] In this embodiment, encoding the weighing range and weighing frequency in the weight data is to convert these two key data features into character sequences using specific encoding rules. For example, using ASCII encoding or a custom binary encoding method, map different weighing range values and weighing frequency values to corresponding encoded characters. By obtaining the total character length of these two encodings, it can intuitively reflect the approximate length of the instruction required to meet the control requirements under this weight data. In the data processing unit of the electronic scale, an encoding rule table for the weighing range and weighing frequency is pre-stored. When real-time weighing range data is obtained, look up the corresponding encoded characters according to the rule table to generate the first code. Similarly, generate the second code for the weighing frequency data. Subsequently, use a string processing function to calculate the total character length of the first code and the second code, and temporarily store this length value in the memory of the data processing unit for subsequent use in the instruction generation step. This method of determining the instruction length information based on the weight data features can more accurately adapt to different weight measurement scenarios compared to the traditional fixed-length instruction mode. By dynamically adapting the instruction length, the efficiency and accuracy of remote control are improved.

[0068] The preset mapping relationship between environmental information and the packet format of control instructions is a set of corresponding rules established during the R & D stage of the electronic scale. Different environments where the electronic scale is located, such as indoor, outdoor, high-temperature workshops, humid warehouses, etc., have different impacts on its measurement accuracy and operating stability, and different types of control instructions are required to cope with them. The packet format determines the structure of the instruction, the data organization form, and the control parameters included, etc. For example, in an indoor environment with strong electromagnetic interference, the instruction packet format will include more error correction codes and anti-interference algorithm identifiers; in a high-temperature outdoor environment, the packet format focuses on temperature compensation-related parameter settings. By comparing the real-time obtained environmental information with the preset mapping relationship, the instruction packet format suitable for the current environment, that is, the instruction type information, can be quickly determined.

[0069] Determining the instruction type based on environmental information enables the electronic scale to receive the most suitable control instructions in different environments, effectively improving the adaptability and measurement accuracy of the electronic scale in complex and changeable environments. For example, in a harsh environment, instructions in a specific packet format can guide the electronic scale to activate corresponding compensation mechanisms, anti-interference measures, etc., ensuring the stable operation of the electronic scale, avoiding the adverse effects of environmental factors on the measurement results, and broadening the application scenario range of the electronic scale.

[0070] In one embodiment, generating the corresponding remote control instruction based on the length information and type information of the remote control instruction includes:

[0071] Generating an empty instruction packet with a corresponding quantity according to the length information;

[0072] Packetizing the actual control instruction of the electronic scale according to the type information to obtain the target control instruction;

[0073] Randomly adding the target control instruction to any one of the empty instruction packets to obtain the target control instruction packet;

[0074] Performing multiple different local mutations on the target control instruction to obtain multiple different mutant instructions, and adding each of the mutant instructions to the empty instruction packet respectively to obtain the mutant instruction packet;

[0075] Generating an identifier for the target control instruction packet based on each of the mutant instruction packets, and combining the mutant instruction packets and the target control instruction packet to obtain the remote control instruction.

[0076] In this embodiment, in the data processing unit of the electronic scale, using the memory allocation function, according to the received remote control instruction length information, a corresponding number of empty instruction packet data structures are dynamically created. For example, if the length information is 10, then 10 empty instruction packets are allocated. The above empty instruction packets are initialized in memory, and their internal data fields are set to default values, waiting to be filled with instruction content later. The above method provides an infrastructure for constructing flexible and extensible remote control instructions. By preparing a corresponding number of empty instruction packets in advance according to the instruction length.

[0077] The data processing unit retrieves the corresponding packet rule from the pre-stored packet rule library based on the determined instruction type information. For the real control instruction of the electronic scale, according to the packet rule, the data processing algorithm is used to process the instruction content field by field. For example, specific encoding conversion is performed on the instruction operation code, the format of the instruction parameters is adjusted, and verification information is added, etc., and finally a target control instruction that conforms to the instruction type is generated. Packetization is performed according to the type information, so that the control instruction can be accurately adapted to the environment and control tasks where the electronic scale is located. The interferences and control focuses faced by the electronic scale in different environments are different. Through specific packetization, the instruction has stronger pertinence and adaptability. In a complex environment, it can effectively enhance the anti-interference ability, data accuracy, and control effectiveness of the instruction, ensuring that the electronic scale can accurately understand and execute the remote control intention under various working conditions.

[0078] Furthermore, randomly placing the target control instruction in an empty instruction packet is to increase the security and confusion of instruction transmission. During network transmission, if the target control instruction is always fixed in an instruction packet at a certain position, it is easy to be recognized, intercepted, and tampered with by malicious attackers. Through random placement, even if an attacker tries to crack the instruction, it is difficult to quickly determine the location of the target control instruction, improving the confidentiality and reliability of instruction transmission. The above random placement strategy constructs a security defense line for remote control instruction transmission. In a complex network environment, it effectively reduces the risk of the instruction being maliciously attacked, ensuring the security of the remote control of the electronic scale. Even in the presence of potential network threats, it can ensure that the target control instruction is accurately and securely transmitted to the electronic scale, maintaining the stable operation of the remote control function.

[0079] Local mutation of the target control instruction is to modify some content of the instruction through a specific mutation algorithm. For example, changing the numerical range of the instruction parameters, adjusting certain bits of the instruction operation code, etc. After generating multiple different mutated instructions, they are respectively placed in empty instruction packets to form mutated instruction packets. These mutated instruction packets are mixed with the target control instruction packet for transmission, further increasing the complexity and security of instruction transmission. It is difficult for an attacker to distinguish which is the real target control instruction packet from numerous instruction packets because each mutated instruction packet is similar in form to the target control instruction packet.

[0080] Specifically, in the data processing unit, multiple mutation algorithms are pre-written, such as bit flip mutation, parameter perturbation mutation, etc. For the target control instruction, different mutation algorithms are called in sequence to perform multiple local mutation operations on the instruction, generating multiple mutated instructions. Then, these mutated instructions are added one by one to the remaining empty instruction packets, and the creation process of the mutated instruction packet is completed through the data writing function. The generation of the mutated instruction packet greatly improves the security and anti-attack ability of the remote control instruction transmission. During the network transmission process, even if some instruction packets are intercepted or tampered with, due to the existence of multiple similar mutated instruction packets, it is difficult for attackers to accurately determine which are the key instructions, reducing the risk of the instructions being cracked and maliciously exploited. At the same time, this method also provides a certain degree of fault tolerance and verification ability for the electronic scale when receiving instructions. By comparing and analyzing multiple instruction packets, it helps to identify and correct possible transmission errors, ensuring the accurate transmission and execution of the remote control instructions.

[0081] Generating the target control instruction packet identifier based on the mutated instruction packet is to use the characteristics of the mutated instruction packet to create an information that uniquely identifies the target control instruction packet. For example, calculate the hash value of each mutated instruction packet, the checksum of specific bytes and other characteristic values, and through specific operations or combinations on these characteristic values, generate an identifier that can reflect the relationship between the target control instruction packet and the mutated instruction packet. Then, all the mutated instruction packets and the target control instruction packet are combined together in a certain order or format to form a complete remote control instruction. In this way, at the receiving end of the electronic scale, by identifying this identifier, the target control instruction packet can be accurately found from among numerous instruction packets to perform the corresponding control operation.

[0082] Generating the identifier and combining the instruction packets realizes the accurate identification and positioning of the target control instruction packet under a complex instruction structure. When the electronic scale receives the remote control instruction, it can efficiently screen out the target control instruction packet that really needs to be executed from a large number of instruction packets, avoiding control errors caused by chaotic instruction packets. At the same time, this combination method further enhances the security and integrity of the instruction transmission. Through the collaborative relationship between the identifier and the instruction packet, it ensures the reliability of the remote control instruction during the transmission process and improves the overall performance of the electronic scale remote control.

[0083] In one embodiment, generating the identifier for the target control instruction packet based on each of the mutated instruction packets includes:

[0084] Assigning serial numbers to each of the mutated instruction packets and the target control instruction packet; combining the serial numbers to obtain a serial number combination;

[0085] Adjusting a preset data conversion table based on the attributes of the serial number combination to obtain a corresponding adjusted conversion table; converting the serial number combination into corresponding conversion data based on the adjusted conversion table;

[0086] Select the identification characters from the conversion data, add the identification characters to the identification of the target control instruction packet, and randomly add the characters other than the identification characters in the conversion data to the identification of each mutation instruction packet as interference.

[0087] In this embodiment, assigning a unique serial number to each instruction packet is to establish an ordered identification method for subsequent differentiation and association operations of instruction packets. The serial number, as a simple identification of the instruction packet, has uniqueness and sortability. Combining these serial numbers to form a serial number combination is to construct a comprehensive information unit. This combination contains the association information of all instruction packets, and subsequent operations based on this combination can reflect the characteristics of the entire instruction packet set. By assigning serial numbers and performing combination operations, a simple and ordered identification system is established for the instruction packet set. This system provides a basis for subsequent complex operations based on the characteristics of the instruction packet set, enabling the relationship between instruction packets to be grasped from an overall level, facilitating unified processing and analysis, and helping to improve the accuracy and systematicness of generating the identification of the target control instruction packet.

[0088] The preset data conversion table is a pre-constructed mapping relationship table used to convert specific data into other forms. The serial number combination has various attributes, such as the sum of numbers, parity distribution, digital characteristics at specific positions, etc. Adjusting the preset data conversion table based on these attributes is to customize the data conversion rules by using the information of the instruction packet set carried by the serial number combination. Through this adjustment, the subsequent data conversion based on the adjusted conversion table can be closely related to the characteristics of the current instruction packet set, thereby generating more targeted and unique identification data.

[0089] Specifically, the attributes of the serial number combination can be calculated first, such as calculating the sum of all numbers in the serial number combination, counting the number and distribution positions of odd and even serial numbers, etc. Then, according to the predefined correspondence between attributes and conversion table adjustment rules, based on the calculated attribute values, modify the mapping rules in the preset data conversion table. For example, if the sum of the serial number combination is odd, reverse or replace some key mapping items in the conversion table according to the rules; if the even serial numbers are concentrated in specific positions, adjust the mapping rules related to the corresponding positions in the conversion table, and finally obtain an adjusted conversion table that conforms to the attributes of the current serial number combination.

[0090] The above method of adjusting the data conversion table according to the attributes of the serial number combination enhances the flexibility and adaptability of the identification generation process. Different instruction packet sets (reflected in the attributes of the serial number combination) can obtain different adjusted conversion tables, and then generate distinctive identification data. This helps to generate more recognizable and secure target control instruction packet identifications in a complex network environment, reducing the risk of identifications being cracked or forged.

[0091] Then, the adjusted conversion table is used to convert the serial number combination. Based on the customized mapping rules in the adjusted conversion table, the simple number sequence of the serial number combination is converted into another form of data. This conversion can re-encode the instruction packet set information contained in the serial number combination in a more complex and concealed way, increasing the confidentiality and uniqueness of the data. Through the conversion, a corresponding relationship based on specific conversion rules is established between the generated conversion data and the original serial number combination, and this relationship is adjusted according to the characteristics of the instruction packet set, making it more difficult to be directly cracked.

[0092] Through the conversion operation based on the adjusted conversion table, deep encryption and re-encoding of the instruction packet set information are achieved. The generated conversion data is very different from the original serial number combination in form and content, further enhancing the security and complexity of the target control instruction packet identification generation process. Even if an attacker obtains the conversion data, it is difficult to restore the relevant information of the original instruction packet because they do not know the generation rules of the adjusted conversion table (which depend on the serial number combination attributes), effectively protecting the security of the remote control instructions.

[0093] Finally, specific identification characters are selected from the conversion data for the target control instruction packet identification to give the target control instruction packet a unique and recognizable mark. This identification character is generated based on the characteristics of the entire instruction packet set (passed down through links such as serial number combinations and adjusted conversion tables), and has uniqueness and representativeness. Randomly adding the characters in the conversion data other than the identification characters to the mutant instruction packet identification as interference is to confuse the attacker's judgment. The mutant instruction packet itself is set to increase the security of instruction transmission. By adding these seemingly relevant but actually interfering characters, it makes it more difficult for the attacker to distinguish the target control instruction packet identification from among numerous instruction packet identifications, further enhancing the confidentiality and anti-attack ability of the identification.

[0094] Specifically, first, according to the pre-set selection rules (such as selecting the 3rd character in the conversion data, or selecting characters according to a specific proportion of the conversion data length, etc.), one or more characters are extracted from the conversion data as identification characters. Then, these identification characters are added to the identification field of the target control instruction packet. For the remaining characters in the conversion data, using a random number generation function, these characters are randomly assigned to the identification fields of each mutant instruction packet. During the assignment process, it is ensured that each mutant instruction packet adds interference characters, and the assignment method is random to achieve the best interference effect.

[0095] The above identification character allocation method clarifies the identification of the target control instruction packet, and at the same time effectively interferes with the potential attacker's recognition of the target control instruction packet by using interference characters. In a complex network transmission environment, it greatly improves the security and concealment of the target control instruction packet identification. Even if an attacker tries to obtain the target control instruction packet by analyzing the instruction packet identification, it is difficult to accurately judge in the face of a large number of mutated instruction packet identifications with interference characters, thus ensuring the confidentiality and integrity of the remote control instruction during the transmission process and ensuring that the electronic scale can accurately receive and execute the correct target control instruction.

[0096] In one embodiment, adjusting a preset data conversion table based on the attributes of the serial number combination to obtain a corresponding adjusted conversion table includes:

[0097] Obtain a preset data conversion table; the data conversion table includes a corresponding original data column and a conversion data column;

[0098] Obtain the attributes of the serial number combination, and generate a straight line in the coordinate system based on the attributes; wherein, the attributes include the character length of the serial number combination and the sum of the digits of each character;

[0099] Add the data conversion table to the coordinate system, and identify the data in the data conversion table that is passed through by the straight line as target data;

[0100] Based on the target data, adjust the sorting of the data in the conversion data column to obtain a corresponding adjusted conversion table.

[0101] In this embodiment, the preset data conversion table is pre-stored, usually in the form of a table data structure, such as a two-dimensional array or a table in a database. When an operation of adjusting the conversion table based on the serial number combination attributes is required, the data processing unit loads the preset data conversion table into the memory by reading the corresponding data file or database table in the storage module for subsequent processing and operation.

[0102] The attributes of the above serial number combinations, namely the character length and the sum of the digits of each character, are used to construct a straight line in the coordinate system. The character length reflects the scale of the serial number combination, while the sum of the digits of each character represents the total of the numerical characteristics of the serial number combination. In a two-dimensional coordinate system, with the character length as the abscissa and the sum of the digits as the ordinate, a point in the coordinate system can be determined by these two attribute values. Then, according to a mathematical algorithm (for example, two points determine a straight line, and another preset reference point can be selected to connect with this point) to generate a straight line. This straight line, as a geometric representation, can present the attribute characteristics of the serial number combination in an intuitive way and is subsequently used for correlation analysis with the data conversion table to achieve the adjustment of the conversion table. For example, in the coordinate system construction module, a point is determined with the character length as the X-axis coordinate value and the sum of the digits as the Y-axis coordinate value. Then, a reference point is selected from the pre-set reference point set (such as the coordinate origin (0,0)), and using the straight line equation calculation module, according to the two-point form straight line equation formula, the coefficients of the straight line equation passing through these two points are calculated, thereby generating a straight line in the coordinate system, and the parameter information of this straight line is stored in the memory of the data processing unit.

[0103] By transforming the serial number combination attributes into a straight line in the coordinate system, it provides a unique quantitative analysis method for subsequent interaction with the data conversion table. This method establishes a geometric relationship-based connection between the originally abstract serial number combination attributes and the data conversion table, enabling the data conversion table to be screened and adjusted from a new perspective, increasing the scientificity and innovation of the adjustment process, and contributing to generating an adjusted conversion table that better conforms to the characteristics of the current instruction packet set.

[0104] Adding the data conversion table to the coordinate system where the straight line has been generated is to use the geometric position relationship between the straight line and the data points in the data conversion table to screen out the target data. Each set of original data and conversion data correspondence in the data conversion table can be regarded as a point in the coordinate system (for example, with a certain characteristic value of the original data as the abscissa and a certain characteristic value of the conversion data as the ordinate). When the straight line passes through certain points in the coordinate system, the original data and conversion data relationship corresponding to these points is the target data. In this way, based on the serial number combination attributes (reflected by the straight line), data with specific geometric relationships can be screened out from the data conversion table, and these data will be used for subsequent adjustment of the conversion data column sorting, thereby achieving the customized optimization of the entire data conversion table.

[0105] The above method for identifying target data through geometric relationships provides an efficient and intuitive means for screening key data from a large amount of data conversion table data. Compared with traditional methods based on rule matching or simple screening, screening target data based on the geometric positional relationship between a straight line and data points can make the screened target data more targeted, providing a more valuable basis for subsequent adjustment of the sorting of the conversion table, and helping to improve the quality and effectiveness of the adjusted conversion table.

[0106] Finally, based on the screened target data, the sorting of the data in the conversion data column is adjusted to optimize the conversion rules of the data conversion table according to the serial number combination attributes. By changing the order of the data in the conversion data column, the conversion table can better match the characteristics of the current instruction packet set during subsequent data conversion. For example, first analyze the correspondence between the original data and the conversion data contained in the target data. Then, according to a preset adjustment strategy (for example, arranging other conversion data associated with the corresponding conversion data in the target data in a certain logical order near it; or rearranging the conversion data corresponding to the target data in the front of the conversion data column from high to low according to the degree of importance, etc.), re-sort the data in the conversion data column. During the sorting process, use a sorting algorithm (such as bubble sort, quick sort, etc.) to adjust the data in the conversion data column, and finally obtain an adjusted conversion table that meets the requirements of adjustment based on the serial number combination attributes, covering the original preset data conversion table or storing it as a new version of the conversion table for subsequent data conversion operations.

[0107] The adjustment of the sorting of the conversion data column data realizes the in-depth optimization of the data conversion table. By driving the sorting adjustment with the target data screened according to the serial number combination attributes, the pertinence and adaptability of data conversion are improved. During the generation and transmission of remote control instructions, a more optimized conversion table can ensure the uniqueness and security of the generation of instruction packet identifiers, and guarantee the stable and efficient operation of the remote control function of the electronic scale.

[0108] In one embodiment, generating an identifier for the target control instruction packet based on each of the mutated instruction packets includes:

[0109] For each of the mutated instruction packets, calculate the checksum of the mutated instructions therein respectively;

[0110] Sort the checksums to obtain a checksum sequence;

[0111] Generate a first encryption key based on the checksum sequence; obtain the total number of the mutated instruction packets and the target control instruction packets, and generate a second encryption key based on the total number using a preset rule;

[0112] Encrypt each of the mutated instruction packets based on the second encryption key, and encrypt the target control instruction packet based on the first encryption key, and form an identifier for distinguishing the target control instruction packet through different encryption keys.

[0113] In this embodiment, for each mutated instruction packet, a corresponding checksum calculation function is called. Taking the cumulative sum algorithm as an example, starting from the first byte of the mutated instruction data in the mutated instruction packet, the values of each byte are sequentially accumulated. If the cumulative result exceeds the representation range of the checksum data type (for example, for an 8-bit checksum, the range is 0-255), then take the modulo of this range (for example, take the modulo of 255), and the final result is the checksum of the mutated instruction. Store the checksum value corresponding to each mutated instruction packet in a dedicated data structure (such as an array) for subsequent processing. Calculating the checksum provides a basic guarantee for the integrity verification of the instruction packet, and at the same time provides the original data for generating an identifier for distinguishing the target control instruction packet. Through the differences in the checksums, different mutated instruction packets can be initially distinguished, and in subsequent steps such as generating encryption keys, the checksum, as an important input parameter, can participate in constructing a targeted and unique identifier system, improving the reliability and accuracy of the identifier generation process.

[0114] Sorting the calculated checksums is to organize these originally unordered checksum values into an ordered sequence. Sorting algorithms (such as bubble sort, quick sort, etc.) can arrange the checksums in a specific order (ascending or descending). Through sorting, the relative magnitude relationship between the checksums is clarified. This ordered sequence can carry more information about the set of mutated instruction packets, providing a more structured data input for subsequent generation of encryption keys, helping to generate more logical and unique encryption keys, and thus enhancing the distinguishability and security of the target control instruction packet identifier.

[0115] The generation of the checksum sequence effectively integrates and organizes the checksum information of the mutated instruction packets, providing an ordered and valuable data basis for subsequent generation of encryption keys. Compared with the unordered set of checksums, the checksum sequence can better reflect the relationship between the mutated instruction packets. Through this ordered information transmission, the characteristics of the set of mutated instruction packets can be fully utilized when generating encryption keys, so as to generate encryption keys that better meet the identifier differentiation requirements and improve the quality and security of the target control instruction packet identifier.

[0116] Generate the first encryption key based on the checksum sequence. By leveraging the numerical characteristics and arrangement order in the checksum sequence, a specific key generation algorithm (such as a hash algorithm combined with certain bit operations on the checksum sequence) is used to generate an encryption key. This key is closely related to the checksum characteristics of the mutated instruction packet. Meanwhile, obtain the total number of the mutated instruction packet and the target control instruction packet, and generate the second encryption key according to a preset rule (for example, using the total number as the input parameter of the hash function, combined with other fixed or dynamic parameters). The second encryption key generates another unique encryption key from the dimension of the number of instruction packets, in combination with the preset rule. By using two encryption keys with different sources and generation methods, when encrypting the instruction packet subsequently, encryption identifiers based on different characteristics can be formed, thereby effectively distinguishing the target control instruction packet.

[0117] Generating two encryption keys based on different characteristics provides a core means for distinguishing the target control instruction packet. The first encryption key is based on the checksum characteristics of the mutated instruction packet, and the second encryption key is based on the number of instruction packets and the preset rule. This multi-dimensional key generation method increases the complexity and uniqueness of the encryption identifier. During the transmission of remote control instructions, even if an attacker attempts to crack the encryption, due to the diversity of the sources and generation methods of the encryption keys, the difficulty of cracking is greatly increased, effectively ensuring the security and accuracy of the target control instruction packet identifier and ensuring that the electronic scale can accurately identify the target control instruction packet.

[0118] Encrypt the mutated instruction packet and the target control instruction packet using different encryption keys. Based on the characteristic that the encrypted data requires the corresponding correct key for decryption, a distinguishing identifier is formed. Since the first encryption key and the second encryption key have different generation methods and numerical characteristics, the encrypted mutated instruction packet and target control instruction packet will show obvious differences in data characteristics. At the receiving end of the electronic scale, by attempting to decrypt using different keys, it is possible to accurately determine the target control instruction packet based on whether the decryption is successful and the rationality of the decrypted data, thereby realizing the identification and distinction of the target control instruction packet.

[0119] Specifically, each mutated instruction packet is encrypted using a second encryption key. For example, the AES encryption algorithm is adopted. The data of the mutated instruction packet is divided into blocks according to the grouping requirements of the AES algorithm, and then each block of data is encrypted using the second encryption key to obtain the encrypted data of the mutated instruction packet. For the target control instruction packet, the first encryption key is used to encrypt it according to the same AES encryption process. The encrypted mutated instruction packet and the target control instruction packet are encapsulated in a certain format (such as adding header information to identify the type of encryption key, etc.), and then sent out through the communication module. At the receiving end of the electronic scale, first, generate the second encryption key in the same way as above, and use the second encryption key to decrypt the received instruction packet. If the decryption is successful and the decrypted data conforms to the format and logic of the mutated instruction packet, it is judged as a mutated instruction packet; if the decryption fails using the second encryption key, then generate the first encryption key according to the method of generating the first encryption key as described above based on the decrypted mutated instruction packet. Furthermore, use the first encryption key to decrypt the instruction packet. If the decryption is successful and the data conforms to the characteristics of the target control instruction packet, the target control instruction packet can be identified.

[0120] In this embodiment, by encrypting the instruction packets with different encryption keys to form a distinguishing identifier, a reliable and secure method is provided for the electronic scale to accurately identify the target control instruction packet. In a complex network transmission environment, this method can effectively resist the interference and cracking of attackers, and ensure the integrity and accuracy of the remote control instruction transmission. Only by using the correct encryption key can the correct content of the instruction packet be decrypted, so as to ensure that the electronic scale executes the correct control instruction, and improve the reliability and stability of the remote control of the electronic scale.

[0121] In one embodiment, generating an identifier for the target control instruction packet based on each of the mutated instruction packets includes:

[0122] For each mutated instruction packet, extract the checksum, instruction opcode frequency distribution, instruction parameter value range, and instruction packet length feature to form a feature vector;

[0123] Reduce the dimension of the feature vector, and use the K-means clustering algorithm to cluster the reduced vectors to obtain multiple clustering clusters;

[0124] Calculate the mean vector of the feature vectors of each clustering cluster, calculate the distance between the feature vector of the target control instruction packet and each of the mean vectors, and find the nearest clustering cluster;

[0125] Generate the identifier of the target control instruction packet based on the nearest clustering cluster number and the distance; at the same time, use the other clustering cluster numbers as interference and randomly assign them to the identifiers of each of the mutated instruction packets.

[0126] In this embodiment, for each variant instruction packet, its checksum is first calculated. A simple cumulative sum algorithm can be used to accumulate the data bytes in the instruction packet in sequence. If it exceeds a specific range (such as the 256 range of an 8-bit checksum), the modulus is taken. Next, the frequency of occurrence of the instruction opcode is counted. For example, 5 common opcodes are preset, the instructions in the instruction packet are traversed, and the number of occurrences of each opcode is recorded to form a 5-dimensional opcode frequency subvector. At the same time, the maximum and minimum values ​​of the instruction parameters are determined to construct the instruction parameter range subvector. Finally, the length data of the instruction packet is obtained, and the checksum, opcode frequency subvector, instruction parameter range subvector and instruction packet length are integrated together to form a comprehensive feature vector, which is stored in the memory for subsequent processing. By extracting multi-dimensional features to form a feature vector, a refined description of the variant instruction packet is achieved. This comprehensive feature extraction method can capture the characteristic differences of the instruction packet in different aspects, and provides solid data support for subsequent operations such as dimensionality reduction, clustering and identification generation based on feature vectors, which helps to more accurately distinguish the target control instruction packet from the variant instruction packet and improve the accuracy and reliability of identification generation.

[0127] The principal component analysis (PCA) algorithm is used for feature vector dimensionality reduction. It projects high-dimensional data into low-dimensional space through linear transformation, while retaining the main variance information of the data as much as possible and removing redundant features. After PCA dimensionality reduction, the dimension of the data is reduced, the computational complexity is greatly reduced, and the key features of the data are retained. The K-means clustering algorithm divides the reduced feature vector into K different clusters based on the distance metric between data points. The data points in the same cluster have high similarity, and the data points between different clusters are quite different. In this way, variant instruction packages with similar features can be clustered together, which is convenient for subsequent analysis and processing of different types of instruction packages.

[0128] Dimensionality reduction and clustering operations greatly simplify the data structure and improve data processing efficiency. Dimensionality reduction removes redundant features, reduces the amount of subsequent calculations, and retains key information, so that different instruction packages can still be effectively distinguished in low-dimensional space. Clustering groups similar variant instruction packages, which facilitates the subsequent rapid positioning of the category to which the target control instruction package belongs. Through the division of clustering clusters, the structure of the variant instruction package set can be more clearly understood, which helps to generate more targeted and recognizable target control instruction package identification.

[0129] Calculating the mean vector of the feature vectors of each cluster is to obtain the representative features of that cluster. The mean vector comprehensively reflects the average features of all feature vectors within the cluster and can represent the overall characteristics of the cluster. By calculating the distance (such as the Euclidean distance) between the feature vector of the target control instruction packet and the mean vectors of each cluster, the similarity between the target control instruction packet and each cluster can be measured. The cluster with the closest distance means that the features of the target control instruction packet are most similar to the features of the mutant instruction packets within that cluster, thus enabling the determination of the position of the target control instruction packet in the clustering structure and providing a key basis for generating the identifier.

[0130] By calculating the mean vector and finding the closest cluster, the target control instruction packet can be accurately associated with the clustering structure of the mutant instruction packets. This approach utilizes the feature similarity represented by the clusters, providing a positioning method based on cluster analysis for the generation of the target control instruction packet identifier, making the identifier generation process more scientific and accurate, enhancing the correlation between the target control instruction packet identifier and the set features of the mutant instruction packets, and improving the reliability and effectiveness of the identifier.

[0131] Taking the number of the closest cluster as part of the target control instruction packet identifier can clarify the class membership of the target control instruction packet in the clustering structure and provide a macroscopic classification identifier information. And taking the distance between the feature vector of the target control instruction packet and the mean vector of the closest cluster as another part of the identifier further refines the relative position information of the target control instruction packet within that cluster, making the identifier more precise and unique. At the same time, randomly assigning the numbers of other clusters as interference to the identifiers of each mutant instruction packet increases the complexity and confusion of the identifier. During the transmission process, it is difficult for potential attackers to accurately distinguish the target control instruction packet identifier from the numerous mutant instruction packet identifiers with interference information, thus improving the confidentiality and security of the target control instruction packet identifier.

[0132] Combine the number of the nearest clustering cluster of the found target control instruction packet with the distance value between the feature vector of the target control instruction packet and the mean vector of this clustering cluster. For example, connect the number and the distance value with a specific delimiter to form the identifier of the target control instruction packet. For the numbers of other clustering clusters, use a random number generation function to randomly assign these numbers to the identifier fields of each mutated instruction packet. One or more numbers of other clustering clusters can be randomly selected and added to the identifier of each mutated instruction packet to ensure the randomness of the interference information and the uniformity of the distribution. Then, encapsulate the mutated instruction packet with the identifier and the target control instruction packet in a specific format for transmission. The above identifier generation and interference allocation methods greatly enhance the security and recognition of the target control instruction packet identifier. Through the combination of the clustering cluster number and the distance, it provides a clear and accurate basis for the electronic scale to accurately identify the target control instruction packet. At the same time, the addition of the interference information effectively interferes with the judgment of potential attackers, ensuring the confidentiality and integrity of the target control instruction packet identifier during transmission in a complex network environment, and ensuring that the electronic scale can reliably identify and execute the target control instruction, improving the security and stability of the remote control of the electronic scale.

[0133] Refer to Figure 2 , in another embodiment of the present invention, a remote control system for an electronic scale is further provided, including:

[0134] An acquisition module, configured to acquire the weight data of the electronic scale and the environmental information of the environment where it is located;

[0135] A determination module, configured to determine the length information of the remote control instruction based on the weight data; determine the type information of the remote control instruction based on the environmental information;

[0136] A generation module, configured to generate a corresponding remote control instruction based on the length information and the type information of the remote control instruction;

[0137] A control module, configured to send the remote control instruction to the electronic scale for remote control.

[0138] In this embodiment, for the specific implementation of each unit in the above system embodiment, please refer to that described in the above method embodiment, and details are not described herein again.

[0139] Refer to Figure 3 , in an embodiment of the present invention, a computer device is further provided. This computer device can be a server, and its internal structure can be as Figure 3As shown in the figure. The computer device includes a processor, a memory, a display screen, an input device, a network interface, and a database connected through a system bus. Among them, the processor of the computer design is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements the above method.

[0140] Those skilled in the art can understand that Figure 3 the structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.

[0141] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0142] In summary, for the remote control method, system, and device of the electronic scale provided in the embodiments of the present invention, it includes: obtaining the weight data of the electronic scale and the environmental information of the environment where it is located; determining the length information of the remote control instruction based on the weight data; determining the type information of the remote control instruction based on the environmental information; generating a corresponding remote control instruction based on the length information and type information of the remote control instruction; and sending the remote control instruction to the electronic scale for remote control. In this embodiment, by obtaining the weight data and the environmental information of the environment where it is located, and then determining the length information and type information of the remote control instruction, the defect that the current remote control of the electronic scale does not combine the actual working state and the environment where it is located is overcome.

[0143] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium provided by the present invention and used in the embodiments can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM, etc.

[0144] It should be noted that in this document, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that includes a series of elements includes not only those elements but also other elements not expressly listed, or elements that are inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "including one..." does not exclude the existence of additional identical elements in the process, apparatus, article, or method that includes such element.

[0145] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structural or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.

Claims

1. A remote control method for an electronic scale, characterized in that, It includes the following steps: Obtain the weight data of the electronic scale and the environmental information of the environment where it is located; Determine the length information of the remote control instruction based on the weight data; Determine the type information of the remote control instruction based on the environmental information; Generate a corresponding remote control instruction based on the length information and type information of the remote control instruction; Send the remote control instruction to the electronic scale for remote control.

2. The remote control method of the electronic scale according to claim 1, characterized in that, The weight data includes the weighing range and the weighing frequency; the environmental information includes an indoor scene or an outdoor scene.

3. The remote control method of the electronic scale according to claim 2, characterized in that, Determine the length information of the remote control instruction based on the weight data; determine the type information of the remote control instruction based on the environmental information; Encode the weighing range and the weighing frequency respectively to obtain a first encoding and a second encoding; obtain the total character length of the first encoding and the second encoding as the length information of the remote control instruction; Based on the mapping relationship between the preset environmental information and the packet format of the control instruction, determine the packet format corresponding to the environmental information as the type information of the remote control instruction.

4. The remote control method of the electronic scale according to claim 1, characterized in that, The generating a corresponding remote control instruction based on the length information and type information of the remote control instruction includes: Generate an empty instruction packet with a corresponding quantity according to the length information; Packet the real control instruction of the electronic scale according to the type information to obtain a target control instruction; Randomly add the target control instruction to any empty instruction packet to obtain a target control instruction packet; Perform multiple different local mutations on the target control instruction to obtain multiple different mutated instructions, and add each mutated instruction to an empty instruction packet respectively to obtain a mutated instruction packet; Generate an identifier for the target control instruction packet based on each mutated instruction packet, and combine the mutated instruction packet and the target control instruction packet to obtain the remote control instruction.

5. The remote control method of the electronic scale according to claim 4, characterized in that, Generating an identifier for the target control instruction packet based on each mutated instruction packet includes: Assign serial numbers to each mutated instruction packet and the target control instruction packet; combine the serial numbers to obtain a serial number combination; Adjust the preset data conversion table based on the attributes of the serial number combination to obtain a corresponding adjusted conversion table; convert the serial number combination into corresponding conversion data based on the adjusted conversion table; Select identification characters from the conversion data, add the identification characters to the identifier of the target control instruction packet, and randomly add the characters other than the identification characters in the conversion data to the identifiers of each mutated instruction packet as interference.

6. The remote control method of the electronic scale according to claim 5, characterized in that, Adjusting the preset data conversion table based on the attributes of the serial number combination to obtain a corresponding adjusted conversion table includes: Obtain the preset data conversion table; the data conversion table includes a corresponding original data column and conversion data column; Obtain the attributes of the serial number combination, and generate a straight line in the coordinate system based on the attributes; wherein, the attributes include the character length of the serial number combination and the sum of the numbers of each character; Add the data conversion table to the coordinate system, and identify the data in the data conversion table passed through by the straight line as the target data; Adjust the sorting of the data in the conversion data column based on the target data to obtain a corresponding adjusted conversion table.

7. The remote control method of the electronic scale according to claim 4, characterized in that, Generate an identifier for the target control instruction packet based on each of the mutation instruction packets, including: For each of the mutation instruction packets, calculate the checksum of the mutation instructions therein respectively; Sort the respective checksums to obtain a checksum sequence; Generate a first encryption key based on the checksum sequence; obtain the total number of the mutation instruction packets and the target control instruction packet, and generate a second encryption key based on the total number using a preset rule; Encrypt each of the mutation instruction packets based on the second encryption key, encrypt the target control instruction packet based on the first encryption key, and form an identifier for distinguishing the target control instruction packet through different encryption keys.

8. A remote control system for an electronic scale, characterized in that, Including: An acquisition module for acquiring the weight data of the electronic scale and the environmental information of the environment where it is located; A determination module for determining the length information of the remote control instruction based on the weight data; Determine the type information of the remote control instruction based on the environmental information; A generation module for generating a corresponding remote control instruction based on the length information and the type information of the remote control instruction; A control module for sending the remote control instruction to the electronic scale for remote control.

9. A computer device, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.