CN113301130A - Communication method and device of sewing equipment controller, terminal equipment and storage medium - Google Patents

Communication method and device of sewing equipment controller, terminal equipment and storage medium Download PDF

Info

Publication number
CN113301130A
CN113301130A CN202110513841.2A CN202110513841A CN113301130A CN 113301130 A CN113301130 A CN 113301130A CN 202110513841 A CN202110513841 A CN 202110513841A CN 113301130 A CN113301130 A CN 113301130A
Authority
CN
China
Prior art keywords
packet
data packet
expansion module
receiving
comparison
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110513841.2A
Other languages
Chinese (zh)
Inventor
王科达
梁少佐
林建格
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinghuo Cnc Co ltd
Original Assignee
Shenzhen Xinghuo Cnc Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinghuo Cnc Co ltd filed Critical Shenzhen Xinghuo Cnc Co ltd
Priority to CN202110513841.2A priority Critical patent/CN113301130A/en
Publication of CN113301130A publication Critical patent/CN113301130A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a communication method and a device of a sewing device controller, a terminal device and a storage medium, wherein the communication method of the sewing device controller is applied to the device controller, the device controller is connected with an expansion module, and the communication method of the sewing device controller comprises the following steps: receiving a data packet sent by the expansion module, wherein the data packet includes: a packet header and an instruction; comparing and checking the instruction to obtain a comparison result, and determining the type of the data packet according to the instruction; and according to the comparison result and the type of the data packet, sending a receiving success response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module. The invention can realize reliable transmission without depending on complex software environment or specific hardware, and ensures the safety, high efficiency and universality of communication between the sewing device controller and the terminal.

Description

Communication method and device of sewing equipment controller, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a communication method and device of a sewing device controller, terminal equipment and a storage medium.
Background
In recent times, with the rapid development of intelligent science and technology, the sewing production of clothes has widely adopted machine operation, wherein, sewing equipment is intelligently controlled through electronic equipment, and the sewing production of clothes has a very important effect.
However, some of the prior art communication methods have low reliability, such as: UDP network communication, serial port communication and the like, when data is transmitted, if the network quality is not good, packet loss is easy to occur; some communication methods have certain reliability, but often depend on complex software environment or specific hardware, for example, TCP network communication depends on a network protocol stack or an operating system, 485 communication needs 485 chip support, CAN communication needs CAN chip support, and the like, so that the convenience of application is reduced and the application cost is increased.
Therefore, it is difficult to have a communication method which is efficient, reliable and independent of complex software environment or specific hardware, and can be applied to sewing equipment or small embedded equipment, and simultaneously ensure the universality (the universality means that the same equipment can carry out efficient and reliable communication with different terminals, such as the communication of the same equipment with computer software, expansion modules and other products).
Disclosure of Invention
The invention mainly aims to provide a communication method, a communication device, terminal equipment and a storage medium of a sewing equipment controller, aiming at providing various communication methods which are efficient and reliable and do not depend on complex software environment or specific hardware, can be suitable for sewing equipment or small embedded equipment and simultaneously ensure the universality of the sewing equipment or the small embedded equipment.
In order to achieve the above object, the present invention provides a communication method of a sewing device controller, which is applied to a device controller of a sewing device, the device controller being connected to an expansion module, the communication method of the sewing device controller including the steps of:
receiving a data packet sent by the expansion module, wherein the data packet includes: a packet header and an instruction;
comparing and checking the instruction to obtain a comparison result, and determining the type of the data packet according to the instruction;
and according to the comparison result and the type of the data packet, sending a receiving success response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module.
Further, the step of receiving the data packet sent by the extension module includes:
receiving a packet header of a data packet sent by the expansion module;
comparing and checking the packet header, and if the packet header is successfully compared and checked, receiving the instruction of the data packet sent by the expansion module;
the packet header includes: a fixed magic number and a first Cyclic Redundancy Check (CRC) Redundancy Check code, wherein the step of performing comparison Check on the packet header includes:
carrying out ordered comparison on the fixed magic numbers;
and if the fixed magic number is successfully compared, checking and comparing the first CRC redundancy check code.
Further, after the step of performing ordered alignment on the fixed magic numbers, the method further comprises:
resetting the receiving count if the comparison for the fixed magic number fails;
after the step of performing check comparison on the first CRC redundancy check code, the method further includes:
if the check comparison for the first CRC redundancy check code fails, resetting a receiving count.
Further, the packet header further includes: the step of comparing and checking the instruction to obtain a comparison result comprises:
and checking and comparing the second CRC redundancy check code to obtain a comparison result, and recording the comparison result.
Further, the alignment result comprises: the comparison is successful and the comparison is failed, and the response packet comprises: a successful acknowledgement packet and a reception failed acknowledgement packet are received,
the step of sending a successful receiving response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module according to the comparison result of the instruction comparison check and the type of the data packet comprises the following steps:
if the type of the data packet is a response packet and the comparison result is that the comparison is successful, resetting a receiving count and receiving a new data packet sent by the expansion module;
if the type of the data packet is a response packet and the comparison result is that the comparison fails, resending a non-response packet associated with the response packet to the expansion module after waiting for a preset time;
if the type of the data packet is a non-response packet and the comparison result is that the comparison is successful, sending the successfully received response packet to the expansion module;
and if the type of the data packet is a non-response packet and the comparison result is a comparison failure, sending the reception failure response packet to the expansion module, and resetting a reception count and receiving a new data packet sent by the expansion module.
Further, the packet header further includes: the packet sequence, after the step of sending the successfully received response packet to the expansion module if the type of the data packet is a non-response packet and the comparison result is that the comparison is successful, further includes:
judging whether the packet sequence is consistent with a preset packet sequence, wherein the preset packet sequence comprises an old data packet sent by the expansion module;
if so, discarding the data packet, resetting a receiving count and receiving a new data packet sent by the expansion module;
and if not, executing the instruction.
Further, the instruction further comprises a type flag, and the type of the data packet comprises: an acknowledgement packet and a non-acknowledgement packet, the non-acknowledgement packet comprising: the step of determining the type of the data packet according to the instruction comprises the following steps:
identifying the type flag;
and determining the type of the data packet to be a common packet, a response packet or a feedback packet according to the type mark.
In addition, in order to achieve the above object, the present invention also provides a communication device of a sewing machine controller, the communication device of the sewing machine controller being applied to the machine controller, the communication device of the sewing machine controller including:
a first interaction module, configured to receive a data packet sent by the extension module, where the data packet includes: a packet header and an instruction;
the verification processing module is used for comparing and verifying the instruction to obtain a comparison result and determining the type of the data packet according to the instruction;
and the second interactive module is used for sending a receiving success response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module according to the comparison result and the type of the data packet.
In addition, to achieve the above object, the present invention also provides a terminal device, including: the communication program of the sewing equipment controller is stored on the memory and can be operated on the processor, and when the communication program of the sewing equipment controller is executed by the processor, the steps of the communication method of the sewing equipment controller are realized.
Further, in order to achieve the above object, the present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, realizes the steps of the communication method of the sewing machine controller as described above.
The invention provides a communication method and a communication device of a sewing device controller, a terminal device and a storage medium, wherein a data packet sent by an expansion module is received by the sewing device controller, and the data packet comprises the following components: a packet header and an instruction; comparing and checking the packet header, and receiving an instruction if the comparison and checking of the packet header are successful; comparing and checking the instruction, and determining the type of the data packet according to the instruction; and according to the result of the instruction comparison check and the type, sending a receiving success response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module.
In the process that the device controller receives the data packet sent by the expansion module, the header of the data packet is compared and checked, after the header is compared and checked successfully, the command is received continuously according to the header, the command is compared and checked, the type of the data packet is determined according to the command, and after the header and the command are compared and checked respectively, the problems of transmission errors or packet loss and the like of the data packet in the transmission process are avoided, and the reliability of communication is improved.
The invention realizes reliable transmission without depending on complex software environment or specific hardware, and CAN carry out uniform and reliable parameter instruction transmission according to the connection modes (network connection, serial connection or CAN connection and the like) of different terminals in the sewing device controller, thereby ensuring the safety, high efficiency and universality of communication between the sewing device controller and the terminals.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a hardware operating environment of a terminal device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram of a first embodiment of a communication method of a controller of a sewing machine according to the present invention;
FIG. 3 is a detailed flowchart of step S100 according to a first embodiment of the communication method of the controller of the sewing machine of the present invention;
FIG. 4 is a detailed flowchart of step S102 in a second embodiment of a communication method of a controller of a sewing machine according to the present invention;
fig. 5 is a schematic block diagram of a communication device of a sewing machine controller according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment related to a terminal device according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of the terminal device. The terminal equipment of the embodiment of the invention can be equipment controllers of sewing equipment or other small embedded equipment, the equipment controllers are connected with the expansion modules, and the expansion modules can be other terminal equipment (such as terminal equipment of a PC, a portable computer and the like) with a data communication function.
As shown in fig. 1, the device controller may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the device controller illustrated in FIG. 1 does not constitute a limitation of the device controller and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a distributed task processing program. Among them, the operating system is a program that manages and controls the hardware and software resources of the sample terminal device, a handler that supports distributed tasks, and the execution of other software or programs.
In the device controller shown in fig. 1, the user interface 1003 is mainly used for data communication with each terminal; the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; and the processor 1001 may be configured to call a communication program of the sewing device controller stored in the memory 1005, and perform the following operations:
receiving a data packet sent by the expansion module, wherein the data packet includes: a packet header and an instruction;
comparing and checking the instruction to obtain a comparison result, and determining the type of the data packet according to the instruction;
and according to the comparison result and the type of the data packet, sending a receiving success response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module.
Further, the packet header includes: the fixed magic number and the first CRC redundancy check code, and the processor 1001 may call the communication program of the sewing device controller stored in the memory 1005, and further perform the following operations:
receiving a packet header of a data packet sent by the expansion module;
comparing and checking the packet header, and if the packet header is successfully compared and checked, receiving the instruction of the data packet sent by the expansion module;
the packet header includes: the fixed magic number and the first CRC redundancy check code, and the processor 1001 may call the communication program of the sewing device controller stored in the memory 1005, and further perform the following operations:
carrying out ordered comparison on the fixed magic numbers;
and if the fixed magic number is successfully compared, checking and comparing the first CRC redundancy check code.
Further, the processor 1001 may call a communication program of the sewing device controller stored in the memory 1005, and after performing the step of performing the ordered comparison on the fixed magic numbers, further perform the following operations:
resetting the receiving count if the comparison for the fixed magic number fails;
the processor 1001 may call a communication program of the sewing machine controller stored in the memory 1005, and after performing the step of performing the check comparison on the first CRC redundancy check code, further perform the following operations:
if the check comparison for the first CRC redundancy check code fails, resetting a receiving count.
Further, the packet header further includes: the processor 1001 may call the communication program of the sewing machine controller stored in the memory 1005, and further perform the following operations:
and checking and comparing the second CRC redundancy check code to obtain a comparison result, and recording the comparison result.
Further, the alignment result comprises: the comparison is successful and the comparison is failed, and the response packet comprises: a successful acknowledgement packet and a reception failed acknowledgement packet are received,
the processor 1001 may call up the communication program of the sewing device controller stored in the memory 1005, and also perform the following operations:
if the type of the data packet is a response packet and the comparison result is that the comparison is successful, resetting a receiving count and receiving a new data packet sent by the expansion module;
if the type of the data packet is a response packet and the comparison result is that the comparison fails, resending a non-response packet associated with the response packet to the expansion module after waiting for a preset time;
if the type of the data packet is a non-response packet and the comparison result is that the comparison is successful, sending the successfully received response packet to the expansion module;
and if the type of the data packet is a non-response packet and the comparison result is a comparison failure, sending the reception failure response packet to the expansion module, and resetting a reception count and receiving a new data packet sent by the expansion module.
Further, the packet header further includes: in the packet sequence, the processor 1001 may call a communication program of the sewing device controller stored in the memory 1005, and after the step of sending a reception success response packet to the expansion module or resetting a reception count and receiving a new data packet sent by the expansion module according to the comparison result and the type of the data packet, further perform the following operations:
judging whether the packet sequence is consistent with a preset packet sequence, wherein the preset packet sequence comprises an old data packet sent by the expansion module;
if so, discarding the data packet, resetting a receiving count and receiving a new data packet sent by the expansion module;
and if not, executing the instruction.
Further, the instruction further comprises a type flag, and the type of the data packet comprises: an acknowledgement packet and a non-acknowledgement packet, the non-acknowledgement packet comprising: the processor 1001 may call a communication program of the sewing machine controller stored in the memory 1005, and also perform the following operations:
identifying the type flag;
and determining the type of the data packet to be a common packet, a response packet or a feedback packet according to the type mark.
Based on the above structure, various embodiments of the communication method of the sewing machine controller of the present invention are proposed.
Referring to fig. 2, fig. 2 is a schematic flow chart of a communication method of a sewing machine controller according to a first embodiment of the present invention.
The communication method of the sewing equipment controller of the embodiment takes the equipment controller of the sewing equipment as an execution main body, the equipment controller is connected with the expansion modules of other terminal equipment, and the communication method of the sewing equipment controller of the embodiment comprises the following steps:
step S100, receiving a data packet sent by the expansion module, where the data packet includes: a header and instructions.
And the device controller continuously receives a data packet which is sent by the expansion module and consists of a packet header and an instruction.
It should be noted that, in this embodiment, the device controller is a device controller of a sewing device or other small embedded devices, where the other small embedded devices may specifically be: an electronic product composed of some mcu (Microcontroller Unit: microprocessing Unit) such as stm32, stm8 or lpc 1766; in addition, the expansion module is connected with the equipment controller in a wired connection mode, and the expansion module can specifically be as follows: a WIFI module or PC software; further, the header of the data packet functions as: the integrity and the reliability of the data packet are ensured, and the instruction of the data packet mainly comprises the following components: command actions to be performed.
Specifically, for example: the device controller continuously receives the packet header of the data packet 1 sent by the expansion module according to the length of 1 byte, and then receives the instruction of the data packet 1 sent by the expansion module.
In another possible embodiment, the device controller performs data superposition statistics on the number of received bytes in the process of continuously receiving the data packet sent by the extension module according to the length of 1 byte, for example, when receiving the first byte of the data packet 1, the device controller performs the data superposition statistics as follows: 1. and when receiving the second byte of the data packet 1, performing data superposition statistics as follows: 2, and so on.
Further, as shown in fig. 3, in a possible embodiment, the step S100 may include:
step S101, receiving a packet header of a data packet sent by the expansion module;
the device controller continuously receives the packet head of the data packet sent by the expansion module.
Step S102, comparing and checking the packet header, and if the comparison and checking of the packet header are successful, receiving an instruction of the data packet sent by the expansion module;
after receiving the packet header of the data packet sent by the expansion module, the device controller firstly performs comparison and verification on the packet header, and further receives an instruction of the data packet generated by the expansion module when the comparison and verification on the packet header is successful.
Specifically, for example, when the device controller continuously receives the packet header of the data packet 1 sent by the extension module according to the length of 1 byte, the device controller synchronously performs comparison and verification on the characters of the length of 1 byte received by the packet header, and then, after the device controller determines that the comparison and verification on the whole packet header is successful, the device controller confirms the reliability of the packet header of the data packet, and continuously receives the partial characters of the instruction of the data packet 1 sent by the extension module according to the length of 1 byte.
In this embodiment, the device controller continuously receives the packet header of the data packet sent by the expansion module, and after receiving the packet header of the data packet sent by the expansion module, the device controller performs comparison and verification on the packet header, and further receives the instruction of the data packet generated by the expansion module when the comparison and verification on the packet header is successful, so that the data packet is prevented from being incomplete or unreliable after the device controller receives the complete data packet at one time, and data transmission time is wasted and an additional storage space of the device controller is occupied.
Further, as shown in fig. 4, in a possible embodiment, the packet header includes: the step of fixing the magic number and the first CRC redundancy check code, and the step of performing the comparison check on the packet header in the step S102 may include:
and S1021, carrying out ordered comparison on the fixed magic numbers.
And the equipment controller compares the fixed magic numbers contained in the equipment controller with the fixed magic numbers contained in the data packet received from the expansion module according to a certain sequence.
It should be noted that, in this embodiment, the fixed magic number is a specific character string, and the device controller, the data packet, and the expansion module all have the fixed magic number at the same time.
Specifically, for example, the device controller compares the fixed magic number contained in the device controller with the fixed magic number of the data packet 1 received from the expansion module from the first character to the last character, or from the last character to the first character. In this embodiment, if the fixed magic number is the character string "XHSK", the device controller compares the specific character string "XHSK" with the specific character string "XHSK" in the data packet 1 from the first character "X", and after the character "X" is successfully compared, continuously compares the character "H", the character "S", and the character "K" in sequence, and if one of the characters fails to be compared, and if the fixed magic number of the data packet 1 does not include the character "H", the device controller fails to compare the character "H" of the fixed magic number in the data packet 1, the fixed magic number ratio of the whole data packet 1 will fail to be compared.
Step S1022, if the magic number ratio is successfully matched, performing check comparison on the first CRC redundancy check code.
If the device controller succeeds in comparing the fixed magic number ratio of the data packet received from the expansion module, the device controller further compares the first CRC redundancy check code contained in the data packet.
Specifically, for example, when the expansion module sends the data packet 1 to the device controller, an additional number (the additional number is a first CRC redundancy check code for checking, and the first CRC redundancy check code may be a binary sequence) is added behind the packet header of the data packet 1 to generate a processed packet header, and then the processed packet header is sent to the device controller.
It should be noted that, in this embodiment, the extension module adds an additional number behind the packet header of the data packet 1, and the additional number enables the processed packet header to be evenly divided by a specific number selected by the device controller and the extension module by "modulo-2 division".
The device controller, after receiving the data packet 1, also divides the processed packet header of the data packet 1 by the specific number by "modulo-2 division". Since the extension module adds an additional number to the header of the data packet 1 before sending the data packet 1, so that the processed header can be divided by the specific number, after receiving the data packet 1, the device controller divides the processed header of the data packet 1 by the specific number, and therefore, the obtained result should have no remainder. If the result has a remainder, it indicates that an error occurs in the header of the data packet 1 during transmission from the expansion module to the device controller, that is, it indicates that the comparison of the first CRC redundancy check code for the data packet 1 fails.
Further, in another embodiment, after the step S1021, performing ordered comparison on the fixed magic numbers, the method further includes:
in step S1023, if the comparison for the fixed magic number fails, the receiving count is reset.
The device controller discards the data packet if the error occurs in the process of transmitting the data packet to the device controller by the expansion module after the fixed magic number ratio pair of the data packet received from the expansion module fails, namely the specific character string comparison of the data packet fails, resets the data superposition statistics of the received characters of the data packet, and waits for receiving a new data packet sent by the expansion module.
Specifically, for example, in the process of receiving the data packet 1 sent by the expansion module, the device controller simultaneously fails to compare the fixed magic number of the data packet 1, that is, the character "H" in the specific character string "XHSK" of the data packet 1, so that the fixed magic number ratio pair for the data packet 1 fails, indicating that an error occurs in the process of transmitting the data packet 1 to the device controller by the expansion module, and then the device controller discards the data packet 1; the data superposition system received by the device controller for the characters of packet 1 is then: 2 (second character received), resetting the data overlay statistic to: 0 and waits for the reception of a new packet sent by the extension module, i.e. packet 2.
Further, in another embodiment, after the step of "performing check comparison on the first CRC redundancy check code" in the step S1022, the method further includes:
step S1024, if the check comparison for the first CRC redundancy check code fails, resetting the reception count.
If the device controller fails to compare the first CRC code included in the data packet received from the expansion module, the device controller further resets the receiving count for the data packet.
Specifically, for example, if the device controller fails to compare the first CRC redundancy check code of the data packet 1 received from the extension module, that is, if the packet header of the data packet 1 is processed by "modulo-2 division", there is a remainder indicating that an error occurs in the data packet 1 during transmission from the extension module to the device controller, the device controller discards the data packet 1, and the data superposition system for resetting the received character of the data packet 1 is as follows: 0 and waiting to receive a new packet, packet 2, sent by the extension module.
And S200, comparing and checking the instruction to obtain a comparison result, and determining the type of the data packet according to the instruction.
After receiving the instruction of the data packet received from the expansion module, the device controller compares and verifies the instruction, so as to obtain and record a comparison result, and determines the type of the data packet according to the content of the instruction.
Further, in an embodiment, the packet header further includes a second CRC redundancy check code, and the step of "performing comparison check on the instruction to obtain a comparison result" in the step 200 may include:
step S201, performing a check comparison on the second CRC redundancy check code to obtain a comparison result, and recording the comparison result.
And the equipment controller checks and compares the second CRC redundancy check code of the data packet received from the expansion module so as to obtain a comparison result and records the comparison result.
Specifically, for example, the device controller compares the second CRC redundancy check code of the data packet 1 received from the expansion module, that is, processes the instruction of the data packet 1 by "modulo-2 division" to obtain a comparison result, and records the comparison result.
Further, in one embodiment, the instruction further includes a type flag, and the type of the packet includes: an acknowledgement packet and a non-acknowledgement packet, the non-acknowledgement packet comprising: the normal packet and the feedback packet, in the step 200, "determining the type of the data packet according to the instruction" may include:
step S202, identifying the type mark.
The device controller recognizes the type flag contained in the instruction of the packet 1.
It should be noted that, in this embodiment, the type flag may be a specific code included in the instruction, and the type flags included in the respective instructions of different data packets are different, and the different types of flags correspond to different types of identification data packets.
Specifically, for example, the device controller recognizes a specific piece of code included in the instruction of the packet 1 received from the expansion module by a sophisticated instruction recognition technique.
Step S203, determining the type of the data packet to be a common packet, a response packet or a feedback packet according to the type flag.
The different type marks correspond to different types of data packets respectively, so that the equipment controller can judge that the type of the data packet is a common packet, a response packet or a feedback packet according to the recognized type marks.
Specifically, for example, the device controller receives the data packet 1 from the extension module, the type flag in the instruction of the data packet includes three different codes, "100", "110", and "111", the type of the data packet corresponding to the type flag "100" is an ordinary packet, the type of the data packet corresponding to the type flag "110" is an acknowledgement packet, the type of the data packet corresponding to the type flag "111" is a feedback packet, and when the device controller identifies that the type flag included in the instruction of the data packet 1 is "100", it may determine that the type of the data packet 1 is an ordinary packet; similarly, when the device controller recognizes that the type flag included in the instruction of the data packet 1 is "110", it may determine that the type of the data packet 1 is a response packet; and when the device controller recognizes that the type flag included in the command of the data packet 1 is "111", it may determine that the type of the data packet 1 is a feedback packet.
Step S300, according to the comparison result and the type of the data packet, sending a receiving success response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module.
And the equipment controller synthesizes the comparison result and the type of the data packet according to the comparison result obtained by performing comparison and verification aiming at the second CRC (cyclic redundancy check) code on the instruction of the data packet received from the expansion module and the type of the data packet judged according to the type mark contained in the instruction, so as to send a response packet which is successfully received to the expansion module, complete the receiving process of the data packet, or discard the data packet, reset the data superposition statistics of the receiving characters of the data packet, and wait for the expansion module to send a new data packet.
Further, in one embodiment, the alignment result comprises: the comparison is successful and the comparison is failed, and the response packet comprises: receiving the successful response packet and the reception failure response packet, the step S300 may include:
step S301, if the type of the data packet is a response packet and the comparison result is that the comparison is successful, resetting the receiving count and receiving a new data packet sent by the expansion module.
And the device controller receives the data packet from the expansion module, judges the type of the data packet as a response packet by identifying the type mark of the instruction of the data packet, and resets the data superposition statistics of the received characters of the data packet if the comparison of the second CRC redundancy check code of the data packet is successful, and waits for receiving a new data packet sent by the expansion module.
Specifically, for example, the device controller receives the data packet 1 from the extension module, and recognizes that the type flag in the instruction of the data packet 1 is "110", and the type of the data packet corresponding to the type flag "110" is a response packet, that is, the device controller determines that the type of the received data packet 1 is a response packet, and the result of the second CRC check comparison for the data packet 1 by the device controller is a successful comparison, it indicates that the transmission process has been completed by the device controller sending a non-response packet associated with the data packet 1 to the extension module before receiving the data packet 1 sent by the extension module, and thus the device controller resets the data superposition statistics for the data packet 1 and waits for receiving a new data packet sent by the extension module: packet 2.
Step S302, if the type of the data packet is a response packet and the comparison result is a comparison failure, resending a non-response packet associated with the response packet to the expansion module after waiting for a preset duration.
The device controller receives a data packet from the expansion module, judges the type of the data packet as a response packet through identifying the type mark of the instruction of the data packet, and if the comparison fails aiming at the second CRC redundancy check code of the data packet, retransmits a non-response packet associated with the data packet to the expansion module after waiting for a preset time length, and waits for the expansion module to return to transmit a new response packet again.
It should be noted that, in this embodiment, the preset time duration may be set and adjusted according to actual needs, for example, the preset time duration may be 2 seconds, 3 seconds, or 4 seconds, and is not limited herein.
Specifically, for example, if the device controller receives the data packet 1 from the extension module, and recognizes that the type flag in the instruction of the data packet 1 is "110", and the type of the data packet corresponding to the type flag "110" is a response packet, that is, the device controller determines that the type of the received data packet 1 is a response packet, and if the result of the second CRC check comparison on the data packet 1 by the device controller is a comparison failure, it indicates that a non-response packet associated with the data packet 1 sent from the device controller to the extension module is an error in the transmission process, and at this time, the device controller discards the data packet 1 (equal to that the response packet is not received), and the data superposition system for resetting the received character of the data packet 1 is: and 0, after waiting for 2 seconds, retransmitting the non-response packet associated with the data packet 1 to the extension module, and waiting for receiving a new data packet transmitted by the extension module.
Further, in another possible embodiment, after the device controller sends the data packet 2 (non-response packet) associated with the data packet 1 to the expansion module again, if the data packet 3 (response packet) associated with the data packet 2 sent by the expansion module is not received or the comparison result of the device controller for checking and comparing the second CRC redundancy check code of the data packet 3 received from the expansion module is a comparison failure, the device controller waits for 2 seconds and then repeatedly sends the data packet 4 (non-response packet) with the same content as the data packet 2 to the expansion module until the number of times that the device controller sends the same data packet (non-response packet) to the expansion module reaches the preset number of times, or the expansion module replies to the device controller to send the data packet 5 (response packet) associated with the data packet 4, and the comparison result of the device controller for the second CRC redundancy check code of the data packet 5 is a comparison success, in this way, the entire transmission process between the device controller and the expansion module is completed with respect to the data packet 1.
It should be noted that, in this embodiment, the preset times are adjusted according to actual requirements, and may be 5 times, 10 times, or 15 times, and the like, which is not limited herein.
Step S303, if the type of the data packet is a non-response packet and the comparison result is that the comparison is successful, sending the successfully received response packet to the expansion module.
The device controller receives a data packet from the expansion module, judges the type of the data packet to be a non-response packet through identifying the type mark of the instruction of the data packet, and sends a successfully-received response packet associated with the data packet to the expansion module if the comparison of the second CRC redundancy check code of the data packet is successful.
Specifically, for example, the device controller receives the data packet 1 from the expansion module, and recognizes that the type flag in the instruction of the data packet 1 is "100", and the type of the data packet corresponding to the type flag "100" is a normal packet, that is, the device controller determines that the type of the received data packet 1 is a normal packet, and if the result of the second CRC redundancy check comparison for the data packet 1 is a comparison success, the device controller sends the data packet 2 (a reception success response packet) associated with the data packet 1 to the expansion module, indicating that the reception for the data packet 1 is successful.
Step S304, if the type of the data packet is a non-response packet and the comparison result is a comparison failure, sending the reception failure response packet to the expansion module, and resetting a reception count and receiving a new data packet sent by the expansion module.
The device controller receives a data packet from the expansion module, judges the type of the data packet to be a non-response packet through identifying the type mark of the instruction of the data packet, and if the comparison of the second CRC (cyclic redundancy check) code of the data packet fails, sends a reception failure response packet associated with the data packet to the expansion module, resets the data superposition statistics of the received characters of the data packet, and waits for the expansion module to send a new data packet.
Specifically, for example, the device controller receives the data packet 1 from the extension module, recognizes that the type flag in the instruction of the data packet 1 is "100", and the type of the data packet corresponding to the type flag "100" is a normal packet, that is, the device controller determines that the type of the received data packet 1 is a normal packet, and the result of the second CRC redundancy check comparison for the data packet 1 by the device controller is a comparison failure, so that the device controller sends the data packet 2 (reception failure response packet) associated with the data packet 1 to the extension module, which indicates that the device controller has failed to receive the data packet 1, and resets the data superposition system for the received characters of the data packet 1: and 0, waiting for the receiving expansion module to send a new data packet.
In this embodiment, a data packet consisting of a packet header and an instruction sent by an extension module is continuously received by a device controller; after receiving the instruction of the data packet sent by the expansion module, the device controller compares and checks the instruction, so as to obtain and record a comparison result, and meanwhile, determines the type of the data packet according to the content of the instruction; and the equipment controller performs comparison and verification aiming at the second CRC according to the instruction of the data packet to obtain a comparison result, integrates the comparison result and the type of the data packet according to the type mark contained in the instruction, and sends a receiving success response packet to the expansion module to complete the receiving process of the data packet or abandon the data packet, resets the data superposition statistics of the receiving characters of the data packet, and waits for the receiving expansion module to send a new data packet.
In the first embodiment of the invention, reliable transmission is realized without depending on complex software environment or specific hardware, uniform and reliable parameter instruction transmission CAN be carried out in the sewing device controller according to the connection modes of different terminals (network connection, serial connection or CAN connection and other connection modes), the safety, high efficiency and universality of communication between the device controller and other terminals are ensured, the application range is wide, and the practicability is strong.
Further, a second embodiment of the communication method of the sewing machine controller of the present invention is proposed based on the above first embodiment of the communication method of the sewing machine controller.
In a second embodiment of the communication method of the controller of the sewing machine of the present invention, the shoe head further includes: a packet sequence, in the step S303, if the type of the data packet is a non-response packet and the comparison result is that the comparison is successful, after sending the successfully received response packet to the expansion module, the method further includes:
and step A, judging whether the packet sequence is consistent with a preset packet sequence, wherein the preset packet sequence comprises an old data packet sent by the expansion module.
The device controller receives the data packet from the expansion module, identifies the packet sequence of the packet head of the data packet, compares the packet sequence of the data packet with a preset packet sequence, and judges whether the packet sequence is consistent with the preset packet sequence.
It should be noted that, in this embodiment, the preset packet sequence is a packet sequence of a data packet that is received by the device controller and is sent by the last expansion module before the data packet currently sent by the expansion module is received by the device controller.
Specifically, for example, after receiving the data packet 0 sent by the extension module, the device controller receives the data packet 1 sent by the extension module, and then compares the packet sequence of the packet header of the data packet 0 with the packet sequence of the packet header of the data packet 1, and determines whether the packet sequence of the packet header of the data packet 0 is consistent with the packet sequence of the packet header of the data packet 1.
And B, if so, discarding the data packet, resetting a receiving count and receiving a new data packet sent by the expansion module.
The device controller identifies the packet sequence of the packet head of the data packet, compares the packet sequence with a preset packet sequence, resets the data superposition statistics of the received characters of the data packet when the packet sequence is consistent with the preset packet sequence, and waits for the receiving expansion module to send a new data packet.
Specifically, for example, if the packet sequence of the data packet 0 received by the extension module is "1000" and the packet sequence of the data packet 1 received by the extension module is also "1000", the device controller determines that the packet sequence of the data packet 0 is identical to the packet sequence of the data packet 1, which indicates that the contents of the data packet 0 and the data packet 1 are duplicated, and thus resets the data superposition statistics on the received characters of the data packet 1 and waits for receiving a new data packet transmitted by the extension module.
And C, if not, executing the instruction.
The device controller identifies the packet sequence of the packet head of the data packet, compares the packet sequence with a preset packet sequence, and executes the instruction of the data packet when the packet sequence is not consistent with the preset packet sequence.
Specifically, for example, if the device controller receives a packet sequence of "1000" for packet 0 transmitted by the extension module and then receives a packet sequence of "1001" for packet 1 transmitted by the extension module, the device controller determines that the packet sequence of packet 0 is not consistent with the packet sequence of packet 1, indicating that the contents of packet 0 are different from those of packet 1, and thus executes the instruction of packet 1.
Further, in another embodiment, after the step C, the method further includes:
and D, after the instruction is executed, sending a success feedback packet or a failure feedback packet to the expansion module.
And after executing the instruction of the data packet sent by the expansion module, the device controller sends a success feedback packet or a failure feedback packet to the expansion module according to the execution result of the instruction.
Specifically, for example, the device controller receives a data packet 1 sent by the expansion module, the content of the instruction of the data packet 1 is "delete a file", and if the device controller successfully executes the instruction, that is, successfully deletes the a file, the device controller sends a successful feedback packet to the expansion module; and if the device controller fails to execute the instruction, namely the A file cannot be deleted, the device controller sends a failure feedback packet to the expansion module.
In this embodiment, the device controller receives a data packet from the expansion module, identifies a packet sequence of a packet header of the data packet, compares the packet sequence of the data packet with a preset packet sequence, and determines whether the packet sequence is consistent with the preset packet sequence; if the packet sequence is consistent with the preset packet sequence through comparison, resetting data superposition statistics of the received characters of the data packet, and waiting for a receiving expansion module to send a new data packet; and if the packet sequence is not consistent with the preset packet sequence by comparison, executing the instruction of the data packet, and after the instruction of the data packet sent by the expansion module is executed, sending a successful feedback packet or a failed feedback packet to the expansion module according to the execution result of the instruction.
The invention avoids the situation of resource waste caused by the repeated execution of the instruction of the data packet by the device controller due to the transmission error of the data packet in the communication process of the device controller and the expansion module; and after the device controller executes the instruction of the data packet received by the expansion module, the successful feedback packet or the failed feedback packet is sent to the expansion module in time according to the execution result of the instruction, so that the expansion module can obtain the feedback of the instruction execution result in time, and the subsequent data packet is conveniently sent and correspondingly set and adjusted according to the instruction execution result.
In addition, referring to fig. 5, an embodiment of the present invention further provides a communication device of a sewing device controller, where the communication device of the sewing device controller is applied to a device controller, and the communication device of the sewing device controller includes:
a first interaction module, configured to receive a data packet sent by the extension module, where the data packet includes: a packet header and an instruction;
the verification processing module is used for comparing and verifying the instruction to obtain a comparison result and determining the type of the data packet according to the instruction;
and the second interactive module is used for sending a receiving success response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module according to the comparison result and the type of the data packet.
Preferably, the first interaction module comprises:
the receiving unit is used for receiving the packet head of the data packet sent by the expansion module;
the first checking unit is used for comparing and checking the packet header, and receiving the instruction of the data packet sent by the expansion module if the comparison and checking of the packet header are successful;
the packet header includes: fixed magic number and first CRC redundancy check code, first check unit includes:
the comparison subunit is used for carrying out ordered comparison on the fixed magic numbers;
and the checking subunit is used for checking and comparing the first CRC redundancy check code if the fixed magic number ratio is successfully compared.
Preferably, the first verification unit further includes:
a reset counting subunit, configured to reset the reception count if the comparison for the fixed magic number fails; and resetting the receiving count if the check comparison for the first CRC redundancy check code fails.
Preferably, the packet header further includes: the second CRC redundancy check code, check the processing module, including:
and the second checking unit is used for checking and comparing the second CRC redundancy check code to obtain a comparison result and recording the comparison result.
Preferably, the alignment result comprises: the comparison is successful and the comparison is failed, and the response packet comprises: and a second interaction module for receiving the successful response packet and the failed response packet, the second interaction module comprising:
the first processing unit is used for resetting the receiving count and receiving a new data packet sent by the expansion module if the type of the data packet is a response packet and the comparison result is that the comparison is successful;
the second processing unit is used for retransmitting a non-response packet associated with the response packet to the expansion module after waiting for a preset time length if the type of the data packet is the response packet and the comparison result is that the comparison fails;
the third processing unit is used for sending the successfully received response packet to the expansion module if the type of the data packet is a non-response packet and the comparison result is that the comparison is successful;
and the fourth processing unit is used for sending the reception failure response packet to the expansion module, resetting the reception count and receiving a new data packet sent by the expansion module if the type of the data packet is a non-response packet and the comparison result is a comparison failure.
Preferably, the packet header further includes: the package order, the second interactive module still includes:
the judging unit is used for judging whether the packet sequence is consistent with a preset packet sequence, wherein the preset packet sequence comprises an old data packet sent by the expansion module;
the fifth processing unit is used for discarding the data packet if the packet sequence is consistent with a preset packet sequence, and resetting a receiving count and receiving a new data packet sent by the expansion module;
and the sixth processing unit is used for executing the instruction if the packet sequence is not consistent with a preset packet sequence.
Preferably, the instruction further includes a type flag, and the type of the data packet includes: an acknowledgement packet and a non-acknowledgement packet, the non-acknowledgement packet comprising: ordinary package and feedback package, check-up processing module still includes:
an identification unit for identifying the type flag;
and the determining unit is used for determining the type of the data packet to be a common packet, a response packet or a feedback packet according to the type mark.
The steps implemented when the functional modules of the communication device of the sewing device controller operate according to the present invention can refer to the above embodiments of the communication method of the sewing device controller, and are not described herein again.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes: the communication program of the sewing equipment controller realizes the steps of the communication method of the sewing equipment controller when being executed by the processor.
The steps implemented when the communication method of the sewing machine controller running on the processor is executed can refer to various embodiments of the communication method of the sewing machine controller, and are not described herein again.
In addition, the embodiment of the present invention further provides a storage medium applied to a computer, where the storage medium may be a non-volatile computer-readable storage medium, and the storage medium stores a communication program of a sewing device controller, and the communication program of the sewing device controller implements the steps of the communication method of the sewing device controller as described above when executed by a processor.
The steps implemented when the communication program of the sewing machine controller running on the processor is executed may refer to various embodiments of the communication method of the sewing machine controller of the present invention, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The communication method of the sewing equipment controller is characterized by being applied to the equipment controller of the sewing equipment, the equipment controller is connected with an expansion module, and the communication method of the sewing equipment controller comprises the following steps:
receiving a data packet sent by the expansion module, wherein the data packet includes: a packet header and an instruction;
comparing and checking the instruction to obtain a comparison result, and determining the type of the data packet according to the instruction;
and according to the comparison result and the type of the data packet, sending a receiving success response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module.
2. The communication method of a sewing machine controller according to claim 1, wherein the step of receiving the data packet transmitted by the expansion module comprises:
receiving a packet header of a data packet sent by the expansion module;
comparing and checking the packet header, and if the packet header is successfully compared and checked, receiving the instruction of the data packet sent by the expansion module;
the packet header includes: the step of comparing and checking the packet header comprises the following steps of fixing a magic number and a first CRC redundancy check code:
carrying out ordered comparison on the fixed magic numbers;
and if the fixed magic number is successfully compared, checking and comparing the first CRC redundancy check code.
3. The communication method of a sewing machine controller according to claim 2, further comprising, after the step of performing the ordered comparison on the fixed magic numbers:
resetting the receiving count if the comparison for the fixed magic number fails;
after the step of performing check comparison on the first CRC redundancy check code, the method further includes:
if the check comparison for the first CRC redundancy check code fails, resetting a receiving count.
4. The communication method of a sewing machine controller according to claim 1, wherein the packet header further comprises: the step of comparing and checking the instruction to obtain a comparison result comprises:
and checking and comparing the second CRC redundancy check code to obtain a comparison result, and recording the comparison result.
5. The communication method of a sewing machine controller according to claim 4, wherein the comparison result includes: the comparison is successful and the comparison is failed, and the response packet comprises: a successful acknowledgement packet and a reception failed acknowledgement packet are received,
the step of sending a successful receiving response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module according to the comparison result of the instruction comparison check and the type of the data packet comprises the following steps:
if the type of the data packet is a response packet and the comparison result is that the comparison is successful, resetting a receiving count and receiving a new data packet sent by the expansion module;
if the type of the data packet is a response packet and the comparison result is that the comparison fails, resending a non-response packet associated with the response packet to the expansion module after waiting for a preset time;
if the type of the data packet is a non-response packet and the comparison result is that the comparison is successful, sending the successfully received response packet to the expansion module;
and if the type of the data packet is a non-response packet and the comparison result is a comparison failure, sending the reception failure response packet to the expansion module, and resetting a reception count and receiving a new data packet sent by the expansion module.
6. The communication method of a sewing machine controller according to claim 5, wherein the shoe head further comprises: the packet sequence, after the step of sending the successfully received response packet to the expansion module if the type of the data packet is a non-response packet and the comparison result is that the comparison is successful, further includes:
judging whether the packet sequence is consistent with a preset packet sequence, wherein the preset packet sequence comprises an old data packet sent by the expansion module;
if so, discarding the data packet, resetting a receiving count and receiving a new data packet sent by the expansion module;
and if not, executing the instruction.
7. The communication method of a sewing machine controller according to claim 1, wherein the command further includes a type flag, and the type of the packet includes: an acknowledgement packet and a non-acknowledgement packet, the non-acknowledgement packet comprising: the step of determining the type of the data packet according to the instruction comprises the following steps:
identifying the type flag;
and determining the type of the data packet to be a common packet, a response packet or a feedback packet according to the type mark.
8. A communication device of a sewing machine controller, wherein the communication device of the sewing machine controller is applied to the machine controller, the communication device of the sewing machine controller comprising:
a first interaction module, configured to receive a data packet sent by the extension module, where the data packet includes: a packet header and an instruction;
the verification processing module is used for comparing and verifying the instruction to obtain a comparison result and determining the type of the data packet according to the instruction;
and the second interactive module is used for sending a receiving success response packet to the expansion module or resetting a receiving count and receiving a new data packet sent by the expansion module according to the comparison result and the type of the data packet.
9. A terminal device, characterized in that the terminal device comprises: a memory, a processor and a communication program of a sewing machine controller stored on the memory and executable on the processor, the communication program of the sewing machine controller realizing the steps of the communication method of the sewing machine controller according to any one of claims 1 to 7 when executed by the processor.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the communication method of a sewing machine controller according to any one of claims 1 to 7.
CN202110513841.2A 2021-05-11 2021-05-11 Communication method and device of sewing equipment controller, terminal equipment and storage medium Pending CN113301130A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110513841.2A CN113301130A (en) 2021-05-11 2021-05-11 Communication method and device of sewing equipment controller, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110513841.2A CN113301130A (en) 2021-05-11 2021-05-11 Communication method and device of sewing equipment controller, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113301130A true CN113301130A (en) 2021-08-24

Family

ID=77321445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110513841.2A Pending CN113301130A (en) 2021-05-11 2021-05-11 Communication method and device of sewing equipment controller, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113301130A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630158A (en) * 2009-05-14 2010-01-20 固高科技(深圳)有限公司 Industrial control system and serial communication method thereof
CN102005997A (en) * 2010-10-27 2011-04-06 北京和利康源医疗科技有限公司 Device and method for driving and controlling stepper motor
CN103607258A (en) * 2013-11-18 2014-02-26 深圳市道通科技有限公司 Method, device and system for communication between primary device and secondary device in vehicle computer diagnosis device
CN106654770A (en) * 2016-12-30 2017-05-10 深圳朗田亩半导体科技有限公司 Universal serial bus (USB) extension cord
CN108540823A (en) * 2018-05-15 2018-09-14 北京首汽智行科技有限公司 A kind of integrity of video method of calibration based on block chain technology
CN109682028A (en) * 2019-01-04 2019-04-26 四川虹美智能科技有限公司 Communication means and device inside a kind of air-conditioning
CN110225046A (en) * 2019-06-18 2019-09-10 北京大豪科技股份有限公司 Data transmission method, device, electronic equipment and storage medium
CN110401794A (en) * 2018-04-25 2019-11-01 杭州海康威视数字技术股份有限公司 Video camera remote upgrade method, device, electronic equipment and readable storage medium storing program for executing
CN110568443A (en) * 2019-10-25 2019-12-13 珠海上富电技股份有限公司 Ultrasonic ranging chip and ultrasonic ranging system
CN112732702A (en) * 2021-03-31 2021-04-30 腾讯科技(深圳)有限公司 Database engine file processing method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630158A (en) * 2009-05-14 2010-01-20 固高科技(深圳)有限公司 Industrial control system and serial communication method thereof
CN102005997A (en) * 2010-10-27 2011-04-06 北京和利康源医疗科技有限公司 Device and method for driving and controlling stepper motor
CN103607258A (en) * 2013-11-18 2014-02-26 深圳市道通科技有限公司 Method, device and system for communication between primary device and secondary device in vehicle computer diagnosis device
CN106654770A (en) * 2016-12-30 2017-05-10 深圳朗田亩半导体科技有限公司 Universal serial bus (USB) extension cord
CN110401794A (en) * 2018-04-25 2019-11-01 杭州海康威视数字技术股份有限公司 Video camera remote upgrade method, device, electronic equipment and readable storage medium storing program for executing
CN108540823A (en) * 2018-05-15 2018-09-14 北京首汽智行科技有限公司 A kind of integrity of video method of calibration based on block chain technology
CN109682028A (en) * 2019-01-04 2019-04-26 四川虹美智能科技有限公司 Communication means and device inside a kind of air-conditioning
CN110225046A (en) * 2019-06-18 2019-09-10 北京大豪科技股份有限公司 Data transmission method, device, electronic equipment and storage medium
CN110568443A (en) * 2019-10-25 2019-12-13 珠海上富电技股份有限公司 Ultrasonic ranging chip and ultrasonic ranging system
CN112732702A (en) * 2021-03-31 2021-04-30 腾讯科技(深圳)有限公司 Database engine file processing method and device

Similar Documents

Publication Publication Date Title
CN111897585B (en) Linux-based multi-hardware adaptation method
US11889255B2 (en) Communication method between earphones and charging box, charging box, earphones and readable storage medium
WO2011137640A1 (en) File transmission method, file transmission apparatus and file reception apparatus
US8732694B2 (en) Method and system for performing services in server and client of client/server architecture
CN112636966A (en) Application batch deployment method based on remote debugging protocol
CN111752579A (en) Bluetooth terminal upgrading method and device, storage medium and electronic equipment
CN104348578A (en) Data processing method and device
CN113746892A (en) Remote upgrading method and wireless terminal equipment
US9170801B2 (en) Data card updating method, personal computer, and data card
CN113301130A (en) Communication method and device of sewing equipment controller, terminal equipment and storage medium
CN107181657B (en) WTB link layer interface adapter and implementation method thereof
US20030154288A1 (en) Server-client system and data transfer method used in the same system
US20210014006A1 (en) System and method for implementing a hybrid automatic repeat request process
US10979287B2 (en) Method and apparatus for receiving a solution when configuration function verification fails in a terminal
CN115396248A (en) Remote equipment control method, device, system, electronic device and storage medium
CN112181147B (en) Small program-based wearable device interaction method and device and electronic device
CN114579166A (en) Component module upgrading method, component module and financial robot
CN112422377A (en) Intelligent terminal control method and device and computer readable storage medium
CN112333115A (en) Data transmission method, terminal device, server and storage medium
CN114880148B (en) Data processing method, device and computer readable storage medium
CN115412890B (en) Data transmission method and device and terminal equipment
CN113515461B (en) Communication test method and device, electronic equipment and storage medium
CN117992098A (en) Remote upgrading system and method
US8601106B2 (en) Remote command execution over a network
KR20240079226A (en) Method and system for updating firmware in the robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination