A hole scanning based positioning method
By scanning hole information in real time with an infrared scanning array and outputting coordinates, the problem of unstable positioning in existing technologies is solved, and real-time monitoring and highly stable hole positioning are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2026-04-07
AI Technical Summary
Existing technology cannot immediately obtain current location information when the system starts up. It requires moving a certain distance before the hole location can be identified, resulting in unstable positioning.
An infrared scanning array is used to scan hole information in real time, and coordinate information is output after successful identification. The scanning is continuously looped to monitor position changes, and a fault-tolerant mechanism is included to ensure identification accuracy.
It enables real-time monitoring of changes in hole position information, improves positioning stability and hardware fault tolerance, and can immediately obtain absolute position.
Smart Images

Figure CN116164646B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer coding, and in particular to a positioning method based on hole scanning. Background Technology
[0002] Existing solutions typically use a pair of infrared receivers to scan the perforation information on the perforation strip. When the system starts up, it cannot immediately obtain the current position information; the perforation strip needs to move a certain distance to collect enough perforation information before the current position can be determined. Therefore, a positioning method based on perforation scanning is needed to improve stability by monitoring changes in the current perforation position information in real time. Summary of the Invention
[0003] The purpose of this invention is to provide a positioning method based on hole scanning, which can monitor changes in the current hole position information in real time to improve stability.
[0004] To achieve the above objectives, this invention provides a positioning method based on hole scanning, comprising the following steps:
[0005] S1. Power on the system and start it up;
[0006] S2. The infrared scanning array in the system begins scanning within the scanning area and acquires hole information;
[0007] S3. The hole information was successfully identified;
[0008] S4. Output coordinate information;
[0009] S5. Based on the output of the coordinate information, the infrared scanning array continuously scans the scanning area and acquires the hole information and outputs the coordinate information.
[0010] Furthermore, step S3 also includes re-scanning the scanning area and obtaining the hole information again by means of the infrared scanning array if the hole information is incorrectly identified.
[0011] Furthermore, the system includes a scanning receiving light and a scanning transmitting light, both of which are located within the scanning area.
[0012] Furthermore, the aperture information includes the absolute position of the scanning area on the aperture strip.
[0013] Furthermore, the aperture band includes multiple aperture coding segments.
[0014] Furthermore, the hole coding segment includes a starting square hole and a coding square hole.
[0015] Furthermore, the hole coding segment scans the position of the starting square hole using the infrared scanning array.
[0016] Furthermore, a certain distance is maintained between the starting square hole and the encoding square hole.
[0017] Furthermore, the coded square hole is encoded by either perforation or non-perforation.
[0018] Furthermore, the infrared scanning array slides on the hole strip and uses infrared beam scanning to determine whether there are holes in the hole coding segment, and identifies the actual coding of the hole coding segment.
[0019] Through the above technical solution, the present invention has the following beneficial effects:
[0020] This invention involves powering on and starting the system; the infrared scanning array within the system begins scanning within the scanning area and acquiring hole information; once the hole information is successfully identified, coordinate information is output; based on the output of coordinate information, the infrared scanning array continuously and cyclically scans for hole information within the scanning area and outputs coordinate information, enabling real-time monitoring of changes in the current hole position information to improve stability.
[0021] In addition, by scanning with an infrared scanning array to obtain hole information within the scanning area, the absolute position of the current scanning area on the hole strip can be obtained immediately, which has the characteristics of high fault tolerance and high hardware stability. Attached Figure Description
[0022] Figure 1 This is a flowchart of the positioning method based on hole scanning in an embodiment of the present invention;
[0023] Figure 2 This is a schematic diagram illustrating how the coded square hole is encoded using perforated and non-perforated methods in the hole scanning-based positioning method of this invention.
[0024] Figure 3 This is a schematic diagram of the actual encoding of the hole coding segment identified by the infrared scanning array in the hole scanning-based positioning method in an embodiment of the present invention;
[0025] Figure 4 This is a schematic diagram of the current position of the infrared scanning array on the aperture strip in the positioning method based on aperture scanning in an embodiment of the present invention. Detailed Implementation
[0026] The following will describe in more detail a positioning method based on aperture scanning according to the present invention with reference to the schematic diagrams, which illustrate preferred embodiments of the invention. It should be understood that those skilled in the art can modify the invention described herein while still achieving its advantageous effects. Therefore, the following description should be understood as being of general knowledge to those skilled in the art and is not intended to limit the invention.
[0027] The invention is described more specifically by way of example in the following paragraphs with reference to the accompanying drawings. The advantages and features of the invention will become clearer from the following description and claims. It should be noted that the drawings are in a very simplified form and use non-precise proportions, and are only used to facilitate and clarify the illustration of the embodiments of the invention.
[0028] This embodiment provides a positioning method based on hole scanning. Please refer to [link / reference]. Figure 1-4 As shown, it includes the following steps:
[0029] S1. Power on the system and start it up;
[0030] S2. The infrared scanning array in the system begins scanning within the scanning area and acquires hole information;
[0031] S3. The hole information was successfully identified;
[0032] S4. Output coordinate information;
[0033] S5. Based on the output of the coordinate information, the infrared scanning array continuously scans the scanning area and acquires the hole information and outputs the coordinate information.
[0034] In this embodiment, step S3 further includes re-scanning the scanning area and obtaining the hole information again by means of the infrared scanning array when the hole information is incorrectly identified.
[0035] In addition, the system includes a scanning receiver lamp 4 and a scanning transmitter lamp 5, both of which are located within the scanning area.
[0036] In this embodiment, the aperture information includes the absolute position of the scanning area on the aperture band 3. The aperture band 3 includes multiple aperture coding segments. Further, each aperture coding segment includes a starting square aperture 1 and a coding square aperture 2.
[0037] In one specific example, a certain distance is maintained between the starting square hole 1 and the encoding square hole 2. Furthermore, there are multiple starting square holes 1 and multiple encoding square holes 2.
[0038] In addition, it is possible to Figure 2As shown, the coded square hole 2 is encoded by both perforation and non-perforation methods, which improves the applicability of this method.
[0039] In this embodiment, it can be as follows Figure 3 As shown, the infrared scanning array slides on the perforated strip 3. Since the perforated coding segment is encoded by whether it is perforated or not, the infrared scanning array can scan through infrared beams to determine whether the perforated coding segment is perforated and identify the actual encoding of the perforated coding segment. The infrared scanning array also includes a control circuit, and its length is a predetermined length.
[0040] Furthermore, the aperture coding segment scans the position of the initial square aperture 1 using the infrared scanning array. This facilitates the calculation of the offset of the initial square aperture 1 relative to the infrared scanning array. Combined with the actual position of the aperture coding segment, this gives the current position of the infrared scanning array on the aperture strip 3. Figure 4 As shown, the infrared scanning array is located at aperture band 3Pn-L. Since each code on aperture band 3 is unique, it is only necessary to know the specific position of each aperture code segment on aperture band 3.
[0041] In another specific example, the encoding rules may include: basic structure, encoding area rules, and interval encoding rules. Specifically, the basic structure includes: the starting area of the aperture band 3 must be an interval area; the scanning light curtain can only correctly recognize the encoding area values before and after the interval area after recognizing it. The encoding area rules include: the encoding area consists of multiple circles with a diameter between 4 and 7 mm and a center-to-center spacing between 16 and 19 mm. For example, the encoding area consists of ten circles with a diameter of 5.9 mm and a center-to-center spacing of 17.7 mm, that is, the length of a single encoding area is 5.9 / 2 + 17.7*9 + 5.9 / 2 = 165.2 mm; where solid circles represent 0 and hollow circles represent 1, so ten circles can represent ten binary bits; the first encoding area is ten solid circles, that is, 00 0000 0000 represents the value 0, and the second encoding area is nine solid circles plus one hollow circle, that is, 00 0000 0001 represents the value 1. The nth encoding area consists of a combination of solid and hollow circles corresponding to the binary representation of the number n, and so on. The last encoding area, the 0x3FF encoding area, consists of ten hollow circles, i.e., 11 1111 1111, representing the value 1023. Furthermore, the values represented by adjacent encoding areas must also be adjacent. The interval encoding rules include: the interval area consists of a hollow rectangle 16-19 mm wide and solid areas 10-13 mm wide on both sides. For example, an interval area consists of a hollow rectangle 17.7 mm wide and solid areas 11.8 mm wide on both sides. The length of a single encoding area is 11.8 + 17.7 + 11.8 = 41.3 mm, and each interval area is identical.
[0042] In this embodiment, the system is first powered on and started; the infrared scanning array in the system begins to scan and acquire hole information within the scanning area; when the hole information is successfully identified, coordinate information is output; when the hole information is incorrectly identified, the infrared scanning array is used again to scan and acquire hole information within the scanning area; based on the output of coordinate information, the infrared scanning array continuously cycles through the scanning area to scan hole information and output coordinate information.
[0043] In summary, this invention enables the system to be powered on and started; the infrared scanning array within the system begins scanning within the scanning area and acquires hole information; once the hole information is successfully identified, coordinate information is output; based on the output of coordinate information, the infrared scanning array continuously and cyclically scans for hole information within the scanning area and outputs coordinate information, thereby enabling real-time monitoring of changes in the current hole position information and improving stability.
[0044] In addition, by scanning with an infrared scanning array to obtain hole information within the scanning area, the absolute position of the current scanning area on the hole strip can be obtained immediately, which has the characteristics of high fault tolerance and high hardware stability.
[0045] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A positioning method based on hole scanning, characterized in that, Includes the following steps: S1. Power on the system and start it up; S2. The infrared scanning array within the system begins scanning within the scanning area and acquires aperture information; the system includes a scanning receiving lamp and a scanning emitting lamp, both of which are located within the scanning area; the aperture information includes the absolute position of the scanning area on the aperture strip; the aperture strip includes multiple aperture coding segments, each of which includes a starting square aperture and a coded square aperture; the coded square aperture is coded using both perforated and non-perforated methods; The infrared scanning array slides on the perforated strip, and the infrared scanning array scans through infrared beams to determine whether there are perforations on the perforated coding segment, and identifies the actual coding of the perforated coding segment; The hole coding segment scans the position of the starting square hole through the infrared scanning array, calculates the offset of the starting square hole relative to the infrared scanning array, and adds the actual position of the hole coding segment to obtain the current position of the infrared scanning array on the hole strip. S3. The hole information was successfully identified; S4. Output coordinate information; S5. Based on the output of the coordinate information, the infrared scanning array continuously scans the scanning area and acquires the hole information and outputs the coordinate information.
2. The positioning method based on hole scanning as described in claim 1, characterized in that, Step S3 further includes re-scanning the scanning area and obtaining the hole information again by means of the infrared scanning array if the hole information is incorrectly identified.
3. The positioning method based on hole scanning as described in claim 1, characterized in that, A certain distance is maintained between the starting square hole and the encoding square hole.
Citation Information
Patent Citations
DEVICE FOR DETERMINING THE POSITION OF A TAPE WITH RESPECT TO A SCANNING DEVICE.
CH553963A
Method of motor positioning by using novel encoder structure
CN107356274A