[go: up one dir, main page]

TWI422839B - System and method for testing gsm modules - Google Patents

System and method for testing gsm modules Download PDF

Info

Publication number
TWI422839B
TWI422839B TW96137436A TW96137436A TWI422839B TW I422839 B TWI422839 B TW I422839B TW 96137436 A TW96137436 A TW 96137436A TW 96137436 A TW96137436 A TW 96137436A TW I422839 B TWI422839 B TW I422839B
Authority
TW
Taiwan
Prior art keywords
test
gsm module
power
module
relay
Prior art date
Application number
TW96137436A
Other languages
Chinese (zh)
Other versions
TW200916800A (en
Inventor
Jui Chen Chang
Original Assignee
Chi Mei Comm Systems Inc
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 Chi Mei Comm Systems Inc filed Critical Chi Mei Comm Systems Inc
Priority to TW96137436A priority Critical patent/TWI422839B/en
Publication of TW200916800A publication Critical patent/TW200916800A/en
Application granted granted Critical
Publication of TWI422839B publication Critical patent/TWI422839B/en

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Description

GSM模組測試系統及方法 GSM module test system and method

本發明涉及一種GSM(Global System of Mobile Communication,全球移動通訊系統)模組測試系統及方法。 The invention relates to a GSM (Global System of Mobile Communication) module testing system and method.

GSM(Global System of Mobile Communication,全球移動通訊系統)是移動通訊中使用最廣泛的一種通訊標準,其能夠支援綜合業務數位網(ISDN)、包交換網路、與網際網路相關的非同步和同步資料通訊、G3傳真通訊等以及語音通訊。 GSM (Global System of Mobile Communication) is the most widely used communication standard in mobile communications. It can support integrated services digital network (ISDN), packet switching networks, and Internet-related asynchronous and Synchronous data communication, G3 fax communication, etc. and voice communication.

移動電話中裝備的GSM模組通常需要在出廠前進行品質檢測,包括對GSM模組連接網路的測試。然而,現有的對GSM模組的測試往往需要藉由人工進行,而人工測試則難以精確控制向GSM模組輸出電壓的大小等,並且需要人工逐一連接GSM模組與網路從而判斷其是否可正常運行。尤其,針對產品的測試往往需要經過多次的循環測試才能得以驗證產品功能是否可正常運行。此外,人工測試難以避免出現人為誤差及測試效率低的問題。 GSM modules equipped in mobile phones usually require quality inspection before leaving the factory, including testing of the GSM module connection network. However, the existing testing of the GSM module often needs to be performed manually, while the manual test is difficult to accurately control the output voltage to the GSM module, and it is necessary to manually connect the GSM module and the network one by one to determine whether it can be normal operation. In particular, testing for a product often requires multiple cycles of testing to verify that the product functionality is working properly. In addition, manual testing is difficult to avoid human error and low test efficiency.

鑒於以上內容,有必要提供一種GSM模組測試系統及方法,其可以藉由控制繼電器類比GSM模組的電源開關鍵以自動實現對GSM模組進行供電及切斷電源,並自動完成對GSM模組與網路連接功能的測試,從而確定該GSM模組是否能夠正常運行。 In view of the above, it is necessary to provide a GSM module test system and method, which can automatically realize power supply and power off of the GSM module by controlling the relay analog power supply key of the GSM module, and automatically complete the GSM mode. The test of the group and network connection function to determine whether the GSM module can operate normally.

一種GSM模組測試系統,安裝於電腦中,該電腦與電源、繼電器、待測之 GSM模組以及充電器相連接,其中,該系統包括:電源控制裝置,用於控制電源的開啟及關閉,並控制電源向所述之繼電器輸出電壓以令繼電器類比按鍵功能打開GSM模組的電源開關,從而控制充電器向GSM模組提供電源;命令發送模組,用於生成使該GSM模組開始運行並嘗試連接網路的測試命令,並將生成的測試命令發送至GSM模組;及測試模組,用於令GSM模組執行該測試命令,並獲取執行結果,以及根據所述之執行結果判斷GSM模組是否能夠在通電後連接上網路從而確認該GSM模組是否能夠正常運行。 A GSM module test system installed in a computer, the computer and power supply, relay, to be tested The GSM module and the charger are connected, wherein the system comprises: a power control device for controlling the opening and closing of the power source, and controlling the power source to output a voltage to the relay to enable the relay analog key function to turn on the power of the GSM module. a switch, thereby controlling the charger to provide power to the GSM module; a command sending module for generating a test command for causing the GSM module to start running and attempting to connect to the network, and transmitting the generated test command to the GSM module; The test module is configured to enable the GSM module to execute the test command, obtain an execution result, and determine, according to the execution result, whether the GSM module can be connected to the network after power-on to confirm whether the GSM module can operate normally.

一種GSM模組測試方法,利用電腦與電源、繼電器、待測之GSM模組以及充電器的連接測試GSM模組是否正常,該方法包括如下步驟:開啟電源並控制該電源向繼電器輸出電壓;令繼電器類比按鍵功能打開GSM模組的電源開關,使充電器開始向GSM模組提供電源;生成使該GSM模組開始運行並嘗試連接網路的測試命令;將生成的測試命令發送至GSM模組,並令GSM模組執行該測試命令;獲得相應的執行結果;令繼電器類比按鍵功能關閉GSM模組的電源開關,使充電器停止向GSM模組提供電源;及根據所述之執行結果判斷GSM模組是否能夠在通電後連接上網路從而確認該GSM模組是否能夠正常運行以獲得測試結果。 A GSM module test method for testing whether a GSM module is normal by using a connection between a computer and a power source, a relay, a GSM module to be tested, and a charger, the method comprising the steps of: turning on a power source and controlling the power source to output a voltage to the relay; The relay analog button function turns on the power switch of the GSM module, so that the charger starts to supply power to the GSM module; generates a test command that causes the GSM module to start running and attempts to connect to the network; and sends the generated test command to the GSM module. And let the GSM module execute the test command; obtain the corresponding execution result; let the relay analog key function turn off the power switch of the GSM module, so that the charger stops supplying power to the GSM module; and judge GSM according to the execution result Whether the module can be connected to the network after power-on to confirm whether the GSM module can run normally to obtain test results.

相較於習知技術,所述之GSM模組測試系統及方法,其可以藉由控制繼電器類比GSM模組的電源開關鍵以自動實現對GSM模組進行供電及切斷電源,並自動完成對GSM模組與網路連接功能的測試,從而確定該GSM模組是否能夠正常運行。利用該系統及方法,可以有效避免人為誤差,實現對GSM模組供電狀況的自動控制,還可藉由設置循環測試對GSM模組進行自動地循環、反復測試,從而提高測試效率及測量精確度。 Compared with the prior art, the GSM module testing system and method can automatically implement power supply and power off of the GSM module by controlling the power of the relay analogy to the GSM module, and automatically complete the pairing. Test the GSM module and network connection function to determine whether the GSM module can operate normally. The system and the method can effectively avoid human error, realize automatic control of the power supply status of the GSM module, and can automatically cycle and repeatedly test the GSM module by setting a loop test, thereby improving test efficiency and measurement accuracy. .

1‧‧‧電腦 1‧‧‧ computer

10‧‧‧GSM模組測試系統 10‧‧‧GSM Module Test System

100‧‧‧電源控制裝置 100‧‧‧Power control unit

102‧‧‧命令發送模組 102‧‧‧Command Sending Module

104‧‧‧測試模組 104‧‧‧Test module

106‧‧‧結果輸出模組 106‧‧‧Result output module

108‧‧‧循環測試模組 108‧‧‧Circuit test module

11‧‧‧存儲裝置 11‧‧‧Storage device

12‧‧‧主機板 12‧‧‧ motherboard

120‧‧‧串列埠 120‧‧‧Chain

121‧‧‧接口 121‧‧‧ interface

2‧‧‧電源 2‧‧‧Power supply

3‧‧‧繼電器 3‧‧‧ Relay

4‧‧‧GSM模組 4‧‧‧GSM module

5‧‧‧充電器 5‧‧‧Charger

6‧‧‧GPIB線 6‧‧‧GPIB line

7‧‧‧電源線 7‧‧‧Power cord

8‧‧‧數據線 8‧‧‧Data line

圖1係本發明GSM模組測試系統之較佳實施例之硬體架構圖。 1 is a hardware architecture diagram of a preferred embodiment of a GSM module test system of the present invention.

圖2係本發明GSM模組測試系統之功能模組圖。 2 is a functional module diagram of the GSM module test system of the present invention.

圖3係本發明GSM模組測試系統之較佳實施例之測試資料流向圖。 3 is a flow chart of test data of a preferred embodiment of the GSM module test system of the present invention.

圖4係本發明GSM模組測試方法之較佳實施例之流程圖。 4 is a flow chart of a preferred embodiment of the GSM module testing method of the present invention.

如圖1所示,係本發明GSM(Global System of Mobile Communication,全球移動通訊系統)模組測試系統較佳實施方式的硬體架構圖。本較佳實施例的硬體架構主要包括一個電腦1、一個電源2、一個繼電器(Relay)3、一個待測試的GSM模組4以及一個充電器5。該電腦1包括一個GSM模組測試系統(下文稱“本系統”)10、一個存儲裝置11以及一個主機板12。所述GSM模組測試系統10運行於該電腦1中,用於檢測所述GSM模組4是否能夠在上電後正常連接上網路。 FIG. 1 is a hardware architecture diagram of a preferred embodiment of a GSM (Global System of Mobile Communication) module test system according to the present invention. The hardware architecture of the preferred embodiment mainly includes a computer 1, a power supply 2, a relay 3, a GSM module 4 to be tested, and a charger 5. The computer 1 includes a GSM module test system (hereinafter referred to as "the present system") 10, a storage device 11, and a motherboard 12. The GSM module test system 10 runs in the computer 1 and is used to detect whether the GSM module 4 can be normally connected to the network after power-on.

該電腦1還提供一個互動式的操作介面供測試人員查看及控制測試過程,例如在所述之操作介面中設置多個按鈕供測試人員進行相關操作,電腦1識別該操作並根據該操作命令電腦1內的軟硬體協調執行及獲取相應的執行結果回饋給測試人員。 The computer 1 also provides an interactive operation interface for the tester to view and control the test process, for example, setting a plurality of buttons in the operation interface for the tester to perform related operations, and the computer 1 recognizes the operation and commands the computer according to the operation. The software and hardware in 1 are coordinated and executed, and the corresponding execution results are fed back to the tester.

所述之存儲裝置11是可讀寫的存儲媒介,比如電腦硬碟或者快閃記憶體等。在本較佳實施例中,存儲裝置11可用於存儲由系統軟體控制所發送出去的資料、接收到的由GSM模組4與電源2傳輸到主機板12的資料、根據各種資料所得到的測試結果等。 The storage device 11 is a readable and writable storage medium, such as a computer hard disk or a flash memory. In the preferred embodiment, the storage device 11 can be used to store the data sent by the system software, the received data transmitted by the GSM module 4 and the power source 2 to the motherboard 12, and the test according to various materials. Results, etc.

所述之主機板12提供多個電子設備接口使得電子設備可藉由所述接口與主機板12進行連接,例如提供中央處理器(Central Processing Unit,CPU)的接口使得CPU可以與主機板12進行連接,提供記憶體(Memory)接口使得記憶體可以與主機板12進行連接。 The motherboard 12 provides a plurality of electronic device interfaces, so that the electronic device can be connected to the motherboard 12 through the interface, for example, providing a central processing unit (CPU) interface so that the CPU can perform with the motherboard 12. The connection provides a memory interface so that the memory can be connected to the motherboard 12.

主機板12還包括有串列埠120及接口121,用於與外部設備之間進行命令和資料的傳輸。在本較佳實施方式中,串列埠120是以RS-232C串列埠標準為例,例如com1、com2等,接口121是GPIB(General-Purpose Interface Bus,通用介面匯流排)接口。所述之GPIB接口常用於印表機與電腦的連接,此外,用戶可藉由GPIB線以及GPIB接口實現電腦與一台或多台儀器相連接,從而組成儀器系統,使測試及測量工作可獲取更為精確的資料。 The motherboard 12 further includes a serial port 120 and an interface 121 for transmitting commands and data to and from an external device. In the preferred embodiment, the serial port 120 is an RS-232C serial port standard, for example, com1, com2, etc., and the interface 121 is a GPIB (General-Purpose Interface Bus) interface. The GPIB interface is often used for the connection between the printer and the computer. In addition, the user can connect the computer with one or more instruments through the GPIB line and the GPIB interface to form an instrument system, so that the test and measurement work can be obtained. More accurate information.

所述GSM模組4藉由數據線8與主機板12的串列埠120相連接,用於從電腦1處接收相關命令及傳送資料。該相關命令可包括:命令GSM模組4開始連接網路等。 The GSM module 4 is connected to the serial port 120 of the motherboard 12 via a data line 8 for receiving relevant commands and transmitting data from the computer 1. The related command may include: instructing the GSM module 4 to start connecting to the network, and the like.

所述電源2藉由GPIB線6與主機板12的接口121相連接,以便從電腦1處接收相關命令,例如,開啟電源或者關閉電源的命令等。所述電源2還藉由電源線7與繼電器3相連接,用於向繼電器3供電。所述之GSM模組測試系統10令該繼電器3類比按鍵控制GSM模組4的電源開關進行開啟以及關閉,例如,該按鍵是“Power”鍵。 The power source 2 is connected to the interface 121 of the motherboard 12 via the GPIB line 6 to receive related commands from the computer 1, for example, a command to turn on or off the power. The power source 2 is also connected to the relay 3 via a power line 7 for supplying power to the relay 3. The GSM module test system 10 causes the relay 3 to be turned on and off than the power switch of the button control GSM module 4, for example, the button is a "Power" button.

繼電器3通常是一種以電磁力來控制切換方向的電門。在電源2未向繼電器3提供電源時,圖1所示的電腦1、電源2、繼電器3、GSM模組4以及充電器5形成的是開路,而當電源2開始向繼電器3提供電源時,則繼電器3的線圈在通電後,會使繼電器3中心的軟鐵核心產生磁性,從而將繼電器3橫向的擺臂吸下以迫使電門接點相接,使兩接點形成通路,即使得電腦1、電源2、繼電器3、GSM模組4以及充電器5形成閉路。 The relay 3 is usually an electric gate that controls the switching direction by electromagnetic force. When the power source 2 is not supplying power to the relay 3, the computer 1, the power source 2, the relay 3, the GSM module 4, and the charger 5 shown in FIG. 1 form an open circuit, and when the power source 2 starts supplying power to the relay 3, Then, after the coil of the relay 3 is energized, the soft iron core in the center of the relay 3 is magnetically generated, thereby sucking the lateral swing arm of the relay 3 to force the gate contacts to be connected, so that the two contacts form a passage, that is, the computer 1 The power supply 2, the relay 3, the GSM module 4, and the charger 5 form a closed circuit.

所述充電器5藉由電源線7與GSM模組4相連,用於在GSM模組4的電源開關開啟之後向其提供電源。 The charger 5 is connected to the GSM module 4 via a power line 7 for supplying power to the GSM module 4 after the power switch is turned on.

如圖2所示,係本發明GSM模組測試系統之功能模組圖。該GSM模組測試系 統10安裝於電腦1內,其主要包括四個功能模組,分別是:電源控制裝置100、命令發送模組102、測試模組104及結果輸出模組106。 As shown in FIG. 2, it is a functional module diagram of the GSM module test system of the present invention. The GSM module test system The system 10 is installed in the computer 1 and mainly includes four functional modules, namely: a power control device 100, a command transmitting module 102, a test module 104, and a result output module 106.

所述之電源控制裝置100用於控制電源2的開啟、關閉以及控制電源2的輸出電壓的大小,其可藉由預先設置的開啟/關閉時間,以及輸出電壓的數值或者電壓範圍等參數實現對電源2的自動控制。在測試過程中,可根據測試需求藉由電源控制裝置100對電源2的輸出電壓的大小以及開啟/關閉時間進行修改。 The power control device 100 is configured to control the opening and closing of the power source 2 and the magnitude of the output voltage of the control power source 2, which can be realized by a preset on/off time, a value of the output voltage, or a voltage range. Automatic control of the power supply 2. During the test, the magnitude of the output voltage of the power source 2 and the on/off time can be modified by the power control device 100 according to the test requirements.

例如,若需在上午九點開始進行測試,並且在測試過程中令電源2輸出5伏特的電壓至繼電器3,並在到達九點十分的時候,令電源2停止輸出電壓且自行關閉。在上述舉例中,電源2輸出電壓的數值為5伏特,電源2的開啟時間為9:00AM,關閉時間為9:10AM。 For example, if the test is to start at 9:00 am and the power supply 2 outputs a voltage of 5 volts to the relay 3 during the test, and when it reaches 9:10, the power supply 2 stops the output voltage and turns itself off. In the above example, the output voltage of the power source 2 is 5 volts, the power-on time of the power supply 2 is 9:00 AM, and the turn-off time is 9:10 AM.

所述之電源控制裝置100還用於控制電源2向所述之繼電器3輸出電壓以令繼電器3類比按鍵功能打開GSM模組4的電源開關,從而控制充電器5向GSM模組4提供電源。該電源控制裝置100令電源2對繼電器3供電後,使得電腦1、電源2、繼電器3、GSM模組4以及充電器5形成通路,則充電器5開始對GSM模組4進行供電,在此過程中,繼電器3的作用如同一個電源開關按鍵(Power On/Off鍵),例如電腦主機上的Power鍵,在該Power鍵被按下後,則電腦主機內的各設備可通電並啟動。在本較佳實施方式中,繼電器3則是用於類比GSM模組4的電源開關按鍵,從而控制充電器5向GSM模組4供電。 The power control device 100 is further configured to control the power source 2 to output a voltage to the relay 3 to enable the relay 3 to turn on the power switch of the GSM module 4 than the button function, thereby controlling the charger 5 to supply power to the GSM module 4. The power control device 100 causes the power supply 2 to supply power to the relay 3, so that the computer 1, the power supply 2, the relay 3, the GSM module 4, and the charger 5 form a path, and the charger 5 starts to supply power to the GSM module 4, where In the process, the relay 3 functions as a power on/off button (Power On/Off button), such as the Power button on the host computer. After the Power button is pressed, the devices in the host computer can be powered on and started. In the preferred embodiment, the relay 3 is used to analogize the power switch button of the GSM module 4, thereby controlling the charger 5 to supply power to the GSM module 4.

命令發送模組102用於在GSM模組4通電後根據測試需求生成相應的測試命令,並將生成的測試命令發送至GSM模組4處使得GSM模組4可依照該測試命令執行相應操作從而獲得相應的執行結果等資料。例如,生成的測試命令為使GSM模組4在通電後嘗試連接網路。在本較佳實施方式中,GSM模組4連 接的是GSM網路。 The command sending module 102 is configured to generate a corresponding test command according to the test requirement after the GSM module 4 is powered on, and send the generated test command to the GSM module 4 so that the GSM module 4 can perform corresponding operations according to the test command. Obtain the corresponding execution results and other information. For example, the generated test command is to cause the GSM module 4 to attempt to connect to the network after power up. In the preferred embodiment, the GSM module 4 is connected. Connected to the GSM network.

在本較佳實施方式中,發送的測試命令為AT命令,該AT命令是Windows®作業系統中內置的命令,可用於安排計劃、管理任務、處理工作事務等。AT命令可指定時間和日期、在指定電腦上運行命令和程式。例如:要設置定時關機的任務,可在Windows®作業系統的“開始→運行”中輸入AT命令‘‘at 21:00 ShutDown-S-T30”,該命令運行後,到了晚上21:00點,電腦即出現“系統關機”的對話方塊提示用戶,並內定30秒延時自動關機,若用戶在內定延時內未執行其他操作,則電腦將自動關機。 In the preferred embodiment, the test command sent is an AT command, which is a built-in command in the Windows® operating system, which can be used to schedule, manage tasks, process work transactions, and the like. The AT command specifies the time and date, and runs commands and programs on the specified computer. For example, to set the task of timed shutdown, you can enter the AT command ''at 21:00 ShutDown-S-T30' in the "Start → Run" of the Windows ® operating system. After the command runs, it will arrive at 21:00 in the evening. The computer will appear in the "System Shutdown" dialog box to prompt the user, and the default 30 seconds delay automatically shut down, if the user does not perform other operations within the default delay, the computer will automatically shut down.

在其他實施方式中,用戶也可藉由windows®作業系統中自帶的Hyper Terminal(超級終端)軟體發送AT命令至GSM模組4處。該Hyper Terminal是一種串列通信軟體。 In other embodiments, a user can send AT commands by operating system windows ® comes with Hyper Terminal (HyperTerminal) software to the GSM module 4. The Hyper Terminal is a serial communication software.

所述之測試模組104用於在GSM模組4接收到AT命令後,令GSM模組4執行該AT命令,並獲取執行結果。例如,測試模組104使得GSM模組4根據收到的AT命令執行相應操作,包括開始運行並嘗試連接網路等操作,然後測試模組104獲取執行結果。 The test module 104 is configured to enable the GSM module 4 to execute the AT command after the GSM module 4 receives the AT command, and obtain an execution result. For example, the test module 104 causes the GSM module 4 to perform corresponding operations according to the received AT command, including starting operation and attempting to connect to the network, and then the test module 104 obtains the execution result.

所述之測試模組104還用於根據所述之執行結果判斷GSM模組4是否能夠在通電後連接上網路從而確認該GSM模組4是否能夠正常運行,從而得到測試結果。若該GSM模組4能夠在通電後連接上網路,則測試模組104判斷該GSM模組4能夠正常運行,否則,測試模組104可判斷該GSM模組4不能夠正常運行。 The test module 104 is further configured to determine, according to the execution result, whether the GSM module 4 can be connected to the network after power-on to confirm whether the GSM module 4 can operate normally, thereby obtaining a test result. If the GSM module 4 can be connected to the network after being powered on, the test module 104 determines that the GSM module 4 can operate normally. Otherwise, the test module 104 can determine that the GSM module 4 is not able to operate normally.

該測試結果包括:判斷GSM模組4正常運行的資訊、判斷GSM模組4為無法正常運行的資訊,該無法正常運行的資訊包括:不能夠在通電後連接上網路。 The test result includes: determining the information of the normal operation of the GSM module 4, and determining that the GSM module 4 is incapable of running normally. The information that cannot be normally operated includes: unable to connect to the network after being powered on.

在測試模組104獲取測試命令的執行結果後,電源控制裝置100命令電源2停止向繼電器3提供電源,使得繼電器3類比按下GSM模組4的電源開關按鍵(Power Off鍵),而電腦1、電源2、繼電器3、GSM模組4以及充電器5則形成開路,充電器5停止對GSM模組4進行供電。 After the test module 104 obtains the execution result of the test command, the power control device 100 commands the power supply 2 to stop supplying power to the relay 3, so that the relay 3 is compared with the power switch button (Power Off button) of the GSM module 4, and the computer 1 The power supply 2, the relay 3, the GSM module 4, and the charger 5 form an open circuit, and the charger 5 stops supplying power to the GSM module 4.

所述之結果輸出模組106用於根據測試結果及測試過程中的各種測試資料生成測試報告,並將所述之測試結果、測試資料、測試報告等內容輸出至存儲裝置11中,從而供用戶進行參考。所述之測試資料包括:測試過程中電源2開啟/關閉的時間、輸出電壓的大小等。 The result output module 106 is configured to generate a test report according to the test result and various test materials in the test process, and output the test result, the test data, the test report, and the like to the storage device 11 for the user. For reference. The test data includes: the time when the power source 2 is turned on/off during the test, the magnitude of the output voltage, and the like.

當測試模組104確定該GSM模組4無法正常運行時,所述之結果輸出模組106還可用於藉由郵件、資訊或者其他方式將該異常原因傳送給測試人員,以便測試人員對GSM模組4進行檢查,並確定無法正常運行的原因。 When the test module 104 determines that the GSM module 4 is not working properly, the result output module 106 can also be used to transmit the abnormal cause to the tester by mail, information or other means, so that the tester can use the GSM module. Group 4 checks and determines why it is not working properly.

此外,該GSM模組測試系統10還包括一個循環測試模組108,所述之循環測試模組108用於對GSM模組4進行循環測試,並提供循環次數的設置,從而根據所設置的循環次數自動對GSM模組4進行循環測試以獲得相應的測試結果。並且,該循環測試模組108還可預先設置循環測試的內定次數。 In addition, the GSM module test system 10 further includes a loop test module 108, and the loop test module 108 is configured to perform cyclic test on the GSM module 4, and provides a setting of the number of loops, thereby according to the set loop. The number of times automatically loops the GSM module 4 to obtain the corresponding test results. Moreover, the loop test module 108 can also preset the default number of loop tests.

所述之循環測試模組108藉由在操作介面上提供“循環測試”的按鈕並識別該“循環測試”是否被啟動,及提供“循環次數設置”的欄位以識別循環測試的次數。若啟動“循環測試”,則該循環測試模組108將通知相應的模組執行系列相關操作,從而對GSM模組4進行循環、反復測試並獲取每一次的測試資料從而達到更為精確的測試效果。若“循環次數設置”的欄位為空,則可根據預先設置的內定次數自動進行循環測試,該內定次數可進行修改。 The loop test module 108 recognizes whether the "cycle test" is activated by providing a "loop test" button on the operation interface, and provides a "cycle count setting" field to identify the number of loop tests. If the "cycle test" is started, the loop test module 108 will notify the corresponding module to perform a series of related operations, thereby looping, repeatedly testing the GSM module 4 and obtaining each test data to achieve a more accurate test. effect. If the field of "Number of Cycles Setting" is empty, the cycle test can be automatically performed according to the preset number of times set in advance, and the predetermined number of times can be modified.

在循環測試中,測試模組104獲取每一次的測試資料,且藉由結果輸出模組 106記錄下來,並最終輸出,測試人員可根據輸出的測試資料判斷最終的測試結果,從而確認該GSM模組4在通電後是否能夠正常運行。例如,循環次數設置為5次,則獲取5組測試資料,若其中包括1組測試資料表明GSM模組4為異常,則可確認該GSM模組4存在異常並報告異常資訊。又例如,循環次數設置為100次,則獲取100組測試資料,若表明正常的比率大於95%則可確認該GSM模組正常。 In the loop test, the test module 104 obtains each test data, and the result output module 106 records and finally outputs, the tester can judge the final test result based on the output test data, thereby confirming whether the GSM module 4 can operate normally after being powered on. For example, if the number of cycles is set to 5 times, 5 sets of test data are obtained. If one set of test data indicates that the GSM module 4 is abnormal, it can be confirmed that the GSM module 4 is abnormal and reports abnormal information. For another example, if the number of cycles is set to 100 times, 100 sets of test data are obtained, and if the normal ratio is greater than 95%, the GSM module can be confirmed to be normal.

如圖3所示,係本發明GSM模組測試系統之較佳實施例之測試資料流向圖,其用於描述測試過程中的資料流向。首先,電腦1中的GSM模組測試系統10控制電源2開啟,從而使得該電源2開始向繼電器3輸出電壓。繼電器3中的線圈通電後,形成通路,則充電器5開始向GSM模組4供電。電腦1中的GSM模組測試系統10在通路形成後向該GSM模組4發出測試命令,令該GSM模組4執行相應操作,並將執行結果回傳至電腦1中進行分析以及存儲。電腦1獲取該次執行結果後,令電源2關閉以停止向繼電器3輸出電壓。 As shown in FIG. 3, it is a test data flow diagram of a preferred embodiment of the GSM module test system of the present invention, which is used to describe the flow of data during the test. First, the GSM module test system 10 in the computer 1 controls the power source 2 to be turned on, so that the power source 2 starts to output a voltage to the relay 3. When the coil in the relay 3 is energized to form a path, the charger 5 starts to supply power to the GSM module 4. The GSM module test system 10 in the computer 1 issues a test command to the GSM module 4 after the path is formed, causes the GSM module 4 to perform corresponding operations, and transmits the execution result back to the computer 1 for analysis and storage. After the computer 1 acquires the execution result, the power source 2 is turned off to stop outputting the voltage to the relay 3.

如圖4所示,係本發明GSM模組測試方法之較佳實施例之流程圖。首先,步驟S2,電源控制裝置100設置電源2的輸出電壓的具體數值以及電壓範圍,電源2的開啟時間及關閉時間等參數,且循環測試模組108設置循環測試的次數。 4 is a flow chart of a preferred embodiment of the GSM module testing method of the present invention. First, in step S2, the power control device 100 sets a specific value of the output voltage of the power source 2 and a voltage range, a turn-on time and a turn-off time of the power source 2, and the loop test module 108 sets the number of loop tests.

步驟S4,測試人員以數據線8將GSM模組4與主機板12上的串列埠120相連接,以GPIB線6將電源2與主機板12上的接口121相連接,並以電源線7將電源2、繼電器3、GSM模組4及充電器5相連接。 In step S4, the tester connects the GSM module 4 to the serial port 埠120 on the motherboard 12 via the data line 8, and connects the power source 2 to the interface 121 on the motherboard 12 via the GPIB line 6, and the power line 7 is connected. The power source 2, the relay 3, the GSM module 4, and the charger 5 are connected.

步驟S6,電源控制裝置100令電源2開啟,並根據所設置的輸出電壓的數值向繼電器3輸出電壓。 In step S6, the power source control device 100 turns on the power source 2, and outputs a voltage to the relay 3 in accordance with the value of the set output voltage.

步驟S8,電源控制裝置100令繼電器3類比按鍵功能打開GSM模組4的電源開 關,從而使得電腦1、電源2、繼電器3、GSM模組4及充電器5形成通路,則充電器5開始向GSM模組4供電。 In step S8, the power control device 100 causes the relay 3 to turn on the power of the GSM module 4 than the button function. When the computer 1, the power source 2, the relay 3, the GSM module 4, and the charger 5 form a path, the charger 5 starts to supply power to the GSM module 4.

步驟S10,命令發送模組102根據測試需求生成相應的測試命令,並將生成的測試命令發送至GSM模組4處,並且由測試模組104令GSM模組4根據該AT命令執行相應操作,包括開始運行及嘗試連接網路等操作,然後獲取執行結果。在本較佳實施方式中,發送的測試命令為AT命令。 In step S10, the command sending module 102 generates a corresponding test command according to the test requirement, and sends the generated test command to the GSM module 4, and the test module 104 causes the GSM module 4 to perform corresponding operations according to the AT command. This includes starting the operation and trying to connect to the network, and then getting the execution results. In the preferred embodiment, the test command sent is an AT command.

步驟S12,測試模組104根據所述之執行結果判斷GSM模組4是否能夠在通電後連接上網路。 In step S12, the test module 104 determines, according to the execution result, whether the GSM module 4 can be connected to the network after being powered on.

若判斷該GSM模組4能夠在通電後連接上網路,於步驟S14,測試模組104獲取測試資料,且藉由結果輸出模組106記錄此次測試資料,並執行步驟S18。 If it is determined that the GSM module 4 can be connected to the network after being powered on, the test module 104 acquires the test data in step S14, and records the test data by the result output module 106, and executes step S18.

若判斷該GSM模組4不能夠在通電後連接上網路,於步驟S16,結果輸出模組106記錄此次測試資料並報告該異常資訊。該測試資料包括GSM模組4為異常的資訊及異常所在,例如:不能夠在通電後連接上網路。 If it is determined that the GSM module 4 cannot be connected to the network after being powered on, in step S16, the result output module 106 records the test data and reports the abnormal information. The test data includes abnormal information and abnormalities of the GSM module 4, for example, it is not possible to connect to the network after being powered on.

步驟S18,電源控制裝置100令繼電器3類比按鍵功能關閉GSM模組4的電源開關,從而使得電腦1、電源2、繼電器3、GSM模組4及充電器5形成開路,則充電器5停止向GSM模組4供電。 In step S18, the power control device 100 causes the relay 3 to turn off the power switch of the GSM module 4 by the button function, so that the computer 1, the power source 2, the relay 3, the GSM module 4, and the charger 5 form an open circuit, and the charger 5 stops. The GSM module 4 is powered.

步驟S20,循環測試模組108根據所設置的循環次數判斷循環測試是否完成。若循環測試尚未完成,則返回步驟S8進行下一輪的測試。 In step S20, the loop test module 108 determines whether the loop test is completed according to the set number of loops. If the loop test has not been completed, return to step S8 for the next round of testing.

若循環測試已完成,於步驟S22,結果輸出模組106輸出所有記錄的測試資料,測試模組104根據輸出的測試資料確定該GSM模組4是否能夠正常運行並得到測試結果,並利用結果輸出模組106根據測試結果及測試過程中的各種測試資料生成測試報告,以及將所述之測試結果、測試資料、測試報告 等內容輸出至存儲裝置11中,並結束本流程。所述之測試資料包括:測試過程中電源2開啟/關閉的時間、輸出電壓的大小、循環測試的次數等。 If the loop test is completed, in step S22, the result output module 106 outputs all the recorded test data, and the test module 104 determines whether the GSM module 4 can operate normally according to the output test data and obtains the test result, and outputs the result. The module 106 generates a test report according to the test result and various test materials in the test process, and the test result, test data, test report The content is output to the storage device 11, and the flow is ended. The test data includes: the time when the power source 2 is turned on/off during the test, the magnitude of the output voltage, and the number of times of the loop test.

例如,若循環次數設置為5次,則測試模組104獲取5組測試資料,若其中包括1組測試資料表明GSM模組2為異常,則可確認該GSM模組2存在異常並報告異常資訊。又例如,循環次數設置為100次,則測試模組104獲取100組測試資料,若表明正常的比率大於95%則可確認該GSM模組正常。 For example, if the number of loops is set to 5, the test module 104 obtains 5 sets of test data. If one set of test data indicates that the GSM module 2 is abnormal, it can confirm that the GSM module 2 is abnormal and report abnormal information. . For another example, if the number of cycles is set to 100 times, the test module 104 obtains 100 sets of test data, and if the normal ratio is greater than 95%, the GSM module can be confirmed to be normal.

用戶可根據測試需求自行選擇是否對GSM模組2進行循環測試,或者設置循環測試的次數等。 Users can choose whether to perform cyclic test on GSM module 2 or set the number of loop tests according to the test requirements.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,本發明之範圍並不以上述實施例為限,舉凡熟悉本案技藝之人士爰依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。 In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. However, the above description is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above embodiments, and equivalent modifications or variations made by those skilled in the art in accordance with the spirit of the present invention are It should be covered by the following patent application.

10‧‧‧GSM模組測試系統 10‧‧‧GSM Module Test System

100‧‧‧電源控制裝置 100‧‧‧Power control unit

102‧‧‧命令發送模組 102‧‧‧Command Sending Module

104‧‧‧測試模組 104‧‧‧Test module

106‧‧‧結果輸出模組 106‧‧‧Result output module

108‧‧‧循環測試模組 108‧‧‧Circuit test module

Claims (12)

一種GSM模組測試系統,安裝於電腦中,該電腦與電源、繼電器、待測之GSM模組以及充電器相連接,該系統包括:電源控制裝置,用於設置電源的開啟及關閉時間,以及向繼電器輸出電壓的範圍,控制電源的開啟及關閉,並控制電源向所述之繼電器輸出電壓以令繼電器類比按鍵功能打開GSM模組的電源開關,從而控制充電器向GSM模組提供電源;命令發送模組,用於生成使該GSM模組開始運行並在通電後嘗試連接網路的測試命令,並將生成的測試命令發送至GSM模組;及測試模組,用於令GSM模組執行該測試命令,並獲取執行結果,以及根據所述之執行結果判斷GSM模組是否能夠在通電後連接上網路從而確認該GSM模組是否能夠正常運行。 A GSM module test system is installed in a computer, and the computer is connected with a power source, a relay, a GSM module to be tested, and a charger. The system includes: a power control device for setting a power on/off time, and Outputting a range of voltages to the relay, controlling the opening and closing of the power source, and controlling the power supply to output voltage to the relay to enable the relay analog key function to turn on the power switch of the GSM module, thereby controlling the charger to supply power to the GSM module; The sending module is configured to generate a test command for starting the GSM module and attempting to connect to the network after being powered on, and sending the generated test command to the GSM module; and the test module for executing the GSM module The test command acquires the execution result and determines whether the GSM module can be connected to the network after power-on according to the execution result to confirm whether the GSM module can operate normally. 如申請專利範圍第1項所述之GSM模組測試系統,該系統還包括結果輸出模組,用於根據測試結果及測試過程中的各種測試資料生成測試報告,並儲存所述之測試結果、測試資料以及測試報告。 For example, in the GSM module test system described in claim 1, the system further includes a result output module, configured to generate a test report according to the test result and various test materials in the test process, and store the test result, Test data and test reports. 如申請專利範圍第2項所述之GSM模組測試系統,該系統還包括循環測試模組,用於設置循環次數以對GSM模組進行循環測試並獲得相應的測試結果。 For example, the GSM module test system described in claim 2, the system further includes a loop test module for setting the number of cycles to perform cyclic test on the GSM module and obtain corresponding test results. 如申請專利範圍第1項所述之GSM模組測試系統,所述結果輸出模組還用於藉由郵件、資訊或者其他方式將該異常原因傳送給測試人員。 For example, in the GSM module test system described in claim 1, the result output module is further configured to transmit the abnormal cause to the tester by mail, information or other means. 如申請專利範圍第1項所述之GSM模組測試系統,所述之命令發送模組發送的命令是AT命令。 For example, in the GSM module test system described in claim 1, the command sent by the command sending module is an AT command. 一種GSM模組測試方法,利用電腦與電源、繼電器、待測之GSM模組以及 充電器的連接測試GSM模組是否正常,該方法包括如下步驟:設置電源的開啟及關閉時間,以及向繼電器輸出電壓的範圍;開啟電源並控制該電源向繼電器輸出電壓;令繼電器類比按鍵功能打開GSM模組的電源開關,使充電器開始向GSM模組提供電源;生成使該GSM模組開始運行並在通電後嘗試連接網路的測試命令;將生成的測試命令發送至GSM模組,並令GSM模組執行該測試命令;獲得相應的執行結果;令繼電器類比按鍵功能關閉GSM模組的電源開關,使充電器停止向GSM模組提供電源;及根據所述之執行結果判斷GSM模組是否能夠在通電後連接上網路從而確認該GSM模組是否能夠正常運行以獲得測試結果。 A GSM module test method using a computer and a power supply, a relay, a GSM module to be tested, and The connection of the charger is tested whether the GSM module is normal. The method includes the following steps: setting the power on and off time, and outputting the voltage range to the relay; turning on the power and controlling the power output to the relay; and turning the analog analog button function on The power switch of the GSM module enables the charger to start supplying power to the GSM module; generates a test command that causes the GSM module to start running and attempts to connect to the network after power-on; sends the generated test command to the GSM module, and Let the GSM module execute the test command; obtain the corresponding execution result; let the relay analog key function turn off the power switch of the GSM module, so that the charger stops supplying power to the GSM module; and judge the GSM module according to the execution result Whether it is possible to connect to the network after power-on to confirm whether the GSM module can operate normally to obtain test results. 如申請專利範圍第6項所述之GSM模組測試方法,該方法還包括如下步驟:根據測試結果及測試過程中的各種測試資料生成測試報告,並儲存所述之測試結果、測試資料以及測試報告。 For example, in the GSM module test method described in claim 6, the method further includes the following steps: generating a test report according to the test result and various test data in the test process, and storing the test result, test data, and test report. 如申請專利範圍第6項所述之GSM模組測試方法,該方法在開啟電源步驟之前還包括如下步驟:藉由郵件、資訊或者其他方式將該異常原因傳送給測試人員。 For example, in the GSM module test method described in claim 6, the method further includes the following steps: transmitting the abnormal cause to the tester by mail, information or other means before the power-on step. 如申請專利範圍第6項所述之GSM模組測試方法,所述之測試結果包括:若GSM模組能夠在通電後連接上網路,則判斷該GSM模組能夠正常運行;及若GSM模組不能夠在通電後連接上網路,則判斷該GSM模組無法正常運行。 For example, in the GSM module test method described in claim 6, the test result includes: if the GSM module can be connected to the network after being powered on, it is determined that the GSM module can operate normally; and if the GSM module If the network cannot be connected after power-on, it is judged that the GSM module cannot operate normally. 一種GSM模組測試方法,利用電腦與電源、繼電器、待測之GSM模組以及 充電器的連接測試GSM模組是否正常,該方法包括如下步驟:(a)設置對GSM模組進行循環測試,並設置循環次數;(b)設置電源的開啟及關閉時間,以及向繼電器輸出電壓的範圍,開啟電源並控制該電源向繼電器輸出電壓;(c)令繼電器類比按鍵功能打開GSM模組的電源開關,使充電器開始向GSM模組提供電源;(d)生成使該GSM模組開始運行並在通電後嘗試連接網路的測試命令;(e)將生成的測試命令發送至GSM模組,並令GSM模組執行該測試命令;(f)獲得相應的執行結果;(g)令繼電器類比按鍵功能關閉GSM模組的電源開關,使充電器停止向GSM模組提供電源;(h)根據所述之執行結果判斷GSM模組是否能夠在通電後連接上網路從而確認該GSM模組是否能夠正常運行以獲得測試結果;及(i)根據所設置的循環次數自動重複步驟(c)至步驟(h)的流程以實現對GSM模組進行循環測試並獲得相應的測試結果。 A GSM module test method using a computer and a power supply, a relay, a GSM module to be tested, and The connection of the charger is tested whether the GSM module is normal. The method includes the following steps: (a) setting a loop test for the GSM module and setting the number of cycles; (b) setting the power on and off time, and outputting the voltage to the relay Range, turn on the power and control the power supply to the relay output voltage; (c) Let the relay analog key function turn on the power switch of the GSM module, so that the charger starts to supply power to the GSM module; (d) generate the GSM module Start the test and try to connect to the network test command after power-on; (e) send the generated test command to the GSM module, and let the GSM module execute the test command; (f) obtain the corresponding execution result; (g) The relay analog key function turns off the power switch of the GSM module, so that the charger stops supplying power to the GSM module; (h) judges whether the GSM module can be connected to the network after power-on according to the execution result to confirm the GSM mode. Whether the group can run normally to obtain the test result; and (i) automatically repeat the process of steps (c) to (h) according to the set number of cycles to realize the cyclic test of the GSM module and obtain the phase Test results. 如申請專利範圍第10項所述之GSM模組測試方法,該方法還包括如下步驟:根據測試結果及測試過程中的各種測試資料生成測試報告,並儲存所述之測試結果、測試資料以及測試報告。 The method for testing a GSM module according to claim 10, the method further comprising the steps of: generating a test report according to the test result and various test data in the test process, and storing the test result, test data, and test report. 如申請專利範圍第10項所述之GSM模組測試方法,該方法在開啟電源步驟之前還包括如下步驟:藉由郵件、資訊或者其他方式將該異常原因傳送給測試人員。 For example, in the GSM module test method described in claim 10, the method further includes the following steps before the power-on step: transmitting the abnormal cause to the tester by mail, information or other means.
TW96137436A 2007-10-05 2007-10-05 System and method for testing gsm modules TWI422839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96137436A TWI422839B (en) 2007-10-05 2007-10-05 System and method for testing gsm modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96137436A TWI422839B (en) 2007-10-05 2007-10-05 System and method for testing gsm modules

Publications (2)

Publication Number Publication Date
TW200916800A TW200916800A (en) 2009-04-16
TWI422839B true TWI422839B (en) 2014-01-11

Family

ID=44726160

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96137436A TWI422839B (en) 2007-10-05 2007-10-05 System and method for testing gsm modules

Country Status (1)

Country Link
TW (1) TWI422839B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921775A (en) * 2015-12-28 2017-07-04 镇江坤泉电子科技有限公司 A kind of gsm module test system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040203726A1 (en) * 2002-11-20 2004-10-14 Arima Communication Corp. Testing system for cellular phone module and method thereof
US20040210349A1 (en) * 2003-04-16 2004-10-21 Rodney Lenz Method and apparatus for controlling a power supply
US20060100841A1 (en) * 2004-09-02 2006-05-11 Tung-Ho Wu Automatic system and method for testing mobile phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040203726A1 (en) * 2002-11-20 2004-10-14 Arima Communication Corp. Testing system for cellular phone module and method thereof
US20040210349A1 (en) * 2003-04-16 2004-10-21 Rodney Lenz Method and apparatus for controlling a power supply
US20060100841A1 (en) * 2004-09-02 2006-05-11 Tung-Ho Wu Automatic system and method for testing mobile phone

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921775A (en) * 2015-12-28 2017-07-04 镇江坤泉电子科技有限公司 A kind of gsm module test system and method

Also Published As

Publication number Publication date
TW200916800A (en) 2009-04-16

Similar Documents

Publication Publication Date Title
CN109840207B (en) AutoSAR-based network management automation test system and test method
CN111624427A (en) A detection method and system for a relay protection device
CN115079675B (en) ECU test device, test method and test system
CN104483959A (en) Fault simulation and test system
CN101287266B (en) Test system and method for mobile phone
CN100493226C (en) Test system of the mobile terminal power consumption
CN110493079A (en) Production Automation Test Method of Industrial Ethernet Switch
US20090036115A1 (en) System and method for testing gsm modules
CN114578790A (en) A UAV flight control automatic test method, system, equipment and medium
CN111831553B (en) Testing system and testing method for multifunctional integrated automatic simulation test
CN100334431C (en) An environmental stress experiment automatic test method
CN110988528A (en) Method, device and system for testing product signal integrity
TWI422839B (en) System and method for testing gsm modules
CN103441811B (en) A kind of AIS slot synchronization triggering system based on the UTC time
CN114138312B (en) Upgrade testing method, device, electronic equipment and computer readable storage medium
CN115877182A (en) Chip aging test device and method
CN111596203A (en) A chip testing device, platform and method
TWI421519B (en) System and method for testing electrified gsm modules
CN106526360A (en) MMS remote regulation and control protection device-based test method
CN101370218A (en) Electrified test system and method for GSM module
CN110446026A (en) A kind of method and system of electric performance test equipment integrated test
US20070118779A1 (en) Intelligent Test System and Related Method for Testing an Electronic Product
CN101146145B (en) Transmission equipment switching power automatic test system and method
CN109062747A (en) Digital satellite embedded simulation environment intelligent test method
CN110309056B (en) Cross-platform simulation system for testing software input and output functions

Legal Events

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