CN102244880B - Mobile terminal and veneer regulate and control method - Google Patents
Mobile terminal and veneer regulate and control method Download PDFInfo
- Publication number
- CN102244880B CN102244880B CN201010180349.XA CN201010180349A CN102244880B CN 102244880 B CN102244880 B CN 102244880B CN 201010180349 A CN201010180349 A CN 201010180349A CN 102244880 B CN102244880 B CN 102244880B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- single board
- board
- control command
- veneer
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of mobile terminal and veneer regulate and control method, wherein, mobile terminal comprises: interactive module, for generating control command according to the operational order from user; Data processing module, for being converted to the form meeting veneer communication need by control command according to parameters; Serial ports, for sending to veneer by the control command of the form meeting veneer communication need.Present invention achieves and carry out to carry out with veneer communication to realize the regulation and control to veneer by mobile terminals such as mobile phones, convenient, quick to the regulation and control of veneer, save manpower and operating time, thus improve operating efficiency, be specially adapted to mainly make veneer and mobile phone carry out communication by serial ports, thus complete the direct control to veneer.
Description
Technical Field
The invention relates to the field of communication, in particular to a mobile terminal and a single board regulation and control method.
Background
Debugging and monitoring of a single board is a very important requirement in development, production and after-sales service of the single board. The operation state of the single board can be detected and the fault detection can be carried out on the single board by debugging and monitoring the single board.
In the related art, a single board is mainly debugged and monitored (collectively referred to as regulation and control) by adopting a desktop PC, but the desktop PC is large in size and not easy to move, so that the use of the desktop PC for building a computer environment to regulate and control the single board is inconvenient, and the cost is high. In addition, at present, a variety of single boards are more and more complex, and if the single boards are to be simply debugged in research, development, production and after sale, a computer environment needs to be built on the equipment side, and particularly, building the computer environment in a complete machine high-low temperature experimental environment or an off-site is time-consuming and labor-consuming and low in efficiency.
Disclosure of Invention
The main objective of the present invention is to provide a mobile terminal and a method for controlling a board, so as to solve at least the problems of inconvenience, high cost, time and labor consumption, and low efficiency in controlling a board.
According to an aspect of the present invention, there is provided a mobile terminal including: the interaction module is used for generating a control command according to an operation instruction from a user; the data processing module is used for converting the control command into a format meeting the single-board communication requirement according to the set parameters; and the serial port is used for sending the control command with the format meeting the single board communication requirement to the single board.
According to another aspect of the present invention, there is provided a veneer controlling method, including: the mobile terminal generates a control command according to an operation instruction from a user; the mobile terminal converts the control command into a format meeting the single-board communication requirement according to the set parameters; the mobile terminal sends a control command with a format meeting the single board communication requirement to the single board; the single board performs corresponding operation according to the received control command.
The invention adopts the mobile terminal with small volume, mobility and portability to regulate and control the single board, thereby solving the problems of inconvenient regulation and control of the single board, time and labor consumption and lower efficiency in the related technology, realizing the communication with the single board through the mobile terminal such as a mobile phone and the like to realize the regulation and control of the single board, leading the regulation and control of the single board to be more convenient and faster, saving the manpower and the working time, further improving the working efficiency, being particularly suitable for leading the single board to communicate with the mobile phone mainly through a serial port, and further finishing the direct operation of the single board.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a system block diagram of a mobile terminal and a single board according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a mobile terminal according to a preferred embodiment of the present invention;
fig. 3 is a schematic diagram of a plurality of serial ports on a mobile terminal communicating with a plurality of boards according to a preferred embodiment of the present invention;
fig. 4 is a system block diagram of a handset and a single board according to the preferred embodiment of the present invention;
FIG. 5 is a flow chart of a veneer regulation method according to an embodiment of the present invention;
fig. 6 is a flowchart of downloading a version file from a handset to a board according to a preferred embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In development, production, and after-sales service of a board, the board needs to be debugged and monitored to detect an operating state of the board, detect a fault of the board, and the like.
Fig. 1 is a system block diagram of a mobile terminal and a single board according to an embodiment of the present invention, and fig. 2 is a schematic diagram of a mobile terminal according to a preferred embodiment of the present invention.
As shown in fig. 1, the mobile terminal 10 includes: an interaction module 102, a data processing module 104, and a serial port 106, wherein: an interaction module 102, configured to generate a control command according to an operation instruction from a user (i.e., respond to a user key input); the data processing module 104 is used for converting the control command into a format meeting the single board communication requirement according to the setting parameters; the serial port 106 is configured to send a control command in a format meeting the requirement of the board communication to the board 20, so as to implement monitoring of the board on the device. The interaction module supports a user to generate a control command through key input and send the control command to the single board by providing a command line so that the single board performs corresponding operation according to the control command, and the human-computer interaction process is well completed.
The mobile terminal 10 described above may be a mobile phone or the like.
In the related art, the single board is regulated and controlled by adopting the desktop PC, and the desktop PC is large in size and not easy to move, so that the single board is inconvenient to regulate and control, and the method is high in cost, time-consuming, labor-consuming and low in efficiency. This embodiment adopts small, the mobile terminal that has mobility and portability to regulate and control the veneer, thereby the veneer that exists among the correlation technique is regulated and control inconveniently, consuming time and power, and the lower problem of efficiency has been solved, thereby realized coming with the veneer through mobile terminals such as cell-phone and communicate in order to realize the regulation and control to the veneer, it is more convenient, swift to the regulation and control of veneer, manpower and operating time have been saved, thereby work efficiency has been improved, especially adapted makes veneer and cell-phone communicate through the serial ports, thereby accomplish the direct operation to the veneer.
As shown in fig. 1, the interaction module 102 is further configured to receive a setting parameter input by a user through operating a key, where the setting parameter includes a serial port for communicating with the board 20 (as shown in fig. 3, when the mobile terminal includes a plurality of serial ports, a serial port for communicating with the board, such as a serial number), and a communication parameter used for communicating with the board 20, such as a baud rate (i.e., a communication rate), a data bit number, a stop bit number, and the like. For the mobile terminal provided with a plurality of serial ports, a user can select to set the serial port communicated with the single board, and the setting of other setting parameters can also provide a plurality of choices, so that the setting of the communication between the mobile terminal and the single board is kept consistent, and the normal communication between the mobile terminal and the single board is ensured.
Preferably, the serial port 106 is further configured to receive operation information from the board 20; the data processing module 104 is further configured to analyze and process the operation information; the interaction module 102 is further configured to display the operation information after the analysis processing for the user to view. The interaction module 102 can display the information sent by the single board, the display is a real-time direct display, and can display the current operation information of the single board in real time, so that the monitoring of the single board by an operator is realized, and a better human-computer interaction process is realized.
Preferably, the serial port 106 is further configured to receive a data file from the board 20; the interactive module 102 is also configured to display the data file. As shown in fig. 2, preferably, the mobile terminal 10 further includes: the memory 108 is further configured to store the data file from the board received by the serial port 106. The memory is a nonvolatile memory and is used for storing the version file of the single board and also storing the data file received by the data processing module. Specifically, the processor on the board may send the file to be sent to the corresponding serial port of the mobile terminal, and this part may be flexibly designed according to the function of each board. After receiving the data file from the board, the mobile terminal may select to directly send the data file to the interaction module 102 for display or store the data file in the memory 108 of the mobile terminal in a file form. The process of the above-mentioned board sending the data file to the mobile terminal may be referred to as an upload or backup process of the file.
Preferably, as shown in fig. 3, the mobile terminal 10 may include a plurality of serial ports 106, where each serial port 106 is configured to be connected to one board 20, and after each serial port 106 receives the operation information and the data file from the corresponding board, the interaction module 102 is further configured to display the operation information and the data file from the plurality of boards 20 in parallel. Therefore, the mobile terminal can support the receiving, parallel processing and displaying of the multi-serial port data, so that the information of the plurality of single boards can be monitored simultaneously, and the data of the plurality of single boards can be received, stored or displayed simultaneously.
Preferably, as shown in fig. 1 and fig. 2, the interaction module 102 is further configured to accept data that needs to be sent by a user through operating a key; the data processing module 104 is further configured to convert the data into a format meeting the requirement of single board communication according to preset setting parameters; the serial port 106 is further configured to send data in a format meeting the single board communication requirement to the single board according to an operation instruction of the user. The process of sending the data file to the board by the mobile terminal may be referred to as a downloading process of the file.
Preferably, as shown in fig. 2, serial port 106 includes RS232 transceiver 1062, and serial port 106 transmits and receives through RS232 transceiver 1062. That is, the mobile terminal sends data and control commands through the RS232 transceiver in the serial port, and receives operation information and data files from the board. Easy to implement using an RS232 transceiver.
In a specific implementation process, the interaction module 102 may be implemented by server software, a button and a display module. The server software is an interactive software running on the mobile terminal to complete interaction between the operator and the mobile phone, and the functions of the server software may include: (1) displaying information from the single board; (2) providing a command line to support a user to press keys to input control commands; (3) parameter settings (i.e., settings of the set parameters described above) are provided.
The mobile terminal is taken as a mobile phone for explanation. As shown in fig. 4, the handset includes two parts, namely server software and hardware. The hardware system is composed as shown in fig. 4, data output by the single board is processed by the RS232 transceiver, converted into signals which can be transmitted through a cable, transmitted to the RS232 transceiver on the mobile phone, and then transmitted to the data processing module after being converted, and the data is directly displayed on the server software after being processed by the data processing module. When the user inputs a control command on the server software through the keys, the control command is sent to the RS232 transceiver through the data processing module, and is transmitted to the single board after being converted. The mobile phone and the single board are respectively a server and a terminal, the communication standard between the mobile phone and the single board is RS232, and a transmission line between the mobile phone and the single board can comprise three signal lines in total, wherein one signal line receives and transmits one signal line and one ground line. As shown in fig. 3, the mobile phone may include a plurality of serial ports, and may be connected to a plurality of boards at the same time, and the server software supports the multiple serial ports to receive the operation information of each board at the same time, without interfering with each other.
As shown in fig. 4, the serial port on the mobile phone and the serial port on the single board are connected through an RS232 transmission line. The signal sent by the single board is processed by an RS232 transceiver in the serial port and then transmitted to the mobile phone; the output signal (including communication data and command) of the mobile phone is sent to the single board through the RS232 transceiver. A server software is built in the mobile phone to realize man-machine interaction, the single board sends data to a serial port of the mobile phone, the data is sent to the data processing module 104 after being converted by an RS232 transceiver in the mobile phone, and the data is directly sent to the server software and displayed through the display module after being correspondingly analyzed and processed by the data processing module 104; the user inputs the data to be sent on the server software through the keys, the server software transmits the data to the data processing module 104 after determining the data is sent, and the data is sent to the serial port of the single board through the RS232 transceiver after corresponding processing.
Specifically, with reference to fig. 4, a workflow of sending a running version (or a test program) to a board by a mobile phone is shown in fig. 6, and includes the following steps:
step S602, after connecting the mobile phone and the single board through three serial ports (RS232 transmission lines), firstly, starting server software on the mobile phone;
step S604, receiving the setting of the setting parameters (including communication parameters) by the user, selecting the serial port number communicated with the single board, and setting the baud rate, the data bit and the stop bit;
step S606, after the server software is set, the single board is powered on, the single board starts to operate and sends operation information to the mobile phone, and the server software displays the operation information in real time;
step S608, after the operation of the BOOT of the single board is finished, a command for applying for the serial port manual control is sent to the mobile phone;
step S610, after observing the application information through the mobile phone, the user inputs a manual control response command to the single board through the key;
step S612, after receiving the response command of the mobile phone, the board enters a manual mode and provides a manual control function item. Receiving a function item downloaded by a user through selecting a version by a key;
step S614, after setting the path of the downloaded file and sending the confirmation command, the data processing module reads the version file from the memory according to the set path and sends the version file to the single board through the RS232 transceiver. And sending the file to be downloaded to the single board through the mobile phone and reading back to check whether the sent file is correct or not.
Compared with the prior art, the mobile terminal according to the preferred embodiment of the invention has simple processes of regulating and controlling the single board, and the mobile terminal and the single board are communicated through the serial port, thereby simply, conveniently and reliably completing the direct monitoring of the mobile terminal on the single board, supporting the key to input the control command and well completing the interaction of people and the single board. In addition, it can also complete the downloading and backup of the necessary data of the single board and the monitoring function of the single board by sending data and control command to the single board and receiving the operation information and data sent by the single board.
Fig. 5 is a flowchart of a veneer regulation method according to an embodiment of the present invention, including:
step S502, the mobile terminal generates a control command according to an operation instruction from a user;
step S504, the mobile terminal converts the control command into a format meeting the single board communication requirement according to the set parameters;
step S506, the mobile terminal sends the control command with the format meeting the single board communication requirement to the single board;
step S508, the board performs corresponding operations according to the received control command.
The above embodiment provides a specific implementation scheme for implementing the regulation and control of the board by sending a control command to the board by the mobile terminal.
Preferably, in the above method, the method further comprises: the mobile terminal receives operation information from the single board; the mobile terminal analyzes and processes the operation information; and the mobile terminal displays the operation information after the analysis processing.
Further, in the above method, the method further includes: the mobile terminal receives data needing to be sent, which is input by a user through an operation key; the mobile terminal converts the data into a format meeting the single-board communication requirement according to preset setting parameters; the mobile terminal sends the data in the format meeting the single board communication requirement to the single board according to the operation instruction of the user.
From the above description, it can be seen that the present invention achieves the following technical effects: the mobile terminal is used as an auxiliary tool for testing and upgrading the single board, and the serial port communication of the mobile terminal is adopted to complete information transmission between the mobile terminal and the single board, so that the aim of testing and monitoring the single board can be achieved simply and conveniently.
It will be apparent to those skilled in the art that the modules or steps of the present 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, the present invention is not limited to any specific combination of hardware and software.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to 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 (7)
1. A mobile terminal, comprising:
the interaction module is used for generating a control command according to an operation instruction from a user;
the data processing module is used for converting the control command into a format meeting the single-board communication requirement according to the set parameters;
the serial port is used for sending the control command with the format meeting the single board communication requirement to the single board;
wherein,
the serial port is also used for receiving the operation information from the single board;
the data processing module is also used for analyzing and processing the operation information;
the interaction module is also used for displaying the operation information after the analysis processing;
the serial port comprises an RS232 transceiver, and the serial port transmits and receives through the RS232 transceiver.
2. The mobile terminal of claim 1, wherein the interaction module is further configured to accept a user input the setting parameter through an operation key, and the setting parameter includes a serial port for communicating with the board and a communication parameter for communicating with the board.
3. The mobile terminal of claim 1,
the serial port is also used for receiving a data file from the single board;
the interaction module is further configured to display the data file.
4. The mobile terminal of claim 3, further comprising: and the memory is also used for storing the data file from the single board received by the serial port.
5. The mobile terminal according to claim 3, wherein the mobile terminal includes a plurality of serial ports, each of the serial ports is configured to be connected to a single board, and the interaction module is further configured to concurrently display the operation information and the data files from the plurality of single boards.
6. The mobile terminal of claim 1,
the interactive module is also used for receiving data to be sent input by a user through operating keys;
the data processing module is also used for converting the data into a format meeting the single-board communication requirement according to the setting parameters;
and the serial port is also used for sending the data in the format meeting the single board communication requirement to the single board according to the operation instruction of the user.
7. A veneer regulation and control method is characterized by comprising the following steps:
the mobile terminal generates a control command according to an operation instruction from a user;
the mobile terminal converts the control command into a format meeting the single-board communication requirement according to the set parameters;
the mobile terminal sends the control command with the format meeting the single board communication requirement to the single board;
the single board performs corresponding operation according to the received control command;
the mobile terminal receives the operation information from the single board; the mobile terminal analyzes and processes the operation information; and the mobile terminal displays the operation information after the analysis processing.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010180349.XA CN102244880B (en) | 2010-05-13 | 2010-05-13 | Mobile terminal and veneer regulate and control method |
PCT/CN2010/078375 WO2011140790A1 (en) | 2010-05-13 | 2010-11-03 | Mobile terminal and method for single plate regulation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010180349.XA CN102244880B (en) | 2010-05-13 | 2010-05-13 | Mobile terminal and veneer regulate and control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102244880A CN102244880A (en) | 2011-11-16 |
CN102244880B true CN102244880B (en) | 2015-08-12 |
Family
ID=44913871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010180349.XA Active CN102244880B (en) | 2010-05-13 | 2010-05-13 | Mobile terminal and veneer regulate and control method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102244880B (en) |
WO (1) | WO2011140790A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103955512A (en) * | 2014-04-30 | 2014-07-30 | 航天科技控股集团股份有限公司 | Handheld device for data query configuration of intelligent vehicle-mounted terminal and data query configuration method realized by adopting handheld device |
CN104486117B (en) * | 2014-12-12 | 2018-04-06 | 上海斐讯数据通信技术有限公司 | A kind of the configuration order exchange method and system of more board core switch |
CN113515266A (en) * | 2021-05-21 | 2021-10-19 | 北京工业大学 | A friction coefficient control system and method based on C language and serial communication |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1474272A (en) * | 2003-06-19 | 2004-02-11 | Ut斯达康(中国)有限公司 | Method and equipment for detecting single plate by JTAG |
CN101581759A (en) * | 2009-06-16 | 2009-11-18 | 华为技术有限公司 | JTAG switching interface, single board, JTAG interface conversion board and single board testing system |
-
2010
- 2010-05-13 CN CN201010180349.XA patent/CN102244880B/en active Active
- 2010-11-03 WO PCT/CN2010/078375 patent/WO2011140790A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1474272A (en) * | 2003-06-19 | 2004-02-11 | Ut斯达康(中国)有限公司 | Method and equipment for detecting single plate by JTAG |
CN101581759A (en) * | 2009-06-16 | 2009-11-18 | 华为技术有限公司 | JTAG switching interface, single board, JTAG interface conversion board and single board testing system |
Also Published As
Publication number | Publication date |
---|---|
WO2011140790A1 (en) | 2011-11-17 |
CN102244880A (en) | 2011-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108259512B (en) | Communication protocol identification method, electronic device and computer storage medium | |
CN103905984B (en) | Remote monitoring method for agricultural machinery | |
CN111078532A (en) | Terminal equipment testing method, device and system | |
CN104037885A (en) | Portable power source, working condition monitoring system of portable power source and monitoring management method of portable power source | |
US20130023231A1 (en) | Sim card expander, communication system, and method for using sim cards | |
CN102033838A (en) | Terminal control method, terminal and computer | |
CN108303969A (en) | The automatic test device of vehicle-mounted ECU | |
CN102244880B (en) | Mobile terminal and veneer regulate and control method | |
CN110888042A (en) | Method and equipment for testing ASIC chip wafer and computer storage medium | |
KR101718138B1 (en) | A portable optical measurement device | |
CN110990222B (en) | Cross-platform graphical operation monitoring method and device based on mainframe | |
CN105529025A (en) | Voice operation input method and electronic device | |
EP1895794A2 (en) | Remote management system and method for portable electronic devices | |
CN104851273A (en) | Intelligent measuring system based on network | |
CN105094633A (en) | Method and device for transmitting control instruction | |
CN103716099A (en) | Bluetooth intercommunity standard automatic test system | |
CN111382004B (en) | Parameter backup method and device, parameter restoration method and device and backup restoration system | |
CN103795857B (en) | Information processing method and electronic equipment | |
CN107834639B (en) | Power supply method, power supply device, electronic cigarette and intelligent power supply | |
CN216673018U (en) | General type transmitter testing arrangement | |
CN212513656U (en) | Intelligent lock test system | |
CN107273398B (en) | Human interface system and method for operating the same | |
CN104065779A (en) | Method and system for testing module power consumption | |
CN203967792U (en) | Portable power source and working state monitoring system thereof | |
CN203298973U (en) | Novel laser tester |
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 |