Code plate encoding and decoding method for positioning mobile equipment

Through the two-row laser coding scheme and the design of the check digit and authority code, the problem of missing and disordered card positioning technology during movement is solved, and more accurate and stable positioning of mobile devices is achieved.

CN118966249APending Publication Date: 2024-11-15NANJING SCIYON AUTOMATION GRP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411019807.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing code card positioning technology is prone to abnormal situations such as loss and disorder during movement, resulting in errors in position information and affecting the positioning accuracy and production efficiency of mobile devices.

Method used

Two-row laser encoding scheme is adopted, the first row of lasers is two groups and the second row of lasers is multiple groups. Binary encoding is formed through the openings on the code plate, and check bits and authority codes are introduced to ensure the error prevention of encoding. and uniqueness, the code reader forms '0' or '1' by receiving or not receiving a laser signal, improving the accuracy of positioning.

Benefits of technology

It realizes the stability and accuracy of card encoding, reduces positioning errors, improves the positioning accuracy and anti-interference ability of mobile devices, and ensures improvement of production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118966249A_ABST
    Figure CN118966249A_ABST
Patent Text Reader

Abstract

The invention discloses a code plate coding method for positioning a mobile device, which comprises the following steps of: outputting two rows of lasers through an emitter, transmitting the lasers to a code reader after passing through a code plate, and receiving a laser signal by the code reader to obtain a corresponding binary code; the binary coding comprises two rows of coding, and the first row of coding comprises code card ID coding of two check bits and multiple data bits; the second behavior has a weight code; two rows of holes are formed in the code plate, the first row of holes are the same in size and are symmetrically distributed along the center line of the code plate at equal intervals, and a long-strip-shaped hole extending in the moving direction of the mobile equipment is formed in the second row of holes; the left and right ends of the first row of holes are respectively provided with a check bit hole, and the middle is provided with a plurality of data bit holes; the data bit holes shield the corresponding bit holes according to the binary number of the code card ID; and the verification hole is shielded according to the remainder obtained by dividing the number of '1' or '0' in the binary number of the code card ID by 4. According to the invention, accurate positioning of the mobile device during movement can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention specifically relates to a code card encoding and decoding method suitable for mobile device positioning, belonging to the technical field of wireless positioning. Background Art

[0002] With the rapid development of production automation, it has gradually become a trend to realize automated and unmanned control of equipment, especially in some harsh environments where some mobile equipment requires precise positioning of their running trajectories, such as transport vehicle identification, application identification on automated production lines, and vehicle positioning.

[0003] At present, the commonly used positioning systems include ranging cable positioning, code card positioning technology, laser ranging technology, RFID positioning technology, etc. Among them, the code card positioning technology usually uses serial decoding. During the movement, when the laser passes through the code card openings one by one, abnormal situations such as loss and confusion may occur, which will lead to errors in the obtained position information and may cause positioning errors of mobile devices, thereby affecting the actual production efficiency on site and causing production accidents. Summary of the invention

[0004] The purpose of the present invention is to solve the defects in the prior art and provide a method for encoding and decoding a smart code card. The coding scheme of the code card has a natural error-proofing effect in coding design.

[0005] In order to achieve the above-mentioned purpose, the present invention provides a code card encoding method for positioning a mobile device, wherein the code card encoding outputs two rows of lasers through a transmitter arranged at the mobile device end, which are transmitted to a code reader after passing through the code card, and the code reader receives the laser signal for encoding to obtain a corresponding binary code; the first row of lasers of the transmitter is two groups, and the second row of lasers is multiple groups; the binary code includes two rows of codes, the first row is a code card ID code including a 2-bit check bit and multiple data bits, corresponding to the first row of laser signals collected; the second row is an authorized code, corresponding to the second row of laser signals collected No.; There are two rows of openings on the code card, the first row of openings are the same size, symmetrical along the center line of the code card and arranged at equal intervals, and the second row has a long strip of holes extending in the running direction of the mobile device; the left and right ends of the first row of openings are respectively a check bit hole, and the middle is a plurality of data bit holes; the data bit holes are blocked according to the binary number of the code card ID; the check holes are blocked according to the number of "1" or "0" in the binary number of the code card ID, and the number of "1" or "0" n is divided by 4, and the remainder is converted into a binary number to block the two-bit check bit holes.

[0006] The transmitter and the barcode reader are both installed on the mobile device. The specific functions of each component are as follows:

[0007] The transmitter mainly outputs N groups of laser signals. The lasers are distributed in two rows, with 2 lasers in the first row and N-2 lasers in the second row. They are transmitted to the code reader. During the transmission process, part of the laser channel will be blocked by the code card. If the code reader receives the laser signal, it is "0", and if it is not received, it is "1". In this way, a binary code is formed.

[0008] The code reader receives the laser signal from the transmitter and obtains the corresponding binary result by analyzing the presence or absence of the laser signal. The corresponding code card position ID is consistent with the actual positioning position, and the information obtained at this time is transmitted to the PLC via RS485.

[0009] The code card is composed of different codes, that is, the hole opening methods. The decimal result corresponding to the binary code is obtained according to the data bit encoding to name the ID of the code card.

[0010] The coding method of the code card is expressed by the openings corresponding to the code card. This coding method is not easily interfered by other factors through the design of the code card structure, and the entire signal acquisition process is relatively stable. The openings of the code card are composed of two rows of holes, among which the first row is composed of holes of equal spacing and the same size. They are symmetrical about the center of the code card, while the second row is composed of a relatively large hole. Its position does not have to be centrally symmetrical. Its opening position and size are determined by different data bits and the number of authorized code bits. The first row is composed of (M+2) holes of the same size, and the second row is composed of specific coding holes. The upper row of (M+2) holes can be partially blocked according to different code card IDs to form different binary coding results. The holes in the lower row correspond to the authorized codes, and the movement of the laser corresponds to the changes of "0" and "1" in each bit.

[0011] The (M+2) holes in the first row are composed of 2 check bits and M data bits. The 2 check bits are located on the left and right of the card. The holes for the data bits are sandwiched between the check bits. The number of data bits can determine the number of card IDs. The data bits of the M holes correspond to 2 M The first row of holes on the code card is made of a baffle of appropriate size. According to the required code card ID, the openings that need to be blocked can be installed with baffles. When the laser passes over the code card, due to the obstruction of the baffle, the signal collection status of the current position is "1". If there is no baffle, the collected signal is "0".

[0012] Specifically, the data bit hole is blocked according to the binary number of the code card ID: "1" corresponds to blocking, and "0" corresponds to opening without blocking; when the laser passes through the code card, the code "1" corresponds to the code when the code reader receives the laser signal, and the code "0" corresponds to the code when the code reader does not receive the laser signal.

[0013] The function of the check bit is to prevent the reader from reading the wrong code bit when passing through the code card, resulting in the parsed code card ID error, affecting the on-site production efficiency. The check bit is used to check whether the collected data bits are correct. The value of the check bit is composed of the remainder obtained by (n÷4) if there are n "1"s in the binary composed of the data bits, where n≤M. The check bit value has four states: "00", "01", "10" and "11".

[0014] When making the code card, the check bit hole is divided by 4 according to the number of "1" in the binary number of the code card ID, and the remainder is converted into a binary number, and the corresponding bit hole is blocked: "1" corresponds to blocking, and "0" corresponds to open hole without blocking; after the first row of laser output by the transmitter scans the data bit, the code reader receives the laser signal to obtain the code card ID code, and verifies the number of "1" in the code card ID code through the check code.

[0015] In order to ensure the accuracy of the encoding method, the weighted code is introduced at the same time. The weighted code is obtained by the N-2 lasers in the second row of the transmitter, and when they pass through the second row of holes on the code card, an N-2-bit binary code is obtained, which is called the weighted code. The selection of the weighted code requires that in the process of the code reader passing through the code card from the outside to the code card, if it passes through the code card from left to right, first ensure that the rightmost laser in the first row of the transmitter, when it is on the check bit or any data bit, the corresponding weighted code is unique. Then, when the leftmost laser also begins to enter the code card, it is also found that the coding combination corresponding to the N-2 groups of lasers is not repeated, that is, the weighted code is unique.

[0016] Furthermore, the authorized code is a multi-bit code obtained by the code reader receiving the status of multiple groups of laser signals in the second row at a specific moment when the laser passes through the code card. The current value collected with laser signal is "0", and the current value without laser signal collection is "1". When the laser enters the code card and completely exits the code card, multiple authorized codes are obtained, corresponding to the position of each data bit of the first row of laser.

[0017] The role of the authorization code is not only to help determine whether the code reader's recognition light is on the check bit or data bit, but also because the corresponding authorization code is unique, it can improve the accuracy of the code reader's decoding and improve the accuracy of positioning. Some application sites need to perform a continuous positioning near the code card, so the concept of small address is introduced. Due to the uniqueness of the authorization code, any opening position in the first row of the code card where the laser is located can have its own independent authorization code. For example, when the result of the authorization code is "00000001", we can define the small address position as "1" at this time, and "00000011" defines the small address as "2" at this time. Therefore, this encoding method can help mobile devices to make precise position adjustments near the code card.

[0018] In some embodiments, as a preference, the binary coded data bits are 10 bits; the weighted code is 8 bits; the size of the long strip openings in the second row of the code card is such that 4 groups of second row lasers can pass through at the same time.

[0019] The present invention also provides a code card decoding method for positioning a mobile device, which decodes the binary code obtained above. The specific method is as follows: record the code card ID code obtained after the first row of laser output by the transmitter scans the code card, divide the number of "1"s in the binary code of the statistical data bit by 4, convert the remainder into a binary number, and check it with the binary code of the check bit. If they are the same, the check passes, and then convert the binary code of the data bit into a decimal value, which is the ID number of the corresponding code card; and obtain the authorized code in real time, convert it into a decimal value, and the corresponding laser is in the opening position of the first row of the code card.

[0020] Furthermore, the code card decoding method also includes determining the moving direction of the mobile device: determining the moving direction of the mobile device by the change of the authorized code.

[0021] The change of the authorization code can also help the system determine the direction of the mobile device, because the authorization code is unique and its change is fixed. For example, if the authorization code "00000001" changes to "00000011", it can be judged that the mobile device is running from left to right. Anyway, if the authorization code changes from "00000011" to "00000001", it can be judged that the mobile device is running from right to left.

[0022] Finally, when all checks and judgments are passed, the code reader will transmit the parsed code card ID plus the small address consisting of the code card location information to the control room PLC via RS485.

[0023] Compared with the prior art, the present invention has the following advantages:

[0024] 1. The laser's state at the edge of the code card and the edge of the code card opening is uncertain, which will produce countless combinations and easily produce error codes. The data bits of this design skip the edge to read the data bits, and read the data at a determined position in the middle to ensure the accuracy of the read data.

[0025] 2. The coding design with weighted bits is naturally error-proof. No matter how the laser shakes at the edge, it will not overlap with the valid coding bits, so it has natural anti-interference properties, thereby ensuring the uniqueness of the valid code.

[0026] 3. The authorization code is used to determine the data bit and is also used for small address calculation to extend the positioning range of the code card. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1The coding structure diagram of the code card of the present invention;

[0028] Figure 2 Schematic diagram of laser distribution at a certain moment;

[0029] Figure 3 Schematic diagram of the coding rules of the present invention;

[0030] Among them, 1-parity check bit high; 2-data bit; 3-parity check bit low; 4-authorized code; 5-hole in the first row of the code card; 6-hole in the second row of the code card; 7-laser. DETAILED DESCRIPTION

[0031] In order to deepen the understanding of the present invention, the present invention is further described below with reference to the accompanying drawings using 10 groups of lasers 7 and 12 openings in the first row of the code card.

[0032] like Figure 1 As shown, this code card is a universal code card. The openings 5 ​​in the first row of the code card are 12 openings of equal spacing and size, and the opening 6 in the second row of the code card is a larger opening. The coding of the code card requires the use of corresponding small baffles to cover the 12 partial openings according to actual needs. In actual production and use, different processing drawings can be designed according to the coding of different code cards, so that the required code cards can be directly obtained. The universal code card is for easy replacement on site, or you can modify several code cards you need on site. The structure of the universal code card is more convenient to understand the coding. The 12 openings in the first row of the code card, the leftmost and rightmost bits, represent the high bit 1 of the parity check bit and the low bit 3 of the parity check bit respectively. The 10 openings in the middle correspond to the data bit 2. The openings 6 in the second row of the code card, combined with the 8 groups of laser movements output by the second row of the transmitter, are combined into the authorized code 4, such as Figure 2 As shown. When the laser goes from left to right, starting from when the laser reaches the code card, the right code begins to be encoded, for example, Figure 2 The current authorization code status shown is "00011111". Figure 2 It mainly explains the distribution of the 10 groups of lasers output by the transmitter, and the moving position of the laser on the code card when the code reader is scanning the code card.

[0033] like Figure 3 As shown, in order to better illustrate the coding rule of this invention, the opening is painted black to indicate that the position of the current coding hole is blocked. Figure 3 The code card ID in the example shown is 100, and the binary corresponding to 100 is "01100100", so the data bits of the corresponding code card are from left to right, from high to low. Figure 3 The blackened data bits shown correspond to a "1" in binary. Figure 3As shown in the figure, when the two lasers on the transmitter scan the data bits, the data bit state parsed by the barcode reader should be "0001100100". At this time, there are 3 "1"s in the data bits, and the remainder of the parity check value (3÷4) is 3, that is, the corresponding parity check bit state is "11", as shown in Figure 3 In the figure, the holes for the left and right parity bits are painted black.

[0034] Figure 3 The rightmost laser in the upper middle is at the fourth data bit. The authorization code corresponding to the fourth bit is fixed. At this time, the authorization code is composed of 8 groups of laser states in the second row of the transmitter, corresponding to "11000011". Therefore, through the value of the authorization code, it can be determined that the current laser is in the data bit position, and at the same time, through the collected laser signal, it can be judged whether the current value is "0" or "1". The corresponding relationship of the authorization code has always been fixed and unique. If there is one less authorization code during the code card scanning process, the code reader will lose one data bit when decoding. At this time, the code reader will determine that the acquisition signal is abnormal, and will keep the last collected code card ID value, and will not upload the wrong value.

[0035] Since the authorization code is unique and fixed, when the laser is at any parity bit or data bit, it corresponds to its own authorization code. Through the value of the authorization code, the positions of 12 holes can be defined at the same time. For example, when the authorization code is "00000001", the position of the first hole is defined as 1. When it becomes "00000011", the position of the second hole is defined as 2. To define the position of the small hole of the code card, the small address of the code card is introduced. Since the installation position of the code card may deviate slightly from the actual positioning position of the device, it is necessary to adjust the small address when decoding the current code card ID so that the mobile device stops at the correct position.

[0036] like Figure 3 As shown, when the laser enters the code card from the left to completely exits the code card, the authorization code should start from "00000001", and then change to "00000011" in sequence. Since the authorization code is unique and fixed, the change of the authorization code can determine that the mobile device is moving from the left side of the code card to the right, so the running direction of the mobile device can be determined. Similarly, when the authorization code changes from "10000000" to "11000000", the mobile device is moving from the right side of the code card to the left.

[0037] By applying the above encoding method, a parallel code swiping and decoding method can be provided, which can ensure that the recognized code card ID is more accurate and stable, and the positioning of the mobile device is more accurate. This implementation illustrates the method of setting "0" and "1" of the code card encoding bit, and also illustrates the decoding method, both of which are within the scope of protection of this technical claim.

[0038] It should be noted that the implementation examples are not intended to limit the protection scope of the present invention, and equivalent changes or substitutions made on the basis of the above technical solution all fall within the scope of protection of the claims of the present invention.

Claims

1. A code card encoding method for positioning a mobile device, characterized in that: The code card encoding outputs two rows of lasers through a transmitter arranged at the end of the mobile device, which are transmitted to the code reader after passing through the code card, and the code reader receives the laser signal for encoding to obtain the corresponding binary code; the first row of lasers of the transmitter is two groups, and the second row of lasers is multiple groups; the binary code includes two rows of codes, the first row is the code card ID code including 2 check bits and multiple data bits, corresponding to the first row of laser signals collected; the second row is the authorized code, corresponding to the second row of laser signals collected; two rows of openings are provided on the code card, the first row of openings are the same size, symmetrically arranged along the center line of the code card and at equal intervals, and the second row has a long strip of holes extending in the running direction of the mobile device; the left and right ends of the first row of openings are respectively a check bit hole, and the middle is a plurality of data bit holes; the data bit holes are shielded according to the binary number of the code card ID for the corresponding bit holes; The check hole is blocked according to the number of "1" or "0" in the binary number of the code card ID. The number of "1" or "0" n is divided by 4, and the remainder is converted into a binary number to block the two-bit check hole.

2. The code card encoding method according to claim 1, characterized in that: The number of data bit holes M corresponds to code 2 M A code card ID.

3. The code card encoding method according to claim 2, characterized in that: The data bit hole is shielded according to the binary number of the code card ID: "1" corresponds to shielding, and "0" corresponds to unshielded opening; when the laser passes through the code card, the code "1" corresponds to receiving the laser signal by the code reader, and the code "0" corresponds to not receiving the laser signal; the check bit hole is shielded according to the number n of "1" in the binary number of the code card ID divided by 4, and the remainder is converted into a binary number: "1" corresponds to shielding, and "0" corresponds to unshielded opening; after the first row of laser output by the transmitter scans the data bit, the code reader receives the laser signal to obtain the code card ID code, and verifies the number of "1" in the code card ID code through the check code.

4. The code card encoding method according to claim 3, characterized in that: The authorized code is a multi-bit code obtained by the code reader receiving the status of multiple groups of laser signals in the second row at a specific moment when the laser passes through the code card. The current value collected with laser signal is "0", and the current value without laser signal collection is "1". When the laser enters the code card and completely exits the code card, multiple authorized codes are obtained, which correspond to the positions of the first row of lasers in each data bit.

5. The code card encoding method according to claim 4, characterized in that: The binary coded data bits are 10 bits; the weighted code is 8 bits; the size of the long strip openings in the second row of the code card is such that 4 groups of second row lasers can pass through at the same time.

6. A code card decoding method for positioning a mobile device, decoding the binary code obtained in claim 1, characterized in that: The code card decoding method is as follows: record the code card ID code obtained after the first row of laser output by the transmitter scans the code card, divide the number of "1" in the binary code of the statistical data bit by 4, convert the remainder into a binary number, and check it with the binary code of the check bit. If they are the same, the check passes, and then convert the binary code of the data bit into a decimal value, which is the ID number of the corresponding code card; and obtain the authorized code in real time, convert it into a decimal value, and the corresponding laser is at the opening position of the first row of the code card.

7. The code card decoding method according to claim 6, characterized in that: The code card decoding method also includes determining the moving direction of the mobile device: determining the moving direction of the mobile device by the change of the authorized code.

8. The code card decoding method according to claim 7, characterized in that: The data bits are 10 bits, and the weighted code is 8 bits.

9. The code card decoding method according to claim 8, characterized in that: The direction of movement of the mobile device is determined as follows: when the authorization code starts from "00000001" and then changes downward to "00000011", the movement direction of the mobile device is from the left side of the code plate to the right; when the authorization code changes from "10000000" to "11000000", the mobile device moves from the right side of the code plate to the left.