TWI489114B - CAN-BUS communication method and system for embedded oscilloscope - Google Patents

CAN-BUS communication method and system for embedded oscilloscope Download PDF

Info

Publication number
TWI489114B
TWI489114B TW102124251A TW102124251A TWI489114B TW I489114 B TWI489114 B TW I489114B TW 102124251 A TW102124251 A TW 102124251A TW 102124251 A TW102124251 A TW 102124251A TW I489114 B TWI489114 B TW I489114B
Authority
TW
Taiwan
Prior art keywords
bus
data
oscilloscope
embedded
communication interface
Prior art date
Application number
TW102124251A
Other languages
Chinese (zh)
Other versions
TW201502530A (en
Original Assignee
Univ China Sci & Tech
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 Univ China Sci & Tech filed Critical Univ China Sci & Tech
Priority to TW102124251A priority Critical patent/TWI489114B/en
Publication of TW201502530A publication Critical patent/TW201502530A/en
Application granted granted Critical
Publication of TWI489114B publication Critical patent/TWI489114B/en

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Description

嵌入式示波器之CAN-BUS通訊方法及系統CAN-BUS communication method and system for embedded oscilloscope

本發明係有關一種嵌入式示波器之CAN-BUS通訊方法及系統,尤指一種可以收集量測資訊以及監控示波器運作的CAN-BUS通訊技術。The invention relates to a CAN-BUS communication method and system for an embedded oscilloscope, in particular to a CAN-BUS communication technology capable of collecting measurement information and monitoring the operation of the oscilloscope.

按,示波器係為一種電子測量儀器,主要是用來顯示電壓信號的動態波形。示波器的作用,係將時變的電壓信號,轉換為時間域或是頻域的曲線 。使原本為不可見的電氣信號,可以被轉換為在二維平面上可被觀察的可見光信號,藉由示波器即可分析電氣信號的時域及頻域性質。不僅如此,數位示波器可以快速的對訊號做出分析,測得頻率、振幅、週期等資訊,並可以對訊號做出加減乘除、訊號數位化及存檔或是列印等動作,甚至可以做出傅立葉轉換的複雜運算,對於產學業界之實驗數據處理上確實有著極大的方便性。Press, the oscilloscope is an electronic measuring instrument, mainly used to display the dynamic waveform of the voltage signal. The role of the oscilloscope is to convert a time-varying voltage signal into a time domain or a frequency domain curve . The electrical signal, which is originally invisible, can be converted into a visible light signal that can be observed on a two-dimensional plane, and the time domain and frequency domain properties of the electrical signal can be analyzed by an oscilloscope. Not only that, the digital oscilloscope can quickly analyze the signal, measure the frequency, amplitude, period and other information, and can add, subtract, multiply and divide the signal, digitize and archive or print the signal, and even make Fourier. The complex calculation of conversion is indeed very convenient for the processing of experimental data in the industry.

依據目前所知,利用示波器來檢測待測物(如電路元件、電路板、電氣設備或是晶片等)的電氣訊號已為非常習知的技術,其應用之代表性專利如本國新型第M421506號『檢測系統』專利所示,其係電性連接一示波器及一電源供應器,用以檢測一待測晶片,其中該待測晶片電性連接於該示波器與該電源供應器,該檢測系統包括:一判斷裝置;以及一電波測試裝置,係與該判斷裝置電性連接,用以發出一第一指令至該示波 器,以使該示波器量測該待測晶片所產生之一第一電磁波,以擷取該第一電磁波之一電波值,並回傳該電波值至該檢測系統,以使該判斷裝置根據該電波值判斷該待測晶片是否異常。該專利雖然可以應用在工業生產線上,以對待測晶片做出異常與否的檢測;惟,其示波器僅能提供電波值、電壓及電流等基本的資訊而已,至於操作示波器所需的各種指令功能碼、運作設定資訊、訊號傳輸之故障偵測機制以及各示波器之間的識別機制皆無法提供給後台之監控裝置知悉,不僅在工業生產線上的檢測應用上會有一定程度的限制,而且無法讓多台示波器同時進行線上的檢測作業,因而確實無法提升工業生產線上的訊號檢測效能。As far as is known, the use of an oscilloscope to detect the electrical signal of a test object (such as a circuit component, a circuit board, an electrical device, or a wafer) is a well-known technique, and a representative patent for its application, such as the domestic new type M421506 The detection system is electrically connected to an oscilloscope and a power supply for detecting a wafer to be tested, wherein the wafer to be tested is electrically connected to the oscilloscope and the power supply, and the detection system includes a judging device; and a radio wave testing device electrically connected to the judging device for issuing a first command to the oscilloscope The oscilloscope is configured to measure a first electromagnetic wave generated by the wafer to be tested to capture a value of the first electromagnetic wave, and return the wave value to the detection system, so that the determining device is configured according to the The electric wave value determines whether the wafer to be tested is abnormal. Although the patent can be applied to industrial production lines to detect abnormalities in the wafer to be tested; however, the oscilloscope can only provide basic information such as electric wave value, voltage and current, as well as various command functions required to operate the oscilloscope. The code, operation setting information, fault detection mechanism of signal transmission and the identification mechanism between each oscilloscope cannot be provided to the monitoring device in the background, which not only has a certain limit on the detection application on the industrial production line, but also cannot be allowed. Multiple oscilloscopes perform on-line inspections at the same time, so it is impossible to improve the signal detection performance on industrial production lines.

緣是,上述該習用結構確實未臻完善,仍有改善的必要性。再者,直到目前為止,尚無一種將CAN-BUS通訊程式預先設定於嵌入式示波器的產品、論文或是專利被提出,有鑑於此,本發明人乃積極投入研發,經不斷的研究、設計、實作與試驗,終而有本發明的研發成果。The reason is that the above-mentioned conventional structure is indeed not perfect, and there is still a need for improvement. Furthermore, until now, no product, paper or patent that pre-sets the CAN-BUS communication program to the embedded oscilloscope has been proposed. In view of this, the inventors have actively invested in research and development, and have been continuously researching and designing. , implementation and experiment, and finally have the research and development results of the present invention.

本發明第一目的,在於提供一種嵌入式示波器之CAN-BUS通訊方法及系統,主要是將CAN BUS通訊介面預先制定為具備各種資料傳遞功能與作用的信箱,以方便於使用者規劃測試治具時將CAN BUS信箱初始化為偵測待測訊號的狀態,除了可以方便地與自動測試治具及監控裝置做快速有效的整合控制之外,並可增加系統的彈性與響應,藉以增加整體測試系統的解析能力。達成本發明第一目的之技術手段,係於示波器寫入一控制程式。於示波器系統初始化時,控制程式將通訊介面 (CAN-BUS)之複數暫存器定義劃分為可供複數信箱,並處於等待接收資料的狀態。以示波器於量測待測物而產生量測訊號,並處理量測訊號而產生可分別載入對應之信箱內的該資料。以通訊介面(CAN-BUS)將量測資料及系統運作資料轉換為CAN-BUS格式之封包資料,再透過控制區域網路(CAN-BUS)將封包資料傳送出去,俾能收集量測資訊以及自動監控示波器的運作狀態。The first object of the present invention is to provide a CAN-BUS communication method and system for an embedded oscilloscope, which mainly pre-forms a CAN BUS communication interface into a mailbox having various data transmission functions and functions, so as to facilitate the user to plan a test fixture. When the CAN BUS mailbox is initialized to detect the state of the signal to be tested, in addition to the quick and effective integrated control of the automatic test fixture and the monitoring device, the flexibility and response of the system can be increased, thereby increasing the overall test system. Analytical ability. The technical means for achieving the first object of the present invention is to write a control program to the oscilloscope. When the oscilloscope system is initialized, the control program will communicate with the communication interface. The (COM-BUS) complex register definition is divided into multiple mailboxes and is in a state of waiting to receive data. The oscilloscope is used to measure the test object to generate a measurement signal, and the measurement signal is processed to generate the data that can be respectively loaded into the corresponding mailbox. The communication interface (CAN-BUS) converts the measurement data and system operation data into packet data in CAN-BUS format, and then transmits the packet data through the control area network (CAN-BUS), and can collect measurement information and Automatically monitor the operating status of the oscilloscope.

本發明第二目的,在於提供一種可進行多工線上檢測作業的CAN-BUS通訊方法及系統,藉由測試治具及CAN-BUS通訊網路的建置,讓多台示波器進行多工線上檢測作業,藉以提升工業生產線上的訊號檢測效能。達成本發明第二目的之技術手段,係於示波器寫入一控制程式。於示波器系統初始化時,控制程式將通訊介面(CAN-BUS)之複數暫存器定義劃分為可供複數信箱,並處於等待接收資料的狀態。以示波器於量測待測物而產生量測訊號,並處理量測訊號而產生可分別載入對應之信箱內的該資料。以通訊介面(CAN-BUS)將量測資料及系統運作資料轉換為CAN-BUS格式之封包資料,再透過控制區域網路(CAN-BUS)將封包資料傳送出去,俾能收集量測資訊以及自動監控示波器的運作狀態。其中,其更包含一測試治具、一位置感測模組及一透過該控制區域網路(CAN-BUS)而與該通訊介面(CAN-BUS)訊號連結的監控裝置,該測試治具用以將該待測物輸送至該嵌入式示波器之一量測模組的量測位置,當該待測物進入該量測位置時,該位置感測模組則以一訊號觸發該嵌入式示波器,使該嵌入式示波器執行該待測 物的量測動作。當該監控裝置發出資料傳輸要求的指令時,該通訊介面(CAN-BUS)則將該信箱內所需之該封包資料透過該控制區域網路(CAN-BUS)傳輸至該監控裝置。A second object of the present invention is to provide a CAN-BUS communication method and system capable of performing multi-line detection operations, and allowing multiple oscilloscopes to perform multi-line inspection operations by using a test fixture and a CAN-BUS communication network. In order to improve the signal detection efficiency of industrial production lines. The technical means for achieving the second object of the present invention is to write a control program to the oscilloscope. When the oscilloscope system is initialized, the control program divides the complex register definition of the communication interface (CAN-BUS) into a plurality of mailboxes and is in a state of waiting to receive data. The oscilloscope is used to measure the test object to generate a measurement signal, and the measurement signal is processed to generate the data that can be respectively loaded into the corresponding mailbox. The communication interface (CAN-BUS) converts the measurement data and system operation data into packet data in CAN-BUS format, and then transmits the packet data through the control area network (CAN-BUS), and can collect measurement information and Automatically monitor the operating status of the oscilloscope. The method further includes a test fixture, a position sensing module, and a monitoring device connected to the communication interface (CAN-BUS) signal through the control area network (CAN-BUS). The position sensing module is triggered by a signal to trigger the embedded oscilloscope when the object to be tested enters the measurement position of the measurement module of the embedded oscilloscope. , allowing the embedded oscilloscope to perform the test The measurement action of the object. When the monitoring device issues an instruction for data transmission request, the communication interface (CAN-BUS) transmits the packet data required in the mailbox to the monitoring device through the control area network (CAN-BUS).

1‧‧‧待測物1‧‧‧Test object

10‧‧‧示波器10‧‧‧Oscilloscope

11‧‧‧量測模組11‧‧‧Measurement module

12‧‧‧中央處理模組12‧‧‧Central Processing Module

13‧‧‧顯示模組13‧‧‧Display module

14‧‧‧可程式增益放大器14‧‧‧Programmable Gain Amplifier

15‧‧‧最大取樣模組15‧‧‧Maximum sampling module

16‧‧‧高速類比/數位轉換器16‧‧‧High speed analog/digital converter

17‧‧‧記憶體17‧‧‧ memory

20‧‧‧通訊介面20‧‧‧Communication interface

21‧‧‧CAN-BUS控制器21‧‧‧CAN-BUS controller

22‧‧‧CAN-BUS收發器22‧‧‧CAN-BUS Transceiver

30‧‧‧控制區域網路30‧‧‧Control area network

40‧‧‧監控裝置40‧‧‧Monitor

50‧‧‧測試治具50‧‧‧Test fixture

60‧‧‧位置感測模組60‧‧‧ Position Sensing Module

圖1係本發明基本實施架構的功能方塊示意圖;圖2係本發明於線上檢測實施的功能方塊示意圖;圖3係本發明具體實施架構的功能方塊示意圖;圖4係本發明信箱的分配實施示意圖。1 is a functional block diagram of a basic implementation architecture of the present invention; FIG. 2 is a functional block diagram of an online detection implementation of the present invention; FIG. 3 is a functional block diagram of a specific implementation architecture of the present invention; .

圖5係本發明系統運作的流程實施示意圖。Figure 5 is a schematic diagram showing the flow of the operation of the system of the present invention.

圖6係本發明信箱的資料位元配置示意圖。6 is a schematic diagram of the configuration of data bits of the mailbox of the present invention.

壹.第一實施例壹. First embodiment

請配合參看圖1、4所示,為達成本發明第一目的之具體實施例,係包括一嵌入式示波器10、一通訊介面20(CAN-BUS)及一控制區域網路30(CAN-BUS)等技術特徵。其中,嵌入式示波器10內建有一控制程式。通訊介面20(CAN-BUS)則包含複數暫存器。嵌入式示波器10系統初始化時,控制程式則將通訊介面20(CAN-BUS)之複數暫存器定義劃分為可供複數資料暫存的信箱23,並處於等待接收資料的狀態。當嵌入式示波器10於量測一待測物1而產生一量測訊號時,則處理該量測訊號而產生上述資料,上述資料係包括一種與量測訊號相應之量測資料以及至少一種系統運作資料。接著,控制程式將量測資 料及系統運作資料分別載入對應的信箱23內,再由通訊介面20(CAN-BUS)將量測資料及系統運作資料轉換為CAN-BUS格式之封包資料,再透過控制區域網路30(CAN-BUS)將上述封包資料傳送出去。Referring to FIG. 1 and FIG. 4, in order to achieve the first embodiment of the present invention, an embedded oscilloscope 10, a communication interface 20 (CAN-BUS), and a control area network 30 (CAN-BUS) are included. ) and other technical features. Among them, the embedded oscilloscope 10 has a built-in control program. The communication interface 20 (CAN-BUS) contains a complex register. When the embedded oscilloscope 10 system is initialized, the control program divides the complex register definition of the communication interface 20 (CAN-BUS) into a mailbox 23 for temporary data storage, and is in a state of waiting for receiving data. When the embedded oscilloscope 10 measures a test object 1 to generate a measurement signal, the measurement signal is processed to generate the data, and the data includes a measurement data corresponding to the measurement signal and at least one system. Operational information. Then, the control program will measure the capital. The material and system operation data are respectively loaded into the corresponding mailbox 23, and the measurement information and system operation data are converted into the CAN-BUS format packet data by the communication interface 20 (CAN-BUS), and then transmitted through the control area network 30 (CAN). -BUS) Transfer the above packet data.

