CN106843035B - A kind of smart machine develops the method and system of control smart machine in debugging process - Google Patents
A kind of smart machine develops the method and system of control smart machine in debugging process Download PDFInfo
- Publication number
- CN106843035B CN106843035B CN201611239491.0A CN201611239491A CN106843035B CN 106843035 B CN106843035 B CN 106843035B CN 201611239491 A CN201611239491 A CN 201611239491A CN 106843035 B CN106843035 B CN 106843035B
- Authority
- CN
- China
- Prior art keywords
- intelligent terminal
- chip microcontroller
- control
- smart machine
- control equipment
- 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
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24215—Scada supervisory control and data acquisition
Abstract
The invention discloses a kind of method and systems for controlling smart machine to establish USB this method comprises: the intelligent terminal of built-in android system is replaced android system development board with the single-chip microcontroller inside smart machine and connect;Control equipment is connected to intelligent terminal;Control instruction is sent to intelligent terminal using control equipment, control instruction is transmitted to single-chip microcontroller by intelligent terminal, to realize the control to smart machine.Replace android system development board by using intelligent terminal, USB is established with the single-chip microcontroller inside smart machine to connect, control equipment is connected to intelligent terminal again, it is transmitted to single-chip microcontroller after the control instruction that intelligent terminal receiving control apparatus is sent, to realize the control to smart machine, needs not rely on android system development board, also APP is needed not rely on, it is at low cost, the period of functional verification and exploitation is shortened, the difficulty of exploitation and debugging is reduced.
Description
Technical field
The present invention relates to technical field of intelligent equipment, and in particular to a kind of method and system for controlling smart machine.
Background technique
Currently, many smart machines are realized by carrying android system while external single-chip microcontroller, In
The corresponding APP of exploitation can realize the control to single-chip microcontroller in android system, to control smart machine.
During smart machine is developed and debugged, needs matched android system development board and is connected to single-chip microcontroller,
It carries out debugging and functional verification requires elder generation in the APP of the corresponding current android system version of the end PC exploitation, then pacify APP
Be attached in android system carry out debugging and functional verification, when need in the android system of different editions contrast verification
When, need the system of multiple Android development board installation different editions to carry out Commissioning Contrast, while needing to develop corresponding version
APP, dependence hardware and software condition is more, and exploitation debugging cycle is long, and functional verification is more complicated.
Summary of the invention
The present invention provides a kind of method and systems for controlling smart machine, rely on hardware to solve existing control mode
More with software condition, exploitation debugging cycle is long, the more complicated problem of functional verification.
According to an aspect of the present invention, the present invention provides a kind of methods for controlling smart machine, comprising:
The intelligent terminal of built-in android system is replaced into android system development board, inside the smart machine
Single-chip microcontroller establishes USB connection;
Control equipment is connected to the intelligent terminal;
Control instruction is sent to the intelligent terminal using the control equipment, is referred to the control by the intelligent terminal
Order is transmitted to the single-chip microcontroller, to realize the control to the smart machine.
According to another aspect of the present invention, the present invention provides a kind of systems for controlling smart machine, including intelligent end
End and control equipment;Android system built in the intelligent terminal;
The intelligent terminal replaces to be established between the single-chip microcontroller inside android system development board, with the smart machine
There is USB connection;
The control equipment, for sending control instruction to the intelligent terminal;
The intelligent terminal, for the control instruction to be transmitted to the single-chip microcontroller, to realize to the smart machine
Control.
The beneficial effects of the present invention are: the embodiment of the present invention is replaced using the intelligent terminal of built-in android system
Intelligent terminal is established USB with the single-chip microcontroller inside smart machine and connect by android system development board, then control equipment is connected
It is connected to intelligent terminal, is transmitted to single-chip microcontroller after the control instruction that intelligent terminal receiving control apparatus is sent, to realize to intelligence
The control of energy equipment, needs not rely on android system development board, also needs not rely on APP, at low cost, shortens function and tests
In the period of card and exploitation, reduce the difficulty of exploitation and debugging.
Detailed description of the invention
Fig. 1 is a kind of flow chart of method for controlling smart machine provided by one embodiment of the present invention;
Fig. 2 is a kind of functional block diagram of system for controlling smart machine provided by one embodiment of the present invention.
Specific embodiment
Design concept of the invention is: more, exploitation that the mode of existing control smart machine relies on hardware and software condition
Debugging cycle is long, and functional verification is more complicated.
By taking intelligent robot as an example, simple robot is the movement that robot is realized by single-chip microcontroller control steering engine, machine
Action command completion and the interaction of user of the movement of people completely by being stored in inside single-chip microcontroller are poor, do not have intelligent system
System can not receive external control instruction.
Intelligent robot be single-chip microcontroller is external in android system, become a bigger Android system and set
Standby, the movement of robot issues data information by android system and passes to single-chip microcontroller by serial ports, single-chip microcontroller control flaps again
Machine completes movement, because android system has stronger processing capacity, is more convenient programming, can receive voice, camera, each
The input of a variety of external informations such as kind sensor, then cooperate the APP of voice, camera and each sensor, then movement is referred to
It enables and single-chip microcontroller, then the control by chip microcontroller to steering engine is passed to by serial ports, realize more complicated, more intelligent movement effect
Fruit.
But during developing debugging, need matched android system development board and be connected to single-chip microcontroller, it carries out
Debugging and functional verification require elder generation in the APP of the corresponding current android system version of the end PC exploitation, are then installed to APP
Debugging and functional verification are carried out in android system, when needing the contrast verification in the android system of different editions, are needed
The system for wanting multiple Android development board installation different editions carries out Commissioning Contrast, while needing to develop the APP of corresponding version,
It is more to rely on hardware and software condition, exploitation debugging cycle is long, and functional verification is more complicated.
In response to this, the present invention uses the intelligent terminal of built-in android system, such as Android smart phone,
Replace android system development board, intelligent terminal is established into USB with the single-chip microcontroller inside smart machine and is connect, then control is set
It is standby to be connected to intelligent terminal, it is transmitted to single-chip microcontroller after the control instruction that intelligent terminal receiving control apparatus is sent, to realize
Control to smart machine.This programme needs not rely on android system development board, also needs not rely on APP, at low cost, contracting
In the short period of functional verification and exploitation, reduce the difficulty of exploitation and debugging.
Embodiment one
Fig. 1 is a kind of flow chart of method for controlling smart machine provided by one embodiment of the present invention, as shown in Figure 1,
It is provided in this embodiment control smart machine method include:
Step S110: replace android system development board with the intelligent terminal of built-in android system, by intelligent terminal
USB is established with the single-chip microcontroller inside smart machine to connect.
Intelligent terminal can select the mobile phone of built-in android system.Micro USB interface is usually provided on mobile phone,
Mobile phone is connected by USB OTG line, the single-chip microcontroller of a USB line connection smart machine, then by USB OTG line and USB line
It is connected, the connection between the single-chip microcontroller in mobile phone and smart machine can be realized.
Step S120: control equipment is connected to intelligent terminal.
Control equipment can select PC machine.PC machine can by intelligent terminals such as WIFI connection mobile phones, can by PC machine and
Mobile phone is connected to same router, configures the IP address of PC machine and mobile phone, makes the IP address of two equipment in an IP address section
It is interior, to realize communication.
Certainly, it controls between equipment and intelligent terminal and can also be between intelligent terminal and the single-chip microcontroller of smart machine
It is connected using other modes.
Step S130: the control instruction for controlling smart machine is sent to intelligent terminal using control equipment.
Be adapted to debugging function in the android system of mobile phone, receive the instruction that PC machine is sent by WIFI, PC machine according to
The IP address of mobile phone sends adb instruction to mobile phone, and the control to smart machine can be realized.
Step S140: being transmitted to single-chip microcontroller for control instruction using intelligent terminal, to realize the control to smart machine.
It controls equipment and uses different communication protocol from the single-chip microcontroller of smart machine, the two can not be communicated directly, be needed
It wants smart machine to parse communication protocol, and Content of Communication is converted into the format that equipment can identify.Therefore, in this reality
Example is applied using between communication protocol and intelligent terminal between intelligent terminal parsing intelligent terminal and single-chip microcontroller and control equipment
Communication protocol, and using intelligent terminal read control equipment send control instruction, if PC machine send adb instruction, later
It is to be sent to single-chip microcontroller after the form that single-chip microcontroller can identify by the format of control instruction and protocol conversion.
After step s 140, the present embodiment further include: obtain single-chip microcontroller using intelligent terminal and execute control instruction return
Implementing result, by the format of implementing result and protocol conversion be to be sent out after controlling the form that can identify of equipment using intelligent terminal
Control equipment is given, receives and show implementing result using control equipment, directly carries out code convenient for the control such as PC machine equipment
Debugging and real-time display.It by the format of implementing result and protocol conversion is that intelligent terminal can be with that the present embodiment, which also utilizes intelligent terminal,
The form of identification, and corresponding prompt is provided to implementing result using intelligent terminal, it is friendly in order to be carried out for implementing result
Prompting, such as when running succeeded, mobile phone issues successful prompt tone, text or picture and shows or the prompt of indicator light.
The method of control smart machine provided in this embodiment is realized simply, and android system development board is needed not rely on,
Only need existing Android phone and single-chip microcontroller that can realize intelligent control, the cost for building intelligent control scheme is low.In
When carrying out the comparison of different editions system, it is easy to which the android system mobile phone for finding various versions does not need multiple
Android development board does not need hair yet and opens the multiple APP of debugging, shortens the period of functional verification and exploitation, reduce exploitation and
The difficulty of debugging.
Embodiment two
Fig. 2 is a kind of functional block diagram of system for controlling smart machine provided by one embodiment of the present invention, such as Fig. 2 institute
Show, the system 210 of control smart machine provided in this embodiment includes intelligent terminal 212 and control equipment 211, intelligent terminal
Android system built in 212.
Intelligent terminal 212 and control equipment 211 communicate to connect, and replace android system development board and smart machine 220
Establishing between internal single-chip microcontroller has USB connection, and control equipment 211 is sent to intelligent terminal 212 for controlling smart machine
Control instruction is transmitted to the single-chip microcontroller inside smart machine 220 by 220 control instruction, intelligent terminal 212, to realize to intelligence
The control of equipment 220.
Intelligent terminal 212 can be the mobile phone of built-in android system.Micro USB interface is usually provided on mobile phone,
Connect mobile phone by USB OTG line, the single-chip microcontroller of a USB line connection smart machine 220, then by USB OTG line and
USB line is connected, and the connection between the single-chip microcontroller in mobile phone and smart machine can be realized.Control equipment 211 can be PC machine, can
PC machine and mobile phone are connected to same wireless router, the IP address of PC machine and mobile phone is configured, the IP address of two equipment is made
In an IP address section, to realize communication.
In a preferred embodiment, intelligent terminal 212 is specifically used in parsing intelligent terminal 212 and smart machine 220
Communication protocol between communication protocol and intelligent terminal 212 between portion's single-chip microcontroller and control equipment 211 reads control and sets
The format of control instruction and protocol conversion are to be sent to after the form that single-chip microcontroller can identify by standby 211 control instructions sent
Single-chip microcontroller inside smart machine 220.
In a further advantageous embodiment, intelligent terminal 212 is also used to hold from the single-chip microcontroller reception inside smart machine 220
The implementing result of row control instruction, and be to be sent out after controlling the form that equipment can identify by the format of implementing result and protocol conversion
Control equipment 211 is given, control equipment 211 receives and show implementing result, directly carries out code convenient for the control such as PC machine equipment
Debugging and real-time display.
In another preferred embodiment, intelligent terminal 212 is also used to the format of implementing result and protocol conversion be certainly
The form that body can identify, and prompt is issued when implementing result is to run succeeded.Such as when running succeeded, intelligent terminal 212
Successful prompt tone, text or picture is issued to show or the prompt of indicator light.
The above description is merely a specific embodiment, under above-mentioned introduction of the invention, those skilled in the art
Other improvement or deformation can be carried out on the basis of the above embodiments.It will be understood by those skilled in the art that above-mentioned tool
Body description only preferably explains that the purpose of the present invention, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. controlling the method for smart machine in a kind of smart machine exploitation debugging process, which is characterized in that the described method includes:
The intelligent terminal of built-in android system is replaced into android system development board, with the monolithic inside the smart machine
Machine establishes USB connection;
Control equipment is connected to the intelligent terminal;
Adb control instruction is sent to the intelligent terminal using the control equipment, is controlled the adb by the intelligent terminal
Instruction is transmitted to the single-chip microcontroller, to realize the control to the smart machine.
2. the method as described in claim 1, which is characterized in that described to be transmitted to the control instruction by the intelligent terminal
The single-chip microcontroller specifically includes:
The intelligent terminal parse communication protocol between the intelligent terminal and the single-chip microcontroller and the intelligent terminal with
Communication protocol between the control equipment;And
The intelligent terminal reads the control instruction that the control equipment is sent, by the format of the control instruction and protocol conversion
The single-chip microcontroller is sent to after the form that can be identified for the single-chip microcontroller.
3. method according to claim 2, which is characterized in that be transmitted to the control instruction by the intelligent terminal described
After single-chip microcontroller, the method also includes:
The intelligent terminal obtains the single-chip microcontroller and executes the implementing result that the control instruction returns, by the implementing result
It is sent to the control equipment after the form that format and protocol conversion can identify for the control equipment, is set using the control
It is standby to receive and show the implementing result.
4. method as claimed in claim 3, which is characterized in that the intelligent terminal obtains the single-chip microcontroller and executes the control
Instruction return implementing result include:
The form that the intelligent terminal can identify the format of the implementing result and protocol conversion for the intelligent terminal, and
Corresponding prompt is provided to the implementing result.
5. method according to any of claims 1-4, which is characterized in that
The intelligent terminal is the mobile phone of built-in android system, is provided with Micro USB interface on the mobile phone, passes through USB
OTG line is established USB with the single-chip microcontroller inside the smart machine and is connect;
The control equipment is PC machine, and the PC machine sends adb control instruction to the mobile phone according to the IP address of the mobile phone.
6. controlling the system of smart machine in a kind of smart machine exploitation debugging process, which is characterized in that the system comprises intelligence
It can terminal and control equipment;Android system built in the intelligent terminal;
The intelligent terminal, which replaces to establish between the single-chip microcontroller inside android system development board, with the smart machine, USB
Connection;
The control equipment, for sending adb control instruction to the intelligent terminal;
The intelligent terminal, for the adb control instruction to be transmitted to the single-chip microcontroller, to realize to the smart machine
Control.
7. system as claimed in claim 6, which is characterized in that the intelligent terminal is specifically used for: parsing the intelligent terminal
The communication protocol between communication protocol and the intelligent terminal and the control equipment between the single-chip microcontroller;It reads
The format of the control instruction and protocol conversion are that the single-chip microcontroller can identify by the control instruction that the control equipment is sent
Form after be sent to the single-chip microcontroller.
8. system as claimed in claim 7, which is characterized in that the intelligent terminal is also used to receive from the single-chip microcontroller and execute
The implementing result of the control instruction, and be that the control equipment can identify by the format of the implementing result and protocol conversion
Form after be sent to the control equipment;
The control equipment is also used to receive and show the implementing result.
9. system as claimed in claim 8, which is characterized in that the intelligent terminal is also used to the format of the implementing result
It is the form that itself can be identified with protocol conversion, and issues prompt when the implementing result is to run succeeded.
10. system as claim in any one of claims 6-9, which is characterized in that the intelligent terminal is built-in android system
Mobile phone, be provided with Micro USB interface on the mobile phone, USB established with the single-chip microcontroller by USB OTG line and is connect;Institute
Stating control equipment is PC machine, and the PC machine sends adb control instruction to the mobile phone according to the IP address of the mobile phone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611239491.0A CN106843035B (en) | 2016-12-28 | 2016-12-28 | A kind of smart machine develops the method and system of control smart machine in debugging process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611239491.0A CN106843035B (en) | 2016-12-28 | 2016-12-28 | A kind of smart machine develops the method and system of control smart machine in debugging process |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106843035A CN106843035A (en) | 2017-06-13 |
CN106843035B true CN106843035B (en) | 2019-11-08 |
Family
ID=59113916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611239491.0A Active CN106843035B (en) | 2016-12-28 | 2016-12-28 | A kind of smart machine develops the method and system of control smart machine in debugging process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106843035B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112180829A (en) * | 2020-10-13 | 2021-01-05 | 深圳市海浦蒙特科技有限公司 | Remote debugging method and system for PLC (programmable logic controller) equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103002445A (en) * | 2012-11-08 | 2013-03-27 | 张维加 | Safe mobile electronic equipment for providing application services |
CN103268077B (en) * | 2013-04-27 | 2015-05-13 | 吉林大学 | Control method of remote control device based on Android mobile phones |
CN104570856B (en) * | 2014-12-18 | 2017-04-12 | 黑龙江大学 | Online-programmable monitoring network system |
CN204790445U (en) * | 2015-07-16 | 2015-11-18 | 合肥师范学院 | Multichannel synchronizing data collection system based on android system |
CN105204393B (en) * | 2015-08-13 | 2017-12-26 | 彭增金 | Single-chip microcomputer R&D and production instrument and its implementation based on empty core single-chip microcomputer |
-
2016
- 2016-12-28 CN CN201611239491.0A patent/CN106843035B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106843035A (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101691446B1 (en) | Method, apparatus, and system for intelligently controlling device, and plug-and-play device | |
WO2020168569A1 (en) | Intelligent device network distribution method, apparatus, electronic device and storage medium | |
CN104572564B (en) | It is a kind of to realize android movement equipment and the method for USB OTG host communications | |
CN102802148B (en) | Method, system and device for card personalization over the air | |
KR102173242B1 (en) | Local wireless data communication system, method and apparatus for automactic setup of imformation | |
WO2016193417A1 (en) | Home appliance control method and control system | |
CN103945046A (en) | Photographing control method and control device | |
CN110049012B (en) | Operation method of routing equipment, routing equipment and terminal equipment | |
CN110932953A (en) | Intelligent household control method and device, computer equipment and storage medium | |
CN105718311A (en) | Intelligent system and implementing method thereof, peripheral applied to intelligent device | |
CN104091113A (en) | Method and system for achieving mobile terminal screen unlocking through NFC data matching | |
KR20210110335A (en) | Smart device network configuration method and related devices | |
US20160300483A1 (en) | Device Control Method, Server, System and Computer Storage Medium | |
CN103957198A (en) | Sensor data receiving and converting method and system | |
CN103559787A (en) | Household appliance control method and terminal | |
CN103546531B (en) | The parameter rapid-setting method and system of a kind of intelligent television | |
CN105657172A (en) | DSP power amplifier interaction system | |
CN106843035B (en) | A kind of smart machine develops the method and system of control smart machine in debugging process | |
CN114055468B (en) | Track reproduction method, track reproduction system and terminal equipment | |
CN104918296A (en) | Network connection assistance system and method | |
CN103401738A (en) | Terminal connecting method and terminal connecting device | |
CN109451095B (en) | Remote controller detection method and device, storage medium and terminal | |
CN111090770A (en) | Data information acquisition method, device and system and household appliance | |
CN106850554B (en) | Method and device for dual-system directional connection | |
CN109189629B (en) | Method for realizing terminal remote control based on USB device and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |