CN105405280A - Realization method for debugging electric power acquisition terminal and obtaining meter reading information - Google Patents
Realization method for debugging electric power acquisition terminal and obtaining meter reading information Download PDFInfo
- Publication number
- CN105405280A CN105405280A CN201510689445.XA CN201510689445A CN105405280A CN 105405280 A CN105405280 A CN 105405280A CN 201510689445 A CN201510689445 A CN 201510689445A CN 105405280 A CN105405280 A CN 105405280A
- Authority
- CN
- China
- Prior art keywords
- electric power
- acquisition terminal
- power acquisition
- main frame
- virtual serial
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C19/00—Electric signal transmission systems
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a realization method for debugging an electric power acquisition terminal and obtaining meter reading information. The method comprises the following steps: 1, preparing a PC host, an emulator and the electric power acquisition terminal; 2, connecting one end of the emulator with the JTAG interface of the electric power acquisition terminal, and connecting the other end of the emulator with the PC host; 3, constructing a data storage structure in the RAM of the electric power acquisition terminal, storing meter reading information to be acquired by the PC host in the data storage structure, and creating multiple virtual serial ports TTY; 4, creating multiple virtual serial ports COM corresponding to the multiple virtual serial ports TTY in a one-to-one manner on the PC host, and establishing communication between the multiple virtual serial ports TTY of the electric power acquisition terminal and the multiple virtual serial ports TTY on the PC host to realize data interaction; and 5, accessing the multiple virtual serial ports TTY by the PC host to realize real-time reading of the meter reading information stored in the data storage structure. The method realizes meter reading in the debugging process without increasing external hardware interfaces of the electric power acquisition terminal.
Description
Technical field
The present invention relates to a kind of for debugging electric power acquisition terminal and obtaining the implementation method of amr message.
Background technology
The external hardware interface of existing electric power acquisition terminal is less, and conventional interface includes RS232 interface and RS485 interface, and debugging operations and meter reading operation can not be carried out simultaneously, and such electric power acquisition terminal can increase the workload of site operation personnel; Secondly, current debugging upgrading means is also just by means of the information interaction of the external equipments such as above-mentioned RS232 interface and RS485 Interface realization PC and electric power acquisition terminal.The method shortcoming: 1, take 1 road serial ports hardware resource, namely such serial ports can not as normally check meter (abnormal operating state) when debug process; 2, such serial ports can not multiplexing (debugging mode/message pattern); 3, to deposit reading rate low for such serial ports, can not meet big data quantity mutual, affect real-time; 4, hardware design additionally need consider debug serial port.
Summary of the invention
The technical problem to be solved in the present invention is, there is provided a kind of by setting up mutually corresponding multiple virtual serial ports, under the condition of acquisition terminal external hardware interface that do not increase electric power, the object achieving operation of carrying out checking meter in debug process is for debugging electric power acquisition terminal and obtaining the implementation method of amr message.
For solving the problems of the technologies described above, technical scheme provided by the invention is: a kind of for debugging electric power acquisition terminal and obtaining the implementation method of amr message, it comprises the following steps, step one: prepare PC main frame, emulator and electric power acquisition terminal; Step 2: the jtag interface of one end of emulator with electric power acquisition terminal is connected, the other end of emulator is connected with PC main frame; Step 3: build data store organisation in the RAM of electric power acquisition terminal, data store organisation stores the amr message obtained for PC main frame, and create multichannel virtual serial port TTY, step 4: establishment is set up communication with the virtual serial port COM on virtual serial port TTY multichannel virtual serial port COM one to one, the multichannel virtual serial port TTY of electric power acquisition terminal and PC main frame and realized data interaction on PC main frame; Step 5: PC main frame is by accesses virtual serial ports TTY, and the amr message realized data store organisation stores reads in real time.
As preferably, step 6: PC main frame is opened Telnet service and obtained amr message on this main frame in order to realize this PC main frame of remote computer access.
As preferably, in step 4, multichannel virtual serial port TTY carries out the module of debugging with corresponding electric power acquisition terminal supplying PC main frame respectively.
After adopting said method, the present invention compared with prior art, have the following advantages: by setting up mutually corresponding virtual serial port respectively on PC main frame and electric power acquisition terminal, data interaction between virtual serial port is achieved by emulator, under the condition of acquisition terminal external hardware interface that do not increase electric power, achieve and carry out the object operated of checking meter in debug process; Replace RS232 interface and RS485 interface by jtag interface, there has also been larger raising in the speed reading data; Decrease hardware interface, reduce the cost of electric power acquisition terminal.
Accompanying drawing explanation
Fig. 1 is process flow diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing 1, the present invention is described in further detail.
As shown in Figure 1, the present invention is a kind of for debugging electric power acquisition terminal and obtaining the implementation method of amr message, and it comprises the following steps, step one: prepare PC main frame, emulator and electric power acquisition terminal; Step 2: the jtag interface of one end of emulator with electric power acquisition terminal is connected, the other end of emulator is connected with PC main frame; Step 3: build data store organisation in the RAM of electric power acquisition terminal, data store organisation stores the amr message obtained for PC main frame, and create multichannel virtual serial port TTY, step 4: establishment is set up communication with the virtual serial port COM on virtual serial port TTY multichannel virtual serial port COM one to one, the multichannel virtual serial port TTY of electric power acquisition terminal and PC main frame and realized data interaction on PC main frame; Step 5: PC main frame is by accesses virtual serial ports TTY, and the amr message realized data store organisation stores reads in real time.
Step 6: PC main frame is opened Telnet service and obtained amr message on this main frame in order to realize this PC main frame of remote computer access.
In step 4, multichannel virtual serial port TTY carries out the module of debugging with corresponding electric power acquisition terminal supplying PC main frame respectively.
Below only just most preferred embodiment of the present invention is described, but can not be interpreted as it is limitations on claims.The present invention is not limited only to above embodiment, and all various changes done in the protection domain of independent claims of the present invention are all in protection scope of the present invention.
Claims (3)
1., for debugging electric power acquisition terminal and obtaining the implementation method of amr message, it is characterized in that: it comprises the following steps, step one: prepare PC main frame, emulator and electric power acquisition terminal; Step 2: the jtag interface of one end of emulator with electric power acquisition terminal is connected, the other end of emulator is connected with PC main frame; Step 3: build data store organisation in the RAM of electric power acquisition terminal, data store organisation stores the amr message obtained for PC main frame, and create multichannel virtual serial port TTY, step 4: establishment is set up communication with the virtual serial port COM on virtual serial port TTY multichannel virtual serial port COM one to one, the multichannel virtual serial port TTY of electric power acquisition terminal and PC main frame and realized data interaction on PC main frame; Step 5: PC main frame is by accesses virtual serial ports TTY, and the amr message realized data store organisation stores reads in real time.
2. according to claim 1 a kind of for debugging electric power acquisition terminal and obtaining the implementation method of amr message, it is characterized in that: step 6: PC main frame is opened Telnet service and obtained amr message on this main frame in order to realize this PC main frame of remote computer access.
3. according to claim 1ly a kind ofly to it is characterized in that: in step 4 for debugging electric power acquisition terminal and obtaining the implementation method of amr message, multichannel virtual serial port TTY respectively with the module of corresponding electric power acquisition terminal being carried out for PC main frame debug.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510689445.XA CN105405280B (en) | 2015-10-22 | 2015-10-22 | A kind of implementation method for debugging electric power acquisition terminal and obtaining amr message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510689445.XA CN105405280B (en) | 2015-10-22 | 2015-10-22 | A kind of implementation method for debugging electric power acquisition terminal and obtaining amr message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105405280A true CN105405280A (en) | 2016-03-16 |
CN105405280B CN105405280B (en) | 2018-11-30 |
Family
ID=55470743
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510689445.XA Active CN105405280B (en) | 2015-10-22 | 2015-10-22 | A kind of implementation method for debugging electric power acquisition terminal and obtaining amr message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105405280B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106652416A (en) * | 2017-01-10 | 2017-05-10 | 国电南瑞三能电力仪表(南京)有限公司 | Debugging output method suitable for centralized meter reading terminal |
CN108111596A (en) * | 2017-12-18 | 2018-06-01 | 宁波三星医疗电气股份有限公司 | A kind of method based on Telnet debugging electric power acquisition terminal |
CN110362440A (en) * | 2019-06-19 | 2019-10-22 | 福州瑞芯微电子股份有限公司 | A kind of JTAG debugging system of the virtual UART of band |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20080099565A (en) * | 2007-05-10 | 2008-11-13 | (주)매트론 | Automatic meter reading method using power line communication(plc) through a neutral line |
CN102572911A (en) * | 2010-12-28 | 2012-07-11 | 上海贝尔股份有限公司 | Long term evolution (LTE) base band terminal simulation system based on peripheral component interconnect express (PCI-E) interface |
CN102693194A (en) * | 1998-08-14 | 2012-09-26 | 英特尔公司 | Striping packets of data across multiple virtual channels |
CN102752203A (en) * | 2012-06-30 | 2012-10-24 | 深圳市同洲电子股份有限公司 | Method and network device for creating multiple virtual network interfaces |
CN102855750A (en) * | 2012-07-16 | 2013-01-02 | 河南省电力公司信阳供电公司 | Collector communication multiplexing serial port automatic switching device |
CN203405813U (en) * | 2013-08-26 | 2014-01-22 | 四川和通科技有限公司 | UART interface multiplex extension device used for concentrator and collector |
CN104052632A (en) * | 2014-05-29 | 2014-09-17 | 汉柏科技有限公司 | Device automation testing method and device based on virtual serial port servers |
CN104219268A (en) * | 2013-06-04 | 2014-12-17 | 中兴通讯股份有限公司 | Wireless control method and device and terminal |
-
2015
- 2015-10-22 CN CN201510689445.XA patent/CN105405280B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102693194A (en) * | 1998-08-14 | 2012-09-26 | 英特尔公司 | Striping packets of data across multiple virtual channels |
KR20080099565A (en) * | 2007-05-10 | 2008-11-13 | (주)매트론 | Automatic meter reading method using power line communication(plc) through a neutral line |
CN102572911A (en) * | 2010-12-28 | 2012-07-11 | 上海贝尔股份有限公司 | Long term evolution (LTE) base band terminal simulation system based on peripheral component interconnect express (PCI-E) interface |
CN102752203A (en) * | 2012-06-30 | 2012-10-24 | 深圳市同洲电子股份有限公司 | Method and network device for creating multiple virtual network interfaces |
CN102855750A (en) * | 2012-07-16 | 2013-01-02 | 河南省电力公司信阳供电公司 | Collector communication multiplexing serial port automatic switching device |
CN104219268A (en) * | 2013-06-04 | 2014-12-17 | 中兴通讯股份有限公司 | Wireless control method and device and terminal |
CN203405813U (en) * | 2013-08-26 | 2014-01-22 | 四川和通科技有限公司 | UART interface multiplex extension device used for concentrator and collector |
CN104052632A (en) * | 2014-05-29 | 2014-09-17 | 汉柏科技有限公司 | Device automation testing method and device based on virtual serial port servers |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106652416A (en) * | 2017-01-10 | 2017-05-10 | 国电南瑞三能电力仪表(南京)有限公司 | Debugging output method suitable for centralized meter reading terminal |
CN106652416B (en) * | 2017-01-10 | 2019-08-20 | 国电南瑞三能电力仪表(南京)有限公司 | A kind of debugging output method suitable for centralized automatic meter-reading terminal |
CN108111596A (en) * | 2017-12-18 | 2018-06-01 | 宁波三星医疗电气股份有限公司 | A kind of method based on Telnet debugging electric power acquisition terminal |
CN108111596B (en) * | 2017-12-18 | 2021-11-02 | 宁波三星医疗电气股份有限公司 | Method for debugging power acquisition terminal based on remote login |
CN110362440A (en) * | 2019-06-19 | 2019-10-22 | 福州瑞芯微电子股份有限公司 | A kind of JTAG debugging system of the virtual UART of band |
CN110362440B (en) * | 2019-06-19 | 2022-06-21 | 瑞芯微电子股份有限公司 | Take virtual UART's JTAG debug system |
Also Published As
Publication number | Publication date |
---|---|
CN105405280B (en) | 2018-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103312852B (en) | A kind of mobile terminal electric current automatic test device and method of testing thereof | |
CN104375915A (en) | Method for interactively and quickly diagnosing mainboard time sequence by utilizing BMC (baseboard management controller) and CPLD (complex programmable logic device) | |
CN111600760B (en) | Quality detection system, method and equipment of power grid operation monitoring system | |
CN203104527U (en) | USB interface conversion device | |
CN105405280A (en) | Realization method for debugging electric power acquisition terminal and obtaining meter reading information | |
CN110346691A (en) | A kind of power line failure diagnostic device and method based on HPLC high-speed power carrier communication | |
CN102426548B (en) | Debugging method, debugger and debugging system for embedded system | |
CN204965718U (en) | Photovoltaic intelligent monitoring system | |
CN1929223A (en) | Integrated automation converting station debugging apparatus | |
CN107943732A (en) | One kind realizes 1553B bus modules based on production domesticization FPGA device | |
CN202003259U (en) | Data management device | |
CN103634163A (en) | Method for testing interchangeability of remote communication unit of acquisition terminal | |
CN107329427A (en) | A kind of M П И bus marcos and information recording method and system | |
CN101969660B (en) | Method, device and system for monitoring Igsmr interface | |
CN203480505U (en) | Networked programmer system | |
CN107748730B (en) | Cost control card table interaction fault analysis system based on PXIe bus | |
CN103616563B (en) | A kind of open type spectrometer receiving channel extension system | |
CN106535361A (en) | Dual-wireless communication device applied to remote monitoring system | |
CN106708684B (en) | Virtual environment test hardware system for transformer substation | |
CN204331014U (en) | Electric energy meter event acquisition test fixture | |
CN207882728U (en) | A kind of control system | |
CN202856455U (en) | Five-prevention system adopting wireless network | |
CN206271103U (en) | Charging pile message accounting and charging pile | |
CN203037278U (en) | Combination meter state recognition device | |
Soni et al. | Fault Analysis of Electric Power System using PLC and Wireless Communication System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |