TWI771706B - Signal capture system and signal capture method - Google Patents
Signal capture system and signal capture method Download PDFInfo
- Publication number
- TWI771706B TWI771706B TW109122948A TW109122948A TWI771706B TW I771706 B TWI771706 B TW I771706B TW 109122948 A TW109122948 A TW 109122948A TW 109122948 A TW109122948 A TW 109122948A TW I771706 B TWI771706 B TW I771706B
- Authority
- TW
- Taiwan
- Prior art keywords
- wireless
- signal
- sampling
- base station
- sensing
- Prior art date
Links
Images
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
- Apparatus For Radiation Diagnosis (AREA)
- Radar Systems Or Details Thereof (AREA)
Abstract
Description
本發明是關於一種訊號擷取系統及訊號擷取方法,特別是關於一種應用於無線感測裝置的訊號擷取系統及訊號擷取方法。The present invention relates to a signal acquisition system and a signal acquisition method, in particular to a signal acquisition system and a signal acquisition method applied to a wireless sensing device.
隨著工業 4.0、物聯網、以及大數據分析的快速發展,智慧化應用日益顯得重要。而達成智慧化應用的第一步即是如何用數位化的方式來詮釋問題對象,並取得大量有用的數據,以提供後續進行更多社會革新與產業創新。其中,感測技術是實現數位化的其中一種方式,現今由於製程技術的進步,對於不同的感測目標也因應有各式不同類型的感測裝置可使用。常見如加速度計,可用於感測震動、移動與姿態,又如陀螺儀可偵測旋轉相關的物理量等等。With the rapid development of Industry 4.0, the Internet of Things, and big data analysis, intelligent applications are becoming increasingly important. The first step to achieve intelligent application is how to interpret the problem object in a digital way, and obtain a large amount of useful data to provide more social and industrial innovation in the follow-up. Among them, sensing technology is one of the ways to realize digitization. Nowadays, due to the advancement of process technology, various types of sensing devices can be used for different sensing objects. Common ones are accelerometers, which can be used to sense vibration, movement, and attitude, and gyroscopes, which can detect physical quantities related to rotation, and so on.
取得數位資料後的下一個重點,即是如何有效的將資料妥善的集中、整理與再利用。因此資料傳輸技術也扮演了關鍵角色。特別在無線的資料傳輸上,由於免實體接線、具有遠距且機動性高的優點,使得感測器的資料蒐集更為方便,造就無線感測網路的蓬勃發展。After obtaining digital data, the next key point is how to effectively centralize, organize and reuse the data. Therefore, data transmission technology also plays a key role. Especially in wireless data transmission, due to the advantages of no physical wiring, long distance and high mobility, the data collection of sensors is more convenient, resulting in the vigorous development of wireless sensor networks.
然而,無線通道環境複雜,採用無線資料傳輸方式在資料的正確性與完整性上挑戰也相對較高,特別是在高速感測器(如加速度感測器 )上的影響更鉅。為了確保資料完整性,目前作法多半選擇頻寬較大的無線通訊協定技術,如無線區域網路(Wi -Fi),但Wi-Fi本身有干擾與耗電問題。倘若採用省電低頻寬的無線傳輸協定,當無線傳輸速率低於感測器資料取樣速率時,會容易造成資料失真,並連帶影響後續資料分析的判讀失準。However, the wireless channel environment is complex, and the accuracy and integrity of data are relatively challenged by wireless data transmission, especially for high-speed sensors (such as accelerometers). In order to ensure data integrity, the current practice is to choose wireless communication protocol technologies with larger bandwidth, such as wireless local area network (Wi-Fi), but Wi-Fi itself has problems of interference and power consumption. If a power-saving and low-bandwidth wireless transmission protocol is adopted, when the wireless transmission rate is lower than the data sampling rate of the sensor, it will easily cause data distortion, which will also affect the interpretation inaccuracy of subsequent data analysis.
因此如何在無線傳輸速率低於感測器取樣速度時,仍可確保資料完整性,已成為本領域需解決的問題之一。Therefore, how to ensure data integrity when the wireless transmission rate is lower than the sampling rate of the sensor has become one of the problems to be solved in the art.
為了解決上述的問題,本揭露內容之一態樣提供了一種訊號擷取系統。訊號擷取系統包括複數個無線感測裝置以及一無線接收基站。每個無線感測裝置包括一感測端控制器、一感測器、一感測端無線收發器。無線接收基站包括複數個基站端無線收發器及一基站控制器。感測端控制器用以依據一校時訊號將每個此些無線感測裝置進行時脈同步。感測器連接到一待測裝置,感測器偵測待測裝置以取得一取樣訊號。其中,感測端控制器依據擷取取樣訊號的時間取得一取樣時間戳,依據取樣時間戳將每個無線感測裝置中的感測端控制器進行同步時序校正。感測端無線收發器接收來自感測端控制器的取樣訊號,並傳送取樣訊號及取樣時間戳。基站端無線收發器用以接收來自感測端收發器的取樣訊號及取樣時間戳。基站控制器用以重組此些取樣訊號,以還原待測裝置的一感測訊號。In order to solve the above problems, an aspect of the present disclosure provides a signal acquisition system. The signal acquisition system includes a plurality of wireless sensing devices and a wireless receiving base station. Each wireless sensing device includes a sensing end controller, a sensor, and a sensing end wireless transceiver. The wireless receiving base station includes a plurality of base station wireless transceivers and a base station controller. The sensing end controller is used for clock synchronization of each of the wireless sensing devices according to a timing signal. The sensor is connected to a device under test, and the sensor detects the device under test to obtain a sampling signal. The sensing end controller obtains a sampling time stamp according to the time when the sampling signal is captured, and the sensing end controller in each wireless sensing device performs synchronization timing correction according to the sampling time stamp. The wireless transceiver of the sensing end receives the sampling signal from the controller of the sensing end, and transmits the sampling signal and the sampling time stamp. The wireless transceiver at the base station is used for receiving the sampling signal and the sampling time stamp from the transceiver at the sensing end. The base station controller is used for recombining the sampled signals to restore a sensing signal of the device under test.
本發明之又一態樣係於提供一種訊號擷取方法,適用於複數個無線感測裝置。訊號擷取方法包括:藉由一感測端控制器依據一校時訊號將每個此些無線感測裝置進行時脈同步;藉由一感測器偵測一待測裝置以取得一取樣訊號;依據擷取取樣訊號的時間取得一取樣時間戳;依據取樣時間戳將每個無線感測裝置中的感測端控制器進行同步時序校正;傳送取樣訊號及取樣時間戳至一無線接收基站;以及藉由無線接收基站重組此些取樣訊號,以還原待測裝置的一感測訊號。Another aspect of the present invention is to provide a signal acquisition method suitable for a plurality of wireless sensing devices. The signal acquisition method includes: using a sensing end controller to synchronize each of the wireless sensing devices according to a timing signal; detecting a device to be tested by a sensor to obtain a sampling signal ; obtain a sampling time stamp according to the time of capturing the sampling signal; perform synchronization timing correction on the sensing end controller in each wireless sensing device according to the sampling time stamp; transmit the sampling signal and the sampling time stamp to a wireless receiving base station; and recombining the sampled signals by the wireless receiving base station to restore a sensing signal of the device under test.
綜上,本發明所述的訊號擷取系統及訊號擷取方法使所有無線感測裝置時脈與時序同步,在無線傳輸速率低於感測器取樣速率時,仍可有效率的透過多個已同步的無線感測裝置輪流傳送取樣訊號及取樣時間戳,無線接收基站接收此些取樣訊號,並依據取樣時間戳重組取樣訊號,針對缺失的取樣訊號使用內插法補值,以還原感測訊號,並達到確保感測資料的完整性的效果。To sum up, the signal acquisition system and signal acquisition method of the present invention can synchronize the clocks and timings of all wireless sensing devices, so that when the wireless transmission rate is lower than the sampling rate of the sensor, it can still efficiently transmit multiple The synchronized wireless sensing devices transmit sampling signals and sampling time stamps in turn, and the wireless receiving base station receives these sampling signals, reconstructs the sampling signals according to the sampling time stamps, and uses interpolation for the missing sampling signals to restore the sensing signal, and achieve the effect of ensuring the integrity of the sensing data.
以下說明係為完成發明的較佳實現方式,其目的在於描述本發明的基本精神,但並不用以限定本發明。實際的發明內容必須參考之後的權利要求範圍。The following descriptions are preferred implementations for completing the invention, and are intended to describe the basic spirit of the invention, but are not intended to limit the invention. Reference must be made to the scope of the following claims for the actual inventive content.
必須了解的是,使用於本說明書中的“包括”等詞,係用以表示存在特定的技術特徵、數值、方法步驟、作業處理、元件以及/或組件,但並不排除可加上更多的技術特徵、數值、方法步驟、作業處理、元件、組件,或以上的任意組合。It must be understood that words such as "comprising" used in this specification are used to indicate the existence of specific technical features, values, method steps, operation processes, elements and/or components, but do not exclude the possibility of adding more technical features, values, method steps, job processes, elements, components, or any combination of the above.
於權利要求中使用如“第一”、“第二”、“第三”等詞係用來修飾權利要求中的元件,並非用來表示之間具有優先權順序,先行關係,或者是一個元件先於另一個元件,或者是執行方法步驟時的時間先後順序,僅用來區別具有相同名字的元件。The use of words such as "first", "second", "third", etc. in the claims is used to modify the elements in the claims, and is not used to indicate that there is a priority order, an antecedent relationship between them, or an element Prior to another element, or chronological order in which method steps are performed, is only used to distinguish elements with the same name.
請參照第1~3圖,第1圖係依照本發明一實施例繪示訊號擷取系統100之方塊圖。第2圖係依照本發明一實施例繪示感測端控制器CR0之內部模組示意圖。第3圖係依照本發明一實施例繪示基站控制器BCR之內部模組示意圖。Please refer to FIGS. 1-3. FIG. 1 is a block diagram illustrating a
於一實施例中,訊號擷取系統100包括多個無線感測裝置1~N及一無線接收基站20。於一實施例中,多個無線感測裝置1~N可以視為屬於一無線感測裝置群GP。In one embodiment, the
於一實施例中,無線感測裝置1~N各自與待測裝置30連接,例如是以有線或無線方式通訊的方式進行連接。待測裝置30是一物體,例如為一機台,無線感測裝置1~N用以測量機台的溫度、震動…等物理量。於一實施例中,無線感測裝置1~N可以全部用於測量機台的第一物理量(例如溫度)。於一實施例中,無線感測裝置1~N可以部分(例如無線感測裝置1~11)用以測量機台的第一物理量(例如溫度),部分(例如無線感測裝置12~N)用以測量機台的第二物理量(例如震動)。In one embodiment, the
於一實施例中,每個無線感測裝置1~N都包括各自的一感測端控制器、一感測器、一感測端無線收發器。於一實施例中,每個無線感測裝置1~N更包括各自的一儲存裝置。例如,無線感測裝置1包括感測端控制器CR0、感測器SR0、感測端無線收發器RV0及儲存裝置ST0。例如,無線感測裝置2包括感測端控制器CR1、感測器SR1、感測端無線收發器RV1及儲存裝置ST0。例如,無線感測裝置N包括感測端控制器CRN、感測器SRN、感測端無線收發器RVN及儲存裝置STN。In one embodiment, each of the
於一實施例中,感測器SR0~SRN中包括溫度感測器、壓力感測器、震動感測器、光學感測器、音訊感測器…等等,感測器SR0~SRN可以全部相同(例如全部都是溫度感測器)或部分相同(例如有一半是溫度感測器,另一半是震動感測器)。於一實施例中,感測端控制器(例如感測端控制器CR0)與感測器(例如感測器SR0)電性連接。於一實施例中,感測器(例如感測器SR0)藉由一物理性結合方式連接到待測裝置30。於一實施例中,每個無線感測裝置1~N連接到無線接收基站20。In one embodiment, the sensors SR0-SRN include a temperature sensor, a pressure sensor, a vibration sensor, an optical sensor, an audio sensor, etc., and the sensors SR0-SRN can be all of them The same (eg, all temperature sensors) or partially the same (eg, half of the temperature sensors, the other half of the vibration sensor). In one embodiment, the sensing side controller (eg, the sensing side controller CR0 ) is electrically connected to the sensor (eg, the sensor SR0 ). In one embodiment, the sensor (eg, sensor SR0 ) is connected to the device under
於一實施例中,感測端控制器CR0~CRN可以被實施為例如微控制單元(microcontroller)、微處理器(microprocessor)、數位訊號處理器(digital signal processor)、特殊應用積體電路(application specific integrated circuit,ASIC)或一邏輯電路。In one embodiment, the sensing end controllers CR0 ˜CRN can be implemented as, for example, a microcontroller, a microprocessor, a digital signal processor, or an application-specific integrated circuit. specific integrated circuit, ASIC) or a logic circuit.
於一實施例中,請參閱第2圖,感測端控制器CR0~CRN中各自包括相同的元件,以感測端控制器CR0為例,感測端控制器CR0包括一時間同步模組C1、一控制參數載入模組C2及一感測資料擷取模組C3,此些模組各自或一併被實施為例如微控制單元、微處理器、數位訊號處理器、特殊應用積體電路或一邏輯電路。於一實施例中,此些模組可各自或一併以軟體實現,由感測端控制器CR0(例如是處理器)執行之。In one embodiment, please refer to FIG. 2 , the sensing end controllers CR0 ˜ CRN each include the same components. Taking the sensing end controller CR0 as an example, the sensing end controller CR0 includes a time synchronization module C1 . , a control parameter loading module C2 and a sensing data acquisition module C3, these modules are individually or collectively implemented as, for example, a microcontroller unit, a microprocessor, a digital signal processor, an application-specific integrated circuit or a logic circuit. In one embodiment, these modules may be implemented in software individually or together, and executed by the sensor-end controller CR0 (eg, a processor).
於一實施例中,感測端無線收發器RV0~RVN可以是Wi-Fi收發器、藍芽收發器或其他可無線通訊的裝置。In one embodiment, the sensing-end wireless transceivers RV0 - RVN may be Wi-Fi transceivers, Bluetooth transceivers, or other devices capable of wireless communication.
於一實施例中,儲存裝置ST0~STN可以是唯讀記憶體、快閃記憶體、軟碟、硬碟、光碟、隨身碟、磁帶、可由網路存取之資料庫或熟悉此技藝者可輕易思及具有相同功能之儲存媒體。In one embodiment, the storage devices ST0-STN may be ROM, flash memory, floppy disk, hard disk, optical disk, pen drive, magnetic tape, a database accessible through the network, or those skilled in the art may It is easy to think of storage media with the same function.
於一實施例中,感測器SR0~SRN用以偵測待測裝置30的物理量(例如為溫度),取得的物理量稱為取樣訊號,感測器SR0~SRN將取樣訊號傳給各自對應的感測端控制器CR0~CRN,感測端控制器CR0~CRN可以將取樣訊號傳到各自對應的儲存裝置ST0~STN儲存,或將取樣訊號傳到各自對應的感測端無線收發器RV0~RVN等待傳送到無線接收基站20。例如,無線感測裝置1中的感測端控制器CR0分別與感測器SR0、儲存裝置ST0及感測端無線收發器RV0電性耦接,感測器SR0將偵測到的取樣訊號傳給感測端控制器CR0,感測端控制器CR0可將取樣訊號儲存於儲存裝置ST0,也可以將取樣訊號傳到感測端控制器CR0,以準備將取樣訊號傳送到無線接收基站20。In one embodiment, the sensors SR0-SRN are used to detect the physical quantity (eg, temperature) of the device under
於一實施例中,時間同步模組(例如時間同步模組C1)是用來使每一個無線感測裝置1~N時脈同步與時序同步,時間同步模組(例如時間同步模組C1)可透過但不限於電性連接方式使無線感測裝置1~N同步。In one embodiment, the time synchronization module (such as the time synchronization module C1) is used to synchronize the clock and timing of each wireless sensing device 1-N, and the time synchronization module (such as the time synchronization module C1) The
於一實施例中,無線接收基站20括多個基站端無線收發器BV0~BVK及一基站控制器BCR。於一實施例中,無線接收基站20更包括儲存裝置BST。In one embodiment, the wireless
於一實施例中,基站端無線收發器BV0~BVK可以是Wi-Fi收發器、藍芽收發器或其他可無線通訊的裝置,透過基站端無線收發器BV0~BVK可以與無線感測裝置1~N進行傳送及/或接收資訊。In an embodiment, the base station wireless transceivers BV0~BVK can be Wi-Fi transceivers, Bluetooth transceivers or other devices capable of wireless communication, and the base station wireless transceivers BV0~BVK can communicate with the
於一實施例中,基站控制器BCR可以被實施為例如微控制單元、微處理器、數位訊號處理器、特殊應用積體電路或一邏輯電路。In one embodiment, the base station controller BCR may be implemented as, for example, a microcontroller unit, a microprocessor, a digital signal processor, an application-specific integrated circuit, or a logic circuit.
於一實施例中,請參閱第3圖,基站控制器BCR包括一感測訊號配置模組B1及一訊號解析模組B2,於一實施例中,基站控制器BCR更包括一資料處理模組B3。此些模組各自或一併被實施為例如微控制單元、微處理器、數位訊號處理器、特殊應用積體電路或一邏輯電路。於一實施例中,此些模組可各自或一併以軟體實現,由基站控制器BCR(例如是處理器)執行之。In an embodiment, please refer to FIG. 3, the base station controller BCR includes a sensing signal configuration module B1 and a signal analysis module B2, in an embodiment, the base station controller BCR further includes a data processing module B3. Each or a combination of these modules is implemented, for example, as a microcontroller unit, a microprocessor, a digital signal processor, an application-specific integrated circuit, or a logic circuit. In one embodiment, these modules may be implemented in software individually or together, and executed by the base station controller BCR (eg, a processor).
於一實施例中,儲存裝置BST可以是唯讀記憶體、快閃記憶體、軟碟、硬碟、光碟、隨身碟、磁帶、可由網路存取之資料庫或熟悉此技藝者可輕易思及具有相同功能之儲存媒體。In one embodiment, the storage device BST may be a read-only memory, a flash memory, a floppy disk, a hard disk, an optical disk, a pen drive, a magnetic tape, a database accessible through a network, or those skilled in the art can easily think of it. and storage media with the same function.
於一實施例中,基站控制器BCR分別與基站端無線收發器BV0~BVK、儲存裝置BST電性耦接。In one embodiment, the base station controller BCR is electrically coupled to the base station wireless transceivers BV0 ˜BVK and the storage device BST, respectively.
請參照第4圖,第4圖係依照本發明一實施例繪示訊號擷取方法之流程圖。訊號擷取方法可以由第1~3圖所示的元件實現。Please refer to FIG. 4 . FIG. 4 is a flowchart illustrating a signal acquisition method according to an embodiment of the present invention. The signal acquisition method can be implemented by the components shown in Figures 1 to 3.
於步驟410中,感測端控制器(例如感測端控制器CR0)用以依據一校時訊號將每個無線感測裝置(例如無線感測裝置1~N)進行時脈同步。In
每個無線感測裝置1~N包括時間同步功能,此功能包括時脈與時序,時脈同步可以透過但不限於電性連接方式同步,時序可以採用但不限於電波校時同步方式。Each wireless sensing device 1-N includes a time synchronization function, which includes clock and timing. Clock synchronization can be synchronized through but not limited to electrical connection, and timing can be synchronized by radio wave but not limited to.
於一實施例中,在初始化訊號擷取系統100時,無線接收基站20傳送校時訊號到無線感測裝置1~N,無線感測裝置1~N各自對應的感測端控制器CR0~CRN將時序歸零。In one embodiment, when the
於步驟420中,一感測器(例如SR0)偵測一待測裝置30以取得一取樣訊號。In
於一實施例中,感測器SR0~SRN偵測一待測裝置30,以各自得到待測裝置30的取樣訊號(加速度)。In one embodiment, the sensors SR0 - SRN detect a device under
於一實施例中,以感測端控制器CR0為例,感測器(例如SR0)中的感測資料擷取模組C3用以擷取取樣訊號,並傳到感測端控制器CR0。In one embodiment, taking the sensing-end controller CR0 as an example, the sensing data acquisition module C3 in the sensor (eg, SR0 ) is used to capture sampling signals and transmit them to the sensing-end controller CR0 .
於步驟430中,感測端控制器(例如感測端控制器CR0)依據擷取取樣訊號的時間取得一取樣時間戳。In step 430, the sensing-end controller (eg, the sensing-end controller CR0) obtains a sampling time stamp according to the time of capturing the sampling signal.
於一實施例中,每個感測端控制器CR0~CRN各自在取得取樣訊號的時點,抓取無線感測裝置1~N中的取樣時間戳,其中,取樣時間戳是指字符串或編碼信息用於辨識記錄下來的時間日期。In one embodiment, each of the sensing end controllers CR0 ˜CRN grabs the sampling timestamps in the
於步驟440中,感測端控制器(例如感測端控制器CR0)依據取樣時間戳,將每個無線感測裝置1~N中的感測端控制器CR0~CRN進行同步時序校正。In
由於無線感測裝置1~N在取樣時可能會受到環境(例如電波)干擾,使得每個無線感測裝置1~N取樣時間稍有誤差,因此每個無線感測裝置1~N中的感測端控制器CR0~CRN在啟動初始化時需要進行同步時序校正。Since the wireless sensing devices 1-N may be disturbed by the environment (such as radio waves) during sampling, the sampling time of each wireless sensing device 1-N is slightly wrong. The measurement terminal controllers CR0~CRN need to perform synchronization timing correction when starting the initialization.
於一實施例中,基站控制器BCR將所有無線感測裝置1~N取得的取樣時間戳,各自與無線接收基站20發送測試訊號時點的一測試時間戳相減後,取得多個回傳時間,感測訊號配置模組B1計算此些回傳時間的一平均值,依據平均值將每個無線感測裝置1~N中的感測端控制器CR0~CRN進行同步時序校正,使得感測端控制器CR0~CRN在取樣時間對齊,並在取樣時間對齊後,各自重新取得取樣訊號及取樣時間戳。In one embodiment, the base station controller BCR obtains a plurality of return times by subtracting the sampling time stamps obtained by all the wireless sensing devices 1-N from a test time stamp at the time when the wireless
於一實施例中,一感測端無線收發器(例如為感測端無線收發器1)接收來自感測端控制器(例如感測端控制器CR0)的取樣訊號,並傳送取樣訊號及取樣時間戳。In one embodiment, a sensor-side wireless transceiver (for example, the sensor-side wireless transceiver 1 ) receives a sampling signal from a sensor-side controller (for example, a sensor-side controller CR0 ), and transmits the sampling signal and sampling timestamp.
於一實施例中,每個感測端無線收發器1~N各自接收來自感測端控制器CR0~CRN的取樣訊號,並各自透過感測端無線收發器RV0~RVN傳送此些取樣訊號及其取樣時間戳。例如,感測端無線收發器1接收來自感測端控制器CR0取樣訊號,透過感測端無線收發器RV0傳送此取樣訊號及取得此取樣訊號時點的取樣時間戳。In one embodiment, each of the sensing-
於步驟450中,基站端無線收發器(例如為基站端無線收發器BV0)用以接收來自感測端收發器(例如為感測端無線收發器1)的取樣訊號及取樣時間戳。In
於一實施例中,感測訊號配置模組B1用以配置此些基站端無線收發器BV0~BVK之一者接收該樣訊號。感測訊號配置模組B1可以設定基站端無線收發器BV0~BV1K各自對應到的感測端無線收發器RV0~RVN,例如基站端無線收發器BV0被設定為接收來自感測端無線收發器RV0的訊息。其中,基站端無線收發器BV0~BV1K與感測端無線收發器RV0~RVN可以相同或不同。In one embodiment, the sensing signal configuration module B1 is used to configure one of the base station wireless transceivers BV0 to BVK to receive the signal. The sensing signal configuration module B1 can set the base station wireless transceivers BV0~BV1K to correspond to the sensing end wireless transceivers RV0~RVN, for example, the base station wireless transceiver BV0 is set to receive data from the sensing end wireless transceiver RV0 message. The base station wireless transceivers BV0 to BV1K and the sensing end wireless transceivers RV0 to RVN may be the same or different.
於步驟460中,一基站控制器BCR用以重組此些取樣訊號,以還原待測裝置30的一感測訊號。In
於一實施例中,一訊號解析模組B2用以依據來自每個無線感測裝置1~N的此些取樣時間戳進行排序此些取樣訊號,以重組此些取樣訊號,藉此還原出感測訊號。In one embodiment, a signal analysis module B2 is used to sort the sampled signals according to the sampled time stamps from each of the wireless sensing devices 1-N, so as to reorganize the sampled signals, thereby restoring the sense of test signal.
請參照第5A~5B圖,第5A~5B圖係依照本發明一實施例繪示訊號擷取方法之流程圖。訊號擷取方法可以由第1~3圖所示的元件實現。其中,步驟512~520為每一個無線感測裝置1~N都會執行的步驟,因此,以下在此些步驟中,以感測端無線收發器1為例做說明。Please refer to FIGS. 5A-5B. FIGS. 5A-5B are flowcharts illustrating a signal acquisition method according to an embodiment of the present invention. The signal acquisition method can be implemented by the components shown in Figures 1 to 3. The
於步驟510中,基站控制器BCR中的感測訊號配置模組B1配置預設參數。In
於一實施例中,預設參數包括通訊頻道、基站端無線收發器BV0~BVK與感測端無線收發器RV0~RVN的對應關係、發送順序及/或發送狀態評估等參數。In one embodiment, the preset parameters include parameters such as a communication channel, a correspondence between the base station wireless transceivers BV0-BVK and the sensing-side wireless transceivers RV0-RVN, a transmission sequence, and/or a transmission state evaluation.
於步驟511中,無線感測裝置1~N接收到校時訊號後,進行時脈同步。In
於一實施例中,無線感測裝置1~N接收到校時訊號後,可由各自內部系統中的對時功能進行時脈同步,使每個無線感測裝置1~N的時間對齊。In one embodiment, after the
於步驟512中,無線感測裝置1載入感測器SR0的取樣配置。感測器SR0的取樣配置例如為感測器取樣間隔時間、擷取取樣訊號時間(例如收集1小時的取樣訊號)。In
於步驟513中,無線感測裝置1載入控制參數。In
於一實施例中,控制參數載入模組C2用以設置每個無線感測裝置1~N輪循的一輪循時間差每個無線感測裝置1~N的感測端無線收發器RV0~RVN依據輪循時間差傳送各自擷取到的取樣訊號及取樣時間戳。In one embodiment, the control parameter loading module C2 is used to set the round-robin time difference of each wireless sensing device 1-N to the sensing end wireless transceivers RV0-RVN of each wireless sensing device 1-N According to the round-robin time difference, the respectively captured sample signals and sample time stamps are transmitted.
於步驟514中,無線感測裝置1啟動初始化,且無線感測模組1~N同步時序。In
於一實施例中,在啟動初始化到擷取取樣訊號之前會有初始延遲時間,初始延遲時間為Y台感測器SR0~SRN(在此例中Y等於N+1)減1後,再乘以M筆資料後,再乘以一時間常數ΔT,即(Y-1)*M*ΔT為初始延遲時間。於一例子中,假設ΔT為1毫秒(ms),M為1筆資料,有3台感測器,則初始延遲時間的算式為:(3-1)*1*1ms=2ms。In one embodiment, there is an initial delay time before the initialization is started and the sampling signal is captured. The initial delay time is subtracted by 1 from the Y sensors SR0~SRN (in this example, Y is equal to N+1), and then multiplied by 1. After M pieces of data are multiplied by a time constant ΔT, that is, (Y-1)*M*ΔT is the initial delay time. In an example, assuming that ΔT is 1 millisecond (ms), M is 1 data, and there are 3 sensors, the initial delay time is calculated as: (3-1)*1*1ms=2ms.
於步驟515中,無線感測裝置1擷取M筆數位取樣訊號。In
於一實施例中,感測器SR0偵測到的初始參數為類比資料,透過類比轉數位裝置,可將初始參數轉成數位取樣訊號。In one embodiment, the initial parameters detected by the sensor SR0 are analog data, and the initial parameters can be converted into digital sampling signals through an analog-to-digital device.
於步驟516中,無線感測裝置1透過感測端無線收發器RV0傳送取樣訊號。In
於步驟517中,無線感測裝置1等待基站控制器BCR透過基站端無線收發器BV0接收取樣訊號。In
於步驟518中,無線感測裝置1判斷是否已達到擷取取樣訊號結束時間(例如已收集一小時的取樣訊號)。若無線感測裝置1判斷已達到擷取取樣訊號結束時間,則進入步驟519。若無線感測裝置1判斷尚未達到擷取取樣訊號結束時間,即當前延遲時間為Y*M*ΔT,亦即3*1*1ms=3ms,則回到步驟515。In
於一實施例中,無線感測裝置1~N中包括一第一無線感測裝置(例如無線感測裝置1)及一第二無線感測裝置(例如無線感測裝置N),第一無線感測裝置及第二無線感測裝置接收到來自無線接收基站20的一啟動訊號,於第一無線感測裝置傳送一第一取樣訊號及一第一取樣時間戳到無線接收基站20後,第二無線感測裝置開始擷取一第二取樣訊號及一第二取樣時間戳。其中,於第一無線感測裝置傳送第一取樣訊號及第一取樣時間戳到無線接收基站20之前,第二無線感測裝置為一延遲狀態。藉此,透過將輪循機制應用於感測器SR0~SRN,當無線傳輸速率低於感測器取樣速度時,仍可確保資料完整性。In one embodiment, the
例如,感測器SR0~SRN皆為同款的感測器,取樣速度為每秒250位元(bit),傳輸時間需要1秒,當無線感測裝置1要傳送600bit時,由於感測器SR0~SRN已經對時完成,先由感測器SR0取樣(1~250 bit),此時其他感測器SR1~SRN為延遲狀態,在感測器SR0傳輸時,感測器SR0暫時不能取樣,由感測器SR1取樣(251~500 bit)並進行傳輸,此時感測器SR1在傳輸時暫時不能取樣,由感測器SR2取樣(501~600 bit)並進行傳輸,藉此可以在一個週期內,透過同步時序的感測器SR0~SR2傳送完此筆資料。For example, the sensors SR0~SRN are all of the same type, the sampling speed is 250 bits per second, and the transmission time takes 1 second. When the
於步驟519中,無線感測裝置1透過感測端無線收發器RV0傳送一結束訊號。In
於步驟520中,無線感測裝置1等待基站控制器BCR透過基站端無線收發器BV0接收結束訊號。In
於步驟521中,基站控制器BCR判斷是否接收結束訊號完畢。若基站控制器BCR判斷接收結束訊號完畢,則進入步驟522。若基站控制器BCR判斷接收結束訊號尚未完畢,則回到步驟520。In
於步驟522中,基站控制器BCR透過訊號解析模組B2還原取樣訊號為感測訊號。In
於步驟523中,基站控制器BCR儲存感測訊號至儲存裝置BST。In step 523, the base station controller BCR stores the sensing signal to the storage device BST.
請參閱第6圖,第6圖係依照本發明一實施例繪示訊號擷取方法之示意圖。為方便說明,在第6圖中,以下以無線接收基站20、無線感測裝置1及無線感測裝置N作說明。Please refer to FIG. 6. FIG. 6 is a schematic diagram illustrating a signal acquisition method according to an embodiment of the present invention. For convenience of description, in FIG. 6 , the wireless
於步驟610中,無線接收基站20配置感測裝置編號,於步驟611中,無線感測裝置1配置編號,於步驟612中,無線感測裝置N配置編號。步驟610~612主要是作初始設定,使無線接收基站20得以應用無線感測裝置1及無線感測裝置N的編號,建立基站端無線收發器BV0~BVK與感測端無線收發器RV0~RVN的對應關係。於步驟613中,無線感測裝置1配置啟動初始延遲時間,於步驟614中,無線感測裝置N配置啟動初始延遲時間,於步驟615中,時間同步模組C1促使無線感測裝置1及無線感測裝置N進行時脈同步。In
於步驟616中,無線接收基站20發送測試訊號至所有無線感測裝置(此例以無線感測裝置1及無線感測裝置N作代表),若無線感測裝置1及無線感測裝置N收到測試訊號並回傳一確認通知至無線接收基站20,則無線接收基站20傳送啟動訊號,於步驟617中,無線感測裝置1接收來自無線接收基站20的測試訊號,於步驟618中,無線感測裝置N接收來自無線接收基站20的測試訊號,於步驟619中,無線感測裝置1回傳取樣時間戳至無線接收基站20,於步驟620中,無線感測裝置N回傳一取樣時間戳至無線接收基站20。於步驟621中,無線接收基站20評估同步品質,基站控制器BCR將所有取樣時間戳,各自與無線接收基站20發送測試訊號的一測試時間戳相減後,取得複數個回傳時間,計算此些回傳時間的一平均值,依據平均值將每個無線感測裝置1的感測端控制器CR0及無線感測裝置N中的感測端控制器CRN進同步時序校正。於一實施例中,步驟616~621可以進行多次,以更精準的校正時序。In
於步驟622中,無線接收基站20傳送啟動訊號至無線感測裝置1及無線感測裝置N,於步驟623中,無線接收基站20持續等待取樣訊號,於步驟624中,無線感測裝置1延遲開始,於步驟625中,無線感測裝置N延遲開始,於步驟626中,無線感測裝置1延遲結束,在一些例子中,初始擷取取樣訊號不一定有延遲,因此在步驟622後,可以直接進入步驟627。In
於步驟627中,無線感測裝置1開始擷取取樣訊號,於步驟628中,無線感測裝置1傳送取樣訊號,於步驟629中,無線感測裝置N延遲結束,於步驟630中,無線接收基站20接收取樣訊號,於步驟631中,無線感測裝置N開始擷取取樣訊號,於步驟632中,無線感測裝置N開始傳送取樣訊號,於步驟633中,無線接收基站20接收取樣訊號。其中,步驟625到步驟629之間的無線感測裝置N的延遲較長,是為了等待無線感測裝置1擷取並傳送取樣訊號後,無線感測裝置N再擷取並傳送取樣訊號。In step 627, the
請參閱第7~8圖,第7圖係依照本發明一實施例繪示訊號擷取方法之示意圖。第8圖係依照本發明一實施例繪示訊號還原感測訊號方法之示意圖。於第7圖中,原始訊號L1為類比訊號,無線感測裝置1~3會在原始資料L1中擷取資料並轉成數位訊號。無線感測裝置1的感測器SR0在時間t1的資料擷取點取得的類比訊號會被轉換為數位訊號P1,經過時間常數ΔT後(此處假設資料筆數M為1,因此算式為,M*ΔT=ΔT),無線感測裝置2的感測器SR1在時間t2的資料擷取點取得的類比訊號會被轉換為數位訊號P2,再經過時間常數ΔT後,無線感測裝置3的感測器SR2在時間t3的資料擷取點取得的類比訊號會被轉換為數位訊號P3,接著,又回到無線感測裝置1的感測器SR0在時間t4的資料擷取點取得的類比訊號會被轉換為數位訊號P4…依此類推。由此可知,透過輪循的方式使用感測器SR0~SR2,在擷取資料時,感測器SR0~SR2可以輪流擷取資料,並由對應的感測端無線收發器RV0~RV2傳送資料,不用等到無線感測裝置1~3任何一者傳輸資料完畢,才傳下一段資料。在上述例子中,於無線感測裝置1傳輸資料時,無線感測裝置2即可擷取資料並傳輸資料,當無線感測裝置1~3的傳輸速率低於感測器SR0~SR2的取樣速率時,仍可確保資料的完整性,若有資料在傳輸時遺失,也可以透過內插法,補足遺失的資料。Please refer to FIGS. 7-8. FIG. 7 is a schematic diagram illustrating a signal acquisition method according to an embodiment of the present invention. FIG. 8 is a schematic diagram illustrating a method for signal restoration of a sensing signal according to an embodiment of the present invention. In Figure 7, the original signal L1 is an analog signal, and the wireless sensing devices 1-3 will capture data from the original data L1 and convert it into a digital signal. The analog signal obtained by the sensor SR0 of the
在一實施例中,當感測器SR0~SR2用於感測機台震動時,感測器SR0~SR2感測的速度很快,但無線傳輸裝置1~3的感測端無線收發器傳送速率RV0~RV2不夠快,因此透過無線傳輸裝置1~3輪流傳送取樣訊號,最後再由無線接收基站20依據取樣時間戳重組此些取樣訊號,以取得感測訊號。In one embodiment, when the sensors SR0-SR2 are used to sense the vibration of the machine, the sensing speed of the sensors SR0-SR2 is very fast, but the wireless transceivers at the sensing ends of the wireless transmission devices 1-3 transmit The rates RV0-RV2 are not fast enough, so the wireless transmission devices 1-3 transmit the sampled signals in turn, and finally the wireless
於一實施例中,感測器SR0~SR1可用來測溫度的取樣訊號,感測器SR3可用來測震動的取樣訊號,依前述同樣的方式操作,無線接收基站20依據感測器SR0~SR1的取樣時間戳重組此些溫度的取樣訊號,以取得溫度的感測訊號,依據感測器SR2的取樣時間戳重組此些震動的取樣訊號,以取得震動的感測訊號。於一實施例中,資料處理模組B3讀取感測訊號以作進一步的應用。In one embodiment, the sensors SR0-SR1 can be used to measure the sampled signals of temperature, and the sensor SR3 can be used to measure the sampled signals of vibration. In the same manner as described above, the wireless
於一實施例中,數位訊號P1~P9可以視為取樣訊號,將取樣訊號P1~P9依時序相連起來所得到的線段為感測訊號,以下以第8圖說明。In one embodiment, the digital signals P1-P9 can be regarded as sampling signals, and the line segment obtained by connecting the sampling signals P1-P9 in sequence is the sensing signal, which is described below with reference to FIG. 8 .
於第8圖中,原始訊號L1為類比訊號,無線感測裝置1~3會在原始資料L1中擷取資料並轉成數位訊號。由於感測端無線收發器RV0~RV2的傳輸速率可能依各種環境影響而不同,無線接收基站20收到亂序的取樣訊號P1~P9,例如在第8圖的還原前接收資料(取樣訊號)依接收順序為“2-2”、“1-1”、“3-3”、“1-4”、“2-5”、“1-7”、“3-6”、“2-8”、“3-9”,這些符號的表示方式為,在“-”之前的數值代表無線感測裝置代碼,在“-”之後的數值代表取樣時間戳(值越小代表是先取樣的資料),舉例而言,“3-6”代表無線感測裝置3所傳來的資料在取樣時間戳6傳出,“2-5” 代表無線感測裝置2所傳來的資料在取樣時間戳5傳出,其中,“1-4”為空心點,代表無線感測裝置1在取樣時間戳4沒有正確傳出資料,在接收順序底下有“X”標記的資料代表接收順序不正確。取樣時間戳的實際格式依系統內部而定,此處僅用數值示意說明之。In Fig. 8, the original signal L1 is an analog signal, and the wireless sensing devices 1-3 will capture data from the original data L1 and convert it into a digital signal. Since the transmission rates of the wireless transceivers RV0-RV2 at the sensing end may vary according to various environmental influences, the wireless
因此,無線接收基站20依時序排列還原後的資料(取樣訊號)為“1-1”、“2-2”、“3-3”、“4”(由相鄰兩筆資料作內插運算補值)、“2-5”、“3-6”、“1-7”、“2-8”、“3-9”,由此可見,在“-”之後的數值漸增,代表已依據取樣時間戳正確重組取樣訊號P1~P9,得到此時間區間內的感測訊號。於一實施例中,感測訊號可以視為儲存資料,儲存於儲存裝置BST中。Therefore, the restored data (sampling signals) of the wireless
綜上,本發明所述的訊號擷取系統及訊號擷取方法使所有無線感測裝置時脈與時序同步,在無線傳輸速率低於感測器取樣速率時,仍可有效率的透過多個已同步的無線感測裝置輪流傳送取樣訊號及取樣時間戳,無線接收基站接收此些取樣訊號,並依據取樣時間戳重組取樣訊號,針對缺失的取樣訊號使用內插法補值,以還原感測訊號,並達到確保感測資料的完整性的效果。To sum up, the signal acquisition system and signal acquisition method of the present invention can synchronize the clocks and timings of all wireless sensing devices, so that when the wireless transmission rate is lower than the sampling rate of the sensor, it can still efficiently transmit multiple The synchronized wireless sensing devices transmit sampling signals and sampling time stamps in turn, and the wireless receiving base station receives these sampling signals, reconstructs the sampling signals according to the sampling time stamps, and uses interpolation for the missing sampling signals to restore the sensing signal, and achieve the effect of ensuring the integrity of the sensing data.
雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Anyone skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection of the present invention The scope shall be determined by the scope of the appended patent application.
100:訊號擷取系統
1~N:無線感測裝置
20:無線接收基站
30:待測裝置
CR0~CRN:感測端控制器
SR0~SRN:感測器
ST0~STN、BST:儲存裝置
RV0~RVN:感測端無線收發器
GP:無線感測裝置群
BCR:基站控制器
BV0~BVK:基站端無線收發器
C1:時間同步模組
C2:控制參數載入模組
C3:感測資料擷取模組
B1:感測訊號配置模組
B2:訊號解析模組
B3:資料處理模組
410~460,510~523,610~633:步驟
P1~P9:取樣訊號
L1:原始訊號
t1~t9:時間
ΔT:時間常數
M:資料筆數100:
第1圖係依照本發明一實施例繪示訊號擷取系統之方塊圖。 第2圖依照本發明一實施例繪示感測端控制器之內部模組示意圖。 第3圖係依照本發明一實施例繪示基站控制器之內部模組示意圖。 第4圖係依照本發明一實施例繪示訊號擷取方法之流程圖。 第5A~5B圖係依照本發明一實施例繪示訊號擷取方法之流程圖。 第6圖係依照本發明一實施例繪示訊號擷取方法之示意圖。 第7圖係依照本發明一實施例繪示訊號擷取方法之示意圖。 第8圖係依照本發明一實施例繪示訊號還原感測訊號方法之示意圖。FIG. 1 is a block diagram illustrating a signal acquisition system according to an embodiment of the present invention. FIG. 2 is a schematic diagram of an internal module of a sensor controller according to an embodiment of the present invention. FIG. 3 is a schematic diagram illustrating an internal module of a base station controller according to an embodiment of the present invention. FIG. 4 is a flow chart illustrating a signal acquisition method according to an embodiment of the present invention. FIGS. 5A-5B are flowcharts illustrating a signal acquisition method according to an embodiment of the present invention. FIG. 6 is a schematic diagram illustrating a signal acquisition method according to an embodiment of the present invention. FIG. 7 is a schematic diagram illustrating a signal acquisition method according to an embodiment of the present invention. FIG. 8 is a schematic diagram illustrating a method for signal restoration of a sensing signal according to an embodiment of the present invention.
410~460:步驟410~460: Steps
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109122948A TWI771706B (en) | 2020-07-08 | 2020-07-08 | Signal capture system and signal capture method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109122948A TWI771706B (en) | 2020-07-08 | 2020-07-08 | Signal capture system and signal capture method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202203686A TW202203686A (en) | 2022-01-16 |
TWI771706B true TWI771706B (en) | 2022-07-21 |
Family
ID=80787704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109122948A TWI771706B (en) | 2020-07-08 | 2020-07-08 | Signal capture system and signal capture method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI771706B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200507655A (en) * | 2002-12-16 | 2005-02-16 | Koninkl Philips Electronics Nv | System for modifying the time-base of a video signal |
US20180053310A1 (en) * | 2016-08-19 | 2018-02-22 | Crystal Instruments Corporation | Vibration image acquisition and processing |
US20180081390A1 (en) * | 2016-09-16 | 2018-03-22 | Apple Inc. | Inter-chip time synchronization |
-
2020
- 2020-07-08 TW TW109122948A patent/TWI771706B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200507655A (en) * | 2002-12-16 | 2005-02-16 | Koninkl Philips Electronics Nv | System for modifying the time-base of a video signal |
US20180053310A1 (en) * | 2016-08-19 | 2018-02-22 | Crystal Instruments Corporation | Vibration image acquisition and processing |
US20180081390A1 (en) * | 2016-09-16 | 2018-03-22 | Apple Inc. | Inter-chip time synchronization |
Also Published As
Publication number | Publication date |
---|---|
TW202203686A (en) | 2022-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8259758B2 (en) | Network slave node and time synchronization method in network applying the same | |
KR101606043B1 (en) | High precision synchronized measured value acquisition | |
JP5984979B2 (en) | Sensor device and data transmission method for sensor device | |
CN101242231B (en) | Clock synchronization device for synchronous phase measuring in power system | |
JP6183016B2 (en) | Sensor information processing apparatus, sensor information processing method, and sensor information processing program | |
JP6527289B2 (en) | Time synchronization method, sensor accommodating terminal, and sensor network system | |
EP1784739A2 (en) | Communication controller with automatic time stamping | |
JP2010518760A5 (en) | ||
TWI497970B (en) | Techniques for improved clock offset measuring | |
CN110986921B (en) | Data communication and processing method for astronomical integrated navigation system | |
US9823646B2 (en) | Device and method for generating a trigger signal in a position-measuring device and corresponding position-measuring device | |
US20030179104A1 (en) | Device and method to establish temporal correspondence in multiple sensor configurations | |
CN101951300B (en) | Method for realizing accurate time tick of Ethernet | |
JP2002171354A (en) | Radio equipment for automatic meter-reading system | |
TWI771706B (en) | Signal capture system and signal capture method | |
CN112804022B (en) | Multi-source signal synchronization system and method thereof | |
CN113923702B (en) | Signal acquisition system and signal acquisition method | |
CN111163011B (en) | Data processing method of wireless router based on PTP (precision time protocol) | |
US11489525B1 (en) | Device and method for synchronous serial data transmission | |
CN114884605A (en) | Method for realizing time synchronization of network nodes based on FPGA | |
JP4313715B2 (en) | Synchronization establishment circuit and synchronization establishment method | |
TWI736497B (en) | Electronic device and electronic product | |
CN108039042B (en) | Digital-analog signal transmission system and transmission method | |
JP2559237Y2 (en) | Serial data sampling signal generator | |
KR101313273B1 (en) | Time stamping apparatus and method for network timing synchronization |