CN106556311B - Intelligent measuring tape with switch and data acquisition method thereof - Google Patents

Intelligent measuring tape with switch and data acquisition method thereof Download PDF

Info

Publication number
CN106556311B
CN106556311B CN201510634118.4A CN201510634118A CN106556311B CN 106556311 B CN106556311 B CN 106556311B CN 201510634118 A CN201510634118 A CN 201510634118A CN 106556311 B CN106556311 B CN 106556311B
Authority
CN
China
Prior art keywords
infrared transceiver
gray code
tape measure
tape
code channel
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.)
Expired - Fee Related
Application number
CN201510634118.4A
Other languages
Chinese (zh)
Other versions
CN106556311A (en
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.)
Chit Wing Technology Group Co ltd
Original Assignee
Chit Wing Technology Group 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 Chit Wing Technology Group Co ltd filed Critical Chit Wing Technology Group Co ltd
Priority to CN201510634118.4A priority Critical patent/CN106556311B/en
Publication of CN106556311A publication Critical patent/CN106556311A/en
Application granted granted Critical
Publication of CN106556311B publication Critical patent/CN106556311B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

本发明公开了一种带开关的智能卷尺及其数据读取方法,通过将格雷码直接设置在卷尺带上,且卷尺带上按指定周期重复设置格雷码,而不是通过印制格雷码盘并设置在智能卷尺本体内,减小了智能卷尺的体积;同时,一个周期内的每一格雷码具有一定宽度的黑码或白码,可通过读取装置读取卷尺带上的格雷码,取代了传统的刻度读取方式,增强了读数的稳定性。由于还设置了控制红外收发装置开启或关闭的开关装置,所述红外收发装置只在打开开关时才上电工作,而且卷尺带两侧的红外读取装置是分时打开,而不是同时打开,节省了电能。

Figure 201510634118

The present invention discloses an intelligent tape measure with a switch and a data reading method thereof. By directly setting a Gray code on the tape measure, and repeatedly setting the Gray code on the tape measure according to a specified period, rather than printing a Gray code disk and setting it in the intelligent tape measure body, the volume of the intelligent tape measure is reduced; at the same time, each Gray code in a period has a black code or a white code of a certain width, and the Gray code on the tape measure can be read by a reading device, replacing the traditional scale reading method, and enhancing the stability of the reading. Since a switch device for controlling the opening or closing of an infrared transceiver is also provided, the infrared transceiver is powered on and works only when the switch is turned on, and the infrared reading devices on both sides of the tape measure are turned on in time-sharing mode, rather than turned on at the same time, thereby saving electric energy.

Figure 201510634118

Description

一种带开关的智能卷尺及其数据获取方法A kind of intelligent tape measure with switch and its data acquisition method

技术领域technical field

本发明涉及智能卷尺技术领域,尤其涉及的是一种带开关的智能卷尺及其数据获取方法。The invention relates to the technical field of intelligent tape measures, in particular to an intelligent tape measure with a switch and a data acquisition method thereof.

背景技术Background technique

格雷码属于可靠性编码,是一种错误最小化的编码方式。因为,虽然自然二进制码可以直接由数/模转换器转换成模拟信号,但在某些情况,例如从十进制的3转换为4时二进制码的每一位都要变,能使数字电路产生很大的尖峰电流脉冲。而格雷码则没有这一缺点,它在相邻位间转换时,只有一位产生变化。它大大地减少了由一个状态到下一个状态时逻辑的混淆。由于这种编码相邻的两个码组之间只有一位不同,因而在用于方向的直线位移量-数字量的转换中,当直线位移量发生微小变化(而可能引起数字量发生变化时,格雷码仅改变一位,这样与其它编码同时改变两位或多位的情况相比更为可靠,即可减少出错的可能性。Gray code belongs to reliability coding and is an error-minimizing coding method. Because, although the natural binary code can be directly converted into an analog signal by a digital-to-analog converter, in some cases, such as converting from decimal 3 to 4, every bit of the binary code must be changed, which can make the digital circuit produce very Large spike current pulses. The Gray code does not have this disadvantage. When it is converted between adjacent bits, only one bit changes. It greatly reduces the confusion of logic when going from one state to the next. Since there is only one bit difference between the two adjacent code groups of this encoding, in the conversion of the linear displacement amount for the direction to the digital amount, when the linear displacement amount changes slightly (and may cause the digital amount to change) , the Gray code only changes one bit, which is more reliable than the situation where other codes change two or more bits at the same time, which can reduce the possibility of errors.

现有技术中多采用格雷码盘用于检测或计数,在编码器或电刷装置读取格雷码盘时常会出现跳刷或漏刷的现象,即由于电刷装置转速过快,出现电刷装置弹跳过某个格雷码,导致计数错误的现象,不利于格雷码的使用。同时,将格雷码盘设置在智能卷尺本体内占用较大内部空间,使得装置体积较大。而且,现有技术中的智能卷尺都是无节电功能的智能卷尺。In the prior art, gray code disks are mostly used for detection or counting. When the encoder or the brush device reads the gray code disk, the phenomenon of brush skipping or brush leakage often occurs, that is, because the speed of the brush device is too fast, the brushes appear. The device bounces over a certain Gray code, resulting in a wrong count, which is not conducive to the use of the Gray code. At the same time, arranging the Gray code disc in the smart tape measure body occupies a large internal space, making the device larger. Moreover, the smart tape measures in the prior art are all smart tape measures without power saving function.

因此,现有技术还有待于改进和发展。Therefore, the existing technology still needs to be improved and developed.

发明内容SUMMARY OF THE INVENTION

鉴于上述现有技术的不足,本发明的目的在于提供一种带开关的智能卷尺,旨在解决现有技术中在卷尺带上印制长度刻度时读数易产生误差,或是在卷尺内部设置格雷码盘导致装置体积较大,同时智能卷尺无节电功能的缺陷。In view of the above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide an intelligent tape measure with a switch, which aims to solve the problem that in the prior art, when the length scale is printed on the tape measure tape in the prior art, the reading error is prone to occur, or the gray scale is arranged inside the tape measure. The code disc causes the device to be bulky, and the smart tape measure has no power-saving feature.

本发明的技术方案如下:The technical scheme of the present invention is as follows:

一种带开关的智能卷尺,其中,包括智能卷尺本体,及设置在所述智能卷尺本体内并可抽出的卷尺带,所述卷尺带的正面和背面均设置至少一个格雷码道,所述格雷码道中的格雷码按指定周期重复设置;所述智能卷尺本体内还设置有与格雷码道一一对应、用于读取格雷码道中格雷码的红外收发装置组,及用于控制所述红外收发装置组开启或关闭的开关装置,所述开关装置与所述红外收发装置组电连接;所述开关装置为按钮开关或拨动开关;所述红外收发装置组包括与所述卷尺带正面格雷码道正对的低位红外收发装置组,和与所述卷尺带背面格雷码道正对的高位红外收发装置组;所述低位红外收发装置组在开关装置置于开启状态时开启,所述高位红外收发装置组保持待机或关闭状态。A smart tape measure with a switch, which includes a smart tape measure body, and a tape measure tape which is arranged in the smart tape measure body and can be drawn out. The Gray code in the code channel is repeatedly set according to a specified period; the intelligent tape measure body is also provided with an infrared transceiver group corresponding to the Gray code channel one-to-one, for reading the Gray code in the Gray code channel, and for controlling the infrared A switch device for turning on or off the transceiver group, the switch device is electrically connected with the infrared transceiver group; the switch device is a button switch or a toggle switch; the infrared transceiver group includes a grayscale on the front of the tape measure tape The low-position infrared transceiver device group is directly opposite to the code channel, and the high-position infrared transceiver device group is directly opposite to the Gray code channel on the back of the tape measure tape; the low-position infrared transceiver device group is turned on when the switch device is turned on, and the high-position infrared transceiver device group is turned on. The IR transceiver group remains on standby or off.

所述带开关的智能卷尺,其中,所述卷尺带的正面和背面均从下至上设置有3个格雷码道。In the smart tape measure with switch, the front and back surfaces of the tape measure are provided with 3 Gray code channels from bottom to top.

所述带开关的智能卷尺,其中,所述卷尺带的正面设置低三位格雷码道,分别为第一位格雷码道、第二位格雷码道及第三位格雷码道。The smart tape measure with switch, wherein, the front of the tape measure tape is provided with three lower gray code channels, which are the first gray code channel, the second gray code channel, and the third gray code channel.

所述带开关的智能卷尺,其中,所述智能卷尺本体内正对卷尺带正面的一侧设置的低位红外收发装置组包括3个红外收发装置,分别为第一红外收发装置、第二红外收发装置及第三红外收发装置;其中,所述第一红外收发装置正对所述第一位格雷码道,所述第二红外收发装置正对所述第二位格雷码道,所述第三红外收发装置正对所述第三位格雷码道。The smart tape measure with switch, wherein the low-position infrared transceiver device group disposed on the side of the smart tape measure body facing the front of the tape measure tape includes three infrared transceiver devices, which are a first infrared transceiver device and a second infrared transceiver device. device and a third infrared transceiver; wherein, the first infrared transceiver is facing the first Gray code channel, the second infrared transceiver device is facing the second Gray code channel, the third The infrared transceiver is facing the third Gray code channel.

所述带开关的智能卷尺,其中,所述第一红外收发装置在开关装置置于打开状态时开启,所述第二红外收发装置及第三红外收发装置保持待机或关闭状态。In the smart tape measure with switch, the first infrared transceiver is turned on when the switch is turned on, and the second infrared transceiver and the third infrared transceiver remain in a standby or off state.

所述带开关的智能卷尺,其中,所述卷尺带的背面设置高三位格雷码道,分别为第四位格雷码道、第五位格雷码道及第六位格雷码道。In the smart tape measure with switch, wherein, the back of the tape measure tape is provided with gray code channels with high three digits, which are respectively the fourth gray code channel, the fifth gray code channel and the sixth gray code channel.

所述带开关的智能卷尺,其中,所述智能卷尺本体内正对卷尺带背面的一侧设置的高位红外收发装置组包括3个红外收发装置,分别为第四红外收发装置、第五红外收发装置及第六红外收发装置;其中,所述第四红外收发装置正对所述第四位格雷码道,所述第五红外收发装置正对所述第五位格雷码道,所述第六红外收发装置正对所述第六位格雷码道。The smart tape measure with switch, wherein, the high-level infrared transceiver device group disposed on the side of the smart tape measure body facing the back of the tape measure tape includes 3 infrared transceiver devices, which are the fourth infrared transceiver device and the fifth infrared transceiver device. device and a sixth infrared transceiver; wherein, the fourth infrared transceiver is facing the fourth Gray code channel, the fifth infrared transceiver device is facing the fifth Gray code channel, the sixth The infrared transceiver device is facing the sixth Gray code channel.

一种带开关的智能卷尺的数据获取方法,其中,包括以下步骤:A data acquisition method for a smart tape measure with a switch, comprising the following steps:

A、当检测到开关装置处于打开状态时,则与所述卷尺带正面格雷码道正对的低位红外收发装置组开启,并实时检测低位红外收发装置组是否有脉冲产生;A. When it is detected that the switch device is in an open state, the low-level infrared transceiver group that is directly opposite to the gray code channel on the front of the tape measure tape is turned on, and real-time detection of whether the low-level infrared transceiver group has pulse generation;

B、当检测到低位红外收发装置组的低位脉冲时,则所述低位红外收发装置组及所述高位红外收发装置组均开启,并在卷尺带被抽动时实时读取卷尺带格雷码道上的读数;B. When the low-level pulse of the low-level infrared transceiver group is detected, the low-level infrared transceiver group and the high-level infrared transceiver group are both turned on, and when the tape measure tape is twitched, the real-time reading of the tape measure on the Gray code track reading;

C、当检测卷尺带由抽动状态变为静止状态时,根据所述低位红外收发装置组获取的第一当前读数,及所述高位红外收发装置组获取的第二当前读数,获取智能卷尺的当前读数。C. When detecting that the tape measure tape changes from a twitching state to a static state, obtain the current reading of the smart tape measure according to the first current reading obtained by the low-level infrared transceiver group and the second current reading obtained by the high-level infrared transceiver group. reading.

有益效果:本发明所述的带开关的智能卷尺及其数据读取方法,通过将格雷码直接设置在卷尺带上,且卷尺带上按指定周期重复设置格雷码,而不是通过印制格雷码盘并设置在智能卷尺本体内,减小了智能卷尺的体积;同时,一个周期内的每一格雷码具有一定宽度的黑码或白码,可通过读取装置读取卷尺带上的格雷码,取代了传统的刻度读取方式,增强了读数的稳定性。由于还设置了控制红外收发装置开启或关闭的开关装置,所述红外收发装置只在打开开关时才上电工作,而且卷尺带两侧的红外读取装置是分时打开,而不是同时打开,节省了电能。Beneficial effects: The intelligent tape measure with switch and the data reading method thereof of the present invention directly set the Gray code on the tape measure tape, and repeatedly set the Gray code on the tape measure tape according to a specified period, instead of printing the Gray code The disc is arranged in the body of the smart tape measure, reducing the volume of the smart tape measure; at the same time, each Gray code in a cycle has a black code or white code with a certain width, and the Gray code on the tape measure can be read by the reading device. , which replaces the traditional scale reading method and enhances the stability of the reading. Since a switch device for controlling the opening or closing of the infrared transceiver is also provided, the infrared transceiver can only be powered on when the switch is turned on, and the infrared reading devices on both sides of the tape measure are opened at different times, not at the same time. Electricity is saved.

附图说明Description of drawings

图1为本发明所述带开关的智能卷尺较佳实施例的结构示意图。FIG. 1 is a schematic structural diagram of a preferred embodiment of the smart tape measure with switch according to the present invention.

图2为本发明所述带开关的智能卷尺较佳实施例的爆炸图。FIG. 2 is an exploded view of a preferred embodiment of the smart tape measure with switch according to the present invention.

图3为本发明所述带开关的智能卷尺较佳实施例中卷尺带正面的示意图。FIG. 3 is a schematic diagram of the front side of the tape measure in the preferred embodiment of the smart tape measure with switch according to the present invention.

图4为本发明所述带开关的智能卷尺较佳实施例中卷尺带背面的示意图。4 is a schematic diagram of the back of the tape measure in the preferred embodiment of the smart tape measure with switch according to the present invention.

图5为本发明所述带开关的智能卷尺的数据读取方法较佳实施例的流程图。FIG. 5 is a flow chart of a preferred embodiment of the data reading method of the smart tape measure with switch according to the present invention.

具体实施方式Detailed ways

本发明提供一种带开关的智能卷尺及其数据读取方法,为使本发明的目的、技术方案及效果更加清楚、明确,以下对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention provides an intelligent tape measure with a switch and a data reading method thereof. In order to make the purpose, technical solutions and effects of the present invention clearer and clearer, the present invention is further described below in detail. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

请同时参见图1-图2,其中图1是本发明所述带开关的智能卷尺较佳实施例的结构示意图,图2是本发明所述带开关的智能卷尺较佳实施例的爆炸图,所述基于带开关的智能卷尺,包括智能卷尺本体100,及设置在所述智能卷尺本体100内并可抽出的卷尺带200,所述卷尺带200的正面和背面均设置至少一个格雷码道210,所述格雷码道210中的格雷码按指定周期重复设置;所述智能卷尺本体100内还设置有与格雷码道一一对应、用于读取格雷码道210中格雷码的红外收发装置组300,及用于控制所述红外收发装置组300开启或关闭的开关装置400,所述开关装置400与所述红外收发装置组300电连接;所述开关装置400为按钮开关或拨动开关;所述红外收发装置组300包括与所述卷尺带正面格雷码道210正对的低位红外收发装置组,和与所述卷尺带背面格雷码道210正对的高位红外收发装置组;所述低位红外收发装置组在开关装置400置于开启状态时开启,所述高位红外收发装置组保持待机或关闭状态。Please refer to FIGS. 1-2 at the same time, wherein FIG. 1 is a schematic structural diagram of a preferred embodiment of the smart tape measure with a switch according to the present invention, and FIG. 2 is an exploded view of the preferred embodiment of the smart tape measure with a switch according to the present invention, The smart tape measure based on the tape switch includes a smart tape measure body 100, and a tape measure tape 200 that is arranged in the smart tape measure body 100 and can be drawn out. The front and back of the tape measure tape 200 are provided with at least one Gray code channel 210. , the Gray code in the Gray code channel 210 is repeatedly set according to a specified period; the smart tape measure body 100 is also provided with an infrared transceiver device corresponding to the Gray code channel one-to-one and used for reading the Gray code in the Gray code channel 210 A group 300, and a switch device 400 for controlling the opening or closing of the infrared transceiver device group 300, the switch device 400 is electrically connected to the infrared transceiver device group 300; the switch device 400 is a button switch or a toggle switch ; The infrared transceiver group 300 includes a low-level infrared transceiver group that is directly opposite to the Gray code channel 210 on the front of the tape measure, and a high-level infrared transceiver group that is directly opposite to the Gray code channel 210 on the back of the tape measure; the The low-level infrared transceiver group is turned on when the switch device 400 is turned on, and the high-level infrared transceiver group remains in a standby or off state.

当用户需使用所述带开关的智能卷尺进行长度测量时,则将所述开关装置400打到“ON”状态,从而使得所述红外收发装置组300中的低位红外收发装置组打开,当检测到低位红外收发装置组中有脉冲产生时,则所述低位红外收发装置组及所述高位红外收发装置组均开启,此时所述红外收发装置组300可向卷尺带200上发送红外光,并同时接收卷尺带200反射回来的光线,从而读取所述卷尺带200上格雷码对应的长度值。当用户无需再使用所述带开关的智能卷尺进行测量时,则将所述开关装置400打到“OFF”状态,从而使得所述红外收发装置组300关闭或进入待机状态,从而节省了电能。When the user needs to use the smart tape measure with switch to measure the length, the switch device 400 is turned to the "ON" state, so that the low-level infrared transceiver group in the infrared transceiver group 300 is turned on. When a pulse is generated in the low-level infrared transceiver device group, the low-level infrared transceiver device group and the high-level infrared transceiver device group are both turned on. At this time, the infrared transceiver device group 300 can send infrared light to the tape measure tape 200. At the same time, the light reflected by the tape measure tape 200 is received, so as to read the length value corresponding to the Gray code on the tape measure tape 200 . When the user does not need to use the smart tape measure with switch for measurement, the switch device 400 is turned to the "OFF" state, so that the infrared transceiver group 300 is turned off or enters the standby state, thereby saving power.

具体实施时,所述智能卷尺本体100上还设置有用于显示智能卷尺的实时读数和状态的显示屏;所述智能卷尺本体100内还设置有用于将智能卷尺的数据发送至移动终端或接收移动终端发送数据的无线收发模块;所述智能卷尺本体100内还设置有用于供电的电源。更具体的,所述显示屏为E-ink显示屏、TN显示屏、STN显示屏或TFT显示屏;所述无线收发模块为蓝牙模块。During specific implementation, the smart tape measure body 100 is also provided with a display screen for displaying the real-time reading and status of the smart tape measure; A wireless transceiver module for the terminal to send data; the smart tape measure body 100 is also provided with a power supply for power supply. More specifically, the display screen is an E-ink display screen, a TN display screen, an STN display screen or a TFT display screen; the wireless transceiver module is a Bluetooth module.

进一步的,如图3和图4所示,所述卷尺带200的正反两面均设置有至少一个直线型的格雷码道210,所述格雷码道210上设置有多个计数格雷码。具体实施时,如图1和图2所示,所述智能卷尺本体100上设置有卷尺带出口110,所述智能卷尺本体100内靠近卷尺带出口110的位置处设置有与所述格雷码道210一一对应的红外收发装置组300。Further, as shown in FIG. 3 and FIG. 4 , at least one linear Gray code channel 210 is disposed on both the front and back sides of the tape measure tape 200 , and a plurality of counting Gray codes are disposed on the Gray code channel 210 . During specific implementation, as shown in FIGS. 1 and 2 , the smart tape measure body 100 is provided with a tape measure tape outlet 110 , and a position close to the tape measure tape outlet 110 in the smart tape measure body 100 is provided with a gray code channel 210 correspond to the infrared transceiver device group 300 one-to-one.

由于将所有格雷码道210均设置在卷尺带200的同一面会增大卷尺带200的宽度,即增大卷尺带出口110的高度,也就是增加了智能卷尺本体100的厚度,从而增大了整个智能卷尺的体积,不便于用户携带。Since all the Gray code channels 210 are arranged on the same side of the tape measure tape 200, the width of the tape measure tape 200 will be increased, that is, the height of the tape measure tape outlet 110 will be increased, that is, the thickness of the smart tape measure body 100 will be increased, thereby increasing the overall The volume of the smart tape measure is inconvenient for users to carry.

若将格雷码道210设置在卷尺带200的两面时,则可降低卷尺带200的宽度,有利于减小智能卷尺的体积,便于用户携带。If the Gray code channel 210 is arranged on both sides of the tape measure tape 200, the width of the tape measure tape 200 can be reduced, which is beneficial to reduce the volume of the smart tape measure and is convenient for the user to carry.

例如,当卷尺带200上共设置有6个格雷码道210时,可在正面设置N个格雷码道(其中1≤N≤6,且N为正整数),在背面设置(6-N)个格雷码道。由于每一格雷码道210的高度均相等且是固定值,卷尺带200同一面的格雷码道210的高度之和等于卷尺带200的宽度,故当卷尺带200正面的格雷码道210的个数与卷尺带200背面的格雷码道210的个数相差1个或完全相等时,可将卷尺带200的宽度降至最低值。For example, when a total of 6 Gray code channels 210 are arranged on the tape measure 200, N Gray code channels (where 1≤N≤6, and N is a positive integer) can be arranged on the front side, and (6-N) can be arranged on the back side. Gray code. Since the height of each Gray code channel 210 is the same and a fixed value, the sum of the heights of the Gray code channels 210 on the same side of the tape measure tape 200 is equal to the width of the tape measure tape 200 , so when the number of gray code channels 210 on the front side of the tape measure tape 200 is equal to the width of the tape measure tape 200 When the number differs from the number of the Gray code channels 210 on the back of the tape measure 200 by one or is completely equal, the width of the tape measure tape 200 can be reduced to a minimum value.

优选的,如图3和图4所示,所述卷尺带200的正面及背面均从下至上设置有3个格雷码道210;所述卷尺带200的正面设置低三位格雷码道,分别为第一位格雷码道211、第二位格雷码道212及第三位格雷码道213;所述卷尺带200的背面设置高三位格雷码道,分别为第四位格雷码道214、第五位格雷码道215及第六位格雷码道216。Preferably, as shown in FIG. 3 and FIG. 4 , the front and back of the tape measure 200 are provided with three Gray code channels 210 from bottom to top; The first gray code channel 211 , the second gray code channel 212 and the third gray code channel 213 The five-digit Gray-coded channel 215 and the sixth-digit Gray-coded channel 216 .

在具体实施时,如图3所示,所述第一位格雷码道211上设置有黑白依次交替出现的第一位格雷码道黑码和第一位格雷码道白码,所述第一位格雷码道黑码的最大宽度为2mm。如图4所示,所述第四位格雷码道214上设置有黑白依次交替出现的第四位格雷码道黑码和第四位格雷码道白码,所述第四位格雷码道黑码的最大宽度为16mm。当将所述第一位格雷码道黑码的最大宽度设置为2mm时,则第六位格雷码道216中每一长度周期为64mm(即在同一周期内只出现一次黑码,也只出现一次白码),也即卷尺带200中设置6位格雷码的重复周期LT为64mm。同理,当将所述第一位格雷码道黑码的最大宽度设置为4mm时,6位格雷码的重复周期LT为128mm。由于当在卷尺带200上设置了6个格雷码道,且将6位格雷码的重复周期LT为64mm时,已经能满足用户按各种速度抽取所述卷尺带200时,不会使红外收发装置组300漏掉统计重复周期LT重复出现的次数,故具体实施时将6位格雷码的重复周期LT设置为64mm即可。In specific implementation, as shown in FIG. 3 , the first gray code channel 211 is provided with the first gray code channel black code and the first gray code channel white code that alternately appear in black and white. The maximum width of the black code of the bit Gray code channel is 2mm. As shown in FIG. 4 , the fourth gray code channel 214 is provided with a fourth gray code channel black code and a fourth gray code channel white code that alternately appear in black and white, and the fourth gray code channel black code The maximum width of the yard is 16mm. When the maximum width of the black code of the first gray code track is set to 2 mm, each length period of the sixth gray code channel 216 is 64 mm (that is, the black code appears only once in the same cycle, and only One time white code), that is, the repetition period L T of the 6-digit Gray code set in the tape measure tape 200 is 64mm. Similarly, when the maximum width of the black code of the first gray code channel is set to 4 mm, the repetition period L T of the 6-digit Gray code is 128 mm. Since 6 Gray code tracks are set on the tape measure tape 200 and the repetition period L T of the 6-digit Gray code is 64 mm, it is already sufficient for the user to extract the tape measure tape 200 at various speeds without causing infrared rays The transceiver group 300 misses the count of the number of repetitions of the repetition period LT . Therefore, the repetition period LT of the 6-bit Gray code can be set to 64 mm in specific implementation.

为了更清楚的说明本发明中卷尺带200上6位格雷码的设置方式,下面通过如表1-表4所示的6位格雷码表及图3和图4来进一步说明。In order to illustrate the setting method of the 6-digit Gray code on the tape measure tape 200 in the present invention more clearly, further description is given below through the 6-digit Gray code table as shown in Table 1-Table 4 and FIG. 3 and FIG. 4 .

序号serial number 6位格雷码6 bit Gray code 高3位对应十进制数The upper 3 bits correspond to the decimal number 低3位对应十进制数The lower 3 bits correspond to the decimal number 序号serial number 6位格雷码6 bit Gray code 高3位对应十进制数The upper 3 bits correspond to the decimal number 低3位对应十进制数The lower 3 bits correspond to the decimal number 11 000000000000 00 00 99 001100001100 11 77 22 000001000001 00 11 1010 001101001101 11 66 33 000011000011 00 22 1111 001111001111 11 55 44 000010000010 00 33 1212 001110001110 11 44 55 000110000110 00 44 1313 001010001010 11 33 66 000111000111 00 55 1414 001011001011 11 22 77 000101000101 00 66 1515 001001001001 11 11 88 000100000100 00 77 1616 001000001000 11 00

表1Table 1

序号serial number 6位格雷码6 bit Gray code 高3位对应十进制数The upper 3 bits correspond to the decimal number 低3位对应十进制数The lower 3 bits correspond to the decimal number 序号serial number 6位格雷码6 bit Gray code 高3位对应十进制数The upper 3 bits correspond to the decimal number 低3位对应十进制数The lower 3 bits correspond to the decimal number 1717 011000011000 22 00 2525 010100010100 33 77 1818 011001011001 22 11 2626 010101010101 33 66 1919 011011011011 22 22 2727 010111010111 33 55 2020 011010011010 22 33 2828 010110010110 33 44 21twenty one 011110011110 22 44 2929 010010010010 33 33 22twenty two 011111011111 22 55 3030 010011010011 33 22 23twenty three 011101011101 22 66 3131 010001010001 33 11 24twenty four 011100011100 22 77 3232 010000010000 33 00

表2Table 2

序号serial number 6位格雷码6 bit Gray code 高3位对应十进制数The upper 3 bits correspond to the decimal number 低3位对应十进制数The lower 3 bits correspond to the decimal number 序号serial number 6位格雷码6 bit Gray code 高3位对应十进制数The upper 3 bits correspond to the decimal number 低3位对应十进制数The lower 3 bits correspond to the decimal number 3333 110000110000 44 00 4141 111100111100 55 77 3434 110001110001 44 11 4242 111101111101 55 66 3535 110011110011 44 22 4343 111111111111 55 55 3636 110010110010 44 33 4444 111110111110 55 44 3737 110110110110 44 44 4545 111010111010 55 33 3838 110111110111 44 55 4646 111011111011 55 22 3939 110101110101 44 66 4747 111001111001 55 11 4040 110100110100 44 77 4848 111000111000 55 00

表3table 3

序号serial number 6位格雷码6 bit Gray code 高3位对应十进制数The upper 3 bits correspond to the decimal number 低3位对应十进制数The lower 3 bits correspond to the decimal number 序号serial number 6位格雷码6 bit Gray code 高3位对应十进制数The upper 3 bits correspond to the decimal number 低3位对应十进制数The lower 3 bits correspond to the decimal number 4949 101000101000 66 00 5757 100100100100 77 77 5050 101001101001 66 11 5858 100101100101 77 66 5151 101011101011 66 22 5959 100111100111 77 55 5252 101010101010 66 33 6060 100110100110 77 44 5353 101110101110 66 44 6161 100010100010 77 33 5454 101111101111 66 55 6262 100011100011 77 22 5555 101101101101 66 66 6363 100001100001 77 11 5656 101100101100 66 77 6464 100000100000 77 00

表4Table 4

可见,从表1-表4的6位格雷码表中可知,6位格雷码的重复周期为64,且序号为(M+1)的格雷码与序号为M的格雷码相比(其中1≤M≤63),有且仅有一位数字发生了变化(由1变0,或由0变为1)。若将黑码记为0,白码记为1,则将上述64个6位格雷码以卷尺带200的一端为起点,依序向另一端印制。例如将序号为1的000000这6位格雷码设置在起点所在端,具体的将6位格雷码中最高位(即第六位)0设置在第六位格雷码道216,将次高位(即第五位)0设置在第五位格雷码道215,将第四位0设置在第四位格雷码道214,将第三位0设置在第三位格雷码道213,将次低位(即第二位)0设置在第二位格雷码道212,将最低位(即第一位)0设置在第一位格雷码道,上述6个码的高度与对应的格雷码道的高度相等,上述6个码均为矩形条,且矩形条的宽度均为1mm,这样按表1-表4所示的序号在卷尺带200上依序设置格雷码,即可得到如图3和图4所示的卷尺带200。其中,如图3所示的卷尺带200正面是从上至下依次设置第一位格雷码道211、第二位格雷码道212及第三位格雷码道213,如图4所示的卷尺带200背面从上至下依次设置所述第六格雷码道216、第五格雷码道215及第四位格雷码道214。It can be seen from the 6-bit Gray code table in Table 1-Table 4 that the repetition period of the 6-bit Gray code is 64, and the Gray code with the serial number (M+1) is compared with the Gray code with the serial number M (where 1 ≤M≤63), one and only one digit has changed (from 1 to 0, or from 0 to 1). If the black code is denoted as 0 and the white code is denoted as 1, the above-mentioned 64 6-digit Gray codes are printed from one end of the tape measure tape 200 to the other end in sequence. For example, set the 6-bit Gray code of 000000 with a serial number of 1 at the end of the starting point. Specifically, set the highest bit (ie the sixth bit) 0 in the 6-bit Gray code to the sixth bit Gray code channel 216, and set the second highest bit (ie the sixth bit) The fifth bit) 0 is set to the fifth bit Gray code channel 215, the fourth bit 0 is set to the fourth bit Gray code channel 214, the third bit 0 is set to the third bit Gray code channel 213, and the second lower bit (ie The second bit) 0 is set on the second gray code channel 212, the lowest bit (ie the first bit) 0 is set on the first gray code channel, the height of the above 6 codes is equal to the height of the corresponding gray code channel, The above-mentioned 6 codes are all rectangular bars, and the width of the rectangular bars are all 1mm. In this way, according to the serial numbers shown in Table 1-Table 4, the gray codes are sequentially set on the tape measure tape 200, and the results shown in Figure 3 and Figure 4 can be obtained. The tape measure tape 200 shown. Wherein, as shown in FIG. 3 , the front of the tape measure tape 200 is provided with the first Gray code channel 211 , the second Gray code channel 212 and the third Gray code channel 213 sequentially from top to bottom. The tape measure shown in FIG. 4 The sixth Gray code channel 216 , the fifth Gray code channel 215 and the fourth Gray code channel 214 are arranged on the back of the tape 200 in sequence from top to bottom.

当所述智能卷尺的卷尺带200的正面及背面均从下至上设置有3个格雷码道210时,还设置有与所述格雷码道210一一对应的红外收发装置,且每一红外收发装置发出的红外光的照射范围不超出每一格雷码道210的高度范围。所述智能卷尺本体100内正对卷尺带200正面的一侧设置的低位红外收发装置组包括3个红外收发装置,分别为第一红外收发装置、第二红外收发装置及第三红外收发装置;所述智能卷尺本体100内正对卷尺带200背面的一侧设置的高位红外收发装置组包括3个红外收发装置,分别为第四红外收发装置、第五红外收发装置及第六红外收发装置。具体的,第一红外收发装置正对所述第一位格雷码道211,第二红外收发装置正对所述第二位格雷码道,第三红外收发装置正对所述第三位格雷码道213,第四红外收发装置正对所述第四位格雷码道214,第五红外收发装置正对所述第五位格雷码道215,第六红外收发装置正对所述第六位格雷码道216。上述六个红外收发装置分别连接智能卷尺本体100内的MCU控制芯片中的对应I/O口。When the front and back of the tape measure tape 200 of the smart tape measure are provided with three Gray code channels 210 from bottom to top, infrared transceivers corresponding to the Gray code channels 210 are also provided, and each infrared transceiver is also provided. The irradiation range of the infrared light emitted by the device does not exceed the height range of each Gray code track 210 . The low-position infrared transceiver device group disposed on the side of the smart tape measure body 100 facing the front of the tape measure tape 200 includes three infrared transceiver devices, which are a first infrared transceiver device, a second infrared transceiver device, and a third infrared transceiver device; The high-level infrared transceiver set on the side of the smart tape measure body 100 facing the back of the tape measure tape 200 includes three infrared transceivers, which are a fourth infrared transceiver, a fifth infrared transceiver and a sixth infrared transceiver. Specifically, the first infrared transceiver device is facing the first Gray code channel 211, the second infrared transceiver device is facing the second Gray code channel, and the third infrared transceiver device is facing the third Gray code channel Channel 213, the fourth infrared transceiver is facing the fourth Gray code channel 214, the fifth infrared transceiver is facing the fifth Gray code channel 215, and the sixth infrared transceiver is facing the sixth Gray code Code channel 216. The above six infrared transceivers are respectively connected to corresponding I/O ports in the MCU control chip in the smart tape measure body 100 .

为了实现节电功能,所述低位红外收发装置组中的第一红外收发装置在开关装置置于打开状态时开启,所述第二红外收发装置及第三红外收发装置保持待机或关闭状态,同时,所述第四红外收发装置、第五红外收发装置及第六红外收发装置也保持待机或关闭状态。只有当检测到第一红外收发装置中有脉冲产生时,则所述第二红外收发装置、第三红外收发装置第四红外收发装置、第五红外收发装置及第六红外收发装置开启,并在卷尺带被抽动时实时读取卷尺带格雷码道上的读数。In order to realize the power saving function, the first infrared transceiver in the low-level infrared transceiver group is turned on when the switch device is turned on, the second infrared transceiver and the third infrared transceiver are kept in a standby or off state, and at the same time , the fourth infrared transceiver device, the fifth infrared transceiver device and the sixth infrared transceiver device are also kept in a standby or off state. Only when it is detected that a pulse is generated in the first infrared transceiver, the second infrared transceiver, the third infrared transceiver, the fourth infrared transceiver, the fifth infrared transceiver and the sixth infrared transceiver are turned on, and the second infrared transceiver, the third infrared transceiver, the fourth infrared transceiver, the fifth infrared transceiver and the sixth infrared transceiver are turned on. Real-time readings on the gray-coded tape of the tape measure tape when the tape measure tape is twitched.

由于卷尺带200的两侧各设置了3个红外收发装置组300,若卷尺带200两侧的红外收发装置完全正对,则卷尺带200一侧的红外收发装置组300发出的红外线透射过所述卷尺带200时,会导致另一侧的红外收发装置组300的红外光接收结果改变,影响测量结果。Since three infrared transceiver device groups 300 are provided on both sides of the tape measure tape 200, if the infrared transceiver devices on both sides of the tape measure tape 200 are completely facing each other, the infrared rays emitted by the infrared transceiver device groups 300 on the tape measure tape 200 side will transmit through all the infrared transceivers. When the tape measure tape 200 is used, the infrared light receiving result of the infrared transceiver group 300 on the other side will be changed, which will affect the measurement result.

为了确保测量结果的准确性,需将所述卷尺带200正面的格雷码道的起点与所述卷尺带200背面的格雷码道的起点错位设置。由于当卷尺带200为初始未被拉出的状态时,所述第一红外收发装置正对所述第一位格雷码道211的起点,第二红外收发装置正对所述第二位格雷码道212的起点,第三红外收发装置正对所述第三位格雷码道213的起点,第四红外收发装置正对所述第四位格雷码道214的起点,第五红外收发装置正对所述第五位格雷码道215的起点,第六红外收发装置正对所述第六位格雷码道216的起点。由于卷尺带200双面的格雷码道的起点存在错位,故分布在所述卷尺带200一侧的第一红外收发装置、第二红外收发装置及第三红外收发装置正对的位置相对于分布在所述卷尺带200另一侧的第四红外收发装置、第五红外收发装置及第六红外收发装置正对的位置有一定距离的错位。具体实施时,所述卷尺带200正面的格雷码道的起点与所述卷尺带200背面的格雷码道的起点错位距离为5-6mm。最佳的,所述卷尺带200正面的格雷码道的起点与所述卷尺带200背面的格雷码道的起点错位距离为5.5mm。In order to ensure the accuracy of the measurement results, the starting point of the Gray code track on the front side of the tape measure 200 needs to be staggered from the starting point of the Gray code track on the back side of the tape measure tape 200 . Because when the tape measure tape 200 is not initially pulled out, the first infrared transceiver is facing the starting point of the first gray code track 211, and the second infrared transceiver is facing the second gray code The starting point of the channel 212, the third infrared transceiver device is facing the starting point of the third Gray code channel 213, the fourth infrared transceiver device is facing the starting point of the fourth Gray code channel 214, and the fifth infrared transceiver device is facing the starting point of the fourth Gray code channel 214. The starting point of the fifth-digit Gray code channel 215 is opposite to the starting point of the sixth-digit Gray code channel 216 by the sixth infrared transceiver. Since the starting point of the Gray code track on both sides of the tape measure tape 200 is misplaced, the first infrared transceiver device, the second infrared transceiver device and the third infrared transceiver device distributed on one side of the tape measure tape 200 are located in the opposite position relative to the distribution The positions of the fourth infrared transceiver, the fifth infrared transceiver and the sixth infrared transceiver on the other side of the tape measure tape 200 are displaced by a certain distance. In a specific implementation, the starting point of the Gray code track on the front side of the tape measure 200 and the start point of the Gray code track on the back side of the tape measure tape 200 are misaligned by a distance of 5-6 mm. Preferably, the starting point of the Gray code track on the front side of the tape measure tape 200 and the start point of the Gray code track on the back side of the tape measure tape 200 are misaligned by a distance of 5.5 mm.

由于每一格雷码道210上都是以一定周期出现黑码和白码,而且白码和黑码是交替出现。同时黑码及白码对红外收发装置组300发出的红外光的吸收率不同,具体是黑码对红外光的吸收率高,白码对红外光的吸收率低、且低于黑码的红外光吸收率,经过黑码反射回去的红外光被红外收发装置组300接收后被解码为0,经过白码反射回去的红外光被红外收发装置组300接收后被解码为1。Because black codes and white codes appear on each Gray code channel 210 in a certain period, and white codes and black codes appear alternately. At the same time, the black code and the white code have different absorption rates of infrared light emitted by the infrared transceiver group 300. Specifically, the black code has a high absorption rate of infrared light, and the white code has a low absorption rate of infrared light, which is lower than that of the black code. Light absorption rate, the infrared light reflected by the black code is decoded as 0 after being received by the infrared transceiver group 300, and the infrared light reflected back by the white code is received by the infrared transceiver group 300 and decoded as 1.

故当卷尺带200在被拉动的过程中,由红外收发装置组300、及与设置在智能卷尺本体100内且与红外收发装置组300连接的MCU控制芯片共同检测卷尺带200被拉动时重复周期长度的次数n和在当前重复周期长度内的偏移量ΔL,再通过L=n*LT+ΔL即可计算得到实际测量长度L,这样实现对长度的精准测量,降低了测量误差。具体是因为在尺带每一格雷码道上设置具有一定宽度的黑码和白码,有效避免因软性尺带被拉伸发生形变而导致的测量误差。Therefore, when the tape measure 200 is being pulled, the infrared transceiver unit 300 and the MCU control chip disposed in the smart tape measure body 100 and connected to the infrared transceiver unit 300 jointly detect that the tape measure 200 is being pulled and the cycle repeats. The number n of the length and the offset ΔL in the current repetition period length, and then L=n*L T +ΔL can calculate the actual measurement length L, which realizes the precise measurement of the length and reduces the measurement error. Specifically, a black code and a white code with a certain width are set on each Gray code channel of the tape, which effectively avoids the measurement error caused by the deformation of the soft tape being stretched.

基于上述装置实施例,本发明还提供了一种带开关的智能卷尺的数据获取方法,如图5所示,所述方法包括以下步骤:Based on the above device embodiment, the present invention also provides a data acquisition method of a smart tape measure with a switch, as shown in FIG. 5 , the method includes the following steps:

步骤S100、当检测到开关装置处于打开状态时,则与所述卷尺带正面格雷码道正对的低位红外收发装置组开启,并实时检测低位红外收发装置组是否有脉冲产生;Step S100, when it is detected that the switch device is in an open state, then the low-level infrared transceiver device group that is directly opposite to the gray code channel on the front of the tape measure tape is turned on, and real-time detection of whether the low-level infrared transceiver device group has pulse generation;

步骤S200、当检测到低位红外收发装置组的低位脉冲时,则所述低位红外收发装置组及所述高位红外收发装置组均开启,并在卷尺带被抽动时实时读取卷尺带格雷码道上的读数;Step S200, when detecting the low-order pulse of the low-level infrared transceiver group, then both the low-level infrared transceiver group and the high-level infrared transceiver group are turned on, and when the tape measure tape is twitched, read the tape on the Gray code track in real time. reading;

步骤S300、当检测卷尺带由抽动状态变为静止状态时,根据所述低位红外收发装置组获取的第一当前读数,及所述高位红外收发装置组获取的第二当前读数,获取智能卷尺的当前读数。Step S300, when it is detected that the tape measure tape changes from a twitching state to a static state, according to the first current reading obtained by the low-level infrared transceiver device group, and the second current reading obtained by the high-level infrared transceiver device group, obtain the smart tape measure. Current reading.

具体的,如图3所示的卷尺带200正面是从上至下依次设置第一位格雷码道211、第二位格雷码道212及第三位格雷码道213,如图4所示的卷尺带200背面从上至下依次设置所述第六格雷码道216、第五格雷码道215及第四位格雷码道214,且第一红外收发装置正对所述第一位格雷码道211,第二红外收发装置正对所述第二位格雷码道,第三红外收发装置正对所述第三位格雷码道213,第四红外收发装置正对所述第四位格雷码道214,第五红外收发装置正对所述第五位格雷码道215,第六红外收发装置正对所述第六位格雷码道216。Specifically, as shown in FIG. 3 , the front of the tape measure tape 200 is provided with the first Gray code channel 211 , the second Gray code channel 212 and the third Gray code channel 213 sequentially from top to bottom, as shown in FIG. 4 . The sixth Gray code channel 216 , the fifth Gray code channel 215 and the fourth Gray code channel 214 are arranged on the back of the tape measure tape 200 in sequence from top to bottom, and the first infrared transceiver is facing the first Gray code channel 211, the second infrared transceiver device is facing the second Gray code channel, the third infrared transceiver device is facing the third Gray code channel 213, the fourth infrared transceiver device is facing the fourth Gray code channel 214 , the fifth infrared transceiver device is facing the fifth Gray code channel 215 , and the sixth infrared transceiver device is facing the sixth Gray code channel 216 .

当将所述开关装置400打到“ON”状态时,所述第一红外收发装置、先打开,并对其是否产生脉冲进行实时检测,当检测到脉冲时,则并所述第二红外收发装置、第三红外收发装置第四红外收发装置、第五红外收发装置及第六红外收发装置开启,并在卷尺带被抽动时实时读取卷尺带格雷码道上的读数。这样实现了卷尺带200红外收发装置分时开启,有效的节省了电能。When the switch device 400 is turned to the "ON" state, the first infrared transceiver is turned on first, and real-time detection is performed on whether it generates a pulse, and when a pulse is detected, the second infrared transceiver is connected to the The device, the third infrared transceiver device, the fourth infrared transceiver device, the fifth infrared transceiver device and the sixth infrared transceiver device are turned on, and when the tape measure tape is twitched, the readings on the Gray code track of the tape measure tape are read in real time. In this way, the infrared transceiver device of the tape measure 200 can be turned on in a time-sharing manner, which effectively saves power.

综上所述,本发明所述的带开关的智能卷尺及其数据读取方法,通过将格雷码直接设置在卷尺带上,且卷尺带上按指定周期重复设置格雷码,而不是通过印制格雷码盘并设置在智能卷尺本体内,减小了智能卷尺的体积;同时,一个周期内的每一格雷码具有一定宽度的黑码或白码,可通过读取装置读取卷尺带上的格雷码,取代了传统的刻度读取方式,增强了读数的稳定性。由于还设置了控制红外收发装置开启或关闭的开关装置,所述红外收发装置只在打开开关时才上电工作,而且卷尺带两侧的红外读取装置是分时打开,而不是同时打开,节省了电能。To sum up, the intelligent tape measure with switch and the data reading method thereof according to the present invention directly set the Gray code on the tape measure tape, and repeatedly set the Gray code on the tape measure tape according to a specified period, instead of printing the gray code. The gray code disc is arranged in the body of the smart tape measure, which reduces the volume of the smart tape measure; at the same time, each gray code in a cycle has a black code or a white code with a certain width, which can be read by the reading device on the tape measure tape. Gray code, instead of the traditional scale reading method, enhances the stability of the reading. Since a switch device for controlling the opening or closing of the infrared transceiver is also provided, the infrared transceiver can only be powered on when the switch is turned on, and the infrared reading devices on both sides of the tape measure are opened at different times, not at the same time. Electricity is saved.

应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples. For those of ordinary skill in the art, improvements or transformations can be made according to the above descriptions, and all these improvements and transformations should belong to the protection scope of the appended claims of the present invention.

Claims (5)

1.一种带开关的智能卷尺,其特征在于,包括智能卷尺本体,及设置在所述智能卷尺本体内并可抽出的卷尺带,所述卷尺带的正面及背面均从下至上设置有3个格雷码道;所述卷尺带的正面设置低三位格雷码道,所述卷尺带的背面设置高三位格雷码道,所述格雷码道中的格雷码按指定周期重复设置;所述智能卷尺本体内还设置有与格雷码道一一对应、用于读取格雷码道中格雷码的红外收发装置组,及用于控制所述红外收发装置组开启或关闭的开关装置,所述开关装置与所述红外收发装置组电连接;所述开关装置为按钮开关或拨动开关;所述红外收发装置组包括与所述卷尺带正面格雷码道正对的低位红外收发装置组,和与所述卷尺带背面格雷码道正对的高位红外收发装置组;所述低位红外收发装置组在开关装置置于开启状态时开启,所述高位红外收发装置组保持待机或关闭状态;所述低三位格雷码道分别为第一位格雷码道、第二位格雷码道及第三位格雷码道;所述智能卷尺本体内正对卷尺带正面的一侧设置的低位红外收发装置组包括3个红外收发装置,分别为第一红外收发装置、第二红外收发装置及第三红外收发装置;所述第一红外收发装置在开关装置置于打开状态时开启,所述第二红外收发装置及第三红外收发装置保持待机或关闭状态;所述高三位格雷码道的起点与所述低三位格雷码道的起点错位设置。1. an intelligent tape measure with a switch, it is characterized in that, comprises a smart tape measure body, and is arranged in the described smart tape measure body and can be drawn out the tape measure tape, the front and back of the described tape measure tape are all provided with 3 from bottom to top. Gray code channels; the front of the tape measure tape is set with low three gray code channels, the back of the tape measure tape is provided with high three gray code channels, and the gray codes in the gray code channels are repeatedly set according to a specified period; the intelligent tape measure The body is also provided with an infrared transceiver device group corresponding to the Gray code channel one-to-one and used for reading the Gray code in the Gray code channel, and a switch device for controlling the opening or closing of the infrared transceiver device group. The infrared transceiver device group is electrically connected; the switch device is a button switch or a toggle switch; the infrared transceiver device group includes a low-position infrared transceiver device group that is directly opposite to the Gray code channel on the front of the tape measure, and is connected to the The high-level infrared transceiver group on the back of the tape measure tape facing the Gray code channel; the low-level infrared transceiver group is turned on when the switch device is turned on, and the high-level infrared transceiver group remains in a standby or closed state; the lower three The gray code channels are the first gray code channel, the second gray code channel, and the third gray code channel; the low-position infrared transceiver group set on the side of the intelligent tape measure body facing the front of the tape measure tape includes three The infrared transceiver devices are respectively a first infrared transceiver device, a second infrared transceiver device and a third infrared transceiver device; the first infrared transceiver device is turned on when the switch device is placed in an open state, and the second infrared transceiver device and the third infrared transceiver device are turned on when the switch device is turned on. The three infrared transceivers are kept in a standby or off state; the starting point of the upper three-digit Gray code channel and the starting point of the lower three-digit Gray code channel are set in a staggered position. 2.根据权利要求1所述带开关的智能卷尺,其特征在于,所述第一红外收发装置正对所述第一位格雷码道,所述第二红外收发装置正对所述第二位格雷码道,所述第三红外收发装置正对所述第三位格雷码道。2 . The smart tape measure with switch according to claim 1 , wherein the first infrared transceiver is facing the first gray code channel, and the second infrared transceiver is facing the second Gray code channel, the third infrared transceiver is facing the third gray code channel. 3.根据权利要求1所述带开关的智能卷尺,其特征在于,所述高三位格雷码道分别为第四位格雷码道、第五位格雷码道及第六位格雷码道。3 . The smart tape measure with switch according to claim 1 , wherein the upper three-digit Gray code channels are respectively the fourth gray code channel, the fifth gray code channel, and the sixth gray code channel. 4 . 4.根据权利要求3所述带开关的智能卷尺,其特征在于,所述智能卷尺本体内正对卷尺带背面的一侧设置的高位红外收发装置组包括3个红外收发装置,分别为第四红外收发装置、第五红外收发装置及第六红外收发装置;其中,所述第四红外收发装置正对所述第四位格雷码道,所述第五红外收发装置正对所述第五位格雷码道,所述第六红外收发装置正对所述第六位格雷码道。4 . The smart tape measure with switch according to claim 3 , wherein the high-level infrared transceiver device group provided on the side facing the back of the tape measure tape in the smart tape measure body includes three infrared transceiver devices, which are the fourth infrared transceiver device. 5 . Infrared transceiver, fifth infrared transceiver and sixth infrared transceiver; wherein, the fourth infrared transceiver is facing the fourth gray code channel, and the fifth infrared transceiver is facing the fifth Gray code channel, the sixth infrared transceiver is facing the sixth gray code channel. 5.一种带开关的智能卷尺的数据获取方法,其特征在于,采用权利要求1-4中任一所述的带开关的智能卷尺,且该数据获取方法包括以下步骤:5. A data acquisition method of a smart tape measure with switch, characterized in that, the smart tape measure with switch described in any one of claims 1-4 is adopted, and the data acquisition method comprises the following steps: A、当检测到开关装置处于打开状态时,则与所述卷尺带正面格雷码道正对的低位红外收发装置组开启,并实时检测低位红外收发装置组是否有脉冲产生;A. When it is detected that the switch device is in an open state, the low-level infrared transceiver group that is directly opposite to the gray code channel on the front of the tape measure tape is turned on, and real-time detection of whether the low-level infrared transceiver group has pulse generation; B、当检测到低位红外收发装置组的低位脉冲时,则所述低位红外收发装置组及所述高位红外收发装置组均开启,并在卷尺带被抽动时实时读取卷尺带格雷码道上的读数;B. When the low-level pulse of the low-level infrared transceiver group is detected, the low-level infrared transceiver group and the high-level infrared transceiver group are both turned on, and when the tape measure tape is twitched, the real-time reading of the tape measure on the Gray code track reading; C、当检测卷尺带由抽动状态变为静止状态时,根据所述低位红外收发装置组获取的第一当前读数,及所述高位红外收发装置组获取的第二当前读数,获取智能卷尺的当前读数。C. When detecting that the tape measure tape changes from a twitching state to a static state, obtain the current reading of the smart tape measure according to the first current reading obtained by the low-level infrared transceiver group and the second current reading obtained by the high-level infrared transceiver group. reading.
CN201510634118.4A 2015-09-30 2015-09-30 Intelligent measuring tape with switch and data acquisition method thereof Expired - Fee Related CN106556311B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510634118.4A CN106556311B (en) 2015-09-30 2015-09-30 Intelligent measuring tape with switch and data acquisition method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510634118.4A CN106556311B (en) 2015-09-30 2015-09-30 Intelligent measuring tape with switch and data acquisition method thereof

Publications (2)

Publication Number Publication Date
CN106556311A CN106556311A (en) 2017-04-05
CN106556311B true CN106556311B (en) 2020-02-07

Family

ID=58414827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510634118.4A Expired - Fee Related CN106556311B (en) 2015-09-30 2015-09-30 Intelligent measuring tape with switch and data acquisition method thereof

Country Status (1)

Country Link
CN (1) CN106556311B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2081524U (en) * 1990-08-24 1991-07-24 戴进武 Cyclic code rule belt measuring displacement
CN2760501Y (en) * 2004-12-16 2006-02-22 翔熙(厦门)电子有限公司 Digital display tapeline
CN101273244A (en) * 2005-07-25 2008-09-24 霍克斯特马斯巴尔泽有限责任公司 Electronic measuring tape and a length measuring device provided therewith
DE202009008217U1 (en) * 2009-06-15 2009-08-27 Okan, Ciftci Ruler for reading distances
CN201911363U (en) * 2010-12-17 2011-08-03 苏州大学 Intelligent photoelectric clothes measuring tape
CN102555612A (en) * 2011-12-04 2012-07-11 河南科技大学 Ruler capable of transmitting infrared rays
CN205192362U (en) * 2015-09-30 2016-04-27 捷荣科技集团有限公司 Intelligent tape with switch

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7348545B2 (en) * 2005-06-17 2008-03-25 Avago Technologies Ecbu Ip Pte Ltd System and method for optical encoding on two opposed surfaces of a pattern medium
CN101458116B (en) * 2008-11-25 2012-11-14 西安信唯信息科技有限公司 Object position measurement method suitable for different length measuring require
DE102012205902A1 (en) * 2012-04-11 2013-10-17 Tyco Electronics Amp Gmbh Position sensor for non-contact measurement of a position by means of a plurality of magnetic field sensors arranged in series

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2081524U (en) * 1990-08-24 1991-07-24 戴进武 Cyclic code rule belt measuring displacement
CN2760501Y (en) * 2004-12-16 2006-02-22 翔熙(厦门)电子有限公司 Digital display tapeline
CN101273244A (en) * 2005-07-25 2008-09-24 霍克斯特马斯巴尔泽有限责任公司 Electronic measuring tape and a length measuring device provided therewith
DE202009008217U1 (en) * 2009-06-15 2009-08-27 Okan, Ciftci Ruler for reading distances
CN201911363U (en) * 2010-12-17 2011-08-03 苏州大学 Intelligent photoelectric clothes measuring tape
CN102555612A (en) * 2011-12-04 2012-07-11 河南科技大学 Ruler capable of transmitting infrared rays
CN205192362U (en) * 2015-09-30 2016-04-27 捷荣科技集团有限公司 Intelligent tape with switch

Also Published As

Publication number Publication date
CN106556311A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
CN205027230U (en) Gray code area intelligence tape measure
CN205027223U (en) A gray code tape smart tape measure with infrared distance measurement
CN106556297B (en) Can turn into intelligent tape measure of shoes sign indicating number value with measuring length
CN106556304B (en) A scan code gray code belt intelligent tape measure and virtual fitting implementation method
CN106556311B (en) Intelligent measuring tape with switch and data acquisition method thereof
CN205192362U (en) Intelligent tape with switch
CN205027239U (en) A gray code tape smart tape measure with chalk marking device
CN205027241U (en) A Smart Tape Measure Based on Infrared Transceiver Reading
CN205279905U (en) A Scannable Gray Code Tape Smart Tape
CN205027228U (en) An intelligent tape measure with Gray code tape whose initial position is misaligned
CN205027237U (en) Gray code belt and intelligent measuring tape with Gray code belt
CN106556303B (en) Intelligent measuring tape capable of measuring circumference and circumference measuring method thereof
CN106556294B (en) Intelligent tape based on infrared receiving and transmitting reading
CN205027236U (en) Gray code belt intelligent tape with all-black coating
CN205027312U (en) A gray code tape smart tape measure with a folding buckle structure
CN205027226U (en) A gray code tape smart tape measure with tape hook
CN205027240U (en) A power-saving smart tape measure
CN205027229U (en) A power-saving smart tape measure
CN106556305B (en) Power-saving intelligent measuring tape and data acquisition method thereof
CN106556295A (en) Gray code belt intelligent tape with powder scratching device
CN205027233U (en) A gray code tape smart tape measure with an anti-friction bar
CN106556298B (en) A gray code tape smart tape measure
CN106556307B (en) A Gray Code Tape Smart Tape Measure for Displaying Area Perimeter
CN106556302B (en) Gray code belt intelligent tape capable of displaying measurement difference value
CN205027222U (en) A smart tape measure based on brush readings

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200207