具體而言,如圖1所示之嵌入式示波器10係包括一用以量測一待測物1而產生量測訊號的量測模組11、一用以處理量測訊號的中央處理模組12、一用以將量測訊號顯示為量測資訊的顯示模組13、一用以將量測訊號做訊號放大處理的可程式增益放大器14、一用以對量測訊號以最大值取樣的最大取樣模組15、一用以將量測訊號轉換為數位訊號的高速類比/數位轉換器16及一用以儲存資料的記憶體17(如FIFO暫存器)。Specifically, the embedded oscilloscope 10 shown in FIG. 1 includes a measurement module 11 for measuring a test object 1 and generating a measurement signal, and a central processing module for processing the measurement signal. 12. A display module 13 for displaying the measurement signal as measurement information, a programmable gain amplifier 14 for amplifying the measurement signal, and a maximum sampling signal for the measurement signal. The maximum sampling module 15, a high-speed analog/digital converter 16 for converting the measurement signal into a digital signal, and a memory 17 (such as a FIFO register) for storing data.

貳.第二實施例第二.Second embodiment

請配合參看圖1~4所示,為達成本發明第二目的之具體實施例,係包括至少一嵌入式示波器10、至少一通訊介面20(CAN-BUS)、一控制區域網路30(CAN-BUS)、一監控裝置40、一測試治具50及一位置感測模組60等技術特徵。其中,嵌入式示波器10內建有一控制程式。通訊介面20(CAN-BUS)則包含複數暫存器。嵌入式示波器10系統初始化時,控制程式則將通訊介面20(CAN-BUS)之複數暫存器定義劃分為可供複數資料暫存的信箱23,並處於等待接收資料的狀態。另一方面,測試治具50(如輸送帶、機械手臂或是其他機械式運送機構)則將待測物1輸送至嵌入式示波器10之量測模組11的量測位置(即與探針接觸的位置),當待測物1進入量測位置時,位置感測模組60則以一訊號觸發嵌入式示波器10,使嵌入式示波器10執行待測物的 量測動作,並產生一量測訊號,再透過訊號處理而產生上述資料。上述資料係包括一種與量測訊號相應之量測資料以及至少一種系統運作資料。接著,控制程式將量測資料及系統運作資料分別載入對應的信箱23內,再由通訊介面20(CAN-BUS)將量測資料及系統運作資料轉換為CAN-BUS格式之封包資料。當監控裝置40發出資料傳輸要求的指令時,通訊介面20(CAN-BUS)則將各信箱23內之封包資料透過控制區域網路30(CAN-BUS)傳輸至監控裝置40。Referring to FIG. 1 to FIG. 4, in order to achieve the second embodiment of the present invention, at least one embedded oscilloscope 10, at least one communication interface 20 (CAN-BUS), and a control area network 30 (CAN) are included. -BUS), a monitoring device 40, a test fixture 50, and a position sensing module 60. Among them, the embedded oscilloscope 10 has a built-in control program. The communication interface 20 (CAN-BUS) contains a complex register. When the embedded oscilloscope 10 system is initialized, the control program divides the complex register definition of the communication interface 20 (CAN-BUS) into a mailbox 23 for temporary data storage, and is in a state of waiting for receiving data. On the other hand, the test fixture 50 (such as a conveyor belt, a robot arm or other mechanical transport mechanism) transports the test object 1 to the measurement position of the measurement module 11 of the embedded oscilloscope 10 (ie, with the probe). Position of the contact), when the object to be tested 1 enters the measurement position, the position sensing module 60 triggers the embedded oscilloscope 10 with a signal, so that the embedded oscilloscope 10 performs the object to be tested. The measurement action is performed, and a measurement signal is generated, and then the signal is processed to generate the above data. The above data includes a measurement data corresponding to the measurement signal and at least one system operation data. Then, the control program loads the measurement data and the system operation data into the corresponding mailbox 23, and then converts the measurement data and the system operation data into the packet data of the CAN-BUS format by the communication interface 20 (CAN-BUS). When the monitoring device 40 issues an instruction for data transmission request, the communication interface 20 (CAN-BUS) transmits the packet data in each mailbox 23 to the monitoring device 40 through the control area network 30 (CAN-BUS).

於一種較為具體的實施例中,請參看圖5所示,當監控裝置40發出資料傳輸要求的指令時,該通訊介面(CAN-BUS)則執行指令解讀,並取出一系統站號資料載入於其中一個信箱23內,再由監控裝置40判斷系統站號資料是否註冊,當判斷結果為是,該控制程式則將量測資料及系統運作資料分別載入對應的信箱23內,並對各信箱23進行錯誤偵測的運算而分別產生一錯誤檢查碼高位元(MSB)資料以及一錯誤檢查碼低位元(LSB)資料,當錯誤偵測運算結果為正確時,則將錯誤檢查碼高位元(MSB)資料及錯誤檢查碼低位元(LSB)資料分別載入另外二個信箱23內。接著,通訊介面20(CAN-BUS)再將各信箱內23之量測資料、系統運作資料、系統站號資料、錯誤檢查碼高位元(MSB)資料及錯誤檢查碼低位元(LSB)資料轉換為上述資料格式的封包資料,並透過控制區域網路30(CAN-BUS)傳輸至監控裝置40中。In a more specific embodiment, referring to FIG. 5, when the monitoring device 40 issues an instruction for data transmission request, the communication interface (CAN-BUS) performs instruction interpretation and takes out a system station number data loading. In one of the mailboxes 23, the monitoring device 40 determines whether the system station number data is registered. When the determination result is yes, the control program loads the measurement data and the system operation data into the corresponding mailbox 23, respectively, and The mailbox 23 performs an error detection operation to generate an error check code high bit (MSB) data and an error check code low bit (LSB) data respectively. When the error detection operation result is correct, the error check code high bit is generated. The (MSB) data and the error check code low bit (LSB) data are loaded into the other two mailboxes 23, respectively. Then, the communication interface 20 (CAN-BUS) converts the measurement data, system operation data, system station number data, error check code high bit (MSB) data and error check code low bit (LSB) data in each mailbox 23 The packet data of the above data format is transmitted to the monitoring device 40 through the control area network 30 (CAN-BUS).

