CN101794250A - Portable method for detecting simulation computer - Google Patents

Portable method for detecting simulation computer Download PDF

Info

Publication number
CN101794250A
CN101794250A CN201010011310A CN201010011310A CN101794250A CN 101794250 A CN101794250 A CN 101794250A CN 201010011310 A CN201010011310 A CN 201010011310A CN 201010011310 A CN201010011310 A CN 201010011310A CN 101794250 A CN101794250 A CN 101794250A
Authority
CN
China
Prior art keywords
data
simulation computer
busy
processor
storage medium
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.)
Pending
Application number
CN201010011310A
Other languages
Chinese (zh)
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.)
Shandong Chaoyue CNC Electronics Co Ltd
Shandong Chaoyue Numerical Control Electronics Co Ltd
Original Assignee
Shandong Chaoyue Numerical Control Electronics 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 Shandong Chaoyue Numerical Control Electronics Co Ltd filed Critical Shandong Chaoyue Numerical Control Electronics Co Ltd
Priority to CN201010011310A priority Critical patent/CN101794250A/en
Publication of CN101794250A publication Critical patent/CN101794250A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a portable method for detecting a simulation computer, and belongs to the technical field of simulation computer detection. The method comprises the following steps that: a computer with an RS232 serial port sends detection data, and a self serial port of one auxiliary processor of the simulation computer receives the data; after a frame of data is received, the data is packaged and stored to a storage medium shared by the auxiliary processor and a main processor, and the main processor is informed in an interrupt mode; after monitoring interrupt signals, the main processor reads the data in the storage medium, writes the data into another address of the storage medium and informs the auxiliary processor in the interrupt mode; and after monitoring the interrupt signals, the auxiliary processor reads the data and sends the data to the computer with the RS232 serial port through the serial port. Compared with the prior art, the portable method for detecting the simulation computer has the characteristics of convenience, simple operation and the like of the simulation computer detection.

Description

A kind of portable method for detecting simulation computer
Technical field
The present invention relates to a kind of simulation computer detection range technology, specifically a kind of portable method for detecting simulation computer.
Background technology
Along with development of science and technology, increasing high-tech crystallization has been applied to special industries such as public security, army, People's Armed Police.Simulation computer is one of them.At present, the simulation computer of these special industries application generally is made up of several parts such as computing module, storage mediums.The computing module of general simulation computer all is to be made of single single-chip microcomputer or uniprocessor.
Along with the data volume of computing emulation is increasing, more and more with extraneous mutual equipment, along with development of technology is developed novel simulated computing machine (hereinafter to be referred as simulation computer).This simulation computer is made of a primary processor and a plurality of single-chip microcomputer.Because the composition complexity of novel simulated computing machine exists the detection content too many when the testing staff detects novel simulated computing machine, it is slow excessively to detect each port one by one, and detection difficulty is big, and testing process is too loaded down with trivial details, detects the long problem that expends time in.
Accompanying drawing 1 is the simple principle block diagram of the novel simulated computing machine of prior art, as can be seen from Figure for each interface of detection simulation computing machine operate as normal whether, have in need detecting: 1, lamp is carried out the control of on and off, 2, detect C8051-1, C8051-2, C8051-3, C8051-4, can C8051-5 monitor the input of square wave, 3, detect the input that can PXA255 (PXA255 is the abbreviation of PXA255 processor) monitor square wave, 4, detect PXA255 to RAM (Random Access Memory, random access memory) 1, RAM2, RAM3, RAM4, whether the read-write operation of RAM5 is correct, 5, whether detect C8051-1 correct to the read-write operation of RAM1,6, whether detect C8051-2 correct to the read-write operation of RAM2,7, whether detect C8051-3 correct to the read-write operation of RAM3,8, whether detect C8051-4 correct to the read-write operation of RAM4, and 9, whether detect C8051-5 correct to the read-write operation of RAM5; Whether 10, detect the serial ports of C8051-1, C8051-2, C8051-3, C8051-4, C8051-5 normal, and 11,10 look-at-mes between PXA255 and C8051-1, C8051-2, C8051-3, C8051-4, the C8051-5.Need written program that 7 (the 5th to the 9th is adopted same program) are arranged.This has not only increased the workload of programming, has also increased testing staff's work difficulty and workload.
Summary of the invention
Technical assignment of the present invention provides a kind of detection simulation computing machine a kind of portable method for detecting simulation computer convenient, simple to operate.
Technical assignment of the present invention realizes in the following manner, detects data with the computing machine of a band RS232 serial ports and sends, and the serial ports that one of them auxiliary processor of simulation computer carries receives data; Receive after the hardwood data, packing data is stored in the shared storage medium of this auxiliary processor and primary processor, and adopt interrupt mode notice primary processor; Primary processor monitors the data that read after the look-at-me in the storage medium and data is write another address of storage medium once more, and adopts interrupt mode notice auxiliary processor; Auxiliary processor is understood reading of data after monitoring look-at-me, and utilizes serial ports data to be issued the computing machine of band RS232 serial ports.
All auxiliary processors of simulation computer send " DETECT " character string to serial ports behind the negative edge that monitors square wave; After the primary processor of simulation computer monitors the negative edge of square wave, can be once with the lamp flicker.
The auxiliary processor of simulation computer is the C8051 series monolithic; Primary processor is the PXA255 processor; Shared storage medium is a dual port RAM.
2 programs of detection software programming for simulation computer, one is concentrated break signal monitoring, storage medium read-write, square wave monitoring, the flicker control of lamp and the program of moving on primary processor of one, and another is that the program in one is handled in the concentrated break signal monitoring, square-wave signal monitoring, storage medium read-write, the serial data transmitting-receiving that move on auxiliary processor.
The partial code of the program of on the PXA255 processor, moving:
//dan?pian?ji?4
void?GP7_ISR()
{
semGive(sync4Sem);
}
void?RAM4Operation()
{
UINT32?tmp[5],i;
UINT32?addr;
FOREVER
{
/ * wait reception interruption */
semTake(sync4Sem,WAIT_FOREVER);
addr=RAM4BASE;
for(i=0;i<5;i++)
{
PXA255_REG_READ((addr+i*4),tmp[i]);
}
sysGpioOutPinSet(2);//set?to?1
addr=RAM4BASE+RAM_OFFSET;
for(i=0;i<5;i++)
{
PXA255_REG_WRITE((addr+i*4),tmp[i]);
}
sysGpioOutPinClr(2);//set?to?0
}
}。
The partial code of the program of on the C8051 series monolithic, moving:
void?RAMWrite(void)
{
unsigned?char?xdata*pchar; //memory?access?pointer
int?i=0;
while(Rx_Busy)
{
}
Rx_Busy=1;
pchar=0;
PXA255GP=0;
for(i=0;i<FRAME_LENGTH;i++)
{
CER1=0;
*pchar=RX_Buf[i];
Pchar+=4; // in order to mate with pxa255
CER1=1;
}
delay();
delay();
PXA255GP=1;
Rx_Busy=0;
}
/***********************************************************
Receive deposit data in array
************************************************************/
void?GetBytes(void)
{?unsi?gned?int?i;
while(Rx_Busy)
{
}
Rx_Busy=1;
while(serial_busy)
{
}
serial_busy=1;
for(i=0;i<FRAME_LENGTH;i++)
{
while(RIO==0)
{
}
RIO=0;
RX_Buf[i]=SBUF0;
}
Rx_Busy=0;
serial_busy=0;
}。
A kind of portable method for detecting simulation computer of the present invention is compared with prior art, the workload of programming dwindle, detect each port speed shortened detection time soon, greatly, alleviated the testing staff work difficulty and workload, improved the detection efficiency, simple to operate, easy to use of simulation computer, thereby, have good value for applications.
Description of drawings
The present invention is further described below in conjunction with accompanying drawing.
The simple principle block diagram of the simulation computer of accompanying drawing 1 prior art;
Accompanying drawing 2 is a kind of embodiment schematic block diagram of portable method for detecting simulation computer, wherein n=1,2,3,4 or 5.
Embodiment
Explain below with reference to Figure of description and specific embodiment a kind of portable method for detecting simulation computer of the present invention being done.
Embodiment:
A kind of portable method for detecting simulation computer of the present invention detects data with the computing machine of a band RS232 serial ports and sends, and the serial ports that one of them auxiliary processor of simulation computer carries receives data; Receive after the hardwood data, packing data is stored in the shared storage medium of this auxiliary processor and primary processor, and adopt interrupt mode notice primary processor; Primary processor monitors the data that read after the look-at-me in the storage medium and data is write another address of storage medium once more, and adopts interrupt mode notice auxiliary processor; Auxiliary processor is understood reading of data after monitoring look-at-me, and utilizes serial ports data to be issued the computing machine of band RS232 serial ports.
All auxiliary processors of simulation computer send " DETECT " character string to serial ports behind the negative edge that monitors square wave; After the primary processor of simulation computer monitors the negative edge of square wave, can be once with the lamp flicker.
The auxiliary processor of simulation computer is the C8051 series monolithic; Primary processor is the PXA255 processor; Shared storage medium is a dual port RAM.
2 programs of detection software programming for simulation computer, one is concentrated break signal monitoring, storage medium read-write, square wave monitoring, the flicker control of lamp and the program of moving on primary processor of one, and another is that the program in one is handled in the concentrated break signal monitoring, square-wave signal monitoring, storage medium read-write, the serial data transmitting-receiving that move on auxiliary processor.
The partial code of the program of on the PXA255 processor, moving:
//dan?pian?ji?4
void?GP7_ISR()
{
semGive(sync4Sem);
}
void?RAM4Operation()
{
UINT32?tmp[5],i;
UINT32?addr;
FOREVER
{
/ * wait reception interruption */
semTake(sync4Sem,WAIT_FOREVER);
addr=RAM4BASE;
for(i=0;i<5;i++)
{
PXA255_REG_READ((addr+i*4),tmp[i]);
}
sysGpioOutPinSet(2);//set?to?1
addr=RAM4BASE+RAM_OFFSET;
for(i=0;i<5;i++)
{
PXA255_REG_WRITE((addr+i*4),tmp[i]);
}
sysGpioOutPinClr(2);//set?to?0
}
}。
The partial code of the program of on the C8051 series monolithic, moving:
void?RAMWrite(void)
{
unsigned?char?xdata?*pchar; //memory?access?pointer
int?i=0;
while(Rx_Busy)
{
}
Rx_Busy=1;
pchar=0;
PXA255GP=0;
for(i=0;i<FRAME_LENGTH;i++)
{
CER1=0;
*pchar=RX_Buf[i];
Pchar+=4; // in order to mate with pxa255
CER1=1;
}
delay();
delay();
PXA255GP=1;
Rx_Busy=0;
}
/***********************************************************
Receive deposit data in array
************************************************************/
void?GetBytes(void)
{?unsi?gned?int?i;
while(Rx_Busy)
{
}
Rx_Busy=1;
while(serial_busy)
{
}
serial_busy=1;
for(i=0;i<FRAME_LENGTH;i++)
{
while(RIO==0)
{
}
RI0=0;
RX_Buf[i]=SBUF0;
}
Rx_Busy=0;
serial_busy=0;
}。
Find that in actual detected utilizing the present invention to carry out the detection simulation computing machine approximately need be less than 10 minute; Prior art adopts item by item detection method detection simulation computing machine approximately to need 30 minutes.
Because this easy detection software is packaged in the detection of each function together, for the testing staff, do not need too much professional technique basis, need not understand concrete principle, only the implication that needs grasp desktop computer serial ports assistant's software and desktop computer serial ports to receive various packets gets final product.So for the testing staff, utilize detection simulation computing machine of the present invention simple, easy.
Except that the described technical characterictic of instructions, be the known technology of those skilled in the art.

Claims (6)

1. a portable method for detecting simulation computer is characterized in that detecting the data transmission with the computing machine of a band RS232 serial ports, and the serial ports that one of them auxiliary processor of simulation computer carries receives data; Receive after the hardwood data, packing data is stored in the shared storage medium of this auxiliary processor and primary processor, and adopt interrupt mode notice primary processor; Primary processor monitors the data that read after the look-at-me in the storage medium and data is write another address of storage medium once more, and adopts interrupt mode notice auxiliary processor; Auxiliary processor is understood reading of data after monitoring look-at-me, and utilizes serial ports data to be issued the computing machine of band RS232 serial ports.
2. a kind of portable method for detecting simulation computer according to claim 1, all auxiliary processors that it is characterized in that simulation computer send " DETECT " character string to serial ports behind the negative edge that monitors square wave; After the primary processor of simulation computer monitors the negative edge of square wave, can be once with the lamp flicker.
3. a kind of portable method for detecting simulation computer according to claim 1, the auxiliary processor that it is characterized in that simulation computer is the C8051 series monolithic; Primary processor is the PXA255 processor; Shared storage medium is a dual port RAM.
4. a kind of portable method for detecting simulation computer according to claim 1, it is characterized in that 2 programs of detection software programming for simulation computer, one is concentrated break signal monitoring, storage medium read-write, square wave monitoring, the flicker control of lamp and the program of moving on primary processor of one, and another is that the program in one is handled in the concentrated break signal monitoring, square-wave signal monitoring, storage medium read-write, the serial data transmitting-receiving that move on auxiliary processor.
5. according to claim 1,2,3 or 4 described a kind of portable method for detecting simulation computer, it is characterized in that the partial code of the program on the PXA255 processor, moved:
//dan?pian?ji?4
void?GP7_ISR()
{
semGive(sync4Sem);
}
void?RAM4Operation()
{
UINT32?tmp[5],i;
UINT32?addr;
FOREVER
{
/ * wait reception interruption */
semTake(sync4Sem,WAIT_FOREVER);
addr=RAM4BASE;
for(i=0;i<5;i++)
{
PXA255_REG_READ((addr+i*4),tmp[i]);
}
sysGpioOutPinSet(2);//set?to?1
addr=RAM4BASE+RAM_OFFSET;
for(i=0;i<5;i++)
{
PXA255_REG_WRITE((addr+i*4),tmp[i]);
}
sysGpioOutPinClr(2);//set?to?0
}
}。
6. a kind of portable method for detecting simulation computer according to claim 1 is characterized in that the partial code of the program moved on the C8051 series monolithic:
void?RAMWrite(void)
{
Unsigned?char?xdata?*pchar;//memory?access?pointer
int?i=0;
while(Rx_Busy)
{
}
Rx_Busy=1;
pchar=0;
PXA255GP=0;
for(i=0;i<FRAME_LENGTH;i++)
{
CER1=0;
*pchar=RX_Buf[i];
Pchar+=4; // in order to mate with pxa255
CER1=1;
}
delay();
delay();
PXA255GP=1;
Rx_Busy=0;
}
/***********************************************************
Receive deposit data in array
************************************************************/
void?GetBytes(void)
{unsigned?int?i;
while(Rx_Busy)
{
}
Rx_Busy=1;
while(serial_busy)
{
}
serial_busy=1;
for(i=0;i<FRAME_LENGTH;i++)
{
while(RI0==0)
{
}
RI0=0;
RX_Buf[i]=SBUF0;
}
Rx_Busy=0;
serial_busy=0;
}。
CN201010011310A 2010-01-04 2010-01-04 Portable method for detecting simulation computer Pending CN101794250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010011310A CN101794250A (en) 2010-01-04 2010-01-04 Portable method for detecting simulation computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010011310A CN101794250A (en) 2010-01-04 2010-01-04 Portable method for detecting simulation computer

Publications (1)

Publication Number Publication Date
CN101794250A true CN101794250A (en) 2010-08-04

Family

ID=42586960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010011310A Pending CN101794250A (en) 2010-01-04 2010-01-04 Portable method for detecting simulation computer

Country Status (1)

Country Link
CN (1) CN101794250A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776402A (en) * 2016-12-19 2017-05-31 中国电子科技集团公司第二十研究所 A kind of SCM Based serial communication controlling system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5469542A (en) * 1991-07-22 1995-11-21 International Business Machines Corporation Serial diagnostic interface bus for multiprocessor systems
CN101241155A (en) * 2007-02-09 2008-08-13 扬州奥瑞科技有限公司 Electric power apparatus integrated automated detection system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5469542A (en) * 1991-07-22 1995-11-21 International Business Machines Corporation Serial diagnostic interface bus for multiprocessor systems
CN101241155A (en) * 2007-02-09 2008-08-13 扬州奥瑞科技有限公司 Electric power apparatus integrated automated detection system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776402A (en) * 2016-12-19 2017-05-31 中国电子科技集团公司第二十研究所 A kind of SCM Based serial communication controlling system and method

Similar Documents

Publication Publication Date Title
Kadav et al. Understanding modern device drivers
US9946628B2 (en) Embedding and executing trace functions in code to gather trace data
CN103218338B (en) The real-time many DSP debug system of a kind of signal processor system
US9268627B2 (en) Processor hang detection and recovery
CN101599294A (en) A kind of method of the multiple virtual queues data storage based on FPGA
US20100174946A1 (en) Method for Debugging a Hang Condition in a Process Without Affecting the Process State
US20200026519A1 (en) Processor trace extensions to facilitate real-time security monitoring
CN103514084B (en) The method of testing of reflection computer equipment hard-disk read-write energy efficiency
US20150006931A1 (en) Generic host-based controller latency method and appartus
CN201622113U (en) Intelligent vibration monitor
WO2020191549A1 (en) Soc chip, method for determination of hotspot function and terminal device
CN101482836A (en) Method and apparatus to improve the effectiveness of system logging
WO2019047395A1 (en) Oil and gas pipeline internal detector data receiving and storage apparatus
Wei et al. A hardware-software co-design experiments platform for NAND flash based on Zynq
CN108701101A (en) The serialization based on moderator of processor system management interrupt event
US9424165B2 (en) Debugging processor hang situations using an external pin
CN101794250A (en) Portable method for detecting simulation computer
Du et al. Hart: Hardware-assisted kernel module tracing on arm
CN204177575U (en) A kind of insert bearing fault detection system based on DSP and ARM
CN104423393A (en) Remote liquid level monitoring system based on Ethernet
CN202101760U (en) Thermal infrared image collector
CN110543163A (en) Aircraft avionics system VME bus airborne module test system
CN101118533A (en) Algorithm entity verification system and method
CN205691548U (en) The acoustic wave sensing system of embedded defects in timber based on ARM and FPGA
CN111783954B (en) Method, electronic device and storage medium for determining performance of neural network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100804