Disclosure of Invention
The invention mainly aims to provide an AIS equipment testing system, and aims to solve the problems of troublesome tests and high test cost of the conventional AIS products.
In order to achieve the above purpose, the present invention provides an AIS equipment testing system, which includes a PC terminal and an AIS transceiver board in communication connection with the PC terminal, wherein the AIS transceiver board is used for collecting AIS messages, and the PC terminal is used for receiving and storing the AIS messages sent by the AIS transceiver board; the PC end is further used for sending the stored AIS message to the AIS receiving and sending board according to the received test instruction, the AIS receiving and sending board is further used for generating a corresponding baseband signal according to the received AIS message and sending the baseband signal out to be received by the AIS device to be tested, and the PC end is further used for displaying relevant data corresponding to the AIS message.
Preferably, the AIS transceiver board is further configured to determine whether the message sent by the PC is an AIS message, and if the message sent by the PC is an AIS message, generate a corresponding baseband signal and transmit the baseband signal at a corresponding frequency point through a radio frequency port.
Preferably, the PC terminal is further configured to send the customized message to an AIS transceiver board, and the AIS transceiver board is further configured to generate a corresponding baseband signal according to the received customized message, and transmit the baseband signal at a set frequency point through a radio frequency port.
Preferably, the PC terminal is further configured to set a time interval for issuing the AIS message stored therein.
Preferably, the AIS transceiver board is further configured to parse the collected AIS messages.
The invention also provides an AIS equipment testing method, which comprises the following steps:
the PC end receives and stores the AIS messages collected by the AIS transceiver board;
the PC terminal sends the stored AIS message to the AIS receiving and sending plate according to the received test instruction;
the AIS transceiver board generates corresponding baseband signals according to the received AIS messages and transmits the baseband signals to be received by the AIS equipment to be tested;
and verifying the receiving performance of the AIS equipment to be tested according to the related data displayed by the PC terminal.
Preferably, the AIS transceiver board generates a corresponding baseband signal according to the received AIS message, and transmits the baseband signal to be received by the AIS device under test includes:
judging whether the received message is an AIS message or not by the AIS transceiver board;
if yes, generating a corresponding baseband signal, and transmitting the baseband signal at a corresponding frequency point through a radio frequency port;
if not, no baseband signal is generated.
Preferably, the AIS equipment testing method further includes:
the PC end receives the customized message and sends the customized message to the AIS transceiving board;
and the AIS transceiver board generates corresponding baseband signals according to the received customized messages and transmits the baseband signals at the set frequency points through the radio frequency port.
Preferably, the sending, by the PC terminal according to the received test instruction, the stored AIS message to the AIS transceiver board includes:
and the PC terminal sends the AIS message according to a preset time interval.
The present invention also proposes a computer readable storage medium, on which a computer program is stored, which, when executed by a processor, implements at least the following steps of the AIS device testing method:
the PC end receives and stores the AIS messages collected by the AIS transceiver board;
the PC terminal sends the stored AIS message to the AIS receiving and sending plate according to the received test instruction;
the AIS transceiver board generates corresponding baseband signals according to the received AIS messages and transmits the baseband signals to be received by the AIS equipment to be tested;
and verifying the receiving performance of the AIS equipment to be tested according to the related data displayed by the PC terminal.
Compared with the existing AIS product test mode, the technical scheme of the invention has the following beneficial effects: one set of AIS equipment test system has been designed, and this AIS equipment test system includes PC end and AIS receiving and dispatching board to the mode simulation test scene that combines through software and hardware provides simulation AIS message data in order to test to the AIS equipment, labour saving and time saving, easy operation is easy, can save the high cost of going out the test cost, and very big promotion efficiency of software testing guarantees AIS product function test's accuracy and reliability.
Detailed Description
In the following, the embodiments of the present invention will be described in detail with reference to the drawings in the following, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides an AIS equipment test system, referring to fig. 1, the AIS equipment test system comprises a PC end and an AIS transceiver board in communication connection with the PC end, wherein the AIS transceiver board is used for collecting AIS messages, and the PC end is used for receiving and storing the AIS messages sent by the AIS transceiver board; the PC end is also used for sending the stored AIS message to the AIS receiving and sending plate according to the received test instruction, the AIS receiving and sending plate is also used for generating a corresponding baseband signal according to the received AIS message and transmitting the baseband signal to be received by the AIS equipment to be tested, and the PC end is also used for displaying relevant data corresponding to the AIS message.
The AIS equipment test system is used for testing AIS equipment and mainly comprises a PC end, an AIS transceiver board and other supporting facilities, wherein the PC end comprises communication and test software, the PC end is in serial connection communication with the AIS transceiver board, and the PC end and the AIS transceiver board realize signal transmission and data interaction based on a serial protocol. It is known that AIS messages have various types, such as message 4 (base station report) and the like, based on the performance certification standard of IEC 62287-1. Before the test, a whole set of AIS equipment test system can be carried to a port, AIS messages transmitted by ships are collected through the AIS receiving and sending plate and sent to the PC end to be stored, recording of the AIS messages is achieved, and the AIS messages are used for reproducing and shaping various AIS message scenes. When actual test, the PC end is as the host computer, and the AIS is the lower computer, and the AIS equipment is connected with the AIS transceiver panel, and the manual work controls the PC test window, and the PC end receives test instruction to send the AIS message that its was stored to the AIS transceiver panel, and the AIS transceiver panel produces corresponding baseband signal and launches to the AIS equipment, and the AIS equipment is received and is compared with the relevant data that the PC end shows behind the AIS message, in order to verify whether the receptivity of AIS equipment is OK, thereby accomplish the test.
This AIS equipment test system designs to the test of AIS equipment to the mode simulation test scene through software and hardware combination provides simulation AIS message data in order to test to the AIS equipment, and labour saving and time saving, easy operation is easy, can save the high cost of going out the test cost, and very big promotion efficiency of software testing guarantees AIS product function test's accuracy and reliability.
In addition, after repeated verification for many times, the AIS equipment testing system can be universally used for the transmission function verification and the receiving performance test of all ClassB AIS products.
In a preferred embodiment, the AIS transceiver board is further configured to determine whether the message sent by the PC is an AIS message, and if the message sent by the PC is an AIS message, generate a corresponding baseband signal and transmit the baseband signal at a corresponding frequency point through the radio frequency port.
After receiving the message sent by the PC, the AIS transceiver board performs software analysis on the message and judges whether the message is an AIS message. If the message sent by the PC terminal is an AIS message, the AIS transceiver board generates a corresponding baseband signal and transmits the baseband signal at a corresponding frequency point through a radio frequency port so as to be received by AIS equipment for testing. Correspondingly, if the message sent by the PC end is not the AIS message, the AIS transceiver board does not generate a baseband signal and waits for the receiving PC end to send the next message so as to judge again.
In a preferred embodiment, the PC is further configured to send the customized message to the AIS transceiver board, and the AIS transceiver board is further configured to generate a corresponding baseband signal according to the received customized message, and transmit the baseband signal at the set frequency point through the radio frequency port.
The AIS equipment testing system can also test the transmitting function and the receiving performance of AIS equipment through the customized messages so as to make up for the defect that a lot of messages cannot be received in the external actual environment. For example, the data link management function test of the AIS product can be realized by customizing message 4 (base station report) and message 20 (data link management message); customizing message 4 (base station report) and message 22 (channel management) to implement a regional channel management function test for testing AIS products; customizing message 4 (base station report) and message 23 (group assignment command) to implement an assignment pattern test for AIS products; the custom message 15 (inquiry) implements a consultation mode test of the AIS product. In addition to the above, there are certainly other components, which are not illustrated herein. Specifically, according to the ITU-RM.1371-5 recommendation, message data are filled in windows corresponding to all messages of a PC end, the PC end transmits related message contents to an AIS transceiver board uniformly through a serial port protocol, the AIS transceiver board generates corresponding baseband signals according to the related message contents and transmits the baseband signals at set frequency points of the PC end through a radio frequency port, and after the AIS equipment receives the related messages, the AIS equipment compares the related message contents with the related test contents of IEC62287-1 to check whether the AIS equipment outputs the AIS message contents according to expected effects of corresponding items or not so as to verify whether the function items to be tested of the AIS equipment meet AIS authentication standards or not.
In a preferred embodiment, the PC is further configured to set a time interval for issuing AIS messages stored therein. Specifically, the time interval of the sending of the AIS messages stored by the PC end can be manually set in the test window, so as to change the data processing amount of the AIS messages in the unit time of the AIS device to be tested. The issuing time interval is shortened, the testing time can be reduced, and the testing efficiency is improved.
In a preferred embodiment, the AIS transceiver board is further configured to parse the collected AIS messages. Specifically, after receiving the AIS message transmitted by the ship, the AIS transceiver board performs software analysis on the AIS message to obtain corresponding message data, so that the message data is output to the PC terminal through the serial port for storage.
The present invention further provides an AIS device testing method, referring to fig. 2, the AIS device testing method includes:
step S10: the PC end receives and stores the AIS messages collected by the AIS transceiver board;
step S20: the PC terminal sends the stored AIS message to an AIS receiving and sending board according to the received test instruction;
step S30: the AIS transceiver board generates corresponding baseband signals according to the received AIS messages and transmits the baseband signals to be received by the AIS equipment to be tested;
step S40: and verifying the receiving performance of the AIS equipment to be tested according to the related data displayed by the PC terminal.
The AIS equipment testing method uses a combined testing tool of a PC end and an AIS transceiver board to test AIS equipment. The PC end comprises communication and test software, is in serial port connection communication with the AIS receiving and transmitting board, and is in signal transmission and data interaction with the AIS receiving and transmitting board based on a serial port protocol. Steps S10 to S40 are the test procedure of the present AIS equipment test method, and it is known that the AIS messages mentioned therein have various types such as message 4 (base station report) and the like, based on the performance certification standard of IEC 62287-1. Specifically, the ship carries a PC end and an AIS transceiver board to a port, AIS messages transmitted by a ship are collected through the AIS transceiver board and are sent to the PC end to be stored, and recording of the AIS messages is achieved so as to be used for reproducing and modeling various AIS message scenes; when the test, the PC end is as the host computer, and the AIS is the lower computer, and the AIS equipment is connected with the AIS transceiver plate, and the manual work controls the PC test window, and the PC end receives test instruction to send the AIS message that its was stored to the AIS transceiver plate, and the AIS transceiver plate produces corresponding baseband signal and launches to the AIS equipment, and the AIS equipment is received and is compared with the relevant data that the PC end shows behind the AIS message, in order to verify whether the receptivity OK of AIS equipment, thereby accomplish the test.
In a preferred embodiment, with reference to fig. 5, the AIS transceiver board generating a corresponding baseband signal based on the received AIS message and transmitting the baseband signal for receipt by the AIS device under test comprises:
step S31: judging whether the received message is an AIS message or not by the AIS transceiver board;
step S32: if yes, generating a corresponding baseband signal, and transmitting the baseband signal at a corresponding frequency point through a radio frequency port;
step S33: if not, no baseband signal is generated.
In this embodiment, according to steps S31 to S33, after the AIS transceiver board receives the message sent by the PC, the AIS transceiver board performs software analysis on the message, and determines whether the message is an AIS message. If the message sent by the PC terminal is an AIS message, the AIS transceiver board generates a corresponding baseband signal and transmits the baseband signal at a corresponding frequency point through a radio frequency port so as to be received by AIS equipment for testing. Correspondingly, if the message sent by the PC end is not the AIS message, the AIS transceiver board does not generate a baseband signal and waits for the receiving PC end to send the next message so as to judge again.
In a preferred embodiment, the AIS apparatus testing method further includes:
step S50: the PC end receives the customized message and sends the customized message to the AIS transceiving board;
step S60: the AIS transceiver board generates corresponding baseband signals according to the received customized messages and transmits the baseband signals at the set frequency points through the radio frequency port.
In this embodiment, according to steps S50 to S60, the AIS device testing method may further customize a message to test the transmission function and the reception performance of the AIS device, so as to make up for the defect that many messages cannot be received in the external actual environment. For example, the data link management function test of the AIS product can be realized by customizing message 4 (base station report) and message 20 (data link management message); customizing message 4 (base station report) and message 22 (channel management) to implement a regional channel management function test for testing AIS products; customizing message 4 (base station report) and message 23 (group assignment command) to implement an assignment pattern test for AIS products; the custom message 15 (inquiry) implements a consultation mode test of the AIS product. Specifically, according to the ITU-RM.1371-5 recommendation, message data are filled in windows corresponding to all messages of a PC end, the PC end transmits related message contents to an AIS transceiver board uniformly through a serial port protocol, the AIS transceiver board generates corresponding baseband signals according to the related message contents and transmits the baseband signals at set frequency points of the PC end through a radio frequency port, and after the AIS equipment receives the related messages, the AIS equipment compares the related message contents with the related test contents of IEC62287-1 to check whether the AIS equipment outputs the AIS message contents according to expected effects of corresponding items or not so as to verify whether the function items to be tested of the AIS equipment meet AIS authentication standards or not.
In a preferred embodiment, the sending, by the PC terminal, the stored AIS message to the AIS transceiver board according to the received test instruction includes:
step S21: and the PC terminal sends the AIS message according to a preset time interval.
In the test process of the AIS equipment, a plurality of AIS messages and a plurality of types of AIS messages need to be provided to test the AIS equipment so as to comprehensively judge the transmitting performance and the receiving function of the AIS equipment according to the test result. In this embodiment, the PC issues one AIS message for testing at a time, and the time interval for issuing the AIS message may be set in a test window of the PC. The time interval is shortened, the testing time can be reduced, and the testing efficiency is improved.
The invention also proposes a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements at least the following steps of the AIS device testing method:
the PC end receives and stores the AIS messages collected by the AIS transceiver board;
the PC terminal sends the stored AIS message to an AIS receiving and sending board according to the received test instruction;
the AIS transceiver board generates corresponding baseband signals according to the received AIS messages and transmits the baseband signals to be received by the AIS equipment to be tested;
and verifying the receiving performance of the AIS equipment to be tested according to the related data displayed by the PC terminal.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no acts or modules are necessarily required of the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The above is only a part or preferred embodiment of the present invention, and neither the text nor the drawings should limit the scope of the present invention, and all equivalent structural changes made by the present specification and the contents of the drawings or the related technical fields directly/indirectly using the present specification and the drawings are included in the scope of the present invention.