CN113835528A - 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 PDF

Info

Publication number
CN113835528A
CN113835528A CN202111160018.4A CN202111160018A CN113835528A CN 113835528 A CN113835528 A CN 113835528A CN 202111160018 A CN202111160018 A CN 202111160018A CN 113835528 A CN113835528 A CN 113835528A
Authority
CN
China
Prior art keywords
platform
command
wearable device
control instruction
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.)
Pending
Application number
CN202111160018.4A
Other languages
Chinese (zh)
Inventor
宗志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Konka Electronic Technology Co Ltd
Original Assignee
Shenzhen Konka Electronic Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Konka Electronic Technology Co Ltd filed Critical Shenzhen Konka Electronic Technology Co Ltd
Priority to CN202111160018.4A priority Critical patent/CN113835528A/en
Publication of CN113835528A publication Critical patent/CN113835528A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30076Arrangements 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)
  • 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 interactive control instruction through application software, and creating a temporary channel based on the interactive control instruction; receiving a first command corresponding to the interactive control instruction through the temporary channel; automatically identifying the currently used equipment platform after receiving the first command, 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 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. Compared with the prior art, the method and the device achieve the purpose of applying a set of UI and functions to a plurality of platforms by automatically identifying the equipment platform and calling the communication rule of the corresponding platform, and reduce the software development and maintenance cost.

Description

Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium
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
Along with the development of science and technology, the kind of intelligence wearing equipment is more and more, including equipment such as intelligent wrist-watch, intelligent glasses, can provide various demands for people. However, when a user wants to view data of the smart wearable device through a web or a mobile phone, a smart device manufacturer needs to develop and maintain the UIs and functions of the web end, the android end and the IOS end, and the consumed time and labor cost are high.
Thus, there is still a need for improvement and development of the prior 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, an intelligent equipment manufacturer needs to respectively develop software of a plurality of platform ends when developing matched application software, so that time and labor cost are consumed when maintaining UI and functions of each platform are high.
In order to achieve the above object, a first aspect of the present invention provides a multi-platform interaction method for a wearable device, where the method includes:
acquiring and receiving an interactive control instruction through application software, and creating a temporary channel based on the interactive control instruction;
receiving a first command corresponding to the interactive control instruction through the temporary channel;
automatically identifying the currently used equipment platform after receiving the first command, 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 controlling the development kit to send a wearable device control instruction corresponding to the second command to the wearable device based on the second command.
Optionally, the step of obtaining and receiving the interactive control instruction through the application software, and creating the temporary channel based on the interactive control instruction includes:
acquiring and receiving an interactive control instruction for controlling the wearable equipment through application software;
a temporary channel is established by the 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 the 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 device platform comprises an android platform and an IOS platform;
when the current equipment platform is identified to be an android platform, based on android platform communication rules, the second command is issued to the software development toolkit through a programming language and a communication mode corresponding to an android system;
and when the current equipment platform is identified to be the IOS platform, based on the IOS platform communication rule, the second command is issued to the software development kit through a programming language corresponding to the IOS system and a communication mode.
Optionally, 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 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, 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 includes:
receiving equipment data information sent by the wearable equipment through a software development kit;
receiving first data information corresponding to the equipment data information through 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, after the step of sending, to the application software, the second data information corresponding to the first data information through the long connection channel established by the application software when the first data information is received, the step 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 are stored in the database and represent the data information of the wearable equipment in the application software;
the device data information includes user measurement data and device firmware data.
The invention provides a multi-platform interaction device of wearable equipment in a second aspect, wherein the device comprises:
the temporary channel creating module is used for acquiring and receiving an interactive control instruction through application software and creating a temporary channel based on the interactive control instruction;
the first command receiving module is used for receiving a first command corresponding to the interactive 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 issuing a second command corresponding to the first command to the 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 invention provides an intelligent terminal, which comprises a memory, a processor and a multi-platform interactive program of a wearable device, wherein the multi-platform interactive program of the wearable device is stored in the memory and can run on the processor, and when being executed by the processor, the multi-platform interactive program of the wearable device realizes the steps of any one multi-platform interactive method of the wearable device.
A fourth aspect of the present invention provides a storage medium, where a multi-platform interactive program of a wearable device is stored on the storage medium, and when executed by a processor, the multi-platform interactive program of the wearable device implements any one of the steps of the multi-platform interactive method of the wearable device.
As can be seen from the above, in the scheme of the present invention, an interactive control instruction is obtained and received through application software, and a temporary channel is created based on the interactive control instruction; receiving a first command corresponding to the interactive control instruction through the temporary channel; automatically identifying the currently used equipment platform after receiving the first command, 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 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. Compared with the prior art, the invention adds new functions to the terminal equipment: the wearable device application with the UI and the functions shared by multiple platforms is provided, and the maintenance cost of manufacturers is reduced. The current equipment platform is automatically identified, and a channel method corresponding to the equipment platform is called to transmit instructions and commands, so that different platforms control the wearing equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions 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 it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a multi-platform interaction method of a wearable device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating the implementation of step S100 in FIG. 1;
FIG. 3 is a schematic flow chart illustrating the implementation of step S300 in FIG. 1;
fig. 4 is a schematic flowchart of a specific process of interacting 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 particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the 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 will 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 herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention 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 this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when …" or "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted depending on the context to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings of the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of 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 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 than those specifically described and will be readily apparent to those of ordinary skill in the art without departing from the spirit of the present invention, and therefore the present invention is not limited to the specific embodiments disclosed below.
Along with the development of science and technology and the improvement of people's standard of living, more and more electronic equipment is made, and the system that corresponds electronic equipment is also innovated from time to time, and system among the prior art includes the windows system of computer, the IOS of cell-phone, android and the hong meng system. When a new system appears, corresponding software needs to be developed based on the system, and at least certain logic change needs to be performed on the basis of the existing system software, so that the stable operation on the new system can be realized by changing the system into the programming language and logic of a corresponding system platform.
However, each time a new system appears, a software manufacturer needs to perform re-development or modification editing operation on the application software, and the software is updated with the risk of different bugs appearing under each platform, which consumes labor cost and time cost in terms of development and maintenance cost.
In order to solve the problems in the prior art, in the scheme of the invention, an interaction control instruction is obtained and received through application software, and a temporary channel is created based on the interaction control instruction; receiving a first command corresponding to the interactive control instruction through the temporary channel; automatically identifying the currently used equipment platform after receiving the first command, 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 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. Compared with the prior art, the invention adds new functions to the terminal equipment: the wearable device application with the UI and the functions shared by multiple platforms is provided, and the maintenance cost of manufacturers is reduced. The current equipment platform is automatically identified, and a channel method corresponding to the equipment platform is called to transmit instructions and commands, so that different platforms control the wearing equipment.
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:
s100, acquiring and receiving an interactive control instruction through application software, and creating a temporary channel based on the interactive control instruction;
in this embodiment, an application software opened in a device receives an interactive control instruction obtained from a user, for example, a control instruction for causing the device to execute a refresh data by an operation mode of clicking a screen by the user, and then the application software creates a temporary channel (MethodChannels) for issuing information based on the control instruction for refreshing data, where the temporary channel is a channel that is closed when a message is sent.
Step S200, receiving a first command corresponding to the interactive control instruction through the temporary channel;
in this embodiment, a cross-platform framework is set for implementing the scheme of the present invention, where the cross-platform framework (Channels) receives, through the temporary channel, a first command corresponding to the interactive control instruction sent by the application software, and the cross-platform framework is developed through google Flutter language and is used to automatically identify an equipment platform currently used by a user. Besides receiving a single instruction message sent by application software through a MethodChannels temporary channel, the cross-platform framework can report data information to the application software in real time or at a fixed frequency by enabling the application software to register an EventChannel long connection channel. By the method, the data transmission from the application software to the cross-platform framework of the control instruction is realized.
Step S300, automatically identifying the currently used equipment platform after receiving the first command, 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 running by the user, where the platform includes an IOS, an android, a grand Monte and a windows platform. And after the cross-platform framework identifies the equipment platform, the cross-platform framework calls 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 the different platforms, for example, android software cannot be installed and run at the IOS end because different platform languages and algorithms used by developers are developed, so statements and commands contained in the android software cannot be recognized by IOS end equipment, and when the first command is called and converted into a command of a control instruction of the corresponding platform, namely the second command, the second command can be recognized by the platform, and then corresponding operation steps are executed. By the method, the instruction issued by the user to the application software is automatically converted into the command sentence which can be recognized 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, which includes 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 recognizable second command, the command containing the refresh data is wirelessly sent to the corresponding wearable device through the Bluetooth technology, the second command which is automatically recognized and called by the cross-platform framework is sent to the corresponding wearable device, the purpose of controlling the wearable device is achieved, and therefore the user can control the wearable device on different platforms through one set of UI and functions, and the software development cost and the later maintenance cost of a device manufacturer are reduced.
As can be seen from the above, the multi-platform interaction method for the wearable device provided by the embodiment of the invention obtains and receives the interaction control instruction through the application software, and creates the temporary channel based on the interaction control instruction; receiving a first command corresponding to the interactive control instruction through the temporary channel; automatically identifying the currently used equipment platform after receiving the first command, 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 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. Compared with the prior art, the scheme of the invention realizes that the interactive control instruction of the user is sent to the corresponding wearable device through the Bluetooth by automatically identifying the device platform and converting the first command of the application software into the language and the communication mode which can be identified by the device platform based on the current device platform. The multi-platform system can provide services for multiple platforms through a set of UI and functions, and reduces the cost for manufacturers to develop application software and the later maintenance cost.
Specifically, in this embodiment, a mobile phone of an android platform commonly used by a user is used as a terminal device, a wearable device is an intelligent bracelet as an example, and a bluetooth software development kit is mainly used in the 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, mobile phone application software receives an interactive control instruction of a user through a mobile phone touch screen, and then establishes a temporary channel for sending data.
Specifically, as shown in fig. 2, the step S100 includes:
s101, acquiring and receiving an interactive control instruction for controlling the wearable equipment through application software;
and step S102, establishing a temporary channel through application software.
For example, the cross-platform channel obtains and receives a control instruction of the user on the smart band through the smart band application software, for example, when the user runs out and wants to know the current physical condition of the user through the smart band, 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 data, controls to create a temporary channel between the cross-platform frame and the cross-platform frame, sends a first command corresponding to the operation instruction that the user reads data to the cross-platform frame, and closes the temporary channel after the command is sent. The temporary channel is created to realize single data transmission of 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 through a temporary channel.
For example, the cross-platform framework receives the first command for reading data sent by the application software of the android phone through a temporary channel.
In an application scenario, after the cross-platform channel receives the first command, the equipment platform currently used by the user is automatically identified, and a channel method of the equipment platform is called based on the equipment 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 the currently used equipment platform;
step S302, calling corresponding platform communication rules according to different equipment platforms;
step S303, based on the platform communication rule, calling a software development kit interface of the equipment platform, and sending the second command to the software development kit.
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 comprises:
the device platform comprises an android platform and an IOS platform;
when the current equipment platform is identified to be an android platform, based on the android platform communication rule, the second command is issued to the Bluetooth software development kit through a programming language and a communication mode corresponding to an android system;
and when the current equipment platform is identified to be the IOS platform, based on the IOS platform communication rule, the second command is issued 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 band application software, the device platform used by the current user is automatically identified, for example, by reading device information in the system setting, it is determined that the current device is an android device, and then the device platform used by the current user is the android platform. And further calling platform communication rules of the android platform based on the android platform, wherein the platform communication rules comprise the language of the android platform and the 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 requirements of the communication mode and the language of the android platform to a Bluetooth software development tool. The current equipment platform is automatically identified through the step and the command which can be identified by the platform is sent to the Bluetooth software development kit, so that the purpose of using the same set of UI and functions on a plurality of equipment platforms is realized.
In an 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.
Wherein, include after the step that the software development toolkit passes through bluetooth and sends wearing equipment control command that corresponds with the second order to intelligent bracelet:
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 sends the control instruction containing the user data reading instruction to the smart band through a bluetooth technology based on the obtained second command.
Furthermore, when the intelligent bracelet wirelessly receives a control instruction for reading data through the Bluetooth technology, the instruction is executed, the current physical condition of the user is controlled to be read once, and the detected neglected physical condition is transmitted back to the mobile phone application software through the Bluetooth technology. The automatically converted command containing the user control instruction is sent to the wearable device and executed through the step, and 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 equipment data information sent by the wearable equipment through a Bluetooth software development kit; receiving first data information corresponding to the equipment data information through 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 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 smart band through an EventChannel long connecting channel pre-established by software. By this method not only detected user data but also firmware data of the device, such as device firmware version, etc., can be returned.
Furthermore, the intelligent bracelet application software uploads user data to a database corresponding to a user through the Internet, and when the current physical condition data of the user needs to be displayed on a mobile phone of the user, the user data can be directly called and displayed in the intelligent bracelet application software through Bluetooth, and the physical condition data of the user can be displayed in the application software through calling database data.
In this embodiment, the multi-platform interaction method of the wearable device is further specifically described based on an application scenario, and fig. 4 is a specific flowchart illustrating 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, start, obtain and receive the user command, enter step S11;
step S11, when the APP receives the instruction, a temporary channel between the APP and the channel cross platform frame is established, data is sent, and the step S12 is started;
step S12, the Channels cross-platform framework calls a platform communication rule of the IOS platform according to the current equipment platform, namely the IOS platform, and the step S13 is entered;
step S13, calling a corresponding interface of the Bluetooth software development kit, 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 calls back an active notification APP through an interface, and the step S17 is entered;
step S17, the Bluetooth software development kit sends a corresponding message notification, and the step S18 is entered;
s18, uploading data of the notification message based on the long connection channel established by the APP and the Channels cross-platform framework, and entering S19;
step S19, the APP uploads and stores the data of the notification message to a database, the database comprises a cloud database or a local database, and the step S20 is entered;
and S20, the APP displays the current or historical data of the intelligent wearable device by reading the database information, and the method is ended.
As can be seen from the above, in the specific application embodiment of the present invention, after a user issues an operation instruction to an APP through a touch screen or other manners, the APP receives the instruction, establishes a temporary channel, and sends a command corresponding to the instruction to a channelspan framework, and further the channelspan framework invokes a platform communication rule of the IOS platform according to a current device platform, that is, the IOS platform, including a programming language and a communication manner of the IOS platform, and invokes a bluetooth software development kit interface based on the platform communication rule of the IOS platform and issues the command of the user. When the Bluetooth software development kit receives the command, the command is wirelessly sent to the corresponding intelligent wearable device to be controlled by the user through Bluetooth, and when the intelligent wearable device receives the command, the corresponding command is executed, so that the purpose of wirelessly controlling the intelligent wearable device through the IOS platform is achieved.
Further, after the intelligent wearable device executes the corresponding command, a message notification is returned to the user mobile phone through a bluetooth technology, where the message notification may include detected user data, or may also include firmware or setting data. And after receiving the returned notification message, a Bluetooth software development kit at the mobile phone end sends a corresponding message notification to the Channels cross-platform framework through interface callback so as to actively notify the APP. And after receiving the message notification, the Channels cross-platform framework sends the data of the message notification through a long connecting channel which is registered by the APP and is connected with the Channels cross-platform framework. After receiving the message notification data, the APP stores the data in a database, where the database may be a local database or a cloud database, and when a user opens a page of the wearable device in the APP, the APP automatically reads and displays data related to the wearable device from the database, as shown in fig. 5.
Exemplary device
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 apparatus of a wearable device, where the multi-platform interaction apparatus of the wearable device includes:
a temporary channel creating module 610, configured to obtain, through application software, a received interaction control instruction, and create a temporary channel based on the interaction control instruction;
in this embodiment, an application software opened in a device receives an interactive control instruction obtained from a user, for example, a control instruction for issuing refresh data by a user through an operation mode of clicking a screen, and then the application software creates a temporary channel (MethodChannels) for issuing information based on the control instruction for issuing refresh data, where the temporary channel is a channel that is closed when a message is sent.
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 interactive control instruction sent by the application software, where the cross-platform framework is a framework developed in google Flutter language and is used to automatically identify an equipment platform currently used by a user. Besides receiving a single instruction message sent by application software through a MethodChannels temporary channel, the cross-platform framework can report data information to the application software in real time or at a fixed frequency by enabling the application software to register an EventChannel long connection channel. By the method, the data transmission from the application software to the cross-platform framework of the control instruction is realized.
A second command sending module 630, configured to receive the first command, automatically identify a currently used device platform, call a corresponding platform communication rule based on the device platform, and issue 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 running by the user, where the platform includes an IOS, an android, a grand Monte and a windows platform. And after the cross-platform framework identifies the equipment platform, the cross-platform framework calls 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 the different platforms, for example, the reason that android software cannot be installed and run at an IOS end is that the different platform languages and algorithms used are developed, so statements and commands contained in the data enable an IOS mobile phone to be unrecognizable, and when the first command is called and converted into a command of a control instruction of the corresponding platform, namely the second command, the second command can be recognized by the platform, and then the corresponding operation steps are executed. By the method, the instruction issued by the user to the application software is automatically converted into the command sentence which can be recognized by the platform, and then a set of UI is developed and used for realizing data transmission on multiple platforms.
And the wearable device control module 640 is configured to control, based on the second command, the software development kit to send a wearable device control instruction corresponding to the second command to the wearable device.
In this embodiment, after the software development kit receives the recognizable second command, the command containing the refresh data is wirelessly sent to the corresponding wearable device through the bluetooth technology, so that the second command automatically recognized and called by the cross-platform framework is sent to the corresponding wearable device, the purpose of controlling the wearable device is fulfilled, and then the user can control the wearable device on different platforms through one set of UI and functions, thereby reducing the software development cost and the later maintenance cost of the device manufacturer.
As can be seen from the above, in the multi-platform interaction method for a wearable device provided in the embodiment of the present invention, the temporary channel creation module 610 obtains and receives an interaction control instruction through 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; through the second command sending module 630, after receiving the first command, the currently used device platform is automatically identified, a corresponding platform communication rule is called based on the device platform, and a second command corresponding to the first command is issued to the software development kit; through the wearable device control module 640, based on the second command, the software development kit is controlled to send a wearable device control instruction corresponding to the second command to the wearable device. Compared with the prior art, the scheme of the invention realizes that the interactive control instruction of the user is sent to the corresponding wearable device through the Bluetooth by automatically identifying the device platform and converting the first command of the application software into the language and the communication mode which can be identified by the device platform based on the current device platform. The multi-platform system can provide services for multiple platforms through a set of UI and functions, and reduces the cost for manufacturers to develop application software and the later maintenance cost.
Specifically, in this embodiment, the specific functions of each module of the multi-platform interaction device of the wearable device may refer to the corresponding descriptions in the multi-platform interaction method of the wearable device, and are not described herein again.
Based on the above embodiment, the present invention further provides an intelligent terminal, and a schematic block diagram thereof may be as 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. Wherein, the processor of the intelligent terminal is used for providing calculation and control capability. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores a multi-platform interactive program of an operating system and the wearable device. The internal memory provides an environment for the operation of the operating system in the nonvolatile storage medium and the multi-platform interactive program of the wearable device. The network interface of the intelligent terminal is used for being connected and communicated with an external terminal through a network. When being executed by a processor, the multi-platform interaction program of the wearable device realizes the steps of any one of the multi-platform interaction methods of the wearable device. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen.
It will be understood by those skilled in the art that the block diagram of fig. 7 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the intelligent terminal to which the solution of the present invention is applied, and a specific intelligent terminal may include more or less components than those shown in the figure, or combine some components, or have different arrangements of components.
In one embodiment, an intelligent terminal is provided, where the intelligent terminal includes a memory, a processor, and a multi-platform interactive program of a wearable device stored on the memory and executable on the processor, and the multi-platform interactive program of the wearable device performs the following operation instructions when executed by the processor:
acquiring and receiving an interactive control instruction through application software, and creating a temporary channel based on the interactive control instruction;
receiving a first command corresponding to the interactive control instruction through the temporary channel;
automatically identifying the currently used equipment platform after receiving the first command, 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 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 embodiment of the invention also provides a storage medium, wherein the storage medium is stored with a multi-platform interactive program of the wearable device, and the multi-platform interactive program of the wearable device realizes the steps of any one of the multi-platform interactive methods of the wearable device provided by the embodiment of the invention when executed by a processor.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would 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 implementation. 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 ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the above modules or units is only one logical division, and the actual implementation may be implemented by another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
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 separate products. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a storage medium and executed by a processor, to instruct related hardware to implement the steps of the above-described embodiments of the method. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the contents contained in the storage medium may be increased or decreased as appropriate according to the requirements of legislation and patent practice in the jurisdiction.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein.

Claims (10)

1. A multi-platform interaction method of a wearable device, the method comprising:
acquiring and receiving an interactive control instruction through application software, and creating a temporary channel based on the interactive control instruction;
receiving a first command corresponding to the interactive control instruction through the temporary channel;
automatically identifying the currently used equipment platform after receiving the first command, 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 controlling the development kit to send a wearable device control instruction corresponding to the second command to the wearable device based on the second command.
2. The multi-platform interaction method of the wearable device according to claim 1, wherein the step of obtaining and receiving an interaction control command through application software, and creating a temporary channel based on the interaction control command comprises:
acquiring and receiving an interactive control instruction for controlling the wearable equipment through application software;
a temporary channel is established by the application software.
3. The multi-platform interaction method of the wearable device according to claim 1, wherein 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 a software development kit comprises:
receiving the first command sent by the application software, and automatically identifying the 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.
4. The multi-platform interaction method of the wearable device as claimed in claim 3, wherein 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 comprises:
the device platform comprises an android platform and an IOS platform;
when the current equipment platform is identified to be an android platform, based on android platform communication rules, the second command is issued to the software development toolkit through a programming language and a communication mode corresponding to an android system;
and when the current equipment platform is identified to be the IOS platform, based on the IOS platform communication rule, the second command is issued to the software development kit through a programming language corresponding to the IOS system and a communication mode.
5. The multi-platform interaction method for the 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.
6. The multi-platform interaction method for the 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 equipment data information sent by the wearable equipment through a software development kit;
receiving first data information corresponding to the equipment data information through 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.
7. The multi-platform interaction method of the wearable device as claimed in claim 6, wherein the step of sending the second data information corresponding to the first data information to the application software through a long connection channel established by the application software after receiving the first data information 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 are stored in the database and represent the data information of the wearable equipment in the application software;
the device data information includes user measurement data and device firmware data.
8. A multi-platform interaction device for a wearable device, the device comprising:
the temporary channel creating module is used for acquiring and receiving an interactive control instruction through application software and creating a temporary channel based on the interactive control instruction;
the first command receiving module is used for receiving a first command corresponding to the interactive 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 issuing a second command corresponding to the first command to the 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.
9. An intelligent terminal, characterized in that the intelligent terminal comprises a memory, a processor and a multi-platform interactive program of a wearable device stored on the memory and capable of running on the processor, and when executed by the processor, the multi-platform interactive program of the wearable device realizes the steps of the multi-platform interactive method of the wearable device according to any one of claims 1 to 7.
10. A storage medium, wherein the storage medium stores thereon a multi-platform interactive program of a wearable device, and the multi-platform interactive program of the wearable device, when executed by a processor, implements the steps of the multi-platform interactive method of the wearable device according to any one of claims 1 to 7.
CN202111160018.4A 2021-09-30 2021-09-30 Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium Pending CN113835528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111160018.4A CN113835528A (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 CN113835528A (en) 2021-09-30 2021-09-30 Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113835528A true CN113835528A (en) 2021-12-24

Family

ID=78967672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111160018.4A Pending CN113835528A (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) CN113835528A (en)

Citations (8)

* Cited by examiner, † Cited by third party
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
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
CN109621404A (en) * 2018-11-21 2019-04-16 罗伊互娱(深圳)有限公司 Cross-platform interchange system, method, apparatus, computer equipment and storage medium
US20190324613A1 (en) * 2018-04-21 2019-10-24 Augmentalis Inc. Display interface systems and methods
CN111381508A (en) * 2018-12-29 2020-07-07 深圳Tcl新技术有限公司 Control method and system for smart home and storage medium
CN112311853A (en) * 2020-09-28 2021-02-02 北京沃东天骏信息技术有限公司 Data synchronization method, device, equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
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
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
US20190324613A1 (en) * 2018-04-21 2019-10-24 Augmentalis Inc. Display interface systems and methods
CN109621404A (en) * 2018-11-21 2019-04-16 罗伊互娱(深圳)有限公司 Cross-platform interchange system, method, apparatus, computer equipment and storage medium
CN111381508A (en) * 2018-12-29 2020-07-07 深圳Tcl新技术有限公司 Control method and system for smart home and storage medium
CN112311853A (en) * 2020-09-28 2021-02-02 北京沃东天骏信息技术有限公司 Data synchronization method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
EP4083774A1 (en) Image drawing method and apparatus, readable medium, and electronic device
CN105335132B (en) Method, device and system for customizing application program function
CN109857506B (en) Method and device for realizing guide information, electronic equipment and storage medium
CN109754072B (en) Processing method of network offline model, artificial intelligence processing device and related products
CN109408481B (en) Log collection rule updating method and device, electronic equipment and readable medium
CN109800020B (en) Automatic code adjusting method, device, equipment and medium for program development
CN112380475A (en) Method and device for generating page
WO2017206893A1 (en) Interface refresh synchronization method and apparatus, terminal, and storage medium
KR100695080B1 (en) Mobile Communication Terminal Having Screen Splitting Function
CN111694629A (en) Information display method and device and electronic equipment
CN106157347B (en) Resource exchange data processing method, device and system
CN105425957A (en) Terminal equipment control method and device
CN113835528A (en) Multi-platform interaction method and device of wearable device, intelligent terminal and storage medium
CN109976857B (en) Display control method and device of terminal interface, storage medium and electronic equipment
CN112000336A (en) Interface rendering method, electronic device and computer-readable storage medium
CN110727558A (en) Information prompting method and device, storage medium and electronic equipment
CN111666068B (en) Platform development framework, construction method, equipment and medium
CN116107680A (en) Operation guiding method and device of mobile terminal and electronic equipment
CN111767098A (en) Method and device for adjusting font size
CN113448668B (en) Method and device for skipping popup window and electronic equipment
CN114077372A (en) Information display method, device and storage medium
CN113296771A (en) Page display method, device, equipment and computer readable medium
CN113672885A (en) Application authorization method and device and electronic equipment
CN112767565A (en) OBU issuing and activating method and device based on vehicle machine and electronic equipment
CN110618849A (en) Notification bar setting method, device, equipment and 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