具體而言,上述系統運作資料包含可分別載入於六個信箱23內的指令功能代碼(即操作示波器的各種指令功能碼)、系統運行 模式選擇(即示波器運作的選擇模式)、時間基底單位(即基本單位面積的時間單位)、觸發基底單位(即觸發模式的基本設定單位)、系統狀態碼(即示波器10所處的運作狀態)、測試治具50狀態碼(即測試治具所處的運作狀態)以及列印模式選擇(即示波器的列印模式選擇)等資料。在此,必須補充的是,通訊介面20(CAN-BUS)用以將上述系統運作資料、量測資料及系統註冊站號資料打包成一種CAN-BUS格式(DATA FRAME)的封包資料。具體言之,上述封包資料包含其中一種或多種系統運作資料或是量測資料以及系統站號資料所組合成的串列位元碼。至於量測資料則包括可分別載入於六個信箱23內的X軸基本時間基底單位高位元(MSB)資料、X軸基本時間基底單位低位元(LSB)資料、Y軸基本時間基底單位高位元(MSB)資料、Y軸基本時間基底單位低位元(LSB)資料、Z軸基本時間基底單位高位元(MSB)資料以及Z軸基本時間基底單位低位元(LSB)資料。Specifically, the system operation data includes instruction function codes (ie, various instruction function codes for operating the oscilloscope) that can be respectively loaded in the six mailboxes 23, and the system operates. Mode selection (ie selection mode for oscilloscope operation), time base unit (ie time unit of basic unit area), trigger base unit (ie basic setting unit of trigger mode), system status code (ie operating state of oscilloscope 10) Test fixture 50 status code (ie, the operating state of the test fixture) and print mode selection (ie, the oscilloscope's print mode selection). Here, it must be added that the communication interface 20 (CAN-BUS) is used to package the above system operation data, measurement data and system registration station number data into a CAN-BUS format (DATA FRAME) packet data. Specifically, the packet data includes one or more system operation data or a serial bit code combined with the measurement data and the system station number data. As for the measurement data, the X-axis basic time base unit high-order element (MSB) data, the X-axis basic time base unit low-order element (LSB) data, and the Y-axis basic time base unit high level which can be respectively loaded in the six letter boxes 23 are included. The element (MSB) data, the Y-axis basic time base unit low-order element (LSB) data, the Z-axis basic time base unit high-order element (MSB) data, and the Z-axis basic time base unit low-order element (LSB) data.

請參看圖3所示之通訊介面20(CAN-BUS)包括一定義劃分有信箱23的CAN-BUS控制器21及一CAN-BUS22收發器。該CAN-BUS21控制器與嵌入式示波器10電性連接。該CAN-BUS收發器22一端與CAN-BUS控制器21電性連接,另端與控制區域網路30(CAN-BUS)訊號連結。當然,監控裝置40同樣電性連接有一通訊介面20(CAN-BUS),而可收集嵌入式示波器10的量測資料及系統運作資料。具體而言,其一CAN-BUS控制器21與嵌入式示波器10電性連接,用以接收嵌入式示波器10所傳輸的量測資料及系統運作資料,並轉換為CAN-BUS格式之封包資料。其一CAN-BUS收發器22一端 與CAN-BUS控制器21電性連接,另端與控制區域網路30(CAN-BUS)訊號連結,用以將其一CAN-BUS控制器21所傳輸之封包資料分別載入至控制區域網路30(CAN-BUS)的高位元傳輸線及低位元傳輸線。其二CAN-BUS收發器22一端與其二CAN-BUS控制器21電性連接,另端與控制區域網路30(CAN-BUS)訊號連結,用以接收控制區域網路30(CAN-BUS)的高位元傳輸線及低位元傳輸線的封包資料,並傳輸至其二CAN-BUS控制器21,其二CAN-BUS控制器再將封包資料還原為上述的量測資料及系統運作資料,如此監控裝置40即可達到收集各嵌入式示波器10的量測資料及系統運作資料之目的,以供後續利用及做線上的檢測監控用途。由於控制區域網路30(CAN-BUS)具有雙向及雙線資料傳輸的特性,故而當監控裝置40發出資料格式傳輸要求的指令(如向遠端要求資料的遠程格式Remote Transmit Request Frame)時,則進行與上述資料傳輸步驟相反的資料傳輸步驟。Referring to the communication interface 20 (CAN-BUS) shown in FIG. 3, a CAN-BUS controller 21 and a CAN-BUS 22 transceiver defined with a mailbox 23 are defined. The CAN-BUS21 controller is electrically connected to the embedded oscilloscope 10. One end of the CAN-BUS transceiver 22 is electrically connected to the CAN-BUS controller 21, and the other end is connected to the control area network 30 (CAN-BUS) signal. Of course, the monitoring device 40 is also electrically connected to a communication interface 20 (CAN-BUS), and can collect the measurement data and system operation data of the embedded oscilloscope 10. Specifically, a CAN-BUS controller 21 is electrically connected to the embedded oscilloscope 10 for receiving the measurement data and system operation data transmitted by the embedded oscilloscope 10, and converting the packet data into the CAN-BUS format. One end of a CAN-BUS transceiver 22 It is electrically connected to the CAN-BUS controller 21, and the other end is connected to the control area network 30 (CAN-BUS) signal for loading the packet data transmitted by a CAN-BUS controller 21 to the control area network. High-order transmission line and low-order transmission line of road 30 (CAN-BUS). The two CAN-BUS transceivers 22 are electrically connected to one of the two CAN-BUS controllers 21, and the other end is connected to the control area network 30 (CAN-BUS) signal for receiving the control area network 30 (CAN-BUS). The packet data of the high-order transmission line and the low-order transmission line are transmitted to the two CAN-BUS controllers 21, and the second CAN-BUS controller restores the packet data to the above-mentioned measurement data and system operation data, such that the monitoring device 40 can be used to collect the measurement data and system operation data of each embedded oscilloscope 10 for subsequent use and online detection and monitoring purposes. Since the control area network 30 (CAN-BUS) has the characteristics of two-way and two-line data transmission, when the monitoring device 40 issues an instruction for data format transmission requirements (such as a remote format Remote Transmit Request Frame for remote data), Then, the data transmission step opposite to the above data transmission step is performed.

請參看圖4所示,為本發明信箱23的分配示意。圖6所示則為本發明信箱23的資料位元配置示意。由圖4、6中得知,本發明共使用16組信箱23並將信箱23定義為不同傳遞資料功能,藉此將示波器10所擷取的待測物1量測訊號(如波形資料)傳遞出去採用被動詢問模式,接受指令後依指令詢問需求提供相關資料傳遞回詢問端。將嵌入式掌上型示波器10之CAN BUS於系統初始時將信箱23分別規畫不同功能,信箱1:為系統註冊站號、信箱2:為指令功能代碼、信箱3:為系統運行模式選擇、信箱4:為時間基底單位、信箱5:為觸發基底單位、信箱6:為X軸基本時間基底單位資料高位元(MSB)、信箱237:為X軸基本時間基底 單位資料低位元(LSB)、信箱8:為Y軸基本時間基底單位資料高位元(MSB)、信箱9:為Y軸基本時間基底單位資料低位元(LSB)、信箱10:為Z軸基本時間基底單位資料高位元(MSB)、信箱11:為Z軸基本時間基底單位資料低位元(LSB)、信箱12:為系統狀態碼、信箱13:測試治具50統狀態碼、信箱14:為列印模式選擇、信箱15:錯誤檢查碼高位元(MSB)、信箱16:錯誤檢查碼低位元(LSB)。Please refer to FIG. 4, which is an illustration of the allocation of the mailbox 23 of the present invention. FIG. 6 is a schematic diagram showing the configuration of the data bits of the mailbox 23 of the present invention. As can be seen from FIGS. 4 and 6, the present invention uses a total of 16 sets of mailboxes 23 and defines the mailbox 23 as a different data transfer function, thereby transmitting the measurement signals (such as waveform data) of the object 1 to be measured by the oscilloscope 10. Go out to adopt the passive inquiry mode, and after receiving the instruction, provide relevant information according to the instruction request and send it back to the inquiry end. The CAN BUS of the embedded handheld oscilloscope 10 will separately map the different functions of the mailbox 23 at the beginning of the system, the mailbox 1: the registration station number for the system, the mailbox 2: the command function code, the mailbox 3: the system operation mode selection, the mailbox 4: time base unit, letter box 5: trigger base unit, letter box 6: X-axis basic time base unit data high position unit (MSB), letter box 237: X-axis basic time base Unit Data Low Bit (LSB), Mailbox 8: Y-axis Basic Time Base Unit Data High Bit (MSB), Mailbox 9: Y-axis Basic Time Base Unit Data Low Bit (LSB), Mailbox 10: Z-axis Basic Time Base unit data high bit (MSB), letter box 11: Z axis basic time base unit data low bit (LSB), mailbox 12: system status code, mailbox 13: test fixture 50 system status code, mailbox 14: column Print mode selection, mailbox 15: error check code high bit (MSB), mailbox 16: error check code low bit (LSB).

參.結論Reference

藉由上述之具體實施例說明,本發明具有下列的特點:The invention has the following features as illustrated by the specific embodiments described above:

1.本發明可藉由將CAN BUS通訊介面預先制定為具備各種資料傳遞功能與作用的信箱,以方便於使用者規劃測試治具時將CAN BUS信箱初始化為偵測待測訊號的狀態,除了可以方便地與自動測試治具及監控裝置做快速有效的整合控制之外,並可增加系統的彈性與響應,藉以增加整體測試系統的解析能力。1. The invention can be pre-defined as a mailbox with various data transmission functions and functions by the CAN BUS communication interface, so as to facilitate the user to initialize the CAN BUS mailbox to detect the state of the signal to be tested when planning the test fixture, except It can be easily and quickly integrated with automatic test fixtures and monitoring devices, and can increase the flexibility and response of the system to increase the resolution of the overall test system.

2.本發明確實可以進行多工線上檢測作業,藉由測試治具及CAN-BUS通訊網路的建置,讓多台示波器進行多工線上檢測作業,藉以提升工業生產線上的訊號檢測效能。2. The invention can indeed carry out multi-line inspection operations, and the test fixture and the CAN-BUS communication network are built, so that multiple oscilloscopes can perform multi-line inspection operations, thereby improving the signal detection performance on the industrial production line.

以上所述,僅為本發明之可行實施例,並非用以限定本發明之專利範圍,凡舉依據下列請求項所述之內容、特徵以及其精神而為之其他變化的等效實施,皆應包含於本發明之專利範圍內。本發明所具體界定於請求項之結構特徵,未見於同類物品,且具實用性與進步性,已符合發明專利要件,爰依法具文提出申請,謹請 鈞局依法核予專利,以維護本申請人合法之權益。線上的訊號檢測效能。The above is only a possible embodiment of the present invention, and is not intended to limit the scope of the patents of the present invention, and the equivalent implementations of other changes according to the contents, features and spirits of the following claims should be It is included in the patent of the present invention. The invention is specifically defined in the structural features of the request item, is not found in the same kind of articles, and has practicality and progress, has met the requirements of the invention patent, and has filed an application according to law, and invites the bureau to approve the patent according to law to maintain the present invention. The legal rights of the applicant. On-line signal detection performance.

10‧‧‧示波器10‧‧‧Oscilloscope

11‧‧‧量測模組11‧‧‧Measurement module

12‧‧‧中央處理模組12‧‧‧Central Processing Module

13‧‧‧顯示模組13‧‧‧Display module

14‧‧‧可程式增益放大器14‧‧‧Programmable Gain Amplifier

15‧‧‧最大取樣模組15‧‧‧Maximum sampling module

16‧‧‧高速類比/數位轉換器16‧‧‧High speed analog/digital converter

17‧‧‧記憶體17‧‧‧ memory

20‧‧‧通訊介面20‧‧‧Communication interface

30‧‧‧控制區域網路30‧‧‧Control area network

40‧‧‧監控裝置40‧‧‧Monitor

Claims (10)

一種嵌入式示波器之CAN-BUS通訊方法,其包括:提供至少一嵌入式示波器及至少一與該嵌入式示波器電性連接的通訊介面(CAN-BUS),該嵌入式示波器內建有一控制程式,該通訊介面(CAN-BUS)包含複數暫存器:於該嵌入式示波器系統初始化時,該控制程式將該通訊介面(CAN-BUS)之複數該暫存器定義劃分為可供複數資料暫存的信箱,並處於等待接收資料的狀態;以該嵌入式示波器於量測一待測物而產生一量測訊號,該嵌入式示波器處理該量測訊號而產生該資料,該資料包括一相應之量測資料及至少一種系統運作資料,再將該量測資料及該系統運作資料分別載入對應的該信箱內;及以該通訊介面(CAN-BUS)將該量測資料及該系統運作資料轉換為CAN-BUS格式之封包資料,再透過一控制區域網路(CAN-BUS)將該封包資料傳送出去。A CAN-BUS communication method for an embedded oscilloscope includes: providing at least one embedded oscilloscope and at least one communication interface (CAN-BUS) electrically connected to the embedded oscilloscope, wherein the embedded oscilloscope has a control program built therein The communication interface (CAN-BUS) includes a plurality of registers: when the embedded oscilloscope system is initialized, the control program divides the plurality of register definitions of the communication interface (CAN-BUS) into temporary data for temporary storage. The mailbox is in a state of waiting for receiving data; the embedded oscilloscope generates a measurement signal by measuring a sample to be tested, and the embedded oscilloscope processes the measurement signal to generate the data, and the data includes a corresponding Measuring data and at least one system operation data, and then loading the measurement data and the system operation data into the corresponding mailbox; and using the communication interface (CAN-BUS) to measure the data and the system operation data The packet data is converted into CAN-BUS format, and the packet data is transmitted through a control area network (CAN-BUS). 如請求項1所述之嵌入式示波器之CAN-BUS通訊方法,其更包含一測試治具及一位置感測模組,該測試治具用以將該待測物輸送至該嵌入式示波器之一量測模組的量測位置,當該待測物進入該量測位置時,該位置感測模組則以一訊號觸發該嵌入式示波器,使該嵌入式示波器執行該待測物的量測動作。The CAN-BUS communication method of the embedded oscilloscope according to claim 1, further comprising a test fixture and a position sensing module, wherein the test fixture is configured to transport the object to be tested to the embedded oscilloscope a measuring position of the measuring module, when the object to be tested enters the measuring position, the position sensing module triggers the embedded oscilloscope with a signal, so that the embedded oscilloscope executes the amount of the object to be tested Measuring action. 如請求項1所述之嵌入式示波器之CAN-BUS通訊方法,其更包含一透過該控制區域網路(CAN-BUS)而與該通訊介面(CAN-BUS)訊號連結的監控裝置,當該監控裝置發出資料傳輸要求的指令時,該通訊介面(CAN-BUS)則將各該信箱內之該量測資料及該系統運作資料轉換 為該封包資料而傳輸至該監控裝置。The CAN-BUS communication method of the embedded oscilloscope according to claim 1, further comprising a monitoring device connected to the communication interface (CAN-BUS) signal through the control area network (CAN-BUS), when When the monitoring device issues an instruction for data transmission, the communication interface (CAN-BUS) converts the measurement data and the operation data of the system in the mailbox. The packet data is transmitted to the monitoring device. 如請求項3所述之嵌入式示波器之CAN-BUS通訊方法,其中,當該監控裝置發出資料傳輸要求的指令時,該通訊介面(CAN-BUS)解讀該指令,並取出一系統站號資料載入於其中一個該信箱內,再由該監控裝置判斷該系統站號資料是否註冊,當判斷結果為是,該控制程式則將該量測資料及該系統運作資料分別載入對應的該信箱內,並對各該信箱進行錯誤偵測的運算而分別產生一錯誤檢查碼高位元(MSB)資料以及一錯誤檢查碼低位元(LSB)資料,當錯誤偵測運算結果為無錯誤時,則將該錯誤檢查碼高位元(MSB)資料及該錯誤檢查碼低位元(LSB)資料分別載入另外二個信箱內,該通訊介面(CAN-BUS)再將各該信箱內之該量測資料、該系統運作資料、該錯誤檢查碼高位元(MSB)資料及該錯誤檢查碼低位元(LSB)資料轉換為該封包資料,並傳輸至該監控裝置中。The CAN-BUS communication method of the embedded oscilloscope according to claim 3, wherein when the monitoring device issues an instruction for data transmission request, the communication interface (CAN-BUS) interprets the instruction and takes out a system station number data. Loading in one of the mailboxes, and then the monitoring device determines whether the system station number data is registered. When the determination result is yes, the control program loads the measurement data and the system operation data into the corresponding mailbox respectively. And performing an error detection operation on each of the mailboxes to generate an error check code high bit (MSB) data and an error check code low bit (LSB) data, respectively, when the error detection operation result is no error, then The error check code high bit (MSB) data and the error check code low bit (LSB) data are respectively loaded into the other two mailboxes, and the communication interface (CAN-BUS) further inputs the measurement data in each of the mailboxes. The system operation data, the error check code high bit (MSB) data, and the error check code low bit (LSB) data are converted into the packet data, and transmitted to the monitoring device. 如請求項1所述之嵌入式示波器之CAN-BUS通訊方法,其中,該系統運作資料包含可分別載入於六個該信箱內的指令功能代碼、系統運行模式選擇、時間基底單位、觸發基底單位、系統狀態碼、測試治具統狀態碼以及列印模式選擇等資料,該量測資料包括可分別載入於六個該信箱內的X軸基本時間基底單位高位元(MSB)資料、X軸基本時間基底單位低位元(LSB)資料、Y軸基本時間基底單位高位元(MSB)資料、Y軸基本時間基底單位低位元(LSB)資料、Z軸基本時間基底單位高位元(MSB)資料以及Z軸基本時間基底單位低位元(LSB)資料。The CAN-BUS communication method of the embedded oscilloscope according to claim 1, wherein the system operation data includes an instruction function code, a system operation mode selection, a time base unit, and a trigger base respectively loadable in the six mailboxes. Unit, system status code, test fixture status code, and print mode selection. The measurement data includes X-axis basic time base unit high-order (MSB) data that can be loaded into each of the six mailboxes, X. Axis basic time base unit low bit (LSB) data, Y axis basic time base unit high bit (MSB) data, Y axis basic time base unit low bit (LSB) data, Z axis basic time base unit high bit (MSB) data And the Z-axis basic time base unit low-order (LSB) data. 如請求項1所述之嵌入式示波器之CAN-BUS通訊方法,其中,該通訊介面(CAN-BUS)包括一定義劃分有該信箱的CAN-BUS控制器及CAN-BUS收發器,該CAN-BUS控制器與該嵌入式示波器電性連接, 該CAN-BUS收發器一端與該CAN-BUS控制器電性連接,另端與該控制區域網路(CAN-BUS)訊號連結。 The CAN-BUS communication method of the embedded oscilloscope according to claim 1, wherein the communication interface (CAN-BUS) comprises a CAN-BUS controller and a CAN-BUS transceiver defining the mailbox, the CAN- The BUS controller is electrically connected to the embedded oscilloscope. One end of the CAN-BUS transceiver is electrically connected to the CAN-BUS controller, and the other end is connected to the control area network (CAN-BUS) signal. 一種嵌入式示波器之CAN-BUS通訊系統,其包括:至少一通訊介面(CAN-BUS),其包含複數暫存器;一控制區域網路(CAN-BUS);及至少一嵌入式示波器,其內建有一控制程式,於系統初始化時,該控制程式將該通訊介面(CAN-BUS)之複數該暫存器定義劃分為可供複數資料暫存的信箱,該嵌入式示波器用以量測一待測物而產生一量測訊號,該嵌入式示波器處理該量測訊號而產生一種相應之量測資料及至少一種系統運作資料,該控制程式將該量測資料及該系統運作資料分別載入對應的該信箱內,該通訊介面(CAN-BUS)再將該量測資料及該系統運作資料轉換為CAN-BUS格式之封包資料,再透過該控制區域網路(CAN-BUS)將該封包資料傳送出去。 A CAN-BUS communication system of an embedded oscilloscope, comprising: at least one communication interface (CAN-BUS), comprising a plurality of registers; a control area network (CAN-BUS); and at least one embedded oscilloscope A control program is built in. When the system is initialized, the control program divides the plurality of registers of the communication interface (CAN-BUS) into a mailbox for temporary storage of the plurality of data, and the embedded oscilloscope is used to measure one. A test signal is generated by the test object, and the embedded oscilloscope processes the measurement signal to generate a corresponding measurement data and at least one system operation data, and the control program loads the measurement data and the system operation data respectively. In the corresponding mailbox, the communication interface (CAN-BUS) converts the measurement data and the system operation data into packet data in the CAN-BUS format, and then the packet is transmitted through the control area network (CAN-BUS). The data is transmitted. 如請求項7所述之嵌入式示波器之CAN-BUS通訊系統,其更包含一測試治具及一位置感測模組,該測試治具用以將該待測物輸送至該嵌入式示波器之一量測模組的量測位置,當該待測物進入該量測位置時,該位置感測模組則以一訊號觸發該嵌入式示波器,使該嵌入式示波器執行該待測物的量測動作。 The CAN-BUS communication system of the embedded oscilloscope according to claim 7, further comprising a test fixture and a position sensing module, wherein the test fixture is configured to transport the object to be tested to the embedded oscilloscope a measuring position of the measuring module, when the object to be tested enters the measuring position, the position sensing module triggers the embedded oscilloscope with a signal, so that the embedded oscilloscope executes the amount of the object to be tested Measuring action. 如請求項7所述之嵌入式示波器之CAN-BUS通訊系統,其更包含一透過該控制區域網路(CAN-BUS)而與該通訊介面(CAN-BUS)訊號連結的監控裝置,當該監控裝置發出資料傳輸要求的指令時,該通訊介面(CAN-BUS)則將該信箱內所需之該封包資料透過該控制區域網路(CAN-BUS)傳輸至該監控裝置。 The CAN-BUS communication system of the embedded oscilloscope according to claim 7, further comprising a monitoring device connected to the communication interface (CAN-BUS) signal through the control area network (CAN-BUS), when When the monitoring device issues an instruction for data transmission, the communication interface (CAN-BUS) transmits the packet data required in the mailbox to the monitoring device through the control area network (CAN-BUS). 如請求項7所述之嵌入式示波器之CAN-BUS通訊系統,其中, 該通訊介面(CAN-BUS)包括一定義劃分有該信箱的CAN-BUS控制器及CAN-BUS收發器,該CAN-BUS控制器與該嵌入式示波器電性連接,該CAN-BUS收發器一端與該CAN-BUS控制器電性連接,另端與該控制區域網路(CAN-BUS)訊號連結。The CAN-BUS communication system of the embedded oscilloscope according to claim 7, wherein The communication interface (CAN-BUS) includes a CAN-BUS controller and a CAN-BUS transceiver defined by the mailbox, and the CAN-BUS controller is electrically connected to the embedded oscilloscope, and the CAN-BUS transceiver end is It is electrically connected to the CAN-BUS controller, and the other end is connected to the control area network (CAN-BUS) signal.
TW102124251A 2013-07-05 2013-07-05 CAN-BUS communication method and system for embedded oscilloscope TWI489114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102124251A TWI489114B (en) 2013-07-05 2013-07-05 CAN-BUS communication method and system for embedded oscilloscope

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102124251A TWI489114B (en) 2013-07-05 2013-07-05 CAN-BUS communication method and system for embedded oscilloscope

Publications (2)

Publication Number Publication Date
TW201502530A TW201502530A (en) 2015-01-16
TWI489114B true TWI489114B (en) 2015-06-21

Family

ID=52718360

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102124251A TWI489114B (en) 2013-07-05 2013-07-05 CAN-BUS communication method and system for embedded oscilloscope

Country Status (1)

Country Link
TW (1) TWI489114B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW580577B (en) * 1999-10-22 2004-03-21 Clarion Co Ltd Automatic measuring apparatus, automatic measurement data processing and control apparatus, network system, and record medium of automatic measurement processing and control program
US20040193990A1 (en) * 2003-03-31 2004-09-30 Seiji Ichiyoshi Test apparatus and test method
WO2006030697A1 (en) * 2004-09-13 2006-03-23 Matsushita Electric Industrial Co., Ltd. Communication device, communication control method, communication control program, and computer-readable recording medium containing the communication control program
US20100268459A1 (en) * 2009-04-15 2010-10-21 Abalta Technologies, Inc. System and method for testing of navigation systems
CN101960789A (en) * 2008-03-07 2011-01-26 罗伯特.博世有限公司 Communication system having a CAN bus and method for operating such a communication system
CN102176140A (en) * 2010-11-25 2011-09-07 西北工业大学 Remote control controlled area network (CAN) bus testing device and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW580577B (en) * 1999-10-22 2004-03-21 Clarion Co Ltd Automatic measuring apparatus, automatic measurement data processing and control apparatus, network system, and record medium of automatic measurement processing and control program
US20040193990A1 (en) * 2003-03-31 2004-09-30 Seiji Ichiyoshi Test apparatus and test method
WO2006030697A1 (en) * 2004-09-13 2006-03-23 Matsushita Electric Industrial Co., Ltd. Communication device, communication control method, communication control program, and computer-readable recording medium containing the communication control program
CN101960789A (en) * 2008-03-07 2011-01-26 罗伯特.博世有限公司 Communication system having a CAN bus and method for operating such a communication system
US20100268459A1 (en) * 2009-04-15 2010-10-21 Abalta Technologies, Inc. System and method for testing of navigation systems
CN102176140A (en) * 2010-11-25 2011-09-07 西北工业大学 Remote control controlled area network (CAN) bus testing device and method

Also Published As

Publication number Publication date
TW201502530A (en) 2015-01-16

Similar Documents

Publication Publication Date Title
Chuang et al. Real-time monitoring via patch-type piezoelectric force sensors for Internet of Things based logistics
CN101551228A (en) Inner diameter measuring device and measuring method
US7325171B2 (en) Measurement and data acquisition system including a real-time monitoring circuit for implementing control loop applications
CN102654478A (en) Exciting current circuit and signal extracting device based on magnetic conductivity detector
CN106352973A (en) On-station calibration method of sensor
CN201464044U (en) Non-contact temperature measuring device
US20140285177A1 (en) Mobile current measurement equipment, current measurement terminal and current measurement method
CN205175586U (en) Commercial car distance rod axial force testing arrangement
TWI489114B (en) CAN-BUS communication method and system for embedded oscilloscope
CN202453202U (en) Wireless four-wheel position indicator for automobile
CN103412091B (en) pH value measuring method and device
CN104808136A (en) Device for testing relevance between chip temperature and current intensity
TWI485407B (en) Error Detection Method and System of CAN - BUS Communication Format for Embedded Oscilloscope
CN210071867U (en) Magneto-electric sensor state self-checking system and circuit
CN201562045U (en) Weak magnetic field detecting equipment
CN201060250Y (en) Digital type alternating current-direct current local discharge testing apparatus
CN114755482A (en) Electrical contact direct current voltage drop and loop resistance test system
CN204346459U (en) The wafer test system of micro-mechanical gyroscope
CN203231830U (en) PCB temperature test circuit
CN104677981A (en) Multi-channel three-dimensional field weakening detector
CN206096256U (en) A power sensor for RF power reflectometer
Royandi et al. Development of Low-cost Wireless Monitoring System and Its Implementation on Computer Numerical Control Machine Tool.
CN208765865U (en) Temperature measurement system and device
CN114137880B (en) Moving part attitude test system
CN204214582U (en) Commercial car U-bolts Research on Testing System of Thrust on Aluminum and this commercial car

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees