CN110636480B - Equipment data processing method, bluetooth mirroring equipment and medium - Google Patents
Equipment data processing method, bluetooth mirroring equipment and medium Download PDFInfo
- Publication number
- CN110636480B CN110636480B CN201810658644.8A CN201810658644A CN110636480B CN 110636480 B CN110636480 B CN 110636480B CN 201810658644 A CN201810658644 A CN 201810658644A CN 110636480 B CN110636480 B CN 110636480B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- data
- equipment
- protocol data
- identification information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 67
- 230000015654 memory Effects 0.000 claims description 28
- 238000005259 measurement Methods 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 17
- 238000012360 testing method Methods 0.000 claims description 15
- 238000012544 monitoring process Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 description 22
- 230000006870 function Effects 0.000 description 17
- 238000011161 development Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 9
- 230000006872 improvement Effects 0.000 description 9
- WQZGKKKJIJFFOK-GASJEMHNSA-N Glucose Natural products OC[C@H]1OC(O)[C@H](O)[C@@H](O)[C@@H]1O WQZGKKKJIJFFOK-GASJEMHNSA-N 0.000 description 8
- 239000008280 blood Substances 0.000 description 8
- 210000004369 blood Anatomy 0.000 description 8
- 239000008103 glucose Substances 0.000 description 8
- 230000036541 health Effects 0.000 description 8
- 230000036772 blood pressure Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000033001 locomotion Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008439 repair process Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000009530 blood pressure measurement Methods 0.000 description 1
- 230000001364 causal effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/40—Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
- H04B5/48—Transceivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application discloses a device data processing method and Bluetooth mirror image equipment. The method comprises the following steps: acquiring Bluetooth protocol data of Bluetooth equipment, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data; configuring Bluetooth protocol data of the Bluetooth equipment to Bluetooth mirroring equipment; and the Bluetooth mirroring device is connected with other Bluetooth devices based on the Bluetooth protocol data. By using the method or the device embodiment of the application, partial function requirements on the Bluetooth equipment can be guaranteed under the condition that the entity Bluetooth equipment is not needed.
Description
Technical Field
The present application relates to the field of software development technologies, and in particular, to an apparatus data processing method and a bluetooth mirroring apparatus.
Background
In recent years, the bluetooth technology has important applications in various fields, especially in the technical field of internet of things and the technical field of artificial intelligence. At present, most intelligent equipment all has bluetooth function, can couple together different bluetooth equipment through bluetooth function, realizes the data transfer between the equipment. At present, typical application scenarios are such as connection between a smart phone and a bluetooth music player, a smart home appliance, and a smart health device (such as a blood pressure meter, a blood glucose meter, etc.).
Based on the above multiple application scenarios, in the application development process, developers often need to debug, test, etc. the bluetooth device to determine whether the bluetooth device can be successfully connected, and whether data can be normally transferred between devices, etc. For example, a team developing a health data record APP needs to be connected to various bluetooth devices such as a smart band, a blood pressure meter, and a blood glucose meter in the process of testing the APP to test whether the APP can be connected to bluetooth devices of different brands and perform normal data transmission. Therefore, during the development process, a plurality of bluetooth devices are used for debugging and testing. However, in the above technical process, at least the following technical problems exist:
1. for a development company, a large number of bluetooth devices need to be prepared, and the developed products can be guaranteed to be suitable for different brands and models of bluetooth devices. Moreover, in the test process, a plurality of bluetooth devices of the same model are sometimes needed, so that a certain quantity of bluetooth devices of various models are required, and the purchase cost of the bluetooth devices is higher for a development company;
2. developers need to be skilled in using the Bluetooth devices with different models, and the operation processes of some Bluetooth devices are complex, so that the time and the energy of the developers are consumed;
3. the large number of bluetooth devices requires management costs, maintenance costs, repair costs, and the like.
Therefore, there is a need in the art for an efficient and low-cost method for processing device data.
Disclosure of Invention
An object of the embodiments of the present application is to provide an apparatus data processing method and a bluetooth mirroring apparatus, which can guarantee part of functional requirements on a bluetooth apparatus without an entity bluetooth apparatus.
The device data processing method and the Bluetooth mirroring device provided by the embodiment of the application are specifically realized in the following way:
a method of device data processing, the method comprising:
acquiring Bluetooth protocol data of Bluetooth equipment, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data;
configuring the Bluetooth protocol data of the Bluetooth equipment to Bluetooth mirror equipment;
and the Bluetooth mirroring device is connected with other Bluetooth devices based on the Bluetooth protocol data.
A method of device data processing, the method comprising:
acquiring Bluetooth protocol data of a plurality of Bluetooth devices, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data;
respectively setting unique identification information of the plurality of Bluetooth devices;
and sending the Bluetooth protocol data of the Bluetooth equipment to Bluetooth mirror equipment so that the Bluetooth mirror equipment is connected with other Bluetooth equipment by using the Bluetooth protocol data of the Bluetooth equipment.
A bluetooth mirroring device comprising a processor and a memory for storing processor-executable instructions that when executed by the processor implement:
acquiring Bluetooth protocol data of Bluetooth equipment, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data;
configuring Bluetooth protocol data of the Bluetooth device;
and connecting with other Bluetooth equipment based on the Bluetooth protocol data.
A device data processing device comprising a processor and a memory for storing processor-executable instructions that when executed by the processor implement:
acquiring Bluetooth protocol data of a plurality of Bluetooth devices, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data;
respectively setting unique identification information of the plurality of Bluetooth devices;
and sending the Bluetooth protocol data of the Bluetooth equipment to Bluetooth mirror image equipment so that the Bluetooth mirror image equipment is connected with other Bluetooth equipment by using the Bluetooth protocol data of the Bluetooth equipment.
According to the device data processing method and the Bluetooth mirror image device, the Bluetooth protocol data of the Bluetooth device can be configured on the Bluetooth mirror image device, so that the Bluetooth mirror image device can be connected with other Bluetooth devices based on the Bluetooth protocol data of the Bluetooth device. The data processing mode has at least the following advantages:
1. the test requirement of a developed product can be guaranteed under the condition that a development company does not need to prepare a large number of Bluetooth devices, and a large number of Bluetooth devices do not need to be purchased, so that the great purchase cost can be saved;
2. the development personnel are prevented from spending much time and energy to operate various brands and models of Bluetooth equipment skillfully;
3. there is no need to pay for management costs, maintenance costs, repair costs, and the like for the bluetooth device.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a schematic diagram of a method for an application scenario provided herein;
FIG. 2 is a schematic flow chart of an application scenario of the device data processing method provided in the present application;
FIG. 3 is a method flow diagram of one embodiment of a device data processing method provided herein;
FIG. 4 is a flowchart illustrating an application scenario of the device data processing method provided in the present application;
fig. 5 is a schematic block diagram of an embodiment of a bluetooth mirroring apparatus provided in the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As can be seen from the above, in the prior art, when bluetooth devices are required to perform application development, bluetooth devices of multiple brands and multiple styles are often required to complete testing, verification, and the like. Then, the development company needs a large investment cost, such as an investment of capital for equipment purchase, an investment of equipment maintenance cost, and the like. Based on the actual technical requirements similar to those described above, the device data processing method provided by the present application can configure the bluetooth protocol data of the bluetooth device to the bluetooth mirroring device, so that the bluetooth mirroring device can be used to replace the bluetooth device to implement the data requirements for the bluetooth device in application development.
The following describes an implementation of the data processing method of the device according to the present application with reference to fig. 1 through a specific application scenario.
A team developing a health data record APP needs to be connected to various Bluetooth devices such as a smart band, a blood pressure meter and a blood glucose meter in the process of testing the APP so as to test whether the APP can be connected to the Bluetooth devices of different brands and carry out normal data transmission. In order to avoid the situation that various brands and models of Bluetooth equipment need to be purchased in the prior art, the Bluetooth protocol data of various Bluetooth equipment can be acquired from the server side, and the Bluetooth protocol data of the server side can be historical data uploaded by the development team or can be acquired from a third-party database. As shown in fig. 1, the bluetooth protocol data of bluetooth devices of various brands and models, such as a blood glucose meter, a blood pressure meter, a sports bracelet, etc., can be uploaded to the server. At the server side, respective unique identification information can be set for each Bluetooth device, and Bluetooth protocol data of the Bluetooth device and the corresponding unique identification information are stored in an associated mode. As shown in fig. 1, in an actual application process, the bluetooth mirroring device may obtain bluetooth protocol data of the bluetooth device from the server side and load the bluetooth protocol data, so that the bluetooth mirroring device may be used to simulate any bluetooth device stored on the server side.
In this scenario, in the process of using the bluetooth mirroring device to simulate the bluetooth device to connect with other bluetooth devices, for example, for the health data record APP after development, the bluetooth function of the sports bracelet of the a-brand S5 money needs to be tested, and at this time, the test can be performed according to the method flow shown in fig. 2. Firstly, can utilize bluetooth mirror image equipment simulation above-mentioned motion bracelet of A tablet S5 section, through bluetooth mirror image equipment can apply for the equipment list to the server end. After receiving the application, the server may send a list of devices that can be supported to the bluetooth mirroring device. The bluetooth mirror image equipment can select the motion bracelet of A tablet S5 money from the equipment list to send the information of this motion bracelet to the server side. After receiving the information of the sports bracelet selected by the user, the server side can send the Bluetooth protocol data of the sports bracelet to the Bluetooth mirroring device. The bluetooth mirror image equipment receives the bluetooth protocol data of this motion bracelet, can load this bluetooth protocol data. Then, in order to establish a connection with the health data record APP, broadcast data of the sports bracelet of the a-brand S5 may be sent, and the health data record APP scans the broadcast data and initiates a connection request to the bluetooth mirroring device. The Bluetooth mirror image equipment receives the request and sends Bluetooth configuration data of the sports bracelet of the A-brand S5 money to the health data record APP. Like this, accomplish the connection between the bluetooth mirror image equipment of health data record APP and analog movement bracelet promptly. Subsequently, some user data on the motion bracelet can be read from the Bluetooth mirroring device, and whether data can be successfully transmitted between the Bluetooth devices or not is confirmed.
The device data processing method described in the present application is described in detail below with reference to fig. 3. Fig. 3 is a flowchart of a method of an embodiment of a device data processing method provided in the present application. Although the present application provides method steps as shown in the following examples or figures, more or fewer steps may be included in the method based on conventional or non-inventive efforts. In steps where there is no logically necessary causal relationship, the order of execution of these steps is not limited to the order of execution provided by the embodiments of the present application. The method can be executed in sequence or in parallel according to the method shown in the embodiment or the figure (for example, a parallel processor or a multi-thread processing environment) in the actual device data processing process or device execution.
Specifically, as shown in fig. 3, an embodiment of the device data processing method provided in the present application may include:
s301: the method comprises the steps of obtaining Bluetooth protocol data of Bluetooth equipment, wherein the Bluetooth protocol data comprise broadcast data and Bluetooth configuration data.
S303: and configuring the Bluetooth protocol data of the Bluetooth device to the Bluetooth mirroring device.
S305: and the Bluetooth mirroring device is connected with other Bluetooth devices based on the Bluetooth protocol data.
In this embodiment, first, bluetooth protocol data of a bluetooth device may be obtained, where the bluetooth device may include an electronic device having a bluetooth function, such as a measurement device (a blood pressure meter, a blood glucose meter, a weight meter, and the like), an audio playback device (a music player, an intelligent speaker, and the like), an intelligent appliance, and the like. The bluetooth protocol data may include data necessary to enable the bluetooth device to connect with other bluetooth devices, for example, the bluetooth protocol data may include broadcast data and bluetooth configuration data. The broadcast data is data to be broadcast by the bluetooth connection initiator, and includes, for example, at least one of the following data: device name, device manufacturer data, device model data, etc. In one example, one data format of the broadcast data is { device name = music player, device manufacturer = Apple, device model = S5}. The Bluetooth device broadcasts the broadcast data, and after the scanning device scans the broadcast data, the scanning device can be connected with the Bluetooth device in a pairing mode. During the connection between the scanning device and the bluetooth device, the scanning device needs to connect based on bluetooth configuration data, where the bluetooth configuration data may include data that plays a role in a bluetooth connection, and may include at least one of the following: general Access Profile (GAP), service Discovery Application Profile (SDAP), serial Port Profile (SPP), generic Object Exchange Profile (GOEP), and so forth.
In an embodiment of the present application, in the process of acquiring the bluetooth protocol data of the bluetooth device, unique identification information of the bluetooth device may be acquired, and the bluetooth protocol data of the bluetooth device may be acquired from a server according to the unique identification information. In addition, the server end stores Bluetooth protocol data of a plurality of Bluetooth devices, and the plurality of Bluetooth devices respectively have unique identification information at the server end. In order to distinguish the difference between the bluetooth protocol data of different bluetooth devices at the server side, unique identification information of the bluetooth devices at the server side may be set. The unique identification information may include one or more of device model data, device manufacturer data, and device name data of each bluetooth device.
Based on the data, the Bluetooth protocol data of the Bluetooth device can be transmitted to the server side. Therefore, when any other Bluetooth device needs to be used for simulating the Bluetooth device, the Bluetooth protocol data of the Bluetooth device can be acquired from the server side. In this embodiment, in the process of uploading the bluetooth protocol data of the bluetooth device to the server, since many bluetooth devices have simpler functions, such as a bluetooth measurement instrument (blood pressure meter, blood glucose meter, etc.), a bluetooth player, etc., the bluetooth protocol data of the bluetooth device cannot be directly uploaded to the server. In this embodiment, the bluetooth protocol data of the bluetooth device may be uploaded to the server by the first bluetooth device. The first bluetooth device needs not only a bluetooth module, but also a communication network interface, and can realize communication with the server side. Specifically, referring to fig. 4, the first bluetooth device may upload bluetooth protocol data of the bluetooth device to a server in the following two steps.
In the first step, in the process of broadcasting the broadcast data by the bluetooth device, the first bluetooth device may acquire the broadcast data of the bluetooth device and upload the broadcast data to a server. After receiving the broadcast data, if it is found that the server does not have bluetooth protocol data of the bluetooth device, the server may register information of the bluetooth device, and specifically, may use one or a combination of multiple types of data among device model data, device manufacturer data, and device name in the broadcast data as unique identification information of the bluetooth device, and store the broadcast data in an associated manner.
Second, the first bluetooth device may apply for pairing with the bluetooth device, and may scan and read bluetooth configuration data of the bluetooth device after successful pairing, where the bluetooth configuration data is a General Access Profile (GAP), a Service Discovery Application Profile (SDAP), a Serial Port Profile (SPP), a Generic Object Exchange Profile (GOEP), or the like. And then, uploading the Bluetooth configuration data to a server side. After receiving the bluetooth configuration data, the server may store the bluetooth configuration data in association with unique identification information corresponding to the bluetooth device.
In an embodiment of the present application, the server may store the unique identification information of the bluetooth device and the bluetooth protocol data of the bluetooth device in an associated manner by way of a data table, one column in the data table may store the unique identification information, another column may store the bluetooth protocol data, and the associated unique identification information and the bluetooth protocol data may be in the same row. Of course, the way of storing the unique identification information and the bluetooth protocol data is not limited to the above examples, and other modifications may be made by those skilled in the art in light of the technical spirit of the present application, but all such modifications are intended to be included within the scope of the present application as long as the functions and effects achieved by the present application are the same as or similar to those of the present application.
In this embodiment, in the process of storing the bluetooth protocol data of the bluetooth device in the server, the broadcast data and the bluetooth configuration data of the bluetooth device may be converted from an original format to a preset data format, where the preset data format may be a data format convenient for the storage and transmission of the bluetooth protocol data, for example, an xml data format, a JSON data format, and the like, and the preset data format is not limited in this application. Correspondingly, when the bluetooth mirroring device is subsequently used for simulating the connection between the bluetooth device and other bluetooth devices, the bluetooth protocol data of the bluetooth device can be converted from the preset data format to the original data format.
In an embodiment of the application, when the first bluetooth device is utilized to transmit the bluetooth protocol data of the bluetooth device to the server, the measurement data of the bluetooth device may also be uploaded to the server, where the measurement data includes blood pressure measurement data of a blood pressure monitor and blood glucose measurement data of a blood glucose meter. Specifically, after the second step, the first bluetooth device may read the measurement data on the bluetooth device, perform data conversion on the measurement data, and upload the measurement data to the server. After receiving the measurement data, the server may store the measurement data in association with unique identification information corresponding to the bluetooth device.
In this embodiment, after acquiring the bluetooth protocol data of the bluetooth device, the bluetooth protocol data of the bluetooth device may be configured to the bluetooth mirroring device. The bluetooth mirroring device may then be connected with other bluetooth devices based on the bluetooth protocol data of the bluetooth device. The bluetooth mirroring device can be any client device that has bluetooth functionality and can be configured with bluetooth protocol data. For example, the bluetooth mirroring device may be a mobile smart phone, a computer (including a laptop computer, a desktop computer), a tablet electronic device, a Personal Digital Assistant (PDA), or a smart wearable device, etc.
In a specific embodiment, in the process of connecting the bluetooth mirroring device with other bluetooth devices based on the bluetooth protocol data of the bluetooth device, the broadcast data of the bluetooth device (including the device name, the device manufacturer data, the device model data, and the like of the bluetooth device) may be broadcast by using the bluetooth mirroring device. Thereafter, it may be monitored whether other bluetooth devices request to establish a connection with the bluetooth mirroring device. And if the condition that the Bluetooth equipment scans the broadcast data and requests to establish connection with the Bluetooth mirroring equipment is monitored, establishing connection with the Bluetooth equipment based on the Bluetooth configuration data of the Bluetooth equipment.
In another embodiment, when the bluetooth device is electronic measurement data, the electronic measurement data may be further included in the bluetooth protocol data. After the bluetooth protocol data is configured to the bluetooth mirroring device, the bluetooth mirroring device may be used for data testing, function checking, and the like instead of the bluetooth device.
In an embodiment of the present application, bluetooth protocol data of a plurality of bluetooth devices may be configured on the bluetooth mirroring device in the same manner as in the above embodiment, so that the bluetooth mirroring device may be used to replace the plurality of bluetooth devices to connect with other bluetooth devices. Then, when the bluetooth function of the bluetooth device is simulated using the bluetooth mirroring device, the bluetooth device to be used may be selected.
According to the device data processing method, the Bluetooth protocol data of the Bluetooth device can be configured on the Bluetooth mirror image device, and therefore the Bluetooth mirror image device can be connected with other Bluetooth devices based on the Bluetooth protocol data of the Bluetooth device. The data processing mode has at least the following advantages:
1. under the condition that a development company does not need to prepare a large number of Bluetooth devices, the testing requirement of a developed product can be guaranteed, and a large number of Bluetooth devices do not need to be purchased, so that the great purchase cost can be saved;
2. the development personnel are prevented from spending much time and energy to operate various brands and models of Bluetooth equipment skillfully;
3. there is no need to pay for management costs, maintenance costs, repair costs, and the like for the bluetooth device.
In another aspect, this application further provides a bluetooth mirroring apparatus, and fig. 5 is a schematic block diagram of an embodiment of the bluetooth mirroring apparatus provided in this application, as shown in fig. 5, the apparatus includes a processor and a memory for storing processor executable instructions, and the processor executes the instructions to implement:
acquiring Bluetooth protocol data of Bluetooth equipment, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data;
configuring Bluetooth protocol data of the Bluetooth device;
and connecting with other Bluetooth equipment based on the Bluetooth protocol data.
Optionally, in an embodiment of the present application, the acquiring bluetooth protocol data of a bluetooth device may include:
acquiring unique identification information of the Bluetooth equipment;
and acquiring Bluetooth protocol data of the Bluetooth equipment from a server side according to the unique identification information, wherein the server side stores the Bluetooth protocol data of a plurality of Bluetooth equipment, and the plurality of Bluetooth equipment respectively have unique identification information at the server side.
Optionally, in an embodiment of the present application, the bluetooth protocol data of the bluetooth device may be configured to be transmitted to the server side in the following manner:
the first Bluetooth device receives broadcast data of the Bluetooth device and sends the broadcast data to the server;
the server stores the broadcast data and sets unique identification information of the Bluetooth equipment;
the first Bluetooth device is paired with the Bluetooth device, and Bluetooth configuration information of the Bluetooth device is read after the first Bluetooth device and the Bluetooth device are paired successfully;
and the first Bluetooth equipment sends the Bluetooth configuration information of the Bluetooth equipment to the server side.
Optionally, in an embodiment of the application, after receiving the broadcast data and the bluetooth configuration information, the server converts the broadcast data and the bluetooth configuration information from an original format to a uniform preset data format.
Optionally, in an embodiment of the application, the processor, when implementing the step of connecting with other bluetooth devices based on the bluetooth protocol data, may include:
converting the Bluetooth protocol data of the Bluetooth device from the preset data format into the original format;
and connecting with other Bluetooth equipment by using the Bluetooth protocol data in the original format.
Optionally, in an embodiment of the present application, the broadcast data may include at least one of the following data of the bluetooth device: device name, device manufacturer data, device model data.
Optionally, in an embodiment of the present application, the processor, when connecting with another bluetooth device based on the bluetooth protocol data, may include:
broadcasting the broadcast data of the Bluetooth device;
monitoring that a Bluetooth device scans the broadcast data and requests to establish connection with the Bluetooth mirroring device;
and establishing connection with the Bluetooth equipment based on the Bluetooth configuration data of the Bluetooth equipment.
Optionally, in an embodiment of the present application, the bluetooth protocol data may further include measurement data on the bluetooth device.
Optionally, in an embodiment of the present application, after the processor connects with another bluetooth device in the implementation step, the processor may further include:
and simulating the Bluetooth equipment to perform data test by using the Bluetooth mirror image equipment based on the measurement data.
Another aspect of the present application further provides a device data processing device, including a processor and a memory for storing processor-executable instructions, where the processor executes the instructions to implement:
acquiring Bluetooth protocol data of a plurality of Bluetooth devices, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data;
respectively setting unique identification information of the plurality of Bluetooth devices;
and sending the Bluetooth protocol data of the Bluetooth equipment to Bluetooth mirror image equipment so that the Bluetooth mirror image equipment is connected with other Bluetooth equipment by using the Bluetooth protocol data of the Bluetooth equipment.
In another aspect, the present application further provides a computer-readable storage medium, on which computer instructions are stored, and when executed, the instructions may implement the method described in any one of the above embodiments.
The computer readable storage medium may include a physical device for storing information, typically by digitizing the information for storage on a medium using electrical, magnetic or optical means. The computer-readable storage medium according to this embodiment may include: devices that store information using electrical energy, such as various types of memory, e.g., RAM, ROM, etc.; devices that store information using magnetic energy, such as hard disks, floppy disks, tapes, core memories, bubble memories, and usb disks; devices that store information optically, such as CDs or DVDs. Of course, there are other ways of storing media that can be read, such as quantum memory, graphene memory, and so forth.
In the 90's of the 20 th century, improvements to a technology could clearly distinguish between improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements to process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain a corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical blocks. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as ABEL (Advanced Boolean Expression Language), AHDL (alternate Hardware Description Language), traffic, CUPL (core universal Programming Language), HDCal, jhddl (Java Hardware Description Language), lava, lola, HDL, PALASM, rhyd (Hardware Description Language), and vhigh-Language (Hardware Description Language), which is currently used in most popular applications. It will also be apparent to those skilled in the art that hardware circuitry for implementing the logical method flows can be readily obtained by a mere need to program the method flows with some of the hardware description languages described above and into an integrated circuit.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the devices included therein for performing various functions may also be considered as structures within the hardware component. Or even devices for performing various functions may be considered to be both software modules implementing the methods and structures within hardware components.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by functions, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, 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 specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (21)
1. A method for processing device data, the method comprising:
acquiring Bluetooth protocol data of Bluetooth equipment, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data;
configuring the Bluetooth protocol data of the Bluetooth equipment to Bluetooth mirror equipment;
the Bluetooth mirroring device is used for replacing the Bluetooth device to be connected with other Bluetooth devices on the basis of the Bluetooth protocol data;
the acquiring the bluetooth protocol data of the bluetooth device comprises:
acquiring unique identification information of the Bluetooth equipment;
and acquiring Bluetooth protocol data of the Bluetooth equipment from a server side according to the unique identification information, wherein the server side stores the Bluetooth protocol data of a plurality of Bluetooth equipment, and the plurality of Bluetooth equipment respectively have unique identification information at the server side.
2. The method of claim 1, wherein the bluetooth protocol data of the bluetooth device is configured to be transmitted to the server side in the following manner:
the first Bluetooth device receives broadcast data of the Bluetooth device and sends the broadcast data to the server;
the server stores the broadcast data and sets unique identification information of the Bluetooth equipment;
the first Bluetooth device is paired with the Bluetooth device, and Bluetooth configuration information of the Bluetooth device is read after the first Bluetooth device and the Bluetooth device are paired successfully;
and the first Bluetooth equipment sends the Bluetooth configuration information of the Bluetooth equipment to the server side.
3. The method of claim 2, wherein the server side converts the broadcast data and the bluetooth configuration information from original formats to a unified preset data format after receiving the broadcast data and the bluetooth configuration information.
4. The method of claim 3, wherein the Bluetooth mirroring device connecting with other Bluetooth devices based on the Bluetooth protocol data comprises:
the Bluetooth mirroring device converts Bluetooth protocol data of the Bluetooth device from the preset data format to the original format;
and connecting with other Bluetooth equipment by using the Bluetooth protocol data in the original format.
5. The method of claim 1, wherein the broadcast data comprises at least one of the following data for the bluetooth device: device name, device manufacturer data, device model data.
6. The method of claim 1, wherein the bluetooth mirroring device connecting with other bluetooth devices based on the bluetooth protocol data comprises:
the Bluetooth mirroring device broadcasts broadcast data of the Bluetooth device;
monitoring that a Bluetooth device scans the broadcast data and requests to establish connection with the Bluetooth mirror image device;
and establishing connection with the requested Bluetooth device based on the Bluetooth configuration data of the Bluetooth device.
7. The method of claim 1, wherein the bluetooth protocol data further comprises measurement data on the bluetooth device.
8. The method of claim 7, wherein after said connecting with the other Bluetooth device, the method further comprises:
and based on the measurement data, the Bluetooth mirror image equipment simulates the Bluetooth equipment to carry out data test.
9. A method of device data processing, the method comprising:
acquiring Bluetooth protocol data of a plurality of Bluetooth devices, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data;
respectively setting unique identification information of the plurality of Bluetooth devices;
sending the Bluetooth protocol data of the Bluetooth equipment to Bluetooth mirror image equipment so that the Bluetooth mirror image equipment replaces the Bluetooth protocol data of the Bluetooth equipment to be connected with other Bluetooth equipment;
wherein, obtaining the bluetooth protocol data of the bluetooth device comprises:
acquiring unique identification information of the Bluetooth equipment;
and acquiring the Bluetooth protocol data of the Bluetooth equipment from a server side according to the unique identification information, wherein the server side stores the Bluetooth protocol data of a plurality of Bluetooth equipment, and the plurality of Bluetooth equipment respectively have the unique identification information at the server side.
10. A bluetooth mirroring device comprising a processor and a memory for storing processor-executable instructions that when executed by the processor implement:
acquiring Bluetooth protocol data of Bluetooth equipment, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data;
configuring Bluetooth protocol data of the Bluetooth device;
connecting with other Bluetooth equipment instead of the Bluetooth equipment based on the Bluetooth protocol data;
the acquiring of the bluetooth protocol data of the bluetooth device includes:
acquiring unique identification information of the Bluetooth equipment;
and acquiring the Bluetooth protocol data of the Bluetooth equipment from a server side according to the unique identification information, wherein the server side stores the Bluetooth protocol data of a plurality of Bluetooth equipment, and the plurality of Bluetooth equipment respectively have the unique identification information at the server side.
11. The device of claim 10, wherein obtaining bluetooth protocol data for the bluetooth device comprises:
acquiring unique identification information of the Bluetooth equipment;
and acquiring the Bluetooth protocol data of the Bluetooth equipment from a server side according to the unique identification information, wherein the server side stores the Bluetooth protocol data of a plurality of Bluetooth equipment, and the plurality of Bluetooth equipment respectively have the unique identification information at the server side.
12. The device of claim 11, wherein the bluetooth protocol data of the bluetooth device is configured to be transmitted to the server side as follows:
the first Bluetooth device receives broadcast data of the Bluetooth device and sends the broadcast data to the server;
the server stores the broadcast data and sets unique identification information of the Bluetooth equipment;
the first Bluetooth device is paired with the Bluetooth device, and Bluetooth configuration information of the Bluetooth device is read after the first Bluetooth device is successfully paired with the Bluetooth device;
and the first Bluetooth equipment sends the Bluetooth configuration information of the Bluetooth equipment to the server side.
13. The apparatus of claim 12, wherein the server converts the broadcast data and the bluetooth configuration information from original formats to a unified preset data format after receiving the broadcast data and the bluetooth configuration information.
14. The device of claim 13, wherein the processor, when implementing step is based on the bluetooth protocol data, when interfacing with other bluetooth devices comprises:
converting the Bluetooth protocol data of the Bluetooth device from the preset data format into the original format;
and connecting with other Bluetooth equipment by using the Bluetooth protocol data in the original format.
15. The device of claim 10, wherein the broadcast data comprises at least one of the following data for the bluetooth device: device name, device manufacturer data, device model data.
16. The device of claim 10, wherein the processor, when implementing the steps based on the bluetooth protocol data, when connecting with other bluetooth devices comprises:
broadcasting the broadcast data of the Bluetooth device;
monitoring that a Bluetooth device scans the broadcast data and requests to establish connection with the Bluetooth mirror image device;
and establishing connection with the Bluetooth equipment based on the Bluetooth configuration data of the Bluetooth equipment.
17. The device of claim 10, wherein the bluetooth protocol data further comprises measurement data on the bluetooth device.
18. The device of claim 17, wherein the processor, after the step of enabling, is configured to connect to other bluetooth devices, further comprising:
and simulating the Bluetooth equipment to perform data test by using the Bluetooth mirroring equipment based on the measurement data.
19. A device data processing device comprising a processor and a memory for storing processor-executable instructions, the instructions when executed by the processor implementing:
acquiring Bluetooth protocol data of a plurality of Bluetooth devices, wherein the Bluetooth protocol data comprises broadcast data and Bluetooth configuration data;
respectively setting unique identification information of the plurality of Bluetooth devices;
sending the Bluetooth protocol data of the Bluetooth equipment to Bluetooth mirror image equipment so that the Bluetooth mirror image equipment replaces the Bluetooth protocol data of the Bluetooth equipment to be connected with other Bluetooth equipment;
wherein, obtaining the bluetooth protocol data of the bluetooth device comprises:
acquiring unique identification information of the Bluetooth equipment;
and acquiring the Bluetooth protocol data of the Bluetooth equipment from a server side according to the unique identification information, wherein the server side stores the Bluetooth protocol data of a plurality of Bluetooth equipment, and the plurality of Bluetooth equipment respectively have the unique identification information at the server side.
20. A computer-readable storage medium having computer instructions stored thereon that, when executed, implement the method of any one of claims 1-8.
21. A computer-readable storage medium having computer instructions stored thereon that, when executed, implement the method of claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810658644.8A CN110636480B (en) | 2018-06-25 | 2018-06-25 | Equipment data processing method, bluetooth mirroring equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810658644.8A CN110636480B (en) | 2018-06-25 | 2018-06-25 | Equipment data processing method, bluetooth mirroring equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110636480A CN110636480A (en) | 2019-12-31 |
CN110636480B true CN110636480B (en) | 2022-12-16 |
Family
ID=68967357
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810658644.8A Active CN110636480B (en) | 2018-06-25 | 2018-06-25 | Equipment data processing method, bluetooth mirroring equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110636480B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112291733B (en) * | 2020-10-21 | 2022-07-08 | 安徽德通智联科技有限公司 | Intelligent cloud vibration monitoring system and method based on Bluetooth and NBIOT dual wireless technology |
CN118012440B (en) * | 2024-04-10 | 2024-07-02 | 深圳市爱都科技有限公司 | Processing method and device of APP watch function simulator and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8301853B1 (en) * | 2007-12-31 | 2012-10-30 | Emc Corporation | System and method for asynchronously mirroring data |
US8929369B1 (en) * | 2007-12-31 | 2015-01-06 | Emc Corporation | System and method for striping / mirroring data |
WO2017214137A1 (en) * | 2016-06-07 | 2017-12-14 | Cassia Networks Inc. | Methods, devices and systems for supporting wireless communication |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7747596B2 (en) * | 2005-06-17 | 2010-06-29 | Fotonation Vision Ltd. | Server device, user interface appliance, and media processing network |
WO2014178603A1 (en) * | 2013-04-30 | 2014-11-06 | 인텔렉추얼디스커버리 주식회사 | Apparatus and system for data mirror device |
-
2018
- 2018-06-25 CN CN201810658644.8A patent/CN110636480B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8301853B1 (en) * | 2007-12-31 | 2012-10-30 | Emc Corporation | System and method for asynchronously mirroring data |
US8929369B1 (en) * | 2007-12-31 | 2015-01-06 | Emc Corporation | System and method for striping / mirroring data |
WO2017214137A1 (en) * | 2016-06-07 | 2017-12-14 | Cassia Networks Inc. | Methods, devices and systems for supporting wireless communication |
Also Published As
Publication number | Publication date |
---|---|
CN110636480A (en) | 2019-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110532020B (en) | Data processing method, device and system for micro-service arrangement | |
US20130326465A1 (en) | Portable Device Application Quality Parameter Measurement-Based Ratings | |
US9635129B2 (en) | Automatic application discovery, download, integration and launch | |
CN103793323B (en) | The automatic testing equipment and its automatic test approach of embedded software | |
CN108830720A (en) | Intelligent contract operation method, device, system and computer readable storage medium | |
CN107193681B (en) | Data verification method and device | |
CN109800101A (en) | Report method, device, terminal device and the storage medium of small routine abnormal conditions | |
US9672141B1 (en) | Generic language application programming interface interpreter | |
CN110636480B (en) | Equipment data processing method, bluetooth mirroring equipment and medium | |
CN113742153A (en) | Equipment testing method and device, readable medium and electronic equipment | |
CN112083322A (en) | Interface extension device, interface extension method and test method | |
CN107193729B (en) | Application compatibility testing method and device | |
CN111314737B (en) | Video transcoding method and device | |
US20230153222A1 (en) | Scaled-down load test models for testing real-world loads | |
CN113448988B (en) | Training method and device of algorithm model, electronic equipment and storage medium | |
US8984196B2 (en) | Accessing peripheral devices | |
CN111324803B (en) | Query request processing method and device of search engine and client | |
CN110109718B (en) | Application program interface calling method and device | |
Borycki | Programming for the Internet of Things: Using Windows 10 IoT Core and Azure IoT Suite | |
CN112782560A (en) | Chip testing method, device, storage medium and equipment | |
US10382311B2 (en) | Benchmarking servers based on production data | |
US20210042204A1 (en) | Testing apparatus, testing system, and non-transitory tangible machine-readable medium thereof for testing touch mobile devices | |
CN115022328B (en) | Server cluster, testing method and device of server cluster and electronic equipment | |
CN109522245B (en) | Hardware management method and management device | |
CN113821428A (en) | Cloud testing method and device, electronic equipment and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |