CN104536765B - Login, the method and system of debugging embedded equipment - Google Patents
Login, the method and system of debugging embedded equipment Download PDFInfo
- Publication number
- CN104536765B CN104536765B CN201510012727.6A CN201510012727A CN104536765B CN 104536765 B CN104536765 B CN 104536765B CN 201510012727 A CN201510012727 A CN 201510012727A CN 104536765 B CN104536765 B CN 104536765B
- Authority
- CN
- China
- Prior art keywords
- embedded device
- program
- file
- compiling
- android
- 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
Landscapes
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of login, the method and system of debugging embedded equipment, wherein the method for logging in embedded device comprises the following steps:The target program for being supported the operating system that Telnet client source program is compiled as embedded device according to compiling rule file;The target program is transplanted in the embedded device;Computer foundation by the embedded device with being provided with operating system is connected;Perform the target program in the embedded device to log in the embedded device by the operating system of the computer.Login embedded device can so be conveniently realized to debug with the application program to embedded device, it is not necessary to the IP address of the embedded device of login, this is for wireless network, and the login of the embedded device under special 3G or 4G networks is particularly convenient.
Description
Technical field
The present invention relates to embedded device technology field, and in particular to one kind logs in, debugging embedded device, method and is
System.
Background technology
Telnet is Telecommunication Network english abbreviation, means Telnet, on internet
Have a wide range of applications, most network operating system has the application terminal of Telnet agreements substantially, especially using Unix,
On the computer of (SuSE) Linux OS, it turns into one of indispensable instrument.More importantly Telnet agreements are provided
The important method of data and control information is transmitted between heterogeneous network on internet, it is allowed to which the program picture in a machine is accessed
Home server like that, accesses the resource in long-range another main frame.
At present, the embedded device of operating system is run, for communication apparatus, in systems development process
In, the problem of occurring various unavoidably, therefore should just consider follow-up positioning test means at the beginning of product design, with
This can solve the problem that problem, and the scope that problem involves is reduced into minimum, it is ensured that the reliability service of equipment, improve the Service Quality of product
Amount.In the prior art the more commonly used adjustment method be with internal Telnet login modes realize, i.e., in test process and
When product finds system problem in actual use, perform some instructions to obtain into embedded device by Telnet modes
The Debugging message of system operation is obtained to investigate problem.
, it is necessary to meet following condition when being logged in using Telnet modes:1st, on the local computer must be equipped with bag
The CLIENT PROGRAM of the agreement containing Telnet;2nd, it must be known by being logged the IP address or domain name of equipment;3rd, it must be known by login banner
With password.But, for the communication embedded device (for example, Android terminal) based on 3G or 4G networks, because IP address is
It is allocated at random by operator, so wanting to sign in embedded device based on Telnet by local computer, with right
The application program of embedded device, which is debugged, to be just difficult to.
The content of the invention
Therefore, the technical problem to be solved in the present invention is that prior art is difficult to log in embedded device, with to embedding
The application program for entering formula equipment is debugged.
In order to solve the above technical problems, the present invention uses following technical scheme:
A kind of method for logging in embedded device, comprises the following steps:According to compiling rule file by Telnet
Client source program is compiled as the target program that the operating system of embedded device is supported;The target program is transplanted to described
In embedded device;Computer foundation by the embedded device with being provided with operating system is connected;Pass through the computer
Operating system the target program in the embedded device is performed to log in the embedded device.
Preferably, the compiling rule file includes the first Android compiling rule file and the second Android compiling rule text
Part, wherein first Android compiling rule file is used to describe the Telnet client source program being compiled as institute
State the compiling rule of the target program of operating system support;The second Android compiling rule file is used to describe the source journey
Sequence is compiled as the library file required for the target program;And the operating system of the embedded device is Android system.
Preferably, in the header file searching route of first Android compiling rule file comprising variable function header file and
Termination function database header file, the variable function header file is used to describe what the first Android compiling rule file was included
Variable defined in header file and/or function, the termination function database header file are used to describe Telnet (Telnet)
Protocol client function.
Preferably, the header file of the description Linux/Unix system functions in the variable function header file is description C languages
Say the header file of system function;The program that being used in the variable function header file stops compiling and showing error message is to use
In the grand program of definition control compiling flow;Main body program in the termination function database header file also includes C and modified
Program, the C modifications program is used for when being compiled source program for C Plus Plus program, in the target program after compiling generation
Name variable carry out C language modification.
Preferably, the operating system by the computer performs the target program in the embedded device
The step of to log in the embedded device, comprises the following steps:Obtain the behaviour of the target program in the embedded device
Make authority;Start the target program in the embedded device;Input the local loopback address of the embedded device with
The embedded device sets up communication connection;The attribute of the target program in the embedded device is set to editable
Pattern;The username and password for inputting the embedded device logs in the embedded device.
The present invention also provides a kind of method of debugging embedded equipment, comprises the following steps:Utilize above-mentioned technical proposal institute
The method for the login embedded device stated logs in the embedded device;Application program in the embedded device is adjusted
Examination.
The present invention also provides a kind of system for logging in embedded device, including:Collector, for according to compiling rule text
The target program that part supports the operating system that Telnet client source program is compiled as embedded device;Transplant mould
Block, for institute's target program to be transplanted in the embedded device;Link block, for by the embedded device with install
The computer for having operating system sets up connection;Login module, for performing the insertion by the operating system of the computer
The target program in formula equipment is to log in the embedded device.
Preferably, the compiling rule file includes the first Android compiling rule file and the second Android compiling rule text
Part, wherein first Android compiling rule file is used to describe the Telnet client source program being compiled as institute
State the compiling rule of the target program of operating system support;The second Android compiling rule file is used to describe the source journey
Sequence is compiled as the library file required for the target program;And the operating system of the embedded device is Android system.
Preferably, in the header file searching route of first Android compiling rule file comprising variable function header file and
Termination function database header file, the variable function header file is used to describe what the first Android compiling rule file was included
Variable defined in header file and/or function, the termination function database header file are used to describe Telnet (Telnet)
Protocol client function.
Preferably, the header file of the description Linux/Unix system functions in the variable function header file is description C languages
Say the header file of system function;The program that being used in the variable function header file stops compiling and showing error message is to use
In the grand program of definition control compiling flow;Main body program in the termination function database header file also includes C and modified
Program, the C modifications program is used for when being compiled source program for C Plus Plus program, in the target program after compiling generation
Name variable carry out C language modification.
Preferably, operating right acquiring unit, the operation for obtaining the target program in the embedded device
Authority;Startup program unit, for starting the target program in the embedded device;Connection unit is set up, for defeated
The local loopback address and the embedded device for entering the embedded device are set up communication and are connected;Editable pattern list is set
Member, for the attribute of the target program in the embedded device to be set into editable pattern;Embedded device is logged in
Unit, the username and password for inputting the embedded device logs in the embedded device.
The present invention also provides a kind of system of debugging embedded equipment, including:Login insertion described in above-mentioned technical proposal
The system of formula equipment, for logging in the embedded device;Debugging module, for the application program in the embedded device
Debugged.
The login of the present invention, the beneficial effect of the method and system of debugging embedded equipment include:
(1) login of the invention, the method and system of debugging embedded equipment, due to wherein described login embedded device
Method comprise the following steps:Telnet client source program is compiled as by embedded device according to compiling rule file
Operating system support target program;The target program is transplanted in the embedded device;Embedded set described
The standby computer with being provided with operating system is set up and is connected;The embedded device is performed by the operating system of the computer
In the target program to log in the embedded device.Login embedded device can be conveniently realized by above step
Debugged with the application program to embedded device, it is not necessary to which the IP address of the embedded device of login, this is for wireless network
The login of embedded device under network, special 3G or 4G networks is particularly convenient.
(2) login of the invention, the method and system of debugging embedded equipment, due to wherein described debugging embedded equipment
Method comprise the following steps:The embedded device is logged according to the method for login embedded device of the present invention;It is right
Application program in the embedded device is debugged.Application program that so can be easily to embedded device is adjusted
Examination, logs in the IP address of embedded device that the process of embedded device need not be logged in, this for wireless network, special 3G or
The login of embedded device under person's 4G networks is particularly convenient, improves the efficiency of the application program of debugging embedded equipment.
Brief description of the drawings
In order that present disclosure is more likely to be clearly understood, specific embodiment and combination below according to the present invention
Accompanying drawing, the present invention is further detailed explanation, wherein
Fig. 1 is a kind of flow chart of the method for login embedded device of the embodiment of the present invention 1;
Fig. 2 be a kind of login embedded device of the embodiment of the present invention 1 method in by the operation system of the computer
System performs the target program in the embedded device to log in the flow chart of the embedded device step;
Fig. 3 is a kind of structural representation of the system of login embedded device of the embodiment of the present invention 2;
Fig. 4 is a kind of structural representation of the login module of the system of login embedded device of the embodiment of the present invention 2.
Embodiment
Embodiment 1
The method that Fig. 1 shows a kind of login embedded device of the embodiment of the present invention 1, comprises the following steps:
Step S11, Telnet client source program is compiled as by embedded device according to compiling rule file
The target program that operating system is supported.The Telnet client source program can be remotely stepping under linux system
Record (Telnet) protocol client source program, or Telnet (Telnet) the protocol client source journey under Unix system
Sequence, for example with the Kazakhstan under linux system not netkit-telent-0.17.orig.tar.gz source codes and termcap-
1.3.1.tar.gz source code.
Step S12, the target program is transplanted in the embedded device.For example, using adb instruments by the peace
The recognizable binary file (i.e. described target program) of tall and erect system is transplanted in the embedded device, the embedded device
For the embedded device of application Android operation system.Specifically, the target program can be transplanted to the embedded device
Data/local paths under.
Step S13, the computer foundation by the embedded device with being provided with operating system are connected.
Step S14, performed by the operating system of the computer target program in the embedded device with
Log in the embedded device.
It can conveniently realize login embedded device to carry out the application program of embedded device by above step
Debugging, due to the target program is transplanted in the embedded device, institute is performed by the operating system of the computer
The target program in embedded device is stated to log in the embedded device, therefore the embedded device that need not be logged in
IP address, this is for wireless network, and the login of the embedded device under special 3G or 4G networks is particularly convenient.
Hereinafter, embodiments of the invention are discussed in detail so that the operating system of embedded device is Android system as an example,
It will be appreciated by those skilled in the art that the operating system of embedded device is also can for other systems such as IOS, Windows
Capable.
Specifically, the compiling rule file includes the first Android compiling rule file and the second Android compiling rule text
Part.The first Android compiling rule file is Android.mk, for describing the Telnet (Telnet) agreement
Client source program is compiled as the compiling rule of the target program of Android system support, specifically to needed for compiling
LOCAL_PATH (path where translation and compiling environment file), LOCAL_MODULE (title of the module after compiling generation), LOCAL_
CPP_EXTENSION (needs the type of the file of compiling, refers to Telnet (Telnet) protocol client in the present embodiment
The type of the C and C++ source files in netkit-telnet-0.17/telnet files in source program), LOCAL_SRC_
FILES (the C in netkit-telnet-0.17/telnet files in Telnet (Telnet) protocol client source program
With the list of C++ source files), (description is to C by LOCAL_C_INCLUDES (searching route of header file) and LOCAL_CXXFLAGS
The rule that language category code is compiled) it is described.The second Android compiling rule file is Application.mk,
For describing the source program being compiled as the library file required for the target program, specifically to needed for compiling
APP_ABI (instruction set that target device processor architecture is supported), the APP_STL (standard forms that NDK compiling system needs
Storehouse) and APP_PLATFORM (target environment of compiling) be described.
So, rule file Android.mk can be compiled according to the first Android and the second Android compiles rule file
The Telnet (Telnet) protocol client source program is compiled as the target of Android system support by Application.mk
Program, specifically, can be provided with Android NDK software PCs at one, by the compilation tool in Android NDK softwares by institute
The target program that Telnet (Telnet) protocol client source program is compiled as Android system support is stated, the target program is
The binary file that can recognize that for Android system.Rule file and the are compiled because the compiling rule file includes the first Android
Two Androids compile rule file, and the operating system of the embedded device is Android system, therefore compile efficiency high, and then
More easily realize that log in embedded device is debugged with the application program to embedded device.
As a kind of preferred scheme, comprising variable letter in the header file searching route of the first Android compiling rule file
Several header file externs.h and termination function database header file termcap.h, variable function header file externs.h are used for
Variable and/or function, terminal defined in the header file that the first Android compiling rule file Android.mk is included are described
Functional database header file termcap.h is used to describe Telnet (Telnet) protocol client function.
Wherein, the header file of the description Linux/Unix system functions in the variable function header file externs.h
Unistd.h is the header file stdlib.h for describing C language system function.That is the description in variable function header file externs.h
The header file unistd.h of Linux/Unix system functions is replaced by the header file stdlib.h of description C language system function
Change.
Being used in the variable function header file externs.h stops the program #error for compiling and showing error message
It is the grand program #define_POSIX_VDISABLE 1 for defining control compiling flow.I.e. by variable function header file
Being used in externs.h stops the program #error for compiling and showing error message by for defining the grand of control compiling flow
Program #define_POSIX_VDISABLE 1 be replaced.
Main body program in the termination function database header file also includes C and modifies program.Wherein, the C modifications journey
Sequence is used to, when being compiled source program for C Plus Plus program, C languages are carried out to the name variable in the target program after compiling generation
Speech modification.
Due to the header file of the description Linux/Unix system functions in the variable function header file externs.h
Unistd.h is the use in the header file stdlib.h, the variable function header file externs.h for describe C language system function
Compile and show that the program #error of error message is the grand program #define_ for defining control compiling flow in stopping
Main body program in POSIX_VDISABLE 1, the termination function database header file also includes C and modifies program, is so inciting somebody to action
During Telnet (Telnet) the protocol client source program is compiled as the target program of Android system support, do not send out
Life reports an error, and improves compiling success rate, and then more easily realizes login embedded device with the application journey to embedded device
Sequence is debugged.
As a kind of preferred scheme, as shown in Fig. 2 performing the embedded device by the operating system of the computer
In the target program may comprise steps of with the step S14 for logging in the embedded device:
Step S141, the target program obtained in the embedded device operating right.Specifically include following step
Suddenly:First, cmd command windows are opened in the operating system of the computer;Secondly, adb shell-commands are performed and enters institute
State the file system of embedded device;Again, root (root) authority that su orders obtain the embedded device is performed;Finally,
Perform the operating right that the telnet orders of chmod 777 obtain the client objectives program.
Step S142, the target program started in the embedded device.Specifically include following steps:First, exist
Cmd command windows are opened in the operating system of the computer;Secondly ./telnet orders are performed and starts the target program.
Step S143, the local loopback address of the input embedded device are set up communication with the embedded device and connected
Connect.Specifically include following steps:First, cmd command windows are opened in the operating system of the computer;Secondly, input
Open localhost 2500 or open 127.0.0.12500 set up communication with embedded formula equipment and are connected.
Step S144, the attribute of the target program in the embedded device is set to editable pattern.Specifically
Comprise the following steps:First, cmd command windows are opened in the operating system of the computer;Secondly, ^ is performed] order entrance
The attribute of the client objectives program is set;Finally, modeedit orders are performed by the attribute of the client objectives program
It is set to editable pattern.
Step S145, the username and password of the input embedded device log in the embedded device.
By step S141- step S145, expeditiously it can be performed by the operating system of the computer described embedding
Enter the target program in formula equipment and log in embedded device to log in the embedded device, and then more easily realize
Debugged with the application program to embedded device.
Embodiment 2:
It is embedding to debug that the embodiment of the present invention 2 provides a kind of method of the login embedded device using the embodiment of the present invention 1
Enter the method for formula equipment, comprise the following steps:
Log in embedded device.It is for instance possible to use the method for the login embedded device described in embodiment 1 is logged in
The embedded device.
Application program in the embedded device is debugged.Specifically comprise the following steps:First, in the meter
Cmd command windows are opened in the operating system of calculation machine;Secondly, input debug command is to the application program in the embedded device
Debugged.
Application program that can be easily to embedded device by above step is debugged, and logs in embedded device
The IP address for the embedded device that process need not be logged in, this is embedded under special 3G or 4G networks for wireless network
The login of equipment is particularly convenient, improves the efficiency of the application program of debugging embedded equipment.
Embodiment 3
The system that Fig. 3 shows a kind of login embedded device of the embodiment of the present invention 3, including collector 31, transplanting
Module 32, link block 33 and login module 34.
Collector 31 is corresponding with the step S11 in embodiment 1, for according to compiling rule file by Telnet
Client source program is compiled as the target program that the operating system of embedded device is supported.
Module 32 is transplanted corresponding with the step S12 in embodiment 1, for institute's target program to be transplanted into described embedded set
In standby.
Link block 33 is corresponding with the step S13 in embodiment 1, for being with being provided with operation by the embedded device
The computer of system sets up connection.
Login module 34 is corresponding with the step S14 in embodiment 1, for performing institute by the operating system of the computer
The target program in embedded device is stated to log in the embedded device.
Login embedded device can be so conveniently realized to debug with the application program to embedded device, due to
The target program is transplanted in the embedded device, described embedded set is performed by the operating system of the computer
The target program in standby to log in the embedded device, therefore the IP address for the embedded device that need not be logged in, this
For wireless network, the login of the embedded device under special 3G or 4G networks is particularly convenient.
Specifically, embodiments of the invention are discussed in detail so that the operating system of embedded device is Android system as an example, so
And the other systems such as IOS, Windows are also feasible.Same as Example 1, the compiling rule file includes first
Android compiles rule file and the second Android compiling rule file.Wherein, the first Android compiling rule file is
Android.mk, for describing the Telnet (Telnet) protocol client source program being compiled as Android system support
The compiling rule of target program, specifically to the LOCAL_PATH (translation and compiling environment file where path) needed for compiling,
LOCAL_MODULE (title of the module after compiling generation), LOCAL_CPP_EXTENSION (need the class of the file of compiling
Type, refers to the netkit-telnet-0.17/ in Telnet (Telnet) protocol client source program in the present embodiment
The type of C and C++ source files in telnet files), LOCAL_SRC_FILES (Telnet (Telnet) protocol clients
The list of the C and C++ source files in netkit-telnet-0.17/telnet files in source program), LOCAL_C_
INCLUDES (searching route of header file) and LOCAL_CXXFLAGS (rule that description is compiled to C language category code) enter
Row description.The second Android compiling rule file is Application.mk, for describing the source program being compiled as
Library file required for the target program, specifically to APP_ABI (the target device processor architecture branch needed for compiling
The instruction set held), APP_STL (STLs that NDK compiling system needs) and APP_PLATFORM (the target rings of compiling
Border) it is described.
So, rule file Android.mk can be compiled according to the first Android and the second Android compiles rule file
The Telnet (Telnet) protocol client source program is compiled as the target of Android system support by Application.mk
Program, specifically, can be provided with Android NDK software PCs at one, by the compilation tool in Android NDK softwares by institute
The target program that Telnet (Telnet) protocol client source program is compiled as Android system support is stated, the target program is
The binary file that can recognize that for Android system.Rule file and the are compiled because the compiling rule file includes the first Android
Two Androids compile rule file, and the operating system of the embedded device is Android system, therefore compile efficiency high, and then
More easily realize that log in embedded device is debugged with the application program to embedded device.
As a kind of preferred scheme, comprising variable letter in the header file searching route of the first Android compiling rule file
Several header file externs.h and termination function database header file termcap.h, variable function header file externs.h are used for
Variable and/or function, terminal defined in the header file that the first Android compiling rule file Android.mk is included are described
Functional database header file termcap.h is used to describe Telnet (Telnet) protocol client function.
Wherein, the header file of the description Linux/Unix system functions in the variable function header file externs.h
Unistd.h is the header file stdlib.h for describing C language system function.That is the description in variable function header file externs.h
The header file unistd.h of Linux/Unix system functions is replaced by the header file stdlib.h of description C language system function
Change.
Being used in the variable function header file externs.h stops the program #error for compiling and showing error message
It is the grand program #define_POSIX_VDISABLE 1 for defining control compiling flow.I.e. by variable function header file
Being used in externs.h stops the program #error for compiling and showing error message by for defining the grand of control compiling flow
Program #define_POSIX_VDISABLE 1 be replaced.
Main body program in the termination function database header file also includes C and modifies program.Wherein, the C modifications journey
Sequence is used to, when being compiled source program for C Plus Plus program, C languages are carried out to the name variable in the target program after compiling generation
Speech modification.
Due to the header file of the description Linux/Unix system functions in the variable function header file externs.h
Unistd.h is the use in the header file stdlib.h, the variable function header file externs.h for describe C language system function
Compile and show that the program #error of error message is the grand program #define_ for defining control compiling flow in stopping
Main body program in POSIX_VDISABLE 1, the termination function database header file also includes C and modifies program, is so inciting somebody to action
During Telnet (Telnet) the protocol client source program is compiled as the target program of Android system support, do not send out
Life reports an error, and improves compiling success rate, and then more easily realizes login embedded device with the application journey to embedded device
Sequence is debugged.
As a kind of preferred scheme, as shown in figure 4, login module 34 specifically includes operating right acquiring unit 341, startup
Program unit 342, set up connection unit 343, set editable mode unit 344 and embedded device to log in unit 345.
Operating right acquiring unit 341 is corresponding with the step S141 in embodiment 1, for obtaining in the embedded device
The target program operating right.Specifically, shown operating right acquiring unit includes:Command window subelement is opened,
For opening cmd command windows in the operating system of the computer;Into file system subelement, for performing adb
Shell-command enters the file system of the embedded device;Root authority obtains subelement, obtains described for performing su orders
Root (root) authority of embedded device;Operating right obtains subelement, is obtained for performing the telnet orders of chmod 777
The operating right of the client objectives program.
Startup program unit 342 is corresponding with the step S142 in embodiment 1, for starting the institute in the embedded device
State target program.Specifically, the startup program unit includes:It is described opening command window subelement and for perform/
Telnet orders start the startup target program subelement of the target program.
Connection unit 343 is set up corresponding with the step S143 in embodiment 1, for inputting the local of the embedded device
Loop-back address is set up communication with the embedded device and is connected.Specifically, the connection unit of setting up includes the opening order
Window subelement and for inputting open localhost 2500 or open 127.0.0.12500 and embedded formula equipment
Set up communication establishment of connection connection subelement.
Set editable mode unit 344 corresponding with the step S144 in embodiment 1, for by the embedded device
The attribute of the target program be set to editable pattern.The setting editable mode unit includes the opening command window
Openning unit, and enter attribute setting subelement, for performing ^] order the attribute for entering the client objectives program to set
Put;Editable pattern subelement is set, the attribute of the client objectives program is set to for performing mode edit orders
Editable pattern.
Embedded device login unit 345 is corresponding with the step S145 in embodiment 1, for inputting the embedded device
Username and password log in the embedded device.
The mesh in the embedded device so can be expeditiously performed by the operating system of the computer
Beacon course sequence logs in embedded device to answer embedded device to log in the embedded device, and then more easily realize
Debugged with program.
Embodiment 4:
The debugging that the embodiment of the present invention 4 provides a kind of system of the login embedded device of utilization embodiment of the present invention 4 is embedding
Enter the system of formula equipment, including:Log in the system and debugging module of embedded device.
The system for logging in embedded device can be the system for logging in embedded device described in embodiment 3, use
In the login embedded device.
The debugging module is used to debug the application program in the embedded device.Specifically, the debugging
Module includes:Command window unit is opened, for opening cmd command windows in the operating system of the computer;Debugging is single
Member, is debugged for inputting debug command to the application program in the embedded device.
Application program that so can be easily to embedded device is debugged, and the process for logging in embedded device is not required to
The IP address for the embedded device to be logged in, this is for wireless network, and embedded device under special 3G or 4G networks is stepped on
Record is particularly convenient, improves the efficiency of the application program of debugging embedded equipment.
Obviously, above-described embodiment is only intended to clearly illustrate example, and the not restriction to embodiment.It is right
For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of change or
Change.There is no necessity and possibility to exhaust all the enbodiments.And the obvious change thus extended out or
Among changing still in the protection domain of the invention.
Claims (10)
1. a kind of method for logging in embedded device, it is characterised in that comprise the following steps:
The operating system that Telnet client source program is compiled as embedded device is supported according to compiling rule file
Target program;
The target program is transplanted in the embedded device;
Computer foundation by the embedded device with being provided with operating system is connected;
Perform the target program in the embedded device to log in the insertion by the operating system of the computer
Formula equipment;
Wherein, the operating system by the computer performs the target program in the embedded device to log in
The step of embedded device, comprises the following steps:
Obtain the operating right of the target program in the embedded device;
Start the target program in the embedded device;
The local loopback address and the embedded device for inputting the embedded device are set up communication and are connected;
The attribute of the target program in the embedded device is set to editable pattern;
The username and password for inputting the embedded device logs in the embedded device.
2. the method according to claim 1 for logging in embedded device, it is characterised in that the compiling rule file includes
First Android compiles rule file and the second Android compiling rule file, wherein first Android compiling rule file is used to retouch
State the compiling rule that the Telnet client source program is compiled as to the target program that the operating system is supported;Institute
Stating the second Android compiling rule file is used to describe to be compiled as the source program into the library file required for the target program;And
And the operating system of the embedded device is Android system.
3. the method according to claim 2 for logging in embedded device, it is characterised in that:The first Android compiling rule
Comprising variable function header file and termination function database header file, the variable function head in the header file searching route of file
File is used to describe variable and/or function, the end defined in the header file that the first Android compiling rule file is included
End functional database header file is used to describe Telnet client functionality.
4. the method according to claim 3 for logging in embedded device, it is characterised in that:
The header file of description Linux/Unix system functions in the variable function header file is description C language system function
Header file;
The program that being used in the variable function header file stops compiling and showing error message is to be used to define control compiling
The grand program of flow;
Main body program in the termination function database header file also includes C and modifies program, and the C modifications program is used to work as quilt
When compiling source program for C Plus Plus program, C language modification is carried out to the name variable in the target program after compiling generation.
5. a kind of method of debugging embedded equipment, it is characterised in that comprise the following steps:
The embedded device is logged in using the method for the login embedded device described in claim any one of 1-4;
Application program in the embedded device is debugged.
6. a kind of system for logging in embedded device, it is characterised in that including:
Collector, for Telnet client source program to be compiled as into embedded device according to compiling rule file
The target program that operating system is supported;
Module is transplanted, for the target program to be transplanted in the embedded device;
Link block, is connected for the computer foundation by the embedded device with being provided with operating system;
Login module, for by the operating system of the computer perform the target program in the embedded device with
Log in the embedded device;
Wherein, the login module includes:
Operating right acquiring unit, the operating right for obtaining the target program in the embedded device;
Startup program unit, for starting the target program in the embedded device;
Connection unit is set up, the local loopback address for inputting the embedded device is communicated with embedded device foundation
Connection;
Editable mode unit is set, for the attribute of the target program in the embedded device to be set into editable
Pattern;
Embedded device logs in unit, and the username and password for inputting the embedded device logs in described embedded set
It is standby.
7. the system according to claim 6 for logging in embedded device, it is characterised in that:The compiling rule file includes
First Android compiles rule file and the second Android compiling rule file, wherein first Android compiling rule file is used to retouch
State the compiling rule that the Telnet client source program is compiled as to the target program that the operating system is supported;Institute
Stating the second Android compiling rule file is used to describe to be compiled as the source program into the library file required for the target program;And
And the operating system of the embedded device is Android system.
8. the system according to claim 7 for logging in embedded device, it is characterised in that:The first Android compiling rule
Comprising variable function header file and termination function database header file, the variable function head in the header file searching route of file
File is used to describe variable and/or function, the end defined in the header file that the first Android compiling rule file is included
End functional database header file is used to describe Telnet client functionality.
9. the system according to claim 8 for logging in embedded device, it is characterised in that:
The header file of description Linux/Unix system functions in the variable function header file is description C language system function
Header file;
The program that being used in the variable function header file stops compiling and showing error message is to be used to define control compiling
The grand program of flow;
Main body program in the termination function database header file also includes C and modifies program, and the C modifications program is used to work as quilt
When compiling source program for C Plus Plus program, C language modification is carried out to the name variable in the target program after compiling generation.
10. a kind of system of debugging embedded equipment, it is characterised in that including:
The system of login embedded device described in claim any one of 6-9, for logging in the embedded device;
Debugging module, for being debugged to the application program in the embedded device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510012727.6A CN104536765B (en) | 2015-01-09 | 2015-01-09 | Login, the method and system of debugging embedded equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510012727.6A CN104536765B (en) | 2015-01-09 | 2015-01-09 | Login, the method and system of debugging embedded equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104536765A CN104536765A (en) | 2015-04-22 |
CN104536765B true CN104536765B (en) | 2017-09-12 |
Family
ID=52852297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510012727.6A Active CN104536765B (en) | 2015-01-09 | 2015-01-09 | Login, the method and system of debugging embedded equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104536765B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105893238A (en) * | 2015-08-04 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Code debugging method and device |
CN108153668A (en) * | 2017-11-20 | 2018-06-12 | 珠海格力节能环保制冷技术研究中心有限公司 | The adjustment method of application, apparatus and system |
CN108121646A (en) * | 2017-12-26 | 2018-06-05 | 东软集团股份有限公司 | Journal file acquisition methods, device, computer and storage medium |
CN111930359B (en) * | 2020-06-30 | 2023-12-22 | 绵阳慧视光电技术有限责任公司 | System and method for developing algorithm on heterogeneous embedded system |
CN112231211B (en) * | 2020-10-14 | 2024-01-26 | 天津津航计算技术研究所 | Method for solving Qt application debugging under embedded VxWorks operating system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102045397A (en) * | 2010-12-20 | 2011-05-04 | 福建星网视易信息***有限公司 | Method and equipment for logining embedded terminals by using Telnet to debug embedded terminals |
CN102609353A (en) * | 2012-01-17 | 2012-07-25 | 浪潮(北京)电子信息产业有限公司 | Method, device and system for managing program debugging |
-
2015
- 2015-01-09 CN CN201510012727.6A patent/CN104536765B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102045397A (en) * | 2010-12-20 | 2011-05-04 | 福建星网视易信息***有限公司 | Method and equipment for logining embedded terminals by using Telnet to debug embedded terminals |
CN102609353A (en) * | 2012-01-17 | 2012-07-25 | 浪潮(北京)电子信息产业有限公司 | Method, device and system for managing program debugging |
Also Published As
Publication number | Publication date |
---|---|
CN104536765A (en) | 2015-04-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104536765B (en) | Login, the method and system of debugging embedded equipment | |
US9348771B1 (en) | Cloud-based instrument driver system | |
US10338907B2 (en) | Cloud service framework for toolkit deployment | |
CN113162823B (en) | APP test simulation system and Internet of things simulation test method | |
US9282100B2 (en) | Privilege separation | |
CN111427321B (en) | Multi-protocol compatible MES data acquisition system and method thereof | |
Hwang et al. | AUTOCON-IoT: Automated and scalable online conformance testing for IoT applications | |
CN107113199B (en) | Analysis device for analyzing and processing communication sequences | |
CN104899070B (en) | Implementation method, system and the device of device command row | |
CN107566513B (en) | Test equipment DOS environmental data acquisition method and system | |
CN110677322B (en) | Python language-based industrial control safety equipment automatic test system and method | |
CN111723019A (en) | Interface debugging method and system | |
CN112379965B (en) | Sandbox file mapping system, client device, mapping end device, sandbox file mapping method and electronic equipment | |
CN116599949A (en) | Third party API protocol access method and system based on HTTP protocol | |
Cisco | Overview | |
Cisco | Overview | |
Cisco | Overview | |
Cisco | Overview | |
Cisco | Overview | |
Cisco | Product Overview | |
Cisco | Product Overview | |
Cisco | Product Overview | |
Cisco | Product Overview | |
Cisco | Product Overview | |
Cisco | Overview |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |