CN113835528B - Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium - Google Patents
Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium Download PDFInfo
- Publication number
- CN113835528B CN113835528B CN202111160018.4A CN202111160018A CN113835528B CN 113835528 B CN113835528 B CN 113835528B CN 202111160018 A CN202111160018 A CN 202111160018A CN 113835528 B CN113835528 B CN 113835528B
- Authority
- CN
- China
- Prior art keywords
- platform
- command
- wearable device
- equipment
- development kit
- 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
- 230000003993 interaction Effects 0.000 title claims abstract description 96
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000004891 communication Methods 0.000 claims abstract description 74
- 230000006870 function Effects 0.000 claims abstract description 21
- 238000011161 development Methods 0.000 claims description 9
- 238000005259 measurement Methods 0.000 claims description 2
- 238000012423 maintenance Methods 0.000 abstract description 8
- 230000005540 biological transmission Effects 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 8
- 230000002452 interceptive effect Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- 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/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/30076—Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a multi-platform interaction method and device of wearable equipment, an intelligent terminal and a storage medium, wherein the method comprises the following steps: acquiring and receiving an interaction control instruction through application software, and creating a temporary channel based on the interaction control instruction; receiving a first command corresponding to the interaction control instruction through the temporary channel; after receiving the first command, automatically identifying a currently used equipment platform, calling a corresponding platform communication rule based on the equipment platform, and issuing a second command corresponding to the first command to a software development kit; and based on the second command, controlling the software development kit to send a wearing equipment control instruction corresponding to the second command to the wearing equipment. Compared with the prior art, the method and the device achieve the purpose of applying one set of UI and functions to a plurality of platforms by automatically identifying the equipment platform and calling the corresponding platform communication rules, and reduce the software development and maintenance cost.
Description
Technical Field
The invention relates to the field of IOT interaction, in particular to a multi-platform interaction method and device of wearable equipment, an intelligent terminal and a storage medium.
Background
With the development of scientific technology, the types of intelligent wearable devices are more and more, including devices such as intelligent watches and intelligent glasses, and various demands can be provided for people. However, when the user wants to view the data of the smart wearable device through the web or the mobile phone, the manufacturer of the smart device needs to develop and maintain the UI and functions of the web end, an Zhuoduan and the IOS end respectively, which consumes a relatively high time and labor cost.
Accordingly, there is a need for improvement and development in the art.
Disclosure of Invention
The invention mainly aims to provide a multi-platform interaction method and device for wearable equipment, an intelligent terminal and a storage medium, and aims to solve the problems that in the prior art, when an intelligent equipment manufacturer develops matched application software, software of a plurality of platform ends needs to be developed respectively, so that time consumption and high labor cost are caused when maintaining UI and functions of each platform.
To achieve the above object, a first aspect of the present invention provides a multi-platform interaction method of a wearable device, where the method includes:
Acquiring and receiving an interaction control instruction through application software, and creating a temporary channel based on the interaction control instruction;
Receiving a first command corresponding to the interaction control instruction through the temporary channel;
After receiving the first command, automatically identifying a currently used equipment platform, calling a corresponding platform communication rule based on the equipment platform, and issuing a second command corresponding to the first command to a software development kit, wherein the platform communication rule comprises a programming language and a communication mode of the corresponding platform;
and based on the second command, controlling the development kit to send a wearing equipment control instruction corresponding to the second command to the wearing equipment.
Optionally, the step of acquiring the interaction control instruction through the application software and creating the temporary channel based on the interaction control instruction includes:
the method comprises the steps of obtaining and receiving an interaction control instruction for controlling the wearable equipment through application software;
And establishing a temporary channel through application software.
Optionally, the step of automatically identifying the currently used device platform after receiving the first command, calling a corresponding platform communication rule based on the device platform, and issuing a second command corresponding to the first command to the software development kit includes:
receiving the first command sent by the application software, and automatically identifying a currently used equipment platform;
calling corresponding platform communication rules according to different equipment platforms;
and calling a software development kit interface of the equipment platform based on the platform communication rule, and sending the second command to the software development kit.
Optionally, the step of calling a software development kit interface of the device platform based on the platform communication rule and sending the second command to the software development kit includes:
the equipment platform comprises an android platform and an IOS platform;
When the current equipment platform is identified as the android platform, based on android platform communication rules, issuing the second command to the software development kit through a programming language and a communication mode corresponding to an android system;
And when the current equipment platform is identified as the IOS platform, based on the communication rule of the IOS platform, issuing the second command to the software development kit through a programming language corresponding to the IOS system and a communication mode.
Optionally, the step of controlling the software development kit to send the wearable device control instruction corresponding to the second command to the wearable device based on the second command includes:
when the wearable device receives the wearable device control instruction;
And the wearable device executes the operation corresponding to the wearable device control instruction.
Optionally, the step of controlling the software development kit to send the wearable device control instruction corresponding to the second command to the wearable device based on the second command further includes:
receiving device data information sent by the wearable device through a software development kit;
receiving first data information corresponding to the equipment data information through an interface callback of the software development kit;
And when the first data information is received, sending second data information corresponding to the first data information to the application software through a long connection channel established by the application software.
Optionally, when the first data information is received, the step of sending the second data information corresponding to the first data information to the application software through the long connection channel established by the application software includes:
When the application software receives the second data information, storing the second data information in a database;
The application software reads the database and displays the data which is stored in the database and represents the data information of the wearable equipment in the application software;
The device data information includes user measurement data and device firmware data.
The second aspect of the present invention provides a multi-platform interaction device of a wearable device, where the device includes:
The temporary channel creation module is used for acquiring and receiving an interaction control instruction through application software and creating a temporary channel based on the interaction control instruction;
The first command receiving module receives a first command corresponding to the interaction control instruction through the temporary channel;
The second command sending module is used for automatically identifying the currently used equipment platform after receiving the first command, calling a corresponding platform communication rule based on the equipment platform, and sending a second command corresponding to the first command to a software development kit, wherein the platform communication rule comprises a programming language and a communication mode of the corresponding platform;
And the wearable device control module is used for controlling the software development kit to send a wearable device control instruction corresponding to the second command to the wearable device based on the second command.
The third aspect of the present invention provides an intelligent terminal, where the intelligent terminal includes a memory, a processor, and a multi-platform interaction program of a wearable device stored in the memory and capable of running on the processor, where the multi-platform interaction program of the wearable device is executed by the processor to implement any one of the steps of the multi-platform interaction method of the wearable device.
A fourth aspect of the present invention provides a storage medium, where a multi-platform interaction program of a wearable device is stored on the storage medium, where the multi-platform interaction program of the wearable device is executed by a processor to implement a step of any one of the multi-platform interaction methods of the wearable device.
From the above, in the scheme of the invention, the interactive control instruction is acquired and received through the application software, and a temporary channel is created based on the interactive control instruction; receiving a first command corresponding to the interaction control instruction through the temporary channel; after receiving the first command, automatically identifying a currently used equipment platform, calling a corresponding platform communication rule based on the equipment platform, and issuing a second command corresponding to the first command to a software development kit; and based on the second command, controlling the software development kit to send a wearing equipment control instruction corresponding to the second command to the wearing equipment. Compared with the prior art, the invention adds new functions for the terminal equipment: the wearable equipment application with multiple platforms sharing one set of UI and functions is provided, and the maintenance cost of manufacturers is reduced. And calling a channel method corresponding to the equipment platform to transmit the instruction and the command by automatically identifying the current equipment platform, so as to control the wearing equipment by different platforms.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a multi-platform interaction method of a wearable device according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a specific flow chart of the present invention for implementing step S100 in FIG. 1;
FIG. 3 is a schematic diagram illustrating a specific flow chart for implementing step S300 in FIG. 1 according to the present invention;
Fig. 4 is a schematic diagram of a specific flow of interaction with a wearable device through a multi-platform interaction method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a mobile phone APP reading data from a database and displaying the data in the APP;
Fig. 6 is a schematic structural diagram of a multi-platform interaction device of a wearable device according to an embodiment of the present invention;
Fig. 7 is a schematic block diagram of an internal structure of an intelligent terminal according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted in context as "when …" or "once" or "in response to a determination" or "in response to detection. Similarly, the phrase "if a condition or event described is determined" or "if a condition or event described is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a condition or event described" or "in response to detection of a condition or event described".
The following description of the embodiments of the present invention will be made more fully hereinafter with reference to the accompanying drawings, in which embodiments of the invention are shown, it being evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways other than those described herein, and persons skilled in the art will readily appreciate that the present invention is not limited to the specific embodiments disclosed below.
With the development of technology and the improvement of living standard of people, more and more electronic devices are manufactured, and the system corresponding to the electronic devices is updated from time to time, wherein the system in the prior art comprises a windows system of a computer, an IOS, an Zhuoyi and a hong Monte system of a mobile phone. When a new system appears, the development of the corresponding software based on the system is correspondingly needed, and at least a certain logic change is needed on the basis of the existing system software, so that the stable operation on the new system can be realized by changing the logic change into the programming language and logic of the corresponding system platform.
However, each time a new system appears, software manufacturers need to re-develop or modify editing operations on application software, and the software is updated with the risk of having different bugs under each platform, which consumes significant labor and time costs, both from development and maintenance costs.
In order to solve the problems in the prior art, in the scheme of the invention, an interactive control instruction is acquired and received through application software, and a temporary channel is created based on the interactive control instruction; receiving a first command corresponding to the interaction control instruction through the temporary channel; after receiving the first command, automatically identifying a currently used equipment platform, calling a corresponding platform communication rule based on the equipment platform, and issuing a second command corresponding to the first command to a software development kit; and based on the second command, controlling the software development kit to send a wearing equipment control instruction corresponding to the second command to the wearing equipment. Compared with the prior art, the invention adds new functions for the terminal equipment: the wearable equipment application with multiple platforms sharing one set of UI and functions is provided, and the maintenance cost of manufacturers is reduced. And calling a channel method corresponding to the equipment platform to transmit the instruction and the command by automatically identifying the current equipment platform, so as to control the wearing equipment by different platforms.
Exemplary method
As shown in fig. 1, an embodiment of the present invention provides a multi-platform interaction method for a wearable device, and specifically, the method includes the following steps:
Step S100, acquiring and receiving an interaction control instruction through application software, and creating a temporary channel based on the interaction control instruction;
in this embodiment, the application software opened in the device receives the interaction control instruction from the user, for example, the user makes the device execute the control instruction of refreshing data by clicking the operation mode of the screen, and creates a temporary channel (MethodChannels) for issuing information based on the control instruction of refreshing data, where the temporary channel is a channel closed when the message transmission ends.
Step 200, receiving a first command corresponding to the interaction control instruction through the temporary channel;
In this embodiment, in order to implement the solution of the present invention, a cross-platform framework (Channels) is set, and the cross-platform framework receives, through the temporary channel, a first command sent by the application software and corresponding to the interaction control instruction, where the cross-platform framework is a framework developed through google Flutter language, and functions to automatically identify a device platform currently being used by a user. Besides receiving single instruction information sent by the application software through MethodChannels temporary channels, the cross-platform framework can also report data information to the application software through enabling the application software to register EVENTCHANNEL long connection channels in real time or at a fixed frequency. By the method, data transmission from the application software to the cross-platform frames is realized.
Step S300, after receiving the first command, automatically identifying a currently used equipment platform, calling a corresponding platform communication rule based on the equipment platform, and issuing a second command corresponding to the first command to a software development kit, wherein the platform communication rule comprises a programming language and a communication mode of the corresponding platform;
In this embodiment, after the cross-platform framework receives the first command, the cross-platform framework automatically identifies a device platform currently operated by the user, where the platform includes platforms such as IOS, android, hong and windows. And after the cross-platform framework identifies the equipment platform, the cross-platform framework invokes a platform communication rule corresponding to the equipment platform and issues a second command containing the control instruction to a software development kit. The platform communication rules comprise data transmission rules of different platforms and languages and algorithms used by different platforms, for example, android software cannot be installed and run on the IOS side because different platform languages and algorithms used by developers are developed, so sentences and commands contained in the platform communication rules enable IOS side equipment to be unrecognizable, and when the first command is called and converted into a command corresponding to a control instruction of the platform, namely, the second command can be recognized by the platform, and then corresponding operation steps are executed. Through the method, the instruction issued by the user to the application software is automatically converted into the command statement which can be identified by the platform, so that one set of UI can realize data transmission on different platforms.
Step S400, based on the second command, controlling the software development kit to send a wearable device control instruction corresponding to the second command to the wearable device.
In this embodiment, the software development kit includes software for wireless transmission, including a bluetooth software development kit and an NFC software development kit, so that the terminal device can implement data interaction with the wearable device through the software development kit. Therefore, after the software development kit receives the identifiable second command, the command containing the refreshing data is wirelessly sent to the corresponding wearable device through the Bluetooth technology, so that the purpose of automatically identifying and calling the cross-platform frame to send the second command to the corresponding wearable device is achieved, the purpose of controlling the wearable device is achieved, further, the purpose of controlling the wearable device on different platforms through a set of UI and functions by a user is achieved, and the software development cost and the later maintenance cost of equipment manufacturers are reduced.
From the above, according to the multi-platform interaction method for the wearable device provided by the embodiment of the invention, the interaction control instruction is acquired and received through the application software, and the temporary channel is created based on the interaction control instruction; receiving a first command corresponding to the interaction control instruction through the temporary channel; after receiving the first command, automatically identifying a currently used equipment platform, calling a corresponding platform communication rule based on the equipment platform, and issuing a second command corresponding to the first command to a software development kit; and based on the second command, controlling the software development kit to send a wearing equipment control instruction corresponding to the second command to the wearing equipment. Compared with the prior art, the method and the device for the interaction control of the application software of the Bluetooth module have the advantages that the device platform is automatically identified, the first command of the application software is converted into the language which can be identified by the device platform and the communication mode based on the current device platform, and the interaction control command of the user is sent to the corresponding wearable device through the Bluetooth. The method and the system provide services for multiple platforms through one set of UI and function, and reduce the cost of developing application software and the later maintenance cost of manufacturers.
Specifically, in this embodiment, a mobile phone of an android platform commonly used by a user is taken as a terminal device, a wearable device takes an intelligent bracelet as an example, and a bluetooth software development kit is mainly used in a software development kit, and when the mobile phone, the intelligent bracelet and the bluetooth software development kit are other devices or software, the specific scheme in this embodiment can be referred to.
In an application scenario, when mobile phone application software receives an interaction control instruction of a user through a mobile phone touch screen, the mobile phone application software establishes a temporary channel for sending data.
Specifically, as shown in fig. 2, the step S100 includes:
Step S101, acquiring and receiving an interaction control instruction for controlling the wearable equipment through application software;
Step S102, a temporary channel is established through application software.
For example, the cross-platform channel obtains and receives a control instruction of the user to the smart bracelet through the smart bracelet application software, for example, when the user runs out and wants to know the current physical condition of the user through the smart bracelet, the user clicks the read data on the mobile phone application software, the application software receives an operation instruction that the user wants to read the data, controls to create a temporary channel between the cross-platform frames, sends a first command corresponding to the operation instruction of the user to read the data to the cross-platform frames, and closes the temporary channel after the command sending is finished. The temporary channel is created to realize single data transmission from the application software to the cross-platform channel, so that the consumption of the terminal is saved while the data transmission is satisfied.
In one application scenario, a cross-platform framework receives a first command over a temporary channel.
For example, the cross-platform framework receives the first command for reading data sent by application software of the android phone through a temporary channel.
In an application scenario, after the cross-platform channel receives the first command, a device platform currently used by a user is automatically identified, a channel method of the device platform is called based on the device platform, and a second command corresponding to the first command is issued to a software development kit.
Specifically, as shown in fig. 3, the step S300 includes:
step S301, receiving the first command sent by the application software, and automatically identifying a currently used equipment platform;
step S302, calling corresponding platform communication rules according to different equipment platforms;
Step S303, calling a software development tool package interface of the equipment platform based on the platform communication rule, and sending the second command to the software development tool package.
The step of calling a software development kit interface of the equipment platform based on the platform communication rule and sending the second command to the software development kit comprises the following steps:
the equipment platform comprises an android platform and an IOS platform;
when the current equipment platform is identified as the android platform, based on android platform communication rules, the second command is issued to the Bluetooth software development kit through a programming language and a communication mode corresponding to the android system;
And when the current equipment platform is identified as the IOS platform, based on the communication rule of the IOS platform, issuing the second command to the Bluetooth software development kit through a programming language corresponding to the IOS system and a communication mode.
For example, when the cross-platform channel receives the first command sent by the smart bracelet application software, the device platform used by the current user is automatically identified, for example, by reading the device information in the system setting and judging that the current device is android device, the device platform used by the current user is android platform. And further calling a platform communication rule of the android platform based on the android platform, wherein the platform communication rule comprises the language of the android platform and a communication mode in the android platform, calling a Bluetooth software development kit interface of the android platform through the called language and communication mode, and sending a second command which corresponds to the first command and meets the communication mode and language of the android platform to a Bluetooth software development tool. The current equipment platform is automatically identified and a command which can be identified by the platform is issued to the Bluetooth software development kit through the step, so that the aim of using the same set of UI and functions on a plurality of equipment platforms is fulfilled.
In one application scenario, based on the second command, the software development kit sends a wearable device control instruction corresponding to the second command to the smart band through a bluetooth technology.
The step of sending the wearable device control instruction corresponding to the second command to the smart band by the software development kit through the bluetooth technology comprises the following steps:
when the wearable device receives the wearable device control instruction;
And the wearable device executes the operation corresponding to the wearable device control instruction.
For example, the bluetooth software development kit wirelessly transmits the control instruction containing the user reading data instruction to the smart band through bluetooth technology based on the acquired second command.
Further, when the intelligent bracelet receives a control instruction for reading data wirelessly through the Bluetooth technology, the command is executed, the current physical condition of the user is controlled and read once, and the detected negligent physical condition is returned to the mobile phone application software through the Bluetooth technology. The step is used for sending and executing the automatically converted command containing the user control command to the wearable device, so that complete operation of a set of UI and functions on the android system is completed.
Wherein after the step of controlling the software development kit to send the wearable device control instruction corresponding to the second command to the wearable device based on the second command, the method further comprises:
Receiving device data information sent by a wearable device through a Bluetooth software development kit; receiving first data information corresponding to the equipment data information through an interface callback of the Bluetooth software development kit; and when the first data information is received, sending second data information corresponding to the first data information to the application software through a long connection channel established by the application software.
For example, the cross-platform framework receives the user physical condition information returned by the smart bracelet through a Bluetooth software development kit, and further sends the first data information containing the user physical condition information to the cross-platform framework through an interface callback of the Bluetooth software development kit. And after receiving the first data information, the cross-platform framework uploads second data corresponding to the first data to application software of the intelligent bracelet through EVENTCHANNEL long connecting channels established in advance by software. By this method, not only the detected user data but also firmware data of the device, such as a firmware version of the device, can be returned.
Furthermore, the intelligent bracelet application software uploads the user data to a database corresponding to the user through the Internet, and when the mobile phone of the user needs to display the current physical condition data of the user, the user data can be directly called and displayed in the application software of the intelligent bracelet through Bluetooth, and the physical condition data of the user can be displayed in the application software through calling the database data.
In this embodiment, a specific description is further made of a multi-platform interaction method of the wearable device based on an application scenario, and fig. 4 is a specific flowchart of interaction with the wearable device through the multi-platform interaction method according to an embodiment of the present invention, where the steps include:
step S10, starting, acquiring a user receiving instruction, and entering step S11;
step S11, when the APP receives the instruction, a temporary channel between the APP and the Channels cross-platform frame is created, data are sent, and step S12 is entered;
step S12, calling a platform communication rule of the IOS platform according to the current equipment platform, namely the IOS platform, by the Channels cross-platform framework, and entering step S13;
Step S13, calling a Bluetooth software development kit corresponding interface, distributing a command, and entering step S14;
Step S14, the Bluetooth software development kit sends a corresponding instruction to the intelligent wearable device through Bluetooth, and the step S15 is entered;
step S15, after the intelligent wearable device receives the corresponding instruction, executing the instruction and returning a notification message to the Bluetooth software tool development kit, and entering step S16;
step S16, the Bluetooth software development kit actively informs the APP through an interface callback, and the step S17 is entered;
step S17, the Bluetooth software development kit sends a corresponding message notification, and the step S18 is entered;
Step S18, uploading data of a notification message based on a long connection channel established by the APP and the Channels cross-platform frame, and entering step S19;
Step S19, the APP uploads and stores the data of the notification message to a database, wherein the database comprises a cloud database or a local database, and the step S20 is performed;
step S20, the APP displays the current or historical data of the intelligent wearable device by reading the database information, and the process is finished.
In the embodiment of the invention, after a user issues an operation instruction to an APP by means of a touch screen and the like, the APP receives the instruction, establishes a temporary channel, sends a command corresponding to the instruction to a channel cross-platform framework, and further calls a platform communication rule of the IOS platform according to a current equipment platform, namely the IOS platform, the platform communication rule of the IOS platform, the programming language and the communication mode of the IOS platform, calls a Bluetooth software development kit interface based on the platform communication rule of the IOS platform, and issues the command of the user. And when the Bluetooth software development kit receives the command, wirelessly transmitting the command to a corresponding intelligent wearable device to be controlled by a user through Bluetooth, and when the intelligent wearable device receives the command, executing the corresponding command to fulfill the aim of wirelessly controlling the intelligent wearable device through an IOS platform.
Further, after the intelligent wearable device executes the corresponding command, a message notification is returned to the user mobile phone through a bluetooth technology, wherein the message notification can include detected user data, firmware or setting data. And after receiving the returned notification message, the Bluetooth software development kit at the mobile phone end sends a corresponding message notification to the Channels cross-platform framework through an interface callback so as to actively notify the APP. And after the Channels cross-platform framework receives the message notification, sending data of the message notification through a long connection channel registered by the APP and the Channels cross-platform framework. After receiving the message notification data, the APP stores the data in a database, wherein the database can be a local database or a cloud database, and when a user opens a page related to the wearable device in the APP, the APP automatically reads and displays the data related to the wearable device from the database, as shown in fig. 5.
Exemplary apparatus
As shown in fig. 6, corresponding to the multi-platform interaction method of the wearable device, an embodiment of the present invention further provides a multi-platform interaction device of the wearable device, where the multi-platform interaction device of the wearable device includes:
A temporary channel creation module 610, configured to acquire and receive an interaction control instruction through application software, and create a temporary channel based on the interaction control instruction;
in this embodiment, the application software opened in the device receives the interaction control instruction from the user, for example, the control instruction that the user sends the refresh data by clicking the operation mode of the screen, and creates a temporary channel (MethodChannels) for sending the message based on the control instruction of the refresh data, where the temporary channel is a channel that is closed when the message sending is finished.
A first command receiving module 620, configured to receive a first command corresponding to the interactive control instruction through the temporary channel;
In this embodiment, the Channels cross-platform framework receives, through the temporary channel, a first command corresponding to the interaction control instruction sent by the application software, where the cross-platform framework is a framework developed through google Flutter language, and functions to automatically identify a device platform currently being used by a user. Besides receiving single instruction information sent by the application software through MethodChannels temporary channels, the cross-platform framework can also report data information to the application software through enabling the application software to register EVENTCHANNEL long connection channels in real time or at a fixed frequency. By the method, data transmission from the application software to the cross-platform frames is realized.
The second command sending module 630 is configured to automatically identify a currently used device platform after receiving the first command, invoke a corresponding platform communication rule based on the device platform, and send a second command corresponding to the first command to a software development kit, where the platform communication rule includes a programming language and a communication mode of the corresponding platform;
In this embodiment, after the cross-platform framework receives the first command, the cross-platform framework automatically identifies a device platform currently operated by the user, where the platform includes platforms such as IOS, android, hong and windows. And after the cross-platform framework identifies the equipment platform, the cross-platform framework invokes a platform communication rule corresponding to the equipment platform and issues a second command containing the control instruction to a software development kit. The platform communication rules comprise data transmission rules of different platforms and languages and algorithms used by different platforms, for example, android software cannot be installed and operated at the IOS end, because different platform languages and algorithms used by development and use are developed, sentences and commands contained in the platform communication rules enable an IOS mobile phone to be unrecognizable, and when the first command is called and converted into a command corresponding to a control instruction of the platform, namely, the second command can be recognized by the platform, and then corresponding operation steps are executed. Through the method, the instruction issued by the user to the application software is automatically converted into a command statement which can be identified by the platform, and then data transmission is realized on multiple platforms by developing and using one set of UI.
And the wearable device control module 640 is configured to control the software development kit to send a wearable device control instruction corresponding to the second command to the wearable device based on the second command.
In this embodiment, after the software development kit receives the identifiable second command, the command including the refresh data is wirelessly sent to the corresponding wearable device through the bluetooth technology, so that the second command automatically identified and invoked by the cross-platform frame is sent to the corresponding wearable device, the purpose of controlling the wearable device is achieved, further, the purpose of controlling the wearable device by a user on different platforms through a set of UI and functions is achieved, and the software development cost and the later maintenance cost of a device manufacturer are reduced.
As can be seen from the above, in the multi-platform interaction method for the wearable device provided by the embodiment of the present invention, the temporary channel creation module 610 obtains and receives the interaction control instruction through the application software, and creates a temporary channel based on the interaction control instruction; receiving, by the first command receiving module 620, a first command corresponding to the interactive control instruction through the temporary channel; automatically identifying a currently used equipment platform after receiving the first command through the second command sending module 630, calling a corresponding platform communication rule based on the equipment platform, and sending a second command corresponding to the first command to a software development kit; and controlling, by the wearable device control module 640, the software development kit to send a wearable device control instruction corresponding to the second command to the wearable device based on the second command. Compared with the prior art, the method and the device for the interaction control of the application software of the Bluetooth module have the advantages that the device platform is automatically identified, the first command of the application software is converted into the language which can be identified by the device platform and the communication mode based on the current device platform, and the interaction control command of the user is sent to the corresponding wearable device through the Bluetooth. The method and the system provide services for multiple platforms through one set of UI and function, and reduce the cost of developing application software and the later maintenance cost of manufacturers.
Specifically, in this embodiment, specific functions of each module of the multi-platform interaction device of the wearable device may refer to corresponding descriptions in the multi-platform interaction method of the wearable device, which are not described herein.
Based on the above embodiment, the present invention further provides an intelligent terminal, and a functional block diagram thereof may be shown in fig. 7. The intelligent terminal comprises a processor, a memory, a network interface and a display screen which are connected through a system bus. The processor of the intelligent terminal is used for providing computing and control capabilities. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores a multi-platform interaction program of an operating system and a wearable device. The internal memory provides an environment for the operation of the operating system in the non-volatile storage medium and the multi-platform interactive program of the wearable device. The network interface of the intelligent terminal is used for communicating with an external terminal through network connection. And the steps of the multi-platform interaction method of any one of the wearable devices are realized when the multi-platform interaction program of the wearable device is executed by the processor. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen.
It will be appreciated by those skilled in the art that the schematic block diagram shown in fig. 7 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the smart terminal to which the present inventive arrangements are applied, and that a particular smart terminal may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, there is provided an intelligent terminal, the intelligent terminal including a memory, a processor, and a multi-platform interaction program of a wearable device stored on the memory and executable on the processor, the multi-platform interaction program of the wearable device executing the following operation instructions by the processor:
Acquiring and receiving an interaction control instruction through application software, and creating a temporary channel based on the interaction control instruction;
Receiving a first command corresponding to the interaction control instruction through the temporary channel;
After receiving the first command, automatically identifying a currently used equipment platform, calling a corresponding platform communication rule based on the equipment platform, and issuing a second command corresponding to the first command to a software development kit;
And based on the second command, controlling the software development kit to send a wearing equipment control instruction corresponding to the second command to the wearing equipment.
The embodiment of the invention also provides a storage medium, wherein the storage medium is stored with the multi-platform interaction program of the wearable device, and the steps of any multi-platform interaction method of the wearable device provided by the embodiment of the invention are realized when the multi-platform interaction program of the wearable device is executed by a processor.
It should be understood that the sequence number of each step in the above embodiment does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not be construed as limiting the implementation process of the embodiment of the present invention.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present invention. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units described above is merely a logical function division, and may be implemented in other manners, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed.
The integrated modules/units described above may be stored in a storage medium if implemented in the form of software functional units and sold or used as stand-alone products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each method embodiment described above. The computer program comprises computer program code, and the computer program code can be in a source code form, an object code form, an executable file or some intermediate form and the like. The computer readable medium may include: any entity or device capable of carrying the computer program code described above, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. The content contained in the storage medium may be appropriately increased or decreased according to the requirements of the legislation and the practice of patents in the jurisdiction.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions are not intended to depart from the spirit and scope of the various embodiments of the invention, which are also within the spirit and scope of the invention.
Claims (8)
1. A multi-platform interaction method of a wearable device, the method comprising:
Acquiring and receiving an interaction control instruction through application software, and creating a temporary channel based on the interaction control instruction;
Receiving a first command corresponding to the interaction control instruction through the temporary channel;
After receiving the first command, automatically identifying a currently used equipment platform across a platform framework, calling a corresponding platform communication rule based on the equipment platform, and issuing a second command corresponding to the first command to a software development kit, wherein the platform communication rule comprises a programming language and a communication mode of the corresponding platform;
The step of automatically identifying the currently used equipment platform across the platform framework after receiving the first command, calling the corresponding platform communication rule based on the equipment platform, and issuing a second command corresponding to the first command to the software development kit comprises the following steps:
receiving the first command sent by the application software, and automatically identifying a currently used device platform by a cross-platform framework;
calling corresponding platform communication rules according to different equipment platforms;
calling a software development kit interface of the equipment platform based on the platform communication rule, and sending the second command to the software development kit;
The step of calling a software development kit interface of the equipment platform based on the platform communication rule and sending the second command to the software development kit comprises the following steps:
the equipment platform comprises an android platform and an IOS platform;
When the current equipment platform is identified as the android platform, based on android platform communication rules, issuing the second command to the software development kit through a programming language and a communication mode corresponding to an android system;
When the current equipment platform is identified as the IOS platform, based on the communication rule of the IOS platform, the second command is issued to the software development kit through a programming language corresponding to the IOS system and a communication mode;
The method comprises the steps that a current equipment platform is automatically identified, identifiable commands are issued to a Bluetooth software development kit, and the same set of UI and functions are used on a plurality of equipment platforms;
and based on the second command, controlling the development kit to send a wearing equipment control instruction corresponding to the second command to the wearing equipment.
2. The multi-platform interaction method of a wearable device according to claim 1, wherein the step of receiving interaction control instructions through application software acquisition and creating a temporary channel based on the interaction control instructions comprises:
the method comprises the steps of obtaining and receiving an interaction control instruction for controlling the wearable equipment through application software;
And establishing a temporary channel through application software.
3. The method of multi-platform interaction of a wearable device according to claim 1, wherein the step of controlling the software development kit to send the wearable device control instruction corresponding to the second command to the wearable device based on the second command comprises:
when the wearable device receives the wearable device control instruction;
And the wearable device executes the operation corresponding to the wearable device control instruction.
4. The method of multi-platform interaction of a wearable device according to claim 1, wherein the step of controlling the software development kit to send the wearable device control instruction corresponding to the second command to the wearable device based on the second command further comprises:
receiving device data information sent by the wearable device through a software development kit;
receiving first data information corresponding to the equipment data information through an interface callback of the software development kit;
And when the first data information is received, sending second data information corresponding to the first data information to the application software through a long connection channel established by the application software.
5. The multi-platform interaction method of the wearable device according to claim 4, wherein the step of sending the second data information corresponding to the first data information to the application software through the long connection channel established by the application software when the first data information is received comprises:
When the application software receives the second data information, storing the second data information in a database;
The application software reads the database and displays the data which is stored in the database and represents the data information of the wearable equipment in the application software;
The device data information includes user measurement data and device firmware data.
6. A multi-platform interaction device for a wearable device, the device comprising:
The temporary channel creation module is used for acquiring and receiving an interaction control instruction through application software and creating a temporary channel based on the interaction control instruction;
The first command receiving module receives a first command corresponding to the interaction control instruction through the temporary channel;
The second command sending module is used for automatically identifying a currently used equipment platform across a platform frame after receiving the first command, calling a corresponding platform communication rule based on the equipment platform, and sending a second command corresponding to the first command to a software development kit, wherein the platform communication rule comprises a programming language and a communication mode of the corresponding platform;
The step of automatically identifying the currently used equipment platform across the platform framework after receiving the first command, calling the corresponding platform communication rule based on the equipment platform, and issuing a second command corresponding to the first command to the software development kit comprises the following steps:
receiving the first command sent by the application software, and automatically identifying a currently used device platform by a cross-platform framework;
calling corresponding platform communication rules according to different equipment platforms;
calling a software development kit interface of the equipment platform based on the platform communication rule, and sending the second command to the software development kit;
The step of calling a software development kit interface of the equipment platform based on the platform communication rule and sending the second command to the software development kit comprises the following steps:
the equipment platform comprises an android platform and an IOS platform;
When the current equipment platform is identified as the android platform, based on android platform communication rules, issuing the second command to the software development kit through a programming language and a communication mode corresponding to an android system;
When the current equipment platform is identified as the IOS platform, based on the communication rule of the IOS platform, the second command is issued to the software development kit through a programming language corresponding to the IOS system and a communication mode;
The method comprises the steps that a current equipment platform is automatically identified, identifiable commands are issued to a Bluetooth software development kit, and the same set of UI and functions are used on a plurality of equipment platforms;
And the wearable device control module is used for controlling the software development kit to send a wearable device control instruction corresponding to the second command to the wearable device based on the second command.
7. An intelligent terminal, characterized in that the intelligent terminal comprises a memory, a processor and a multi-platform interaction program of a wearable device stored on the memory and capable of running on the processor, the multi-platform interaction program of the wearable device, when executed by the processor, implementing the steps of the multi-platform interaction method of the wearable device according to any of claims 1-5.
8. A storage medium, wherein a multi-platform interaction program of a wearable device is stored on the storage medium, and when executed by a processor, the multi-platform interaction program of the wearable device implements the steps of the multi-platform interaction method of the wearable device according to any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111160018.4A CN113835528B (en) | 2021-09-30 | 2021-09-30 | Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111160018.4A CN113835528B (en) | 2021-09-30 | 2021-09-30 | Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113835528A CN113835528A (en) | 2021-12-24 |
CN113835528B true CN113835528B (en) | 2024-07-19 |
Family
ID=78967672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111160018.4A Active CN113835528B (en) | 2021-09-30 | 2021-09-30 | Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113835528B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114474047A (en) * | 2021-12-28 | 2022-05-13 | 东莞市李群自动化技术有限公司 | Interaction method, equipment and storage medium of communication platform |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103532959A (en) * | 2013-10-21 | 2014-01-22 | 济南政和科技有限公司 | Cross-platform network communication method |
CN104317647A (en) * | 2014-10-31 | 2015-01-28 | 小米科技有限责任公司 | Application function realizing method, device and terminal |
CN112311853A (en) * | 2020-09-28 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Data synchronization method, device, equipment and computer readable storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105100208A (en) * | 2015-06-19 | 2015-11-25 | 惠州Tcl移动通信有限公司 | Communication method of mobile terminal and wearable device |
KR20180028125A (en) * | 2016-09-08 | 2018-03-16 | (주)인포마크 | Application platform server based on wearable device for kids and method of providing the application |
US10656806B2 (en) * | 2018-04-21 | 2020-05-19 | Augmentalis Inc. | Display interface systems and methods |
CN109621404B (en) * | 2018-11-21 | 2023-04-18 | 罗伊互娱(深圳)有限公司 | Cross-platform interaction system, method and device, computer equipment and storage medium |
CN111381508B (en) * | 2018-12-29 | 2024-03-12 | 深圳Tcl新技术有限公司 | Control method, system and storage medium for smart home |
-
2021
- 2021-09-30 CN CN202111160018.4A patent/CN113835528B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103532959A (en) * | 2013-10-21 | 2014-01-22 | 济南政和科技有限公司 | Cross-platform network communication method |
CN104317647A (en) * | 2014-10-31 | 2015-01-28 | 小米科技有限责任公司 | Application function realizing method, device and terminal |
CN112311853A (en) * | 2020-09-28 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Data synchronization method, device, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113835528A (en) | 2021-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107622240B (en) | Face detection method and device | |
CN109857486B (en) | Method, device, equipment and medium for processing program page data | |
CN105335132B (en) | Method, device and system for customizing application program function | |
EP3989149A1 (en) | Method and apparatus for executing smart contract | |
CN109857506B (en) | Method and device for realizing guide information, electronic equipment and storage medium | |
US10768947B2 (en) | Method for interface refresh synchronization,terminal device, and non-transitory computer-readable storage medium | |
US20190342737A1 (en) | Remote bluetooth communication system | |
CN112306793A (en) | Method and device for monitoring webpage | |
KR20180024337A (en) | A driving method for a display including a curved display area and a display driving circuit and an electronic device supporting the same | |
CN113835528B (en) | Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium | |
CN111381965A (en) | Method and apparatus for processing requests | |
CN112380475A (en) | Method and device for generating page | |
CN112000336A (en) | Interface rendering method, electronic device and computer-readable storage medium | |
CN112954056B (en) | Method and device for processing monitoring data, electronic equipment and storage medium | |
CN111767098A (en) | Method and device for adjusting font size | |
CN105425957A (en) | Terminal equipment control method and device | |
CN114077372B (en) | Information display method, device and storage medium | |
CN113296771B (en) | Page display method, device, equipment and computer readable medium | |
CN111666068B (en) | Platform development framework, construction method, equipment and medium | |
KR20180092075A (en) | Method for processing card information and electronic device thereof | |
CN112698884A (en) | Program starting method, device, system, equipment and storage medium | |
CN113283730B (en) | Universal approval process application method and device | |
CN112306516B (en) | Method and apparatus for updating code | |
CN111292329B (en) | Training method and device of video segmentation network and electronic equipment | |
US20240005107A1 (en) | Software application identification for device |
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 |