CN110737551A - method and device for communication between upper computer and lower computer - Google Patents

method and device for communication between upper computer and lower computer Download PDF

Info

Publication number
CN110737551A
CN110737551A CN201910228025.XA CN201910228025A CN110737551A CN 110737551 A CN110737551 A CN 110737551A CN 201910228025 A CN201910228025 A CN 201910228025A CN 110737551 A CN110737551 A CN 110737551A
Authority
CN
China
Prior art keywords
computer
lower computer
port
upper computer
usb
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
CN201910228025.XA
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.)
Beijing Ingenic Semiconductor Co Ltd
Original Assignee
Beijing Ingenic Semiconductor 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 Beijing Ingenic Semiconductor Co Ltd filed Critical Beijing Ingenic Semiconductor Co Ltd
Publication of CN110737551A publication Critical patent/CN110737551A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication

Abstract

The invention provides a method and a device for communication between upper computers and lower computers, wherein the method comprises the steps that the lower computer downloads a Linux system, runs the Linux system, and communicates with the upper computers by taking OTG ports of the lower computers as USB (Universal Serial bus) switching serial ports after running the Linux system.

Description

method and device for communication between upper computer and lower computer
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for communicating upper computers and lower computers.
Background
In order to realize the test of the upper computer on the module in the lower computer, generally has the obstacles of downloading the test program and communicating with the upper computer, in the existing mode , the test program is downloaded through a dedicated channel, and then data communication between the upper computer and the lower computer is completed through dedicated channels, which inevitably results in the complexity of the test system.
In order to simplify the test system and achieve the purpose of simple and efficient test, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides methods for communicating an upper computer and a lower computer, which are used for realizing the purpose of simple and efficient communication between the upper computer and the lower computer in the test process, and the method comprises the following steps:
downloading a Linux system by the lower computer;
the lower computer runs the Linux system;
and after the lower computer runs the Linux system, the lower computer takes the OTG port of the lower computer as a USB transfer port to communicate with the upper computer.
In embodiments, the communicating between the lower computer and the upper computer by using the OTG port of the lower computer as a USB transfer port comprises:
the upper computer runs tool software;
the upper computer automatically acquires the port number of the USB-to-serial port through the tool software;
and the upper computer triggers and opens the port corresponding to the port number to communicate with the lower computer.
In embodiments, the facility software is Printest.
In embodiments, the upper computer is a terminal device running a windows system.
In implementation modes, the lower computer takes the OTG port of the lower computer as a USB transfer port to communicate with the upper computer, and the method includes:
and the lower computer is communicated with the upper computer through a built-in microprocessor based on mips architecture.
The embodiment of the invention also provides a device for communicating types of upper computers and lower computers, which is used for realizing the purpose of simple and efficient communication between the upper computers and the lower computers in the test process, and comprises the upper computers and the lower computers, wherein the lower computers comprise:
the downloading module is used for downloading the Linux system;
, an operation module for operating the Linux system;
and the communication module is used for enabling the lower computer to communicate with the upper computer by taking the OTG port of the lower computer as a USB (Universal Serial bus) switching port after the Linux system is operated.
In embodiments, the upper computer comprises:
the second running module is used for running the tool software;
the acquisition module is used for automatically acquiring the port number of the USB-to-serial port through the tool software;
and the triggering module is used for triggering the opening of the port corresponding to the port number and communicating with the lower computer.
In embodiments, the facility software is Printest.
In embodiments, the upper computer is a terminal device running a windows system.
In embodiments, the communication module is specifically configured to communicate with the upper computer through a built-in mips architecture-based microprocessor.
In the embodiment of the invention, the lower computer downloads and runs the Linux system, and after running the Linux system, the lower computer takes the OTG port of the lower computer as the USB to-serial port to communicate with the upper computer, namely, the OTG port in the lower computer is taken as the USB to-serial port to realize the communication with the upper computer, so that the testing and communication functions can be realized through OTGs, and the aim of simple and efficient communication between the upper computer and the lower computer in the testing process is fulfilled.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and constitute a part of this application and not limiting of the invention, are illustrated in the accompanying drawings, in which:
FIG. 1 is a schematic diagram of an embedded test system according to an embodiment of the present invention;
FIG. 2 is a method flow diagram of a testing method according to an embodiment of the invention;
FIG. 3 is a method flow diagram of a method of a host computer communicating with a lower computer in accordance with an embodiment of the present invention;
fig. 4 is a block diagram of an apparatus for communicating between an upper computer and a lower computer according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further with reference to the following embodiments and accompanying drawings.
In view of the existing problem that has a test program downloaded and a communication barrier with the upper computer in order to test the modules in the lower computer by the upper computer, the existing method has a problem that the test program is downloaded through a -dedicated channel and data communication between the upper computer and the lower computer is completed through -dedicated channels , which inevitably causes the test system to be over-responsible.
Based on this, kinds of embedded test systems are provided in this example, as shown in fig. 1, the embedded test systems include an upper computer and a lower computer, wherein:
an OTG port and a memory are arranged on the lower computer;
the upper computer is computer equipment for operating a windows system;
and the lower computer downloads a file system carrying test codes to the memory through the OTG port, and the lower computer communicates the OTG port serving as a USB transfer serial port with the upper computer.
The lower computer can comprise at least of an audio module, a wifi module, a Bluetooth module and a key module, namely, the embedded test system can complete the test of the modules in the lower computer.
A burning tool can be operated in the upper computer. Specifically, the lower computer is provided with a CPU, and the CPU can be an X1000 chip.
In the above example, types of test codes can be downloaded and the communication between the upper computer and the lower computer can be completed only by using OTG ports, the interfaces are simple, the upper computer and the lower computer can automatically communicate without human intervention, the test codes can be automatically lost after power failure, and the original environment of equipment can not be polluted.
Based on the embedded test system, embedded device test solutions are also provided in this example, as shown in fig. 2, including the following steps:
and S1, the upper computer runs tool software, and the lower computer downloads the linux needs trace file system containing the test codes from the OTG port of the lower computer to the specified position of the memory of the lower computer through the tool software.
And S2, the lower computer runs the downloaded Linux system, the lower computer starts the Linux system, then the OTG port of the lower computer is used as a USB (universal serial bus) to be communicated with the upper computer, and after the Linux system runs, the test script is automatically executed to complete each function test of the lower computer and send the test result to the upper computer.
And S3, the upper computer runs another tool software, receives the test result sent by the lower computer through the USB-to-serial port of the lower computer and displays the test result, and the tool software can automatically acquire the port number of the USB-to-serial port and automatically open the communication function of the port.
For example, a Linux initramfs test program can be downloaded to a designated position of a memory of a lower computer through a cloner burning tool, a CPU of the lower computer can be an X1000 chip, after a test code is downloaded, the cloner burning tool of an upper computer sends a command through an OTG port of the lower computer, the lower computer starts to operate the downloaded Linux initramfs, after a Linux system is started, detection of each module (such as audio, wifi Bluetooth and keys) of the lower computer is automatically completed, a detection result is sent to the upper computer, and the upper computer automatically opens a USB transfer serial port through another tool Printest and receives and displays the test result.
In other words, in the above example, the lower computer downloads the test program to the memory through the OTG port, and then automatically downloads the test program, and the lower computer communicates with the upper computer through the USB to serial port, and the upper computer software can automatically communicate with the lower computer.
The upper computer can run a PC of a windows system, the lower computer can be an embedded device, a cloner burning tool is software for burning firmware, a USB-to-serial port is a virtual serial port of a USB port, a user sees a serial device but actually communicates with a USB, OTG is USB interfaces, Printest is tool software running in windows, Linux is open source operating systems and runs on the embedded device, Initramfs is Linux file systems based on a memory, and X1000 is microprocessors based on mips architecture.
Although the process described below includes a number of operations that occur in a particular order, it should be appreciated that the processes may include more or fewer operations, which may be performed sequentially or in parallel (e.g., using parallel processors or a multi-threaded environment). As shown in FIG. 3, the method includes:
step 301: downloading a Linux system by the lower computer;
step 302: the lower computer runs the Linux system;
step 303: and after the lower computer runs the Linux system, the lower computer takes the OTG port of the lower computer as a USB transfer port to communicate with the upper computer.
In the above example, the lower computer downloads and runs the Linux system, and after running the Linux system, the lower computer uses the OTG port of the lower computer as the USB serial port to communicate with the upper computer, that is, the OTG port in the lower computer is used as the USB serial port to communicate with the upper computer, so that the testing and communicating functions can be realized through OTGs, and the purpose of simple and efficient communication between the upper computer and the lower computer in the testing process is achieved.
The step 303 can be implemented for the upper computer side to communicate with the lower computer according to the following steps:
s1: the upper computer runs tool software;
s2: the upper computer automatically acquires the port number of the USB-to-serial port through the tool software;
s3: and the upper computer triggers and opens the port corresponding to the port number to communicate with the lower computer.
The tool software may be Printest.
Specifically, the upper computer may be a terminal device operating a windows system.
In above-mentioned step 303, the lower computer regard the OTG mouth of lower computer as the USB to transfer the serial port with the host computer communication can include: the lower computer is communicated with the upper computer through a built-in mips architecture-based microprocessor (such as X1000).
Based on the same inventive concept, apparatuses for communicating an upper computer and a lower computer are further provided in the embodiments of the present invention, as described in the following embodiments, since the principle of the apparatuses for communicating an upper computer and a lower computer to solve the problem is similar to the method of communicating an upper computer and a lower computer, the implementation of the apparatuses for communicating an upper computer and a lower computer may refer to the implementation of the method of communicating an upper computer and a lower computer, and the repetition is not repeated.
A downloading module 401, configured to download the Linux system;
, an operation module 402 for operating the Linux system;
and the communication module 403 is configured to, after the Linux system is operated, enable the lower computer to communicate with the upper computer by using the OTG port of the lower computer as a USB serial port.
In embodiments, the upper computer may include a second running module configured to run tool software, an obtaining module configured to automatically obtain a port number of the USB to serial port through the tool software, and a triggering module configured to trigger opening of a port corresponding to the port number to communicate with the lower computer.
In embodiments, the tool software may be Printest.
In embodiments, the host computer may be a terminal device running a windows system.
In embodiments, the communication module 403 may be specifically configured to communicate with the upper computer through a built-in mips architecture-based microprocessor.
In another embodiments, software is provided, which is used to implement the technical solutions described in the above embodiments and preferred embodiments.
In another embodiments, storage media are provided, which store the above software, including but not limited to optical disks, floppy disks, hard disks, removable memory, and the like.
From the above description, it can be seen that the embodiment of the present invention achieves the following technical effects that the lower computer downloads and runs the Linux system, and after the lower computer runs the Linux system, the OTG port of the lower computer is used as the USB serial port to communicate with the upper computer, that is, the OTG port of the lower computer is used as the USB serial port to communicate with the upper computer, so that the testing and communication functions can be realized through OTGs, and the purpose of simple and efficient communication between the upper computer and the lower computer in the testing process is achieved.
Where the context permits, reference to element or component or step(s), etc. should not be construed as limited to only of the elements, components, or steps, but may be or more of the elements, components, or steps, etc.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes may be made to the embodiment of the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1, A method for communication between upper computer and lower computer, comprising:
downloading a Linux system by the lower computer;
the lower computer runs the Linux system;
and after the lower computer runs the Linux system, the lower computer takes the OTG port of the lower computer as a USB transfer port to communicate with the upper computer.
2. The method according to claim 1, wherein the lower computer communicating the OTG port of the lower computer with the upper computer as a USB-to-serial port comprises:
the upper computer runs tool software;
the upper computer automatically acquires the port number of the USB-to-serial port through the tool software;
and the upper computer triggers and opens the port corresponding to the port number to communicate with the lower computer.
3. The method of claim 2, wherein the tool software is Printest.
4. The method of claim 1, wherein the host computer is a terminal device running a windows system.
5. The method according to claim 1, wherein the lower computer communicates with the upper computer by using the OTG port of the lower computer as a USB interface, and the method comprises the following steps:
and the lower computer is communicated with the upper computer through a built-in microprocessor based on mips architecture.
6, devices for communicating the upper computer and the lower computer, which is characterized by comprising the upper computer and the lower computer, wherein the lower computer comprises:
the downloading module is used for downloading the Linux system;
, an operation module for operating the Linux system;
and the communication module is used for enabling the lower computer to communicate with the upper computer by taking the OTG port of the lower computer as a USB (Universal Serial bus) switching port after the Linux system is operated.
7. The apparatus of claim 6, wherein the upper computer comprises:
the second running module is used for running the tool software;
the acquisition module is used for automatically acquiring the port number of the USB-to-serial port through the tool software;
and the triggering module is used for triggering the opening of the port corresponding to the port number and communicating with the lower computer.
8. The apparatus of claim 7, wherein the tool software is Printest.
9. The apparatus of claim 6, wherein the host computer is a terminal device running a windows system.
10. The apparatus of claim 6, wherein the communication module is specifically configured to communicate with the upper computer via a built-in mips architecture-based microprocessor.
CN201910228025.XA 2018-07-20 2019-03-25 method and device for communication between upper computer and lower computer Pending CN110737551A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810802660 2018-07-20
CN201810802660X 2018-07-20

Publications (1)

Publication Number Publication Date
CN110737551A true CN110737551A (en) 2020-01-31

Family

ID=69236646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910228025.XA Pending CN110737551A (en) 2018-07-20 2019-03-25 method and device for communication between upper computer and lower computer

Country Status (1)

Country Link
CN (1) CN110737551A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112220399A (en) * 2020-09-04 2021-01-15 南京蹑波物联网科技有限公司 Global positioning system, intelligent sweeping robot with global positioning system and working method of intelligent sweeping robot

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159957A (en) * 2007-10-25 2008-04-09 中兴通讯股份有限公司 Data terminal equipment updating, renovating method and device
CN102143266A (en) * 2011-02-18 2011-08-03 深圳桑菲消费通信有限公司 Method for extending universal serial bus (USB) interface of mobile terminal into serial communication interface
US20140211021A1 (en) * 2013-01-25 2014-07-31 Samsung Electronics Co., Ltd. Test system for evaluating mobile device and driving method thereof
CN104836877A (en) * 2015-02-10 2015-08-12 数据通信科学技术研究所 Method for debugging and detecting mobile phone
CN204948361U (en) * 2015-09-01 2016-01-06 深圳市创维电器科技有限公司 A kind of information safety protection terminal
JP2017224105A (en) * 2016-06-14 2017-12-21 株式会社リコー Information processing device, information processing method and program
CN207571202U (en) * 2017-08-28 2018-07-03 三诺生物传感股份有限公司 A kind of device for being applied to detection USB and turning serial port module

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159957A (en) * 2007-10-25 2008-04-09 中兴通讯股份有限公司 Data terminal equipment updating, renovating method and device
CN102143266A (en) * 2011-02-18 2011-08-03 深圳桑菲消费通信有限公司 Method for extending universal serial bus (USB) interface of mobile terminal into serial communication interface
US20140211021A1 (en) * 2013-01-25 2014-07-31 Samsung Electronics Co., Ltd. Test system for evaluating mobile device and driving method thereof
CN104836877A (en) * 2015-02-10 2015-08-12 数据通信科学技术研究所 Method for debugging and detecting mobile phone
CN204948361U (en) * 2015-09-01 2016-01-06 深圳市创维电器科技有限公司 A kind of information safety protection terminal
JP2017224105A (en) * 2016-06-14 2017-12-21 株式会社リコー Information processing device, information processing method and program
CN207571202U (en) * 2017-08-28 2018-07-03 三诺生物传感股份有限公司 A kind of device for being applied to detection USB and turning serial port module

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112220399A (en) * 2020-09-04 2021-01-15 南京蹑波物联网科技有限公司 Global positioning system, intelligent sweeping robot with global positioning system and working method of intelligent sweeping robot

Similar Documents

Publication Publication Date Title
US7840728B1 (en) Redirecting input and output for multiple computers
CN108845930B (en) Interface operation test method and device, storage medium and electronic device
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
CN104426945B (en) A kind of method, apparatus and system obtaining application performance data
CN103778381A (en) Application screen locking method and device based on Android
CN109857434A (en) Method for upgrading software based on USB
CN114153782B (en) Data processing system, method and storage medium
CN110737551A (en) method and device for communication between upper computer and lower computer
CN102413247A (en) Method and device for recovering crash site of terminal
CN107656739A (en) code compiling method and device based on windows systems
CN108768785B (en) Method and device for building intelligent network card test environment
CN110737619A (en) data transmission method and device based on OTG port
CN107659621B (en) RAID control card configuration method and device
CN110737561A (en) embedded test systems
CN110737583A (en) method and device for testing test code
CN110737581A (en) testing methods and devices
US10445282B2 (en) Techniques of providing serial port in non-legacy system via embedded-system device
CN104424198A (en) Method and device for acquiring page display speed
CN110737582A (en) OTG port-based detection method and device
CN115687223A (en) Method and device for serial port communication of embedded equipment, embedded equipment and storage medium
CN112527650A (en) Test case multiplexing method and multiplexing device
US20180329843A1 (en) Techniques of providing serial port in non-legacy system via embedded-system device
CN113904945B (en) Internet of things equipment simulation debugging method and device, electronic device and storage medium
CN117376229B (en) FTP file system software cross debugging method and system based on embedded equipment
CN104102573A (en) Automated testing method for computer software

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200131

RJ01 Rejection of invention patent application after publication