CN114741112A - Debugging method and device of wearable device and electronic device - Google Patents
Debugging method and device of wearable device and electronic device Download PDFInfo
- Publication number
- CN114741112A CN114741112A CN202210168585.2A CN202210168585A CN114741112A CN 114741112 A CN114741112 A CN 114741112A CN 202210168585 A CN202210168585 A CN 202210168585A CN 114741112 A CN114741112 A CN 114741112A
- Authority
- CN
- China
- Prior art keywords
- configuration data
- wearable device
- module
- near field
- field communication
- 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
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000004891 communication Methods 0.000 claims abstract description 152
- 230000004044 response Effects 0.000 claims description 19
- 238000012545 processing Methods 0.000 claims description 11
- 230000006870 function Effects 0.000 description 30
- 238000010586 diagram Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 12
- 238000012360 testing method Methods 0.000 description 11
- 230000008676 import Effects 0.000 description 10
- 230000005540 biological transmission Effects 0.000 description 9
- 238000004590 computer program Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- UQBNSDYXYHVZOD-UHFFFAOYSA-N (4-hydroxy-8-methyl-2-oxo-3,4-dihydropyrido[4,3-e][1,3]oxazin-5-yl)methyl dihydrogen phosphate Chemical compound OC1NC(=O)OC2=C1C(COP(O)(O)=O)=CN=C2C UQBNSDYXYHVZOD-UHFFFAOYSA-N 0.000 description 1
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 101000794282 Homo sapiens Putative protein C3P1 Proteins 0.000 description 1
- 102100030156 Putative protein C3P1 Human genes 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the disclosure discloses a debugging method and a debugging device of wearable equipment and electronic equipment, wherein the debugging method of the wearable equipment comprises the following steps: acquiring first configuration data, wherein the first configuration data is data currently used for configuring a near field communication chip of a wearable device; responding to debugging operation of a user, and adjusting the first configuration data to obtain second configuration data; and sending the second configuration data to the wearable device so that the wearable device configures the near field communication chip based on the second configuration data.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of wearable equipment, in particular to a debugging method and device of the wearable equipment and electronic equipment.
Background
Near Field Communication (NFC) is a high-frequency wireless Communication technology for realizing contactless data transmission between devices.
With the continuous improvement of the NFC technology, the application of the NFC technology in wearable devices is popularized. Based on the NFC chip in the wearable device, near field communication between different card reading devices can be achieved. In the actual application process, due to the diversification of user interaction types in different application scenes, in order to meet the changeable application requirements of users, various types of NFC functions can be built in the wearable device. The NFC function may be used in a card reading and swiping scenario (e.g., subway card), which requires an NFC chip to generate a radio frequency field to implement the card reading or swiping. Therefore, the NFC chip of the wearable device needs to be debugged.
In the related art, when the NFC chip of the wearable device is debugged, the configuration parameters solidified in the software version need to be modified, so as to configure the NFC chip of the wearable device through the regenerated software. However, this method has high requirements on software environment, needs to be performed in a laboratory, and is difficult to realize external field test. In addition, this approach requires the reliance on specialized developers and is inefficient.
Disclosure of Invention
An object of the embodiment of the present disclosure is to provide a new technical scheme for debugging an NFC chip of a wearable device, which can solve the problems that the existing test mode cannot be performed in an external field environment and the test efficiency is low.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for debugging a wearable device, the method including:
acquiring first configuration data, wherein the first configuration data is data currently used for configuring a near field communication chip of a wearable device;
responding to debugging operation of a user, and adjusting the first configuration data to obtain second configuration data;
and sending the second configuration data to the wearable device so that the wearable device configures the near field communication chip based on the second configuration data.
Optionally, the obtaining the first configuration data includes:
acquiring first configuration data from a database; or,
sending a first instruction to the wearable device, and receiving first configuration data returned by the wearable device in response to the first instruction.
Optionally, the sending the second configuration data to a wearable device to enable the wearable device to configure the near field communication chip based on the second configuration data includes:
and sending the second configuration data to another electronic device, so that the second configuration data is converted by the another electronic device and then sent to the wearable device, and the wearable device configures the near field communication chip based on the second configuration data.
Optionally, after the sending the second configuration data to the wearable device to enable the wearable device to configure the near field communication chip based on the second configuration data, the method further includes:
sending a second instruction to the wearable device, and receiving application data returned by the wearable device in response to the second instruction;
and displaying the application data.
Optionally, after the sending the second configuration data to the wearable device to enable the wearable device to configure the near field communication chip based on the second configuration data, the method further includes:
deriving and storing the second configuration data.
According to a second aspect of the embodiments of the present disclosure, there is provided a commissioning apparatus of a wearable device, the apparatus including:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring first configuration data, and the first configuration data is data currently used for configuring a near field communication chip of the wearable device;
the debugging module is used for responding to debugging operation of a user and adjusting the first configuration data to obtain second configuration data;
a sending module, configured to send the second configuration data to a wearable device, so that the wearable device configures the near field communication chip based on the second configuration data.
Optionally, the obtaining module includes:
the first acquisition unit is used for acquiring first configuration data from a database; or,
the second obtaining unit is used for sending a first instruction to the wearable device and receiving first configuration data returned by the wearable device in response to the first instruction.
Optionally, the sending module includes:
the sending unit is configured to send the second configuration data to another electronic device, so that the second configuration data is converted by the another electronic device and then sent to the wearable device, so that the wearable device configures the near field communication chip based on the second configuration data.
Optionally, the apparatus further comprises:
the query module is used for sending a second instruction to the wearable device and receiving application data returned by the wearable device in response to the second instruction;
and the display module is used for displaying the application data.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a memory for storing executable computer instructions;
a processor for executing the method of commissioning a wearable device according to the first aspect of the embodiments of the present disclosure under the control of the executable computer instructions;
and the communication module is used for establishing communication connection with the wearable equipment.
Optionally, the communication module is further configured to establish a communication connection with another electronic device.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the method for debugging a wearable device according to the first aspect of the embodiments of the present disclosure.
According to the embodiment of the disclosure, the first configuration data of the near field communication chip currently used for configuring the wearable device is acquired, the first configuration data is adjusted in response to debugging operation of a user, the second configuration data is obtained, and the second configuration data is sent to the wearable device, so that the wearable device configures the near field communication chip based on the second configuration data. In addition, in the debugging process, software configuration does not need to be modified, the near field communication chip can be debugged directly through the electronic equipment, the debugging process is simplified, the operation is simple and convenient, a user can operate according to prompts, and labor cost can be saved. In addition, the first configuration data can be adjusted according to actual needs, different requirements of developers and testers can be met, and debugging efficiency is further improved.
Other features of, and advantages with, the disclosed embodiments will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope. For a person skilled in the art, it is possible to derive other relevant figures from these figures without inventive effort.
FIG. 1 is a hardware configuration diagram of a debugging system that may be used to implement the debugging method of an embodiment;
FIG. 2 is a flow diagram of a method of commissioning a wearable device according to one embodiment;
FIG. 3 is a functional block diagram of a commissioning apparatus of a wearable device according to one embodiment;
FIG. 4 is a hardware architecture diagram of an electronic device according to one embodiment;
FIG. 5 is a diagram of a hardware architecture of an electronic device according to an example;
fig. 6 is a hardware configuration diagram of an electronic apparatus according to another example.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of parts and steps, numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be discussed further in subsequent figures.
< hardware configuration >
Fig. 1 is a hardware configuration diagram of a debugging system that can be used to implement the debugging method of an embodiment.
As shown in fig. 1, the commissioning system 100 includes a wearable device 1000 and an electronic device 2000.
The wearable device 1000 may be a device having an NFC chip. The wearable device 1000 may be, for example, a smart watch, a smart bracelet, or the like.
In one embodiment, as shown in fig. 1, wearable device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a microphone 1700, and a speaker 1800. The processor 1100 may include, but is not limited to, a central processing unit CPU, a microprocessor MCU, or the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, various bus interfaces such as a serial bus interface (including a USB interface), a parallel bus interface, and the like. The communication device 1400 is capable of wired or wireless communication, for example, a bluetooth communication device. The display device 1500 is, for example, a liquid crystal display, an LED display, a touch display, or the like. The input device 1600 includes, for example, a touch screen or the like. The microphone 1700 may be used for inputting voice information. The speaker 1800 may be used to output voice information.
Although a plurality of devices of the wearable apparatus 1000 are shown in fig. 1, the present invention may relate only to some of the devices, for example, the wearable apparatus 1000 relates only to the processor 1100, the memory 1200 and the communication device 1400.
In this embodiment, the electronic device 2000 is configured to establish a communication connection with the wearable device 1000, and debug an NFC chip of the wearable device 1000. The electronic device 2000 may be, for example, a mobile phone, a laptop, a tablet computer, a palmtop computer, etc., which is not limited in the embodiment of the present disclosure.
In one embodiment, as shown in fig. 1, the electronic device 2000 may include a processor 2100, a memory 2200, an interface device 2300, a communication device 2400, a display device 2500, an input device 2600, a microphone 2700, and a speaker 2800. The processor 2100 may include, but is not limited to, a central processing unit CPU, a microprocessor MCU, and the like. The memory 2200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 2300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, and the like. Communication device 2400 is capable of wired or wireless communication, for example. The display device 2500 is, for example, a liquid crystal display, an LED display, a touch display, or the like. The input device 2600 includes, for example, a touch panel, a keyboard, and the like. The microphone 2700 may be used to input voice information. The speaker 2800 may be used to output voice information.
Although a plurality of devices of the electronic apparatus 2000 are illustrated in fig. 1, the present invention may only relate to some of the devices, for example, the electronic apparatus 2000 only relates to the processor 2100, the memory 2200, the communication device 2400, and the display device 2500.
In this embodiment, the memory 2200 of the electronic device 2000 is used for storing program instructions for controlling the processor 2100 to operate to execute the debugging method of the wearable device, and a technician may design the instructions according to the scheme disclosed in the present invention. How the instructions control the operation of the processor is well known in the art and will not be described in detail here.
It should be understood that although fig. 1 only shows one wearable device 1000 and electronic device 2000, the number of each is not meant to be limited, and multiple wearable devices 1000 and multiple electronic devices 2000 may be included in the commissioning system 100.
In the above description, the skilled person can design the instructions according to the solutions provided in the present disclosure. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
< method examples >
The embodiment of the disclosure provides a debugging method of a wearable device, which is implemented by an electronic device 2000. As shown in fig. 2, the method for debugging the wearable device includes the following steps: step S2100 to step S2300.
Step S2100, obtaining first configuration data, where the first configuration data is data currently used for configuring a near field communication chip of a wearable device.
In this embodiment, a near field communication chip (NFC chip) of a wearable device generates a radio frequency field to implement various NFC functions. Such as a card reading function, a card swiping function, etc. Based on this, the first configuration data may comprise data for configuring the radio frequency performance of the NFC chip. For example, the first configuration data may include phase, reception voltage, reception sensitivity, frequency offset, and the like of the radio frequency.
It should be noted here that the first configuration data may also include configuration data of a routing module of a near field communication chip of the wearable device, and the first configuration data may also include configuration data of a protocol module of the near field communication chip of the wearable device, which is not limited in this disclosure.
For example, the first configuration data may be data currently used for configuring the near field communication chip of the wearable device, and the first configuration data may be a last version of configuration data of the near field communication chip of the wearable device, which may include a complete data packet for configuring the near field communication chip of the wearable device. The first configuration data may also be part of data for configuring the near field communication chip of the wearable device, i.e. configuration data for configuring a certain function of the near field communication chip, as an example.
An embodiment of acquiring the first configuration data will be described below with respect to a difference in the acquired first configuration data.
In one embodiment, in a case where the first configuration data is a last version of configuration data of a near field communication chip of the wearable device, acquiring the first configuration data may further include: first configuration data is obtained from a database.
In this embodiment, in the case where the first configuration data is the last version of the configuration data of the near field communication chip of the wearable device, the first configuration data may be obtained in advance, that is, obtained when the near field communication chip of the wearable device was last configured, and the first configuration data may be stored in the database in the form of a document. In this way, when the near field communication chip of the wearing device is configured, the first configuration data, that is, the configuration data of the previous version of the near field communication chip, is imported to adjust the first configuration data according to actual needs. It should be noted that the database may be a cache of the electronic device, and may also be a cloud database.
In this embodiment, when the configuration data of the near field communication chip of the wearable device is debugged, the first configuration data can be acquired from the database, that is, the configuration data of the last version of the near field communication chip of the wearable device is acquired, so that the data transmission speed can be increased, the current complete configuration data of the near field communication chip of the wearable device can be acquired quickly, and the debugging efficiency can be increased.
In another embodiment, in the case that the first configuration data is configuration data for configuring a certain function of the near field communication chip, acquiring the first configuration data may further include: sending a first instruction to the wearable device, and receiving first configuration data returned by the wearable device in response to the first instruction.
In this embodiment, the first instruction may be an instruction sent by the electronic device to the wearable device to acquire the first configuration data. Illustratively, the first instruction may be an nci (nfc Control interface) instruction.
In specific implementation, the electronic device may send a first instruction to the wearable device, and the wearable device returns corresponding first configuration data to the electronic device according to information carried by the first instruction.
In this embodiment, when debugging the configuration data of the near field communication chip of the wearable device, a first instruction may be sent to the wearable device for a certain function of the near field communication chip of the wearable device, so as to obtain first configuration data for the certain function of the near field communication chip, and modify the first configuration data, so as to implement debugging the configuration data of the certain function of the near field communication chip of the wearable device. Therefore, different requirements of software developers and radio frequency debugging personnel can be met, and the debugging efficiency is further improved.
In one embodiment, prior to obtaining the first configuration data, the method may further comprise: based on the communication connection established between the electronic equipment and the wearable equipment, a test instruction is sent to the wearable equipment, and first information returned by the wearable equipment in response to the test instruction is received and displayed.
In this embodiment, the test instruction may be an instruction for testing a communication connection state of the electronic device and the wearable device. The first information is used for indicating that the electronic equipment and the wearable equipment are in a normal communication connection state. The first information may be CPLP information, for example.
When the wearable device is implemented, the electronic device is controlled to periodically send a group of test data to the wearable device, and a confirmation message of the test data returned by the wearable device is received, so that whether the communication connection state between the electronic device and the wearable device is normal or not is determined. And then, receiving and displaying the first information under the condition that the electronic equipment and the wearable equipment are determined to be in a communication connection state. For example, the electronic device may send a set of test data to the wearable device every 10s, that is, so that the electronic device maintains a set of heartbeats with the wearable device.
In this embodiment, at the in-process of debugging wearing equipment through electronic equipment, electronic equipment sends test data to wearing equipment, can be that electronic equipment and wearing equipment keep a set of heartbeat to guarantee that electronic equipment and wearing equipment are in normal connected state all the time, avoid because communication connection breaks off and lead to the debugging failure, can promote the efficiency of debugging.
After step S2100, step S2200 is executed to adjust the first configuration data in response to a debugging operation of a user, so as to obtain second configuration data.
In the present embodiment, after the first configuration data is acquired, the first configuration data is displayed. The debugging operation may be a user modification operation of the first configuration data. For example, modification operations on the phase of the radio frequency, the received voltage, the received sensitivity, the frequency offset, etc. data.
The second configuration data may be data obtained by adjusting the configuration data of the previous version according to the requirement. That is, the second configuration data is the current version of the configuration data.
Step S2300, sending the second configuration data to a wearable device, so that the wearable device configures the near field communication chip based on the second configuration data.
In this embodiment, the sending of the second configuration data to the wearable device may be sending the second configuration data to the wearable device based on a communication connection established between the electronic device and the wearable device. Illustratively, the second configuration data is transmitted to the wearable device through the serial port communication module, for example, the second configuration data is transmitted to the wearable device through a UART (Universal Asynchronous Receiver/Transmitter). The second configuration data is sent to the wearable device, illustratively, through the USB communication module. The second configuration data is sent to the wearable device, illustratively, through a bluetooth communication module.
It should be noted here that, according to the interface types of the electronic device and the wearable device, a corresponding communication module may be selected for data transmission. For example, in a function development stage of the wearable device, the wearable device is usually in an unpackaged state, and may communicate with the electronic device through the serial port communication module or the USB communication module, so that after obtaining the second configuration data after debugging, the second configuration data may be sent to the wearable device through the serial port communication module or the USB communication module. For example, after the wearable device is packaged, the wearable device typically communicates with the electronic device through the bluetooth communication module, so that after the second configuration data after being debugged is obtained, the second configuration data can be sent to the wearable device through the bluetooth module.
When the method is specifically implemented, the electronic equipment sends the second configuration data to the wearable equipment, the wearable equipment can analyze the second configuration data and send the analyzed second configuration data to the near field communication chip, and then the near field communication chip of the wearable equipment returns an execution result to the electronic equipment to complete debugging of the near field communication chip of the wearable equipment.
In one embodiment, the sending the second configuration data to a wearable device to cause the wearable device to configure the near field communication chip based on the second configuration data may further include: and sending the second configuration data to another electronic device, so that the second configuration data is converted by the another electronic device and then sent to the wearable device, and the wearable device configures the near field communication chip based on the second configuration data.
In this embodiment, the other electronic device may be an electronic device that establishes a communication connection with the wearable device. Illustratively, the other electronic device may be an electronic device having a bluetooth communication module. For example, the electronic device for implementing the debugging method is a PC device, and the other electronic device is a mobile terminal, wherein the mobile terminal has a bluetooth communication module and can directly establish communication connection with the wearable device.
In this embodiment, under the condition that the electronic device cannot be in communication connection with the wearable device, after the second configuration data after debugging is acquired, the second configuration data may be forwarded to the wearable device by another electronic device, so as to implement debugging of the near field communication chip of the wearable device. The embodiment provides multiple communication modes, can meet different debugging scenes, and has wider application range.
In one embodiment, after the sending the second configuration data to the wearable device to enable the wearable device to configure the near field communication chip based on the second configuration data, the method may further include: sending a second instruction to the wearable device, and receiving application data returned by the wearable device in response to the second instruction; and displaying the application data.
In this embodiment, the second instruction may be an instruction for querying application data of a near field communication chip of the wearable device. The second instruction may be an APDU (Application Protocol data unit, information unit transferred between the smart card and the smart card reader) instruction. The application data may be application data stored in an ESE security chip of a near field communication chip of the wearable device. The application data may include application types enabled by the NFC chip, memory data of the NFC chip, chip state data of the NFC chip, and the like. In specific implementation, the APDU instruction may be sent to the wearable device to acquire application data stored in the ESE security chip of the near field communication chip of the wearable device.
In this embodiment, in the debugging process of the near field communication chip of the wearable device, the application data of the near field communication chip can be queried through the second instruction, so that the debugging is more convenient.
In one embodiment, after the sending the second configuration data to the wearable device to cause the wearable device to configure the near field communication chip based on the second configuration data, the method further includes: deriving and storing the second configuration data.
In specific implementation, under the condition that the second configuration data is sent to the wearable device and the execution result returned by the wearable device is received, the second configuration data can be exported and stored, and the version number of the second configuration data is marked, so that the near field communication chip of the wearable device can be updated and debugged again conveniently.
It should be noted here that, in the present embodiment, a debugging record may also be generated and stored. Therefore, developers and debugging personnel can conveniently check the debugging condition of the wearable device before the near field communication chip, the configuration data of the near field communication chip of the wearable device is debugged to be the latest version according to the debugging record, and the operation is convenient.
According to the embodiment of the disclosure, the first configuration data of the near field communication chip currently used for configuring the wearable device is acquired, the first configuration data is adjusted in response to debugging operation of a user, the second configuration data is obtained, and the second configuration data is sent to the wearable device, so that the wearable device configures the near field communication chip based on the second configuration data. In addition, in the debugging process, the debugging of the near field communication chip can be directly realized through the electronic equipment without modifying software configuration, the debugging process is simplified, the operation is simple and convenient, a user can operate according to prompts, and the labor cost can be saved. In addition, the first configuration data can be adjusted according to actual needs, different requirements of developers and testers can be met, and debugging efficiency is further improved.
< apparatus embodiment >
The embodiment of the present disclosure provides a debugging apparatus of a wearable device, and as shown in fig. 3, the debugging apparatus 300 of the wearable device may include an obtaining module 310, a debugging module 320, and a sending module 330.
The obtaining module 310 may be configured to obtain first configuration data, where the first configuration data is data currently used for configuring a near field communication chip of a wearable device;
the debugging module 320 may be configured to adjust the first configuration data in response to a debugging operation of a user, so as to obtain second configuration data;
the sending module 330 may be configured to send the second configuration data to a wearable device, so that the wearable device configures the near field communication chip based on the second configuration data.
In one embodiment, the obtaining module may further include: the first acquisition unit is used for acquiring first configuration data from a database; or the second obtaining unit is used for sending a first instruction to the wearable device and receiving first configuration data returned by the wearable device in response to the first instruction.
In one embodiment, the sending module includes: the sending unit is configured to send the second configuration data to another electronic device, so that the second configuration data is converted by the another electronic device and then sent to the wearable device, so that the wearable device configures the near field communication chip based on the second configuration data.
In one embodiment, the apparatus further comprises: the query module is used for sending a second instruction to the wearable device and receiving application data returned by the wearable device in response to the second instruction; and the display module is used for displaying the application data.
In one embodiment, the apparatus further comprises: an export module for exporting the second configuration data; and the storage module is used for storing the second configuration data.
According to the embodiment of the disclosure, the first configuration data of the near field communication chip currently used for configuring the wearable device is acquired, the first configuration data is adjusted in response to debugging operation of a user, the second configuration data is obtained, and the second configuration data is sent to the wearable device, so that the wearable device configures the near field communication chip based on the second configuration data. In addition, in the debugging process, software configuration does not need to be modified, the near field communication chip can be debugged directly through the electronic equipment, the debugging process is simplified, the operation is simple and convenient, a user can operate according to prompts, and labor cost can be saved. In addition, the first configuration data can be adjusted according to actual needs, different requirements of developers and testers can be met, and debugging efficiency is further improved.
< apparatus embodiment >
Fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment. As shown in fig. 4, the electronic device 400 includes a memory 410, a processor 420, and a communication module 430.
The memory 410 may be used to store executable computer instructions.
The processor 420 may be configured to execute the method for debugging the wearable device according to the embodiment of the method of the present disclosure, according to the control of the executable computer instructions.
The communication module 430 may be used to establish a communication connection with a wearable device.
In one embodiment, the communication module 430 may also be used to establish a communication connection with another electronic device. Illustratively, the communication module 430 may be a serial communication module, a USB communication module, a bluetooth communication module, or the like.
In one embodiment, the electronic device 400 may be, for example, the electronic device 4000 as shown in FIG. 1. The electronic device 400 may be, for example, a mobile phone, a tablet computer, a notebook computer, a palm computer, etc., which is not limited in this disclosure.
In further embodiments, the electronic device 400 may include the commissioning apparatus 300 of the above wearable device.
In one embodiment, the modules of the commissioning apparatus 300 of the above wearable device may be implemented by the processor 420 executing computer instructions stored in the memory 410.
In one example, the electronic device may be, for example, a PC device. As shown in fig. 5, the electronic device 500 includes a configuration data import/export module 501, a register configuration module 502, an ESE access module 503, a serial communication module 504, a USB communication module 505, and an operation record saving module 506.
In this example, the configuration data import/export module 501 shown in fig. 5 may be used to implement the function corresponding to the acquisition module 310 of the debug apparatus 300 of the wearable device, the register configuration module 502 may be used to implement the function corresponding to the debug module 320 of the debug apparatus 300 of the wearable device, and the serial port communication module 504 and the USB communication module 505 may be used to implement the function corresponding to the transmission module 330 of the debug apparatus 300 of the wearable device. And the ESE access module 503 can implement the function corresponding to the query module of the debugging apparatus 300 of the wearable device, the configuration data import/export module 501 can implement the function corresponding to the export module of the debugging apparatus 300 of the wearable device, and the operation record storage module 506 can implement the function corresponding to the storage module of the debugging apparatus 300 of the wearable device.
The electronic device 500 works in such a way that when a near field communication chip of a wearable device is tested, a communication connection is established with the wearable device through the serial communication module 504; the configuration data import and export module 501 obtains first configuration data currently used by a near field communication chip of the wearable device; the register configuration module 502 adjusts the first configuration data to obtain second configuration data; then, the second configuration data is sent to the wearable device through the serial port communication module 504, so that the wearable device configures the near field communication chip based on the second configuration data; then, the configuration data import/export module 501 may export the second configuration data, and the operation record saving module 506 generates and stores a debugging record. In addition, the ESE access module 503 may send an APDU command to the wearable device to obtain application data of the near field communication chip of the wearable device.
In another example, the electronic device may be, for example, a mobile terminal. As shown in fig. 6, the electronic device 600 includes a configuration data import/export module 601, a register configuration module 602, an ESE access module 603, a USB communication module 604, a bluetooth communication module 605, a USB forwarding module 606, and an operation record saving module 607.
In this example, the configuration data import/export module 601 shown in fig. 6 may be used to implement the function corresponding to the acquisition module 310 of the commissioning apparatus 300 of the wearable device, the register configuration module 602 may be used to implement the function corresponding to the commissioning module 320 of the commissioning apparatus 300 of the wearable device, and the bluetooth communication module 605 may be used to implement the function corresponding to the transmission module 330 of the commissioning apparatus 300 of the wearable device. And the ESE access module 603 can implement the function corresponding to the query module of the debugging apparatus 300 of the wearable device, the configuration data import/export module 601 can implement the function corresponding to the export module of the debugging apparatus 300 of the wearable device, and the operation record storage module 607 can implement the function corresponding to the storage module of the debugging apparatus 300 of the wearable device.
The working process of the electronic device 600 is that when the near field communication chip of the wearable device is tested, the communication connection is established with the wearable device through the bluetooth communication module 605; the configuration data import and export module 601 obtains first configuration data currently used by a near field communication chip of the wearable device; the register configuration module 602 adjusts the first configuration data to obtain second configuration data; then, the second configuration data is sent to the wearable device through the bluetooth communication module 605, so that the wearable device configures the near field communication chip based on the second configuration data; after that, the configuration data import/export module 601 may export the second configuration data, and the operation record saving module 607 may generate and store the debugging record. In addition, the ESE access module 603 may send an APDU instruction to the wearable device to obtain application data of the near field communication chip of the wearable device.
In this example, the electronic device shown in fig. 5 and the near field communication chip of the electronic device shown in fig. 6 may be used cooperatively to debug the wearable device. Specifically, the electronic device 500 (PC-side device) is configured to adjust the first configuration data to obtain second configuration data, the electronic device 500 establishes a communication connection with another electronic device 600 (mobile terminal) through a USB communication module, the electronic device 500 sends the second configuration data to another electronic device 600, the USB forwarding module 606 of another electronic device 600 performs format conversion on the second configuration data, and sends the second configuration data to the wearable device through the bluetooth communication module 605, so that the wearable device configures the near field communication chip based on the second configuration data.
According to the embodiment of the disclosure, the first configuration data of the near field communication chip currently used for configuring the wearable device is acquired, the first configuration data is adjusted in response to debugging operation of a user, the second configuration data is obtained, and the second configuration data is sent to the wearable device, so that the wearable device configures the near field communication chip based on the second configuration data. In addition, in the debugging process, software configuration does not need to be modified, the near field communication chip can be debugged directly through the electronic equipment, the debugging process is simplified, the operation is simple and convenient, a user can operate according to prompts, and labor cost can be saved. In addition, the first configuration data can be adjusted according to actual needs, different requirements of developers and testers can be met, and debugging efficiency is further improved.
< computer-readable storage Medium >
The embodiment of the disclosure also provides a computer readable storage medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the computer instructions execute the debugging method of the wearable device provided by the embodiment of the disclosure.
The disclosed embodiments may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement aspects of embodiments of the disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
Computer program instructions for carrying out operations for embodiments of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the disclosed embodiments by personalizing the custom electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of the computer-readable program instructions.
Various aspects of embodiments of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the embodiments of the present disclosure is defined by the appended claims.
Claims (11)
1. A debugging method of a wearable device is characterized by comprising the following steps:
acquiring first configuration data, wherein the first configuration data is data currently used for configuring a near field communication chip of a wearable device;
responding to debugging operation of a user, and adjusting the first configuration data to obtain second configuration data;
and sending the second configuration data to the wearable device so that the wearable device configures the near field communication chip based on the second configuration data.
2. The method of claim 1, wherein obtaining the first configuration data comprises:
acquiring first configuration data from a database; or,
sending a first instruction to the wearable device, and receiving first configuration data returned by the wearable device in response to the first instruction.
3. The method of claim 1, wherein sending the second configuration data to a wearable device to cause the wearable device to configure the near field communication chip based on the second configuration data comprises:
and sending the second configuration data to another electronic device, so that the second configuration data is converted by the another electronic device and then sent to the wearable device, and the wearable device configures the near field communication chip based on the second configuration data.
4. The method of claim 1, wherein after sending the second configuration data to a wearable device to cause the wearable device to configure the near field communication chip based on the second configuration data, the method further comprises:
sending a second instruction to the wearable device, and receiving application data returned by the wearable device in response to the second instruction;
and displaying the application data.
5. The method of claim 1, wherein after sending the second configuration data to a wearable device to cause the wearable device to configure the near field communication chip based on the second configuration data, the method further comprises:
deriving and storing said second configuration data.
6. A debugging device of wearing equipment, characterized in that the device includes:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring first configuration data, and the first configuration data is data currently used for configuring a near field communication chip of the wearable device;
the debugging module is used for responding to debugging operation of a user and adjusting the first configuration data to obtain second configuration data;
a sending module, configured to send the second configuration data to a wearable device, so that the wearable device configures the near field communication chip based on the second configuration data.
7. The apparatus of claim 6, wherein the obtaining module comprises:
the first acquisition unit is used for acquiring first configuration data from a database; or,
the second obtaining unit is used for sending a first instruction to the wearable device and receiving first configuration data returned by the wearable device in response to the first instruction.
8. The apparatus of claim 6, wherein the sending module comprises:
the sending unit is configured to send the second configuration data to another electronic device, so that the second configuration data is converted by the another electronic device and then sent to the wearable device, so that the wearable device configures the near field communication chip based on the second configuration data.
9. The apparatus of claim 6, further comprising:
the query module is used for sending a second instruction to the wearable device and receiving application data returned by the wearable device in response to the second instruction;
and the display module is used for displaying the application data.
10. An electronic device, comprising:
a memory for storing executable computer instructions;
a processor for executing the method of commissioning of a wearable device according to any one of claims 1-5 under the control of the executable computer instructions;
and the communication module is used for establishing communication connection with the wearable equipment.
11. The electronic device of claim 10, wherein the communication module is further configured to establish a communication connection with another electronic device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210168585.2A CN114741112A (en) | 2022-02-23 | 2022-02-23 | Debugging method and device of wearable device and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210168585.2A CN114741112A (en) | 2022-02-23 | 2022-02-23 | Debugging method and device of wearable device and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114741112A true CN114741112A (en) | 2022-07-12 |
Family
ID=82275163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210168585.2A Pending CN114741112A (en) | 2022-02-23 | 2022-02-23 | Debugging method and device of wearable device and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114741112A (en) |
-
2022
- 2022-02-23 CN CN202210168585.2A patent/CN114741112A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111708557B (en) | Method, device and storage medium for updating configuration file | |
CN108446211B (en) | Browser exception collection method and device, mobile terminal and storage medium | |
CN107509051A (en) | Long-range control method, device, terminal and computer-readable recording medium | |
CN109684008A (en) | Card rendering method, device, terminal and computer readable storage medium | |
CN104660494A (en) | Communication system | |
US10644516B2 (en) | Charging multiple user apparatuses | |
CN110879676A (en) | Debugging control method, master control device, debugging server, controlled device and system | |
CN113420002A (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN113590593A (en) | Method and device for generating data table information, storage medium and electronic device | |
CN112783796A (en) | Single-node testing method and device, computer equipment and readable storage medium | |
CN114741112A (en) | Debugging method and device of wearable device and electronic device | |
CN105335434A (en) | Log management method and device, and electronic equipment | |
CN109582338A (en) | BIOS option amending method, device, equipment and storage medium | |
EP3594823A1 (en) | Information display method, terminal and server | |
CN111182153B (en) | System language setting method and device, storage medium and mobile terminal | |
CN109413714B (en) | User agent information processing method, device, storage medium and terminal | |
US20200364160A1 (en) | Method and device for configuring controller in master control chip | |
CN111610732B (en) | Method, device and equipment for replacing configurable input/output module | |
CN112667868A (en) | Data detection method and device | |
CN105279175B (en) | Data transmission method and device | |
CN114968877B (en) | Hardware management method, adapter, host and storage medium | |
US20220374386A1 (en) | Partitioned ufp and dfp for display port repeater | |
CN117130318B (en) | Industrial data acquisition method, device, system and readable storage medium | |
CN114706693A (en) | Display method and device of wearable device, wearable device and medium | |
CN111459578B (en) | Webpage display method, device, equipment, system and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |