CN100340986C - Method and apparatus for analog satellite card - Google Patents

Method and apparatus for analog satellite card Download PDF

Info

Publication number
CN100340986C
CN100340986C CNB200410079935XA CN200410079935A CN100340986C CN 100340986 C CN100340986 C CN 100340986C CN B200410079935X A CNB200410079935X A CN B200410079935XA CN 200410079935 A CN200410079935 A CN 200410079935A CN 100340986 C CN100340986 C CN 100340986C
Authority
CN
China
Prior art keywords
card
satellite
satellite card
analogue unit
control module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB200410079935XA
Other languages
Chinese (zh)
Other versions
CN1746851A (en
Inventor
熊晓峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB200410079935XA priority Critical patent/CN100340986C/en
Publication of CN1746851A publication Critical patent/CN1746851A/en
Application granted granted Critical
Publication of CN100340986C publication Critical patent/CN100340986C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a method and a device for simulating satellite cards, which are used for providing information of positions, states and data needed by external devices. The device comprises a control unit and a simulating unit which is connected with the control unit through a communication port, wherein the control unit sends command to the simulating unit and sets the model of a satellite card and relative parameters for the simulating unit. The control unit onloads protocols and parameters of a satellite card with corresponding model, and simulates the satellite card to output the information of positions, states and data once per second. The present invention is mainly used for debugging development and production test.

Description

A kind of method of analog satellite card and device
Technical field
The present invention relates to communication technology of satellite, relate in particular to the method and the device of analog satellite card.
Background technology
Basically all need to plug satellite card in the 3G single-board testing process of locating information needing time synchronized at present or need, connect satellite antenna,, make veneer enter normal operating conditions for veneer provides time and positional information for veneer.And a common veneer can compatible two or more satellite card so that satisfy the demand of aspects such as substituting, so every testing apparatus must comprise the satellite card of all needs, the artificial satellite card of changing in test process, and then assurance test comprehensive.
In large-scale production is tested automatically, will be a huge cost expense for every cover testing apparatus is equipped with all satellite cards that need, artificial intervention then greatly reduces the efficient of ATE (automatic test equipment).
Though relevant GPS simulation system is arranged at present, at be the simulation of GPS or GLONASS satellite-signal, simulator output satellite simulation radiofrequency signal, its receiving end remains satellite card, is mainly used in research and development.This method has just been omitted satellite antenna, still needs satellite card, is not suitable in the production test.
Summary of the invention
In view of this, the invention provides a kind of method and device of analog satellite card, need be equipped with a plurality of satellite cards with a set of equipment in the solution prior art and have the high and inefficient problem of cost with the artificial satellite card of changing.
The invention provides following technical scheme:
A kind of satellite card analogue means is used to provide external unit desired position/state/data message; This device comprises: control module, and the analogue unit that is connected with this control module through PORT COM; Described control module sends order and for it satellite card model and correlation parameter is set to described analogue unit; Described analogue unit loads the satellite card agreement and the parameter of respective model, simulates this satellite card output per second positions/conditions/data message once.
Wherein, described control module is a PC, and described analogue unit is a single card microcomputer; This PC is connected with serial ports by network interface with single card microcomputer.
A kind of method of analog satellite card is used to provide external unit desired position/state/data message; This method comprises the steps:
A, control module are satellite card model and the parameter that analogue unit is provided with needs simulation;
B, analogue unit load corresponding satellite card agreement and parameter and finish initialization operation according to the satellite card model;
C, analogue unit carry out simulator program and produce per second pulse signal (1PPS) once, and utilize this pulse signal as synchronizing signal outgoing position/state/data message with to the response message of external command.
Adopt the present invention, not only can substitute all kinds of satellite cards, a large sum of cutting down cost expense can replace manual intervention to change satellite card and antenna again, significantly improves the testing efficiency of ATE (automatic test equipment).The present invention can also be used for exploitation except the production test that is applied to the 3G veneer, as simple debugging acid, provide effective satellite card state simulation.
Description of drawings
Fig. 1 is a satellite card analogue means The general frame;
Fig. 2 is provided with functional block diagram for satellite card and parameter;
Fig. 3 is the process flow diagram that parameter is set;
Fig. 4 is the synoptic diagram that concerns of 1PPS and outgoing position/state/data message;
Fig. 5 A is the process flow diagram that analogue unit receives order;
Fig. 5 B is for producing the process flow diagram of replying;
Fig. 5 C is the process flow diagram of outgoing position/state/data message.
Embodiment
Principle according to satellite card, the L1 that satellite card sends by antenna reception satellite, the radiofrequency signal of L2 frequency range, handle through internal analysis, calculate current position (X, Y, Z) and current time (T), and output to the equipment that needs these information by serial ports.In production test, tested single board can not lain in that corner that lays oneself open to the earth, and is what time present, so just need not know correct position (X, Y, Z) and current correct time (T) yet.For what pay close attention in the test is the serial communication protocol of satellite card, adopt this agreement, satellite card can be present positional information, some status informations of temporal information and satellite card itself send to external unit, also can adjust some parameters of self by the instruction of accepting external unit, realized the communications protocol of satellite card, the simulation of satellite card has also just realized.
Consult shown in Figure 1ly, the satellite card analogue means comprises control module and analogue unit.Control module is a PC in the present embodiment, and analogue unit is a single card microcomputer.PC links to each other with single card microcomputer with serial ports by network interface, and network interface is as the Operation and Maintenance port, and to single card microcomputer transmitting order to lower levels and parameter, serial ports is as debug port, the external device instruction that reports single card microcomputer to receive.The RS232 of single card microcomputer, RS422 are provided with in order to simulate different satellite cards with the TTL serial ports among the figure, because the serial ports of external output information of the satellite card of each company and external device communication is different on electrical specification, the serial ports that goes out the RS232 electrical specification that has, the serial ports that goes out the TTL electrical specification that has, but they have common characteristic is exactly all to send the communication information of satellite card and receive the external unit interactive messages, and for example time message, localization message and external unit are to the setup message of satellite card etc.
The work of PC end is divided into the two large divisions: for single card microcomputer is provided with satellite card model and necessary parameter; Show the instruction of external unit to single card microcomputer.Show that reporting external unit also is the necessary task of PC end to the instruction of single card microcomputer, be used to monitor communicating by letter of external unit and satellite card in test, whether this part function of external unit for confirmation is normal.
The satellite card model is the various satellite cards that can buy on market at present; The call parameter of satellite card is all according to every functional requirement, and they are divided into 5 big classes: (1) per second pulse signal (1PPS) once; (2) location; (3) receiver; (4) almanac; (5) time.Each satellite card all will comprise this 5 most of function, and every partial function is divided into the set of different instruction again, as shown in Figure 2.
For analogue unit,, all to respond if receive the instruction that above-mentioned functions was inquired about or be provided with to external unit.When programming each satellite card as a class, each function is a function in this type of, the various responses that every kind of instruction relates to are as function parameters.
The flow process that PC is provided with veneer is as shown in Figure 3:
A, judged whether that the satellite card example exists, if then carry out step B, otherwise carries out step C.
B, remove example and return steps A.
Owing to only simulate a kind of satellite card at every turn, the satellite card example of simulation before therefore must deleting is so that can correct initialization simulator.
C, generate example according to the satellite card type.
D, all correlation parameters of 5 functional modules of satellite card are set.
E, judged whether that steering order arrives, if then carry out step F, otherwise carries out step G.
F, judgement are parameter setting instruction or satellite card switching command, if the satellite card switching command then changes steps A, if parameter setting instruction then changes step D.
Must issue the order of the operation that stops current satellite card before the switch satellite card earlier from PC, single card microcomputer receives the serial ports of just cutting out analog satellite card after satellite card is ceased and desisted order and interrupts, and closes 1pps and interrupts, and empties and receives and send buffer memory; Issue the satellite card switching command from PC then, after single card microcomputer received this instruction, the simulator program that will call in another kind of satellite card moved, and the simulator program control hardware carries out corresponding initialization, selecting the sort of serial ports for use such as serial ports, is TTL, RS232 or RS422.How many baud rates selects for use, and pulse per second (PPS) is positive pulse or negative pulse etc., so just finished the switch operating of satellite card.
G, judge whether to finish the parameter setting,, otherwise carry out step e if then finish.
Single card microcomputer partly need be achieved as follows 3 class functions:
(1) loads corresponding satellite card agreement according to the indication of PC, the satellite card that simulation is set; (2) the accurate 1PPS signal of output; (3) in time handle the various instructions of external unit according to the setup parameter of PC.
Satellite card communication protocol is the information document of being formulated and being announced by satellite card producer, each present large satellite card Development and Production producer is all with the subsidiary communication protocol of satellite card, mainly stipulated the interface level (TTL, RS232, RS422 etc.) of serial communication in the agreement, the baud rate of communication (2400,4800,9600 etc.), communication information form (binary format, NMEA0183 etc.), various instructions and the parameter declaration of replying.The satellite card that the single card microcomputer program at first is provided with according to PC is set the communication baud rate of analog satellite card serial ports, and the various parameters that PC is set are called in internal memory then, have just finished initialization.
1PPS is important synchronizing signal, is a per second pulse per second (PPS) once, and the 1PPS signal definition is as follows:
(1) 0~5 coucher is done pulse;
(2) the 1PPS markers is synchronous with the rising edge of a pulse that rises to 5v from 0v;
(3) about 20~30ns of rise time;
(4) the about 200ms ± 1ms of 5v pulse width;
(5) negative edge 200ms behind rising edge occurs;
(6) degree of accuracy is 1 millisecond.
Because the accuracy requirement of pulse per second (PPS) is 1ms, so on single card microcomputer, realize by the logic frequency division by a high precision constant temperature crystal.
To external unit by serial ports report the processing of various instructions and per second by serial ports output external unit positions/conditions/data message and response message to being most important task on the single card microcomputer, because the satellite card serial ports will be exported per second positions/conditions/data message once under the default conditions, so must carry out reasonable distribution to the time of each second.The instruction each time of external unit is all put into earlier and is accepted buffer memory, after reading by special program then, the method of tabling look-up according to instruction is made suitable response message according to the satellite card and the corresponding parameters of the correspondence of setting on the PC, and message put into sends buffer memory.Described table number sets gradually according to the message id of satellite card, as the satellite card message id is 01 interval scale inquiry satellite card self-detection result, so will be when single card microcomputer receives a message ID number comparison in this message and the table, if it is consistent, just call the handling procedure of this ID correspondence, handling procedure is handled according to factors such as being provided with of PC, handles the back and puts into the transmission buffer queue replying.
The example explanation: if single card microcomputer receives the day settings message id of external unit is 0X08, just to table look-up and seek ID be the message of 0X08 to single card microcomputer so, just call this message id corresponding processing function after finding, the work of handling function is the storage space that the date and time information that external unit resets is written to date saved information in the single card microcomputer, check then whether the date and time information that writes is correct, if be response content that replying of OK put into the transmission buffer queue just correctly, if failure is response content that replying of FAIL put into the transmission buffer queue just.
Consult shown in Figure 4, according to the satellite card data, first data byte in first information of serial ports output will be exported between 50ms in 0 after the measurement epoch, so the CPU on the single card microcomputer the rising edge of 1PPS as the down trigger point, when this CPU is interrupted by 1PPS, at first from serial ports outgoing position/state/data message, then output is stored in the response message in the sending area.
Consult shown in Fig. 5 A, the flow process that the single card microcomputer serial ports receives order is:
1, judged whether to receive interruption, if then carry out step 2, otherwise continue to judge or carry out other programs (if the single card microcomputer serial ports is handled is to drive interrupting, and can not enter the serial ports received processing program when not interrupting, and what at this moment move is main circulating program) on single card microcomputer.
2, receive 1 byte data and storage.
3, judge whether frame data finish,, otherwise carry out step 4 if then change step 1.
One frame data that 4, will receive deposit send buffer in, change step 1 then.
Consult shown in Fig. 5 B, single card microcomputer processing command and the flow process that produces response message are: judge whether send buffer has data earlier, if have then table look-up earlier and obtain regeneration response message after the parameter according to the instruction in the buffer memory, then response message is deposited in the transmission buffer area, intact up to the command process that will receive buffer area.
Consult shown in Fig. 5 C, the flow process of single card microcomputer outgoing position/state/data message is as follows:
10, judged whether that 1PPS interrupts, if then carry out step 11, otherwise continue to judge or carry out other programs (if the single card microcomputer handling procedure is to interrupt driving with 1PPS, can not enter handling procedure when not interrupting, what at this moment move is main circulating program) on single card microcomputer.
11, upgrade positions/conditions/data message.
Information such as positions/conditions/data are to have set an initial value in advance by PC, and single card microcomputer is selected according to the value of setting in operational process.As, current position is to maintain static, and still moves or the like with 40 kilometers speed per hour this initial value is carried out increment assignment again, if the position is to maintain static, initial value is constant so, if the position is to move continuously, initial value can increase continuously so.
12, the positions/conditions/data message that will send buffer zone by serial ports sends.
13, judge that whether send buffer zone also has Frame, if then carry out step 14, otherwise carry out step 10.
14, judge whether the transmission data byte is in excess of the quota, if then change step 10, otherwise carry out step 15.
15, send frame data, and the transmission byte number that adds up, step 10 changeed.
Because each processing cycle is 1 second, positions/conditions/data message must preferentially send, and removes the positions/conditions/data message of the regular length that must send, and the remaining information byte length that can also send can be calculated from the serial ports baud rate.
Satellite card analogue means of the present invention with the satellite card that needs in the alternative test of cheap software and hardware scheme to adopt, can be realized full-automatic testing at production test in whole test process, get rid of the factor of manual intervention.Method and apparatus of the present invention mainly is applicable to exploitation debugging and production test.

Claims (10)

1, a kind of satellite card analogue means is used to provide external unit desired position/state/data message; It is characterized in that this device comprises: control module, and the analogue unit that is connected with this control module through PORT COM; Described control module sends order and for it satellite card model and parameter is set to described analogue unit; Described analogue unit loads the satellite card agreement and the parameter of respective model, simulates this satellite card output per second positions/conditions/data message once.
2, device as claimed in claim 1 is characterized in that, described control module is a PC, and described analogue unit is a single card microcomputer; This PC is connected with serial ports by network interface with single card microcomputer, and to single card microcomputer transmitting order to lower levels and configuration parameter, single card microcomputer reports the external command that receives by serial ports to PC to PC by network interface.
3, a kind of method of analog satellite card is used to provide external unit desired position/state/data message; It is characterized in that, comprise the steps:
A, control module are satellite card model and the parameter that analogue unit is provided with needs simulation;
B, analogue unit load corresponding satellite card agreement and parameter and finish initialization operation according to the satellite card model;
C, analogue unit carry out simulator program and produce per second pulse signal 1PPS once, and utilize this pulse signal as synchronizing signal outgoing position/state/data message with to the response message of external command.
4, method as claimed in claim 3, it is characterized in that, issue to analogue unit and stop to simulate current satellite card and switch satellite card command when control module receives switch satellite card when instruction, stop current simulator program by analogue unit, and carry out step B, C again.
5, method as claimed in claim 3 is characterized in that, when analogue unit receives external device instruction, carries out following step:
Deposit external command in the reception buffer memory;
From receiving the cache read instruction fetch and the acquisition corresponding parameters of tabling look-up;
According to the response message of the described external command of described parameter generating and deposit the transmission buffer memory in.
6, method as claimed in claim 5 is characterized in that, analogue unit also reports control module with the external device instruction that receives, and is shown by control module.
7, method as claimed in claim 3 is characterized in that, the rising edge that utilizes described per second pulse signal once triggers outgoing position/state/data message as the down trigger point and to the response message of external command.
8, method as claimed in claim 7 is characterized in that, outgoing position/state/data message at first in per second pulse signal cycle is once then exported response message.
9, method as claimed in claim 8 is characterized in that, first data byte in first information of output after measurement epoch 0 to 50ms in export.
10, want 3 described methods as claim, it is characterized in that, the clock signal of high precision constant temperature crystal output is carried out frequency division produce described per second pulse signal once.
CNB200410079935XA 2004-09-08 2004-09-08 Method and apparatus for analog satellite card Expired - Fee Related CN100340986C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200410079935XA CN100340986C (en) 2004-09-08 2004-09-08 Method and apparatus for analog satellite card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200410079935XA CN100340986C (en) 2004-09-08 2004-09-08 Method and apparatus for analog satellite card

Publications (2)

Publication Number Publication Date
CN1746851A CN1746851A (en) 2006-03-15
CN100340986C true CN100340986C (en) 2007-10-03

Family

ID=36166397

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200410079935XA Expired - Fee Related CN100340986C (en) 2004-09-08 2004-09-08 Method and apparatus for analog satellite card

Country Status (1)

Country Link
CN (1) CN100340986C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441261B (en) * 2008-12-17 2011-08-10 华为技术有限公司 Method and equipment for implementing real time clock RTC buckling function on GPS receiver card slot
CN103324570A (en) * 2013-06-18 2013-09-25 安科智慧城市技术(中国)有限公司 Functional testing method and system for to-be-tested system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1282917A (en) * 1999-09-30 2001-02-07 深圳市中兴通讯股份有限公司 Software simulation test method
US6208841B1 (en) * 1999-05-03 2001-03-27 Qualcomm Incorporated Environmental simulator for a wireless communication device
CN1332592A (en) * 2000-09-30 2002-01-23 深圳市中兴通讯股份有限公司 Base station side business imitating system and method
CN1464388A (en) * 2002-06-10 2003-12-31 华为技术有限公司 Mailbox communication apparatus simulation method and process for testing host machine and single board interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6208841B1 (en) * 1999-05-03 2001-03-27 Qualcomm Incorporated Environmental simulator for a wireless communication device
CN1282917A (en) * 1999-09-30 2001-02-07 深圳市中兴通讯股份有限公司 Software simulation test method
CN1332592A (en) * 2000-09-30 2002-01-23 深圳市中兴通讯股份有限公司 Base station side business imitating system and method
CN1464388A (en) * 2002-06-10 2003-12-31 华为技术有限公司 Mailbox communication apparatus simulation method and process for testing host machine and single board interface

Also Published As

Publication number Publication date
CN1746851A (en) 2006-03-15

Similar Documents

Publication Publication Date Title
CN101408862B (en) Embedded system test method
CN103792928A (en) Industrial field data collecting and analyzing system based on Modbus
CN104483959A (en) Fault simulation and test system
CN110632461B (en) Test method, test terminal and test system for synchrophasor data concentrator
CN105137928A (en) Full-automatic production line data collection method and system thereof
CN103699108A (en) OBD (on-board diagnostics) technology-based motor vehicle real-time monitoring system
CN106205105A (en) The data concentrator of multiple data form
CN110795317A (en) Method and system for realizing lighting of self-adaptive hard disk backboard by using CPLD (complex programmable logic device)
CN101957428A (en) Automatic test method and tool of monitoring circuit board
CN101452393A (en) DSP2812 program on-line upgrading method based on PCI bus
CN100385787C (en) DSP Chip-based excitation controller communication system and its method for realizing USB protocol
CN100340986C (en) Method and apparatus for analog satellite card
CN1300698C (en) Statistical method for covering rate of embedded system
CN101718987B (en) alarm control method and device of production delay
CN110262454A (en) Test macro, the method and device of blower fan control system
CN112486748B (en) Test system and test method thereof
CN202974663U (en) X type aeroengine test bench measuring and controlling system
CN203882164U (en) OBD (on-board diagnostics) technology-based motor vehicle real-time monitoring system
CN206610099U (en) The configurable time synchronization test system in scene
CN201378317Y (en) Codes download system adopting JTAG mode
CN108491221A (en) Update, fault detection system and the method for embedded system
CN1229722C (en) System for realizing envivonment test of mainboard
CN111966394A (en) ETL-based data analysis method, device, equipment and storage medium
CN2862058Y (en) Radar waveform recording playback analyzer
CN113050133B (en) GNSS star card data interface processing capability test method of satellite system application equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071003

Termination date: 20160908