CN109388562A - Debug method and device, the system, storage medium, electronic device of pos machine - Google Patents
Debug method and device, the system, storage medium, electronic device of pos machine Download PDFInfo
- Publication number
- CN109388562A CN109388562A CN201811109443.9A CN201811109443A CN109388562A CN 109388562 A CN109388562 A CN 109388562A CN 201811109443 A CN201811109443 A CN 201811109443A CN 109388562 A CN109388562 A CN 109388562A
- Authority
- CN
- China
- Prior art keywords
- pos machine
- adb
- debugging
- address
- commissioning device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
Abstract
The present invention provides a kind of method and device, systems, storage medium, electronic device for debugging pos machine, wherein, this method comprises: determining that commissioning device is connected to specified WLAN, wherein the specified WLAN is the local area network that pos machine is wirelessly connected;The IP address that bridge ADB searches the pos machine is debugged by Android;The pos machine is locally debugged by the IP address and ADB instruction in the commissioning device.Through the invention, solve in the related technology can only debugging pos machine wired by usb data line the technical issues of.
Description
Technical field
The present invention relates to computer fields, in particular to a kind of method and device, system, storage for debugging pos machine
Medium, electronic device.
Background technique
In the related technology, POS (Point of sales) equipment is for payment function, due to the convenience of its movement, application
Widely, e.g., fresh eating and drinking establishment, the shops etc. of spicy soup.
In the related technology, in existing catering system POS machine on the market, inside configuration, exterior design very diversification,
Some POS machine, which subtract to reduce price, matches or in order to which system protection does not retain external USB mouth, leads to not carry out software
Debugging, causes in the debugging stage, after certain pos machine goes wrong, commissioning staff to have computer in arms from afar and line is gone to
Debugging modification is carried out beside machine.Using USB flash disk, need to tune-up datas such as installation kit to be used etc. be put into USB flash disk, be inserted into POS machine,
Installation and debugging are carried out, but for the POS machine of not USB port, are not acted on still.When debugging retains the POS machine of USB port,
A USB line is needed to carry out, probably due to the various external causes such as quality of line, lead to disconnecting in connection.Such as publication number
For the application documents of CN 107247645A, a kind of USB device node debugging POS machine wireless telecommunications mould by POS machine is disclosed
The scheme of block is a kind of debugging plan using USB interface.
For the above problem present in the relevant technologies, at present it is not yet found that the solution of effect.
Summary of the invention
The embodiment of the invention provides a kind of method and device, systems, storage medium, electronic device for debugging pos machine.
According to one embodiment of present invention, a kind of method for debugging pos machine is provided, comprising: determine that commissioning device connects
It is connected to specified WLAN, wherein the specified WLAN is the local area network that pos machine is wirelessly connected;Pass through Android tune
Try the IP address that bridge (Android Debug Bridge, ADB) searches the pos machine;Locally pass through institute in the commissioning device
It states IP address and the pos machine is debugged in ADB instruction.
Optionally, the pos machine and the commissioning device are locally connected by the IP address in the commissioning device;?
The commissioning device is local to send ADB instruction to the pos machine, wherein the ADB instruction is for debugging the pos machine.
Optionally, connecting the pos machine by the IP address includes: to send to carry the IP address to the pos machine
The first ADB order, wherein the first ADB order connects the pos machine for requesting;Second is sent to the pos machine
ADB order, wherein the 2nd ADB order is for confirming and the connection status of the pos machine;It is based on receiving the pos machine
When the confirmation instruction of the 2nd ADB order feedback, determine that the commissioning device has connected the pos machine.
Optionally, the confirmation instruction are as follows: connected to<device-ip-address>: 5555, wherein described
Device-ip-address is the IP address.
Optionally, before debugging bridge ADB by Android and searching the IP address of the pos machine, the method also includes:
The ADB is installed, Software Development Kit sdk develops environment and Android developing instrument ADT plug-in unit on the commissioning device;
ADB order platform is opened on the commissioning device.
Optionally, before debugging bridge ADB by Android and searching the IP address of the pos machine, the method also includes: really
Recognize the pos machine and obtained root authority, and starts universal serial bus usb debugging.
Optionally, debugging bridge ADB to search the IP address of the pos machine by Android includes: to specify wireless office by described
Domain net sends the 3rd ADB order to the pos machine, wherein the 3rd ADB order is for checking the IP address of the pos machine;
Receive the IP address of the pos machine feedback.
Optionally, the 3rd ADB order are as follows: adb shell ifconfig | grep Mask.
Optionally, it includes following for locally debugging the pos machine by the IP address and ADB instruction in the commissioning device
At least one: locally run the shell of the pos machine by ADB instruction by the IP address in the commissioning device
Order line;Locally manage the port mapping of the pos machine by ADB instruction by the IP address in the commissioning device
Table;It is locally instructed by the ADB by the apk software of the commissioning device local by the IP address in the commissioning device
It installs to the pos machine.
According to another embodiment of the invention, a kind of device for debugging POS machine is provided, comprising: determining module is used for
Determine that commissioning device is connected to specified WLAN, wherein the specified WLAN is the local that pos machine is wirelessly connected
Net;Searching module, for debugging the IP address that bridge ADB searches the pos machine by Android;Debugging module, in the tune
It tries equipment and the pos machine is locally debugged by the IP address and ADB instruction.
Optionally, connection unit, for locally connecting the pos machine and institute by the IP address in the commissioning device
State commissioning device;Debugging unit, for local to pos machine transmission ADB instruction in the commissioning device, wherein the ADB
Instruction is for debugging the pos machine.
Optionally, the connection unit is also used to: Xiang Suoshu pos machine sends the first ADB order for carrying the IP address,
Wherein, the first ADB order connects the pos machine for requesting;The 2nd ADB order is sent to the pos machine, wherein institute
The 2nd ADB order is stated for confirming and the connection status of the pos machine;The 2nd ADB order is based on receiving the pos machine
When the confirmation instruction of feedback, determine that the commissioning device has connected the pos machine.
Optionally, the searching module includes: transmission unit, for passing through the specified WLAN to the pos
Machine sends the 3rd ADB order, wherein the 3rd ADB order is for checking the IP address of the pos machine;Receiving unit is used for
Receive the IP address of the pos machine feedback.
Optionally, the 3rd ADB order are as follows: adb shell ifconfig | grep Mask.
Optionally, the debugging module includes at least one of: running unit, for locally logical in the commissioning device
Cross the shell-command row that the IP address runs the pos machine by ADB instruction;Administrative unit, in the debugging
Equipment locally manages the port mapping table of the pos machine by the IP address by ADB instruction;Installation unit is used for
It is locally instructed by the IP address by the ADB in the commissioning device and pacifies the apk software of the commissioning device local
It is filled to the pos machine.
According to another embodiment of the invention, a kind of system for debugging POS machine is provided, comprising: pos machine, debugging are set
It is standby, wherein pos machine and the commissioning device are all connected to same specified WLAN, and the commissioning device comprises determining that mould
Block, for determining that commissioning device is connected to the specified WLAN;Searching module is looked into for debugging bridge ADB by Android
Look for the IP address of the pos machine;Debugging module, for locally being adjusted by the IP address and ADB instruction in the commissioning device
Try the pos machine.
Optionally, the operating system of the pos machine is Android system.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Through the invention, determine that commissioning device and pos machine are connected to the same specified WLAN, wherein the finger
Determining WLAN is the local area network being wirelessly connected, and then debugs the IP address that bridge ADB searches the pos machine by Android, most
Remote debugging pos machine is locally instructed by the IP address and ADB in commissioning device afterwards, POS machine is connected by local area network wireless
It is debugged, saves the connection and usb mouthfuls of use of usb data line, solving can only have in the related technology by usb data line
Line debugs the technical issues of pos machine, improves the debugging efficiency of debugging side.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of debugging pos machine of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of method for debugging pos machine according to an embodiment of the present invention;
Fig. 3 is the flow diagram of medium-long range of embodiment of the present invention debugging pos machine;
Fig. 4 is the structural block diagram of the device of debugging POS machine according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of the system of debugging POS machine according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal, PC machine or class
As execute in arithmetic unit.For running on mobile terminals, Fig. 1 is a kind of debugging pos machine of the embodiment of the present invention
The hardware block diagram of mobile terminal.As shown in Figure 1, mobile terminal 10 may include that one or more (only shows one in Fig. 1
It is a) (processor 102 can include but is not limited to the processing of Micro-processor MCV or programmable logic device FPGA etc. to processor 102
Device) and memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the biography for communication function
Transfer device 106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to show
Meaning, does not cause to limit to the structure of above-mentioned mobile terminal.For example, mobile terminal 10 may also include it is more than shown in Fig. 1
Perhaps less component or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair
One of bright embodiment debugs the corresponding computer program of method of pos machine, and processor 102 is stored in memory by operation
Computer program in 104 realizes above-mentioned method thereby executing various function application and data processing.Memory 104
May include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory,
Or other non-volatile solid state memories.In some instances, memory 104 can further comprise relative to processor 102
Remotely located memory, these remote memories can pass through network connection to mobile terminal 10.The example packet of above-mentioned network
Include but be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to
It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as
RF) module is used to wirelessly be communicated with internet.
A kind of method for debugging pos machine is provided in the present embodiment, and Fig. 2 is a kind of debugging according to an embodiment of the present invention
The flow chart of the method for pos machine, as shown in Fig. 2, the process includes the following steps:
Step S202 determines that commissioning device is connected to specified WLAN, wherein the specified WLAN is
The local area network that pos machine is wirelessly connected;
For example, commissioning device and pos machine are connected to the same WiFi.
Step S204 debugs the IP address that bridge ADB searches the pos machine by Android;
Step S206 locally debugs the pos machine by the IP address and ADB instruction in the commissioning device.
Through the above steps, determine that commissioning device and pos machine are connected to the same specified WLAN, wherein described
Specified WLAN is the local area network being wirelessly connected, and then debugs the IP address that bridge ADB searches the pos machine by Android,
Remote debugging pos machine is locally finally instructed by the IP address and ADB in commissioning device, POS is connected by local area network wireless
Machine is debugged, and saves the connection and usb mouthfuls of use of usb data line, solving in the related technology can only be by usb data line
The technical issues of wired debugging pos machine, improves the debugging efficiency of debugging side.
Optionally, the executing subject of above-mentioned steps can be commissioning device, and commissioning device can be mobile terminal, e.g., pen
Remember this computer etc., the equipment that the POS machine of the present embodiment can be an entity can also be arranged by way of software at other
Software in terminal, such as food and drink settlement device, but not limited to this.
The entity POS machine of the present embodiment, full name are point of sale information control system, are a kind of equipped with bar code or OCR code skill
Art terminal reader has cash or amount cashier's function of bartering.Its main task is to provide data clothes to commodity and media transaction
Business and management function, and carry out the clearing of account.POS is a kind of multi-functional terminal end, may be mounted at deposit card or credit card
Franchised business and accept in site and be unified into network with computer, can be achieved with electronic funds and transfer accounts automatically, it have support consumption,
The functions such as pre-authorization, inquiry into balance and account transfer use safely, quickly, reliably.Importing POS system can solve retail business
Information management blind spot is the important component in chain store management information system.
In the present embodiment, the pos machine packet is locally debugged by the IP address and ADB instruction in the commissioning device
It includes:
S11 locally connects the pos machine and the commissioning device by the IP address in the commissioning device;
S12, it is local to pos machine transmission ADB instruction in the commissioning device, wherein the ADB instruction is for debugging
The pos machine.
Fig. 3 is the flow diagram of medium-long range of embodiment of the present invention debugging pos machine, as shown in figure 3, debugging side is that debugging is set
It is standby, include:
ADB installs in S301, debugging side.
S302, debugging side and POS machine are in same local area network.
S303, the IP address for checking POS machine.
S304, remote debugging can be carried out in debugging side by IP address and the ADB instruction of POS machine.
In an optional embodiment of the present embodiment, connecting the pos machine by the IP address includes:
S21, Xiang Suoshu pos machine send the first ADB order for carrying the IP address, wherein the first ADB order is used
The pos machine is connected in request;
S22, Xiang Suoshu pos machine send the 2nd ADB order, wherein the 2nd ADB order is for confirming and the pos
The connection status of machine;
S23 determines that the debugging is set when receiving the confirmation instruction that the pos machine is fed back based on the 2nd ADB order
It is standby to have connected the pos machine.In one example, the confirmation instruction are as follows: connected to < device-ip-
Address >: 5555, wherein the device-ip-address is the IP address.
Android device is connected with IP address by adb on commissioning device, is such as issued orders to the transmission of pos machine: adb
Connect<device-ip-address>,<device-ip-address>here are the pos machine equipment IP address found.
If can see that pos machine is replied includes the instruction of following field: connected to device-ip-address >: 5555,
Indicate pos machine and commissioning device successful connection.
In an optional embodiment of the present embodiment, the IP address that bridge ADB searches the pos machine is debugged by Android
Include:
S31 sends the 3rd ADB order to the pos machine by the specified WLAN, wherein the 3rd ADB
Order the IP address for checking the pos machine;In one example, the 3rd ADB order are as follows: adb shell
ifconfig|grep Mask。
S32 receives the IP address of the pos machine feedback.
It, can be in " setting "-" about mobile phone "-" status information "-" IP address " when searching the IP address of pos machine manually
It finds, in one example, IP address is checked by adb order, save the trouble searched manually, commissioning device is sent out to pos machine
It send as issued orders:
adb shell ifconfig|grep Mask
Pos machine output example:
inet addr:10.130.245.230Mask:255.255.255.252
inet addr:127.0.0.1Mask:255.0.0.0
So 10.130.245.230 is exactly pos machine equipment IP address.
In one example, when stating on scheme and pos machine equipment this order in use and not exporting, if it is confirmed that
Pos machine equipment is ined succession WiFi, be can be used as issued orders and is checked LAN IP:
adb shell ifconfig wlan0
Output example:
wlan0:ip 10.129.160.99mask 255.255.240.0flags[up broadcast running
multicast]。
Before being debugged, it is also necessary to prepare debugging enironment, debugging enironment include commissioning device end debugging enironment and
The debugging enironment of the debugging enironment of pos generator terminal, pos generator terminal can be determined by commissioning device, debug bridge ADB by Android
Before the IP address for searching the pos machine, further includes: the ADB, Software Development Kit are installed on the commissioning device
(Software Develomet Kit, sdk) develops environment and Android developing instrument ((Android Development
Tools), ADT) plug-in unit;ADB order platform is opened on the commissioning device.
In the embodiment of the debugging enironment of confirmation pos generator terminal, the pos machine is searched debugging bridge ADB by Android
IP address before, further includes: confirm that the pos machine has obtained root authority, and start universal serial bus usb debugging.
Although remote debugging does not need to appoint the permission for needing to start usb debugging using the usb interface for arriving usb line and pos machine.
In the present embodiment, commissioning device remote debugging debugging pos machine includes multiple debud modes, in the commissioning device
It is local to can be, but not limited to by the IP address and the ADB instruction debugging pos machine are as follows: locally to pass through in the commissioning device
The IP address runs the shell-command row of the pos machine by ADB instruction;Locally pass through institute in the commissioning device
State the port mapping table that IP address manages the pos machine by ADB instruction;Locally pass through the IP in the commissioning device
Address is instructed by the ADB by the apk software installation of the commissioning device local to the pos machine.
For different debugging purposes, commissioning device is realized by sending different ADB instructions, carries out illustrating below
It is bright:
adb install[option]<path>
Debugging purpose are as follows: Android application program is installed on equipment (pos machine), such as adb install test.apk.
adb uninstall[options]<PACKAGE>
Debugging purpose are as follows: unloading application, such as adb uninstall com.test.app.
adb pull<remote>[local]
Debugging purpose are as follows: from the file to computer (commissioning device) that device downloads are specified, such as adb pull/sdcard/
demo.mp4e:\。
adb push<local><remote>
Debugging purpose are as follows: upload specified file to equipment from computer, as adb push d: test.apk/sdcard.
adb logcat[option][filter-specs]
Debugging purpose are as follows: print log
adb shell dumpsys[options]
Debugging purpose are as follows: print system information, such as adb shell dumpsys battery
adb shell screencap<filename>
Debugging purpose are as follows: the screenshot capture for obtaining equipment, such as adb shell screencap/sdcard/
Screen.png, outflow is to locally: adb pull/sdcard/screen.png
adb root
Debugging purpose are as follows: adb is reentered with root identity
Other orders, such as ls, cd, rm, mkdir, touch, pwd, cp, mv, ifconfig, netstat, ping, ps,
Top etc., it is i.e. executable into adb shell, with linux.
In the scene for installing Android application program (e.g., apk software) on pos machine, adb install can divide following three
Step is completed:
Push apk file is to/data/local/tmp.
Call pm install installation.
Correspondence apk file under deletion/data/local/tmp.
In scene when uninstall on pos machine is applied, comprising:
It such as issues orders to the transmission of pos machine: adb uninstall [- k]<packagename>
<packagename>the packet name of expression application ,-k parameter is optional, indicates that unloading is applied but reservation data are gentle and deposits mesh
Record.
In the example that one unloads 360 softwares, commissioning device sends to pos machine and orders, order example: adb
Uninstall com.qihoo360.mobilesafe indicates unloading 360 mobile guards.
It is removed on pos machine in the scene for applying data and caching, adb order are as follows:
adb shell pm clear<packagename>
<packagename>indicate application name packet, the effect of this order is equivalent to the application message interface in setting
Click " removing caching " and " clearing data ".
Order example:
adb shell pm clear com.qihoo360.mobilesafe
Indicate the data and caching of removing 360 mobile guards.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
A kind of device for debugging POS machine is additionally provided in the present embodiment, and system, the device is for realizing above-described embodiment
And preferred embodiment, the descriptions that have already been made will not be repeated.As used below, term " module " may be implemented to make a reservation for
The combination of the software and/or hardware of function.It is hard although device described in following embodiment is preferably realized with software
The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 4 is the structural block diagram of the device of debugging POS machine according to an embodiment of the present invention, can be applied in client, visitor
Family end can be mobile terminal, PC etc., as shown in figure 4, the device includes:
Determining module 40, for determining that commissioning device is connected to specified WLAN, wherein the specified wireless local area
Net is the local area network that pos machine is wirelessly connected;
Searching module 42, for debugging the IP address that bridge ADB searches the pos machine by Android;
Debugging module 44, for locally debugging the pos by the IP address and ADB instruction in the commissioning device
Machine.
In an optional embodiment of the present embodiment, the debugging module includes: connection unit, in the tune
It tries equipment and the pos machine and the commissioning device is locally connected by the IP address;Debugging unit, for being set in the debugging
It is standby local to pos machine transmission ADB instruction, wherein the ADB instruction is for debugging the pos machine.
In an optional embodiment of the present embodiment, the connection unit is also used to: Xiang Suoshu pos machine, which is sent, to be carried
First ADB order of the IP address, wherein the first ADB order connects the pos machine for requesting;To the pos machine
Send the 2nd ADB order, wherein the 2nd ADB order is for confirming and the connection status of the pos machine;Described in reception
When the confirmation instruction that pos machine is fed back based on the 2nd ADB order, determine that the commissioning device has connected the pos machine.
In an optional embodiment of the present embodiment, the searching module includes: transmission unit, for by described
Specified WLAN sends the 3rd ADB order to the pos machine, wherein the 3rd ADB order is for checking the pos
The IP address of machine;Receiving unit, for receiving the IP address of the pos machine feedback.
In an optional embodiment of the present embodiment, the 3rd ADB order are as follows: adb shell ifconfig |
grep Mask。
In an optional embodiment of the present embodiment, the debugging module includes at least one of: running unit,
For locally running the shell-command of the pos machine by ADB instruction by the IP address in the commissioning device
Row;Administrative unit, for locally managing the pos machine by ADB instruction by the IP address in the commissioning device
Port mapping table;Installation unit, for locally being instructed by the ADB by institute by the IP address in the commissioning device
The apk software installation of commissioning device local is stated to the pos machine.
Fig. 5 is the schematic diagram of the system of debugging POS machine according to an embodiment of the present invention, which includes: pos machine 50, is adjusted
Try equipment 52, wherein pos machine and the commissioning device are all connected to same specified WLAN, and the commissioning device 52 wraps
It includes: determining module, for determining that commissioning device is connected to the specified WLAN;Searching module, for passing through Android tune
Examination bridge ADB searches the IP address of the pos machine;Debugging module, in the commissioning device locally by the IP address and
The pos machine is debugged in ADB instruction.
The operating system of the pos machine is Android system.
When system includes multiple pos machines, a commissioning device can debug multiple pos machines, and the identity of each pos machine is known
Other code is identified by its address ip or MAC Address, is identified and is matched by identity code, is being connected and is being communicated
When, authentication and encryption mechanism can also be set.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
S1 determines that commissioning device is connected to specified WLAN, wherein the specified WLAN be pos machine without
The local area network of line connection;
S2 debugs the IP address that bridge ADB searches the pos machine by Android;
S3 locally debugs the pos machine by the IP address and ADB instruction in the commissioning device.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 determines that commissioning device is connected to specified WLAN, wherein the specified WLAN be pos machine without
The local area network of line connection;
S2 debugs the IP address that bridge ADB searches the pos machine by Android;
S3 locally debugs the pos machine by the IP address and ADB instruction in the commissioning device.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of method for debugging pos machine characterized by comprising
Determine that commissioning device is connected to specified WLAN, wherein the specified WLAN is what pos machine was wirelessly connected
Local area network;
The IP address that bridge ADB searches the pos machine is debugged by Android;
The pos machine is locally debugged by the IP address and ADB instruction in the commissioning device.
2. the method according to claim 1, wherein in the commissioning device locally by the IP address and
The pos machine is debugged in ADB instruction
The pos machine and the commissioning device are locally connected by the IP address in the commissioning device;
It is local to pos machine transmission ADB instruction in the commissioning device, wherein the ADB instruction is for debugging the pos
Machine.
3. according to the method described in claim 2, it is characterized in that, including: by the IP address connection pos machine
The first ADB order for carrying the IP address is sent to the pos machine, wherein the first ADB order is for the company of request
Connect the pos machine;
The 2nd ADB order is sent to the pos machine, wherein the 2nd ADB order is for confirming and the connection of the pos machine
State;
When receiving the confirmation instruction that the pos machine is fed back based on the 2nd ADB order, determine that the commissioning device has connected
Connect the pos machine.
4. the method according to claim 1, wherein debugging the IP that bridge ADB searches the pos machine by Android
Before address, the method also includes:
The ADB is installed on the commissioning device, Software Development Kit sdk develops environment and Android developing instrument ADT
Plug-in unit;
ADB order platform is opened on the commissioning device.
5. the method according to claim 1, wherein debugging the IP that bridge ADB searches the pos machine by Android
Before address, the method also includes:
Confirm that the pos machine has obtained root authority, and starts universal serial bus usb debugging.
6. the method according to claim 1, wherein with searching the IP of the pos machine by Android debugging bridge ADB
Location includes:
The 3rd ADB order is sent to the pos machine by the specified WLAN, wherein the 3rd ADB order is used for
Check the IP address of the pos machine;
Receive the IP address of the pos machine feedback.
7. a kind of device for debugging POS machine characterized by comprising
Determining module, for determining that commissioning device is connected to specified WLAN, wherein the specified WLAN is
The local area network that pos machine is wirelessly connected;
Searching module, for debugging the IP address that bridge ADB searches the pos machine by Android;
Debugging module, for locally debugging the pos machine by the IP address and ADB instruction in the commissioning device.
8. a kind of system for debugging POS machine characterized by comprising pos machine, commissioning device, wherein pos machine and the debugging
Equipment is all connected to same specified WLAN, and the commissioning device includes:
Determining module, for determining that commissioning device is connected to the specified WLAN;
Searching module, for debugging the IP address that bridge ADB searches the pos machine by Android;
Debugging module, for locally debugging the pos machine by the IP address and ADB instruction in the commissioning device.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to perform claim when operation and requires method described in 1 to 6 any one.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to run the computer program in method described in perform claim 1 to 6 any one of requirement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811109443.9A CN109388562A (en) | 2018-09-21 | 2018-09-21 | Debug method and device, the system, storage medium, electronic device of pos machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811109443.9A CN109388562A (en) | 2018-09-21 | 2018-09-21 | Debug method and device, the system, storage medium, electronic device of pos machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109388562A true CN109388562A (en) | 2019-02-26 |
Family
ID=65418940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811109443.9A Pending CN109388562A (en) | 2018-09-21 | 2018-09-21 | Debug method and device, the system, storage medium, electronic device of pos machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109388562A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110806976A (en) * | 2019-10-24 | 2020-02-18 | 青岛英泰软件技术有限公司 | Method for remotely pushing shell and CMD (command-to-command) commands |
CN111343326A (en) * | 2020-04-22 | 2020-06-26 | Oppo广东移动通信有限公司 | Method and related device for acquiring test log |
CN111899443A (en) * | 2020-08-13 | 2020-11-06 | 深圳大势智能科技有限公司 | Method and device for debugging traditional POS machine on intelligent POS machine |
CN112162919A (en) * | 2020-09-11 | 2021-01-01 | 上海擎感智能科技有限公司 | Debugging method and system for vehicle-mounted equipment and computer readable storage medium |
CN112165715A (en) * | 2020-09-25 | 2021-01-01 | 珠海格力电器股份有限公司 | Equipment detection method and device, storage medium and electronic device |
CN112261478A (en) * | 2020-12-23 | 2021-01-22 | 南京炫佳网络科技有限公司 | Log debugging method, device and system, terminal device and set top box |
CN113535325A (en) * | 2021-06-29 | 2021-10-22 | 惠州华阳通用电子有限公司 | Double-system debugging method based on virtual network card |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014187106A1 (en) * | 2013-05-20 | 2014-11-27 | 中兴通讯股份有限公司 | Method and device for starting debugging port of terminal, and terminal |
CN104978248A (en) * | 2014-10-15 | 2015-10-14 | 武汉安天信息技术有限责任公司 | Method and system for remotely managing mobile terminal APP on basis of ADB |
CN105847091A (en) * | 2016-05-27 | 2016-08-10 | 微梦创科网络科技(中国)有限公司 | Method, device and system for monitoring network traffic in real time of android system |
CN106934958A (en) * | 2017-03-10 | 2017-07-07 | 东软集团股份有限公司 | The method to set up and device of POS printing |
CN107026764A (en) * | 2016-02-02 | 2017-08-08 | 腾讯科技(深圳)有限公司 | A kind of remote debugging method, equipment, server and system |
CN107247645A (en) * | 2017-05-15 | 2017-10-13 | 万达百汇科技(深圳)有限公司 | POS, POS wireless communication module Debugging message grasping means and device |
CN107566519A (en) * | 2017-09-27 | 2018-01-09 | 北京蜂语网络科技有限公司 | A kind of code operation method, apparatus, server and server cluster |
CN108337739A (en) * | 2018-01-30 | 2018-07-27 | 上海商米科技有限公司 | Establish method and device, the data processing method of wireless debugging connection |
-
2018
- 2018-09-21 CN CN201811109443.9A patent/CN109388562A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014187106A1 (en) * | 2013-05-20 | 2014-11-27 | 中兴通讯股份有限公司 | Method and device for starting debugging port of terminal, and terminal |
CN104978248A (en) * | 2014-10-15 | 2015-10-14 | 武汉安天信息技术有限责任公司 | Method and system for remotely managing mobile terminal APP on basis of ADB |
CN107026764A (en) * | 2016-02-02 | 2017-08-08 | 腾讯科技(深圳)有限公司 | A kind of remote debugging method, equipment, server and system |
CN105847091A (en) * | 2016-05-27 | 2016-08-10 | 微梦创科网络科技(中国)有限公司 | Method, device and system for monitoring network traffic in real time of android system |
CN106934958A (en) * | 2017-03-10 | 2017-07-07 | 东软集团股份有限公司 | The method to set up and device of POS printing |
CN107247645A (en) * | 2017-05-15 | 2017-10-13 | 万达百汇科技(深圳)有限公司 | POS, POS wireless communication module Debugging message grasping means and device |
CN107566519A (en) * | 2017-09-27 | 2018-01-09 | 北京蜂语网络科技有限公司 | A kind of code operation method, apparatus, server and server cluster |
CN108337739A (en) * | 2018-01-30 | 2018-07-27 | 上海商米科技有限公司 | Establish method and device, the data processing method of wireless debugging connection |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110806976A (en) * | 2019-10-24 | 2020-02-18 | 青岛英泰软件技术有限公司 | Method for remotely pushing shell and CMD (command-to-command) commands |
CN111343326A (en) * | 2020-04-22 | 2020-06-26 | Oppo广东移动通信有限公司 | Method and related device for acquiring test log |
CN111899443A (en) * | 2020-08-13 | 2020-11-06 | 深圳大势智能科技有限公司 | Method and device for debugging traditional POS machine on intelligent POS machine |
CN112162919A (en) * | 2020-09-11 | 2021-01-01 | 上海擎感智能科技有限公司 | Debugging method and system for vehicle-mounted equipment and computer readable storage medium |
CN112162919B (en) * | 2020-09-11 | 2024-03-12 | 上海擎感智能科技有限公司 | Debugging method and system of vehicle-mounted equipment and computer readable storage medium |
CN112165715A (en) * | 2020-09-25 | 2021-01-01 | 珠海格力电器股份有限公司 | Equipment detection method and device, storage medium and electronic device |
CN112165715B (en) * | 2020-09-25 | 2021-12-03 | 珠海格力电器股份有限公司 | Equipment detection method and device, storage medium and electronic device |
CN112261478A (en) * | 2020-12-23 | 2021-01-22 | 南京炫佳网络科技有限公司 | Log debugging method, device and system, terminal device and set top box |
CN112261478B (en) * | 2020-12-23 | 2021-03-05 | 南京炫佳网络科技有限公司 | Log debugging method, device and system, terminal device and set top box |
CN113535325A (en) * | 2021-06-29 | 2021-10-22 | 惠州华阳通用电子有限公司 | Double-system debugging method based on virtual network card |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109388562A (en) | Debug method and device, the system, storage medium, electronic device of pos machine | |
US10410481B2 (en) | Configuring point-of-sale (POS) applications to communicate with peripheral devices in a POS system | |
US9509801B2 (en) | Data collection system having EIR terminal interface node | |
US11361322B2 (en) | Dynamic point of sale (‘POS’) transaction processing for networked computing devices | |
CN103907104B (en) | Application store interface for client device remote management | |
CN109218150A (en) | Control method, the shared application method of household electrical appliance, computer readable storage medium and household electrical appliance of household electrical appliance | |
US20080147552A1 (en) | Electronic payment processing system | |
CN106843976B (en) | Method and apparatus for generating image file | |
CN101601197A (en) | Generate the transaction log of exchanges data between portable mobile communication apparatus and other wireless device | |
CN105893097A (en) | Method and device for processing option information of BIOS (basic input output system) | |
CN107516201A (en) | A kind of order method of payment | |
US10430789B1 (en) | System, method and computer program product for secure retail transactions (SRT) | |
US8666892B2 (en) | Electronic payment processing system | |
CN101378396A (en) | Phishing notification service | |
CN102457504A (en) | Application store system and method for carrying out application development by using same | |
CN106339884A (en) | Monitoring device comprehensive management system | |
CN104680368A (en) | Method and system for obtaining order by near-field card-free payment | |
CN108536574A (en) | The method and device of application program debugging | |
CN105184565A (en) | Card business realizing method, business platform and system | |
US9164740B2 (en) | System and method for replacing java beans | |
CN106130740B (en) | Digital certificate synchronous method, digital signature server and digital certificate synchronization system | |
US20040153559A1 (en) | Data processing apparatus | |
CN106656540A (en) | Client side configuration method, device and system | |
CA2935227C (en) | Method for processing transactional data, corresponding device and program | |
US10854049B2 (en) | Hardened remote point of sale terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190226 |
|
RJ01 | Rejection of invention patent application after publication |