CN113114763A - Device function sharing method, device, terminal and storage medium - Google Patents

Device function sharing method, device, terminal and storage medium Download PDF

Info

Publication number
CN113114763A
CN113114763A CN202110390558.5A CN202110390558A CN113114763A CN 113114763 A CN113114763 A CN 113114763A CN 202110390558 A CN202110390558 A CN 202110390558A CN 113114763 A CN113114763 A CN 113114763A
Authority
CN
China
Prior art keywords
sharing
target
function
equipment
network
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
CN202110390558.5A
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202110390558.5A priority Critical patent/CN113114763A/en
Publication of CN113114763A publication Critical patent/CN113114763A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 

Abstract

The invention discloses a method, a device, a terminal and a storage medium for sharing equipment functions, wherein the method comprises the following steps: when detecting a shared network, accessing the shared network, and broadcasting a first sharable function information table in the shared network, wherein the shared network is constructed by deploying a uniform transmission protocol and a uniform broadcast protocol in all shared devices; receiving and recording a second sharable function information table fed back by online sharing equipment in a sharing network; when a sharing request is sent to one target sharing device on line in the sharing network according to the second sharable function information table, the function of the target sharing device is called, or when the sharing request sent by the target sharing device is received, the target sharing device is allowed to call the function of the target sharing device. According to the invention, the functions of the devices can be shared among different communication devices by establishing the sharing network based on the Internet of things.

Description

Device function sharing method, device, terminal and storage medium
Technical Field
The present application relates to the field of communications technologies for internet of things, and in particular, to a method, an apparatus, a terminal, and a storage medium for sharing device functions.
Background
With the continuous development of electronic products, the functions of the existing electronic products are more and more, the types of integrated sensors are increasing, but the integrated sensors are still not enough to meet the requirements of users, for example, a GPS module, a camera, a microphone, a speaker, a geomagnetic sensor, a gyroscope, an acceleration sensor, a light sensor, a proximity sensor, a gravity sensor, and the like can be integrated on a mobile phone, and some mobile phones also have a heartbeat sensor, a pedometer, and the like. However, hardware configurations of different types of devices are not completely the same, for example, most of existing smart televisions are not equipped with a camera, and cannot perform video, but have a large screen display, while a mobile phone is equipped with a camera, but the screen of the mobile phone is too small compared with the television screen, and on the television, once a problem occurs in the hardware of the device, the corresponding function cannot be used unless the accessory is replaced.
For example, the mobile phone and the smart television are connected to the same local area network, and the mobile phone can call the large screen of the smart television to play the video being played, but the sharing mode is heavily dependent on the communication mode between the electronic products and can only realize point-to-point sharing.
Disclosure of Invention
The application provides a method, a device, a terminal and a storage medium for sharing device functions, which are used for solving the problems that the existing hardware sharing mode has larger limitation and is difficult to meet the requirements of users.
In order to solve the technical problem, the application adopts a technical scheme that: provided is a device function sharing method, including: when detecting a shared network, accessing the shared network, and broadcasting a first sharable function information table in the shared network, wherein the shared network is constructed by deploying a uniform transmission protocol and a uniform broadcast protocol in all shared devices; receiving and recording a second sharable function information table fed back by online sharing equipment in a sharing network; when a sharing request is sent to one target sharing device on line in the sharing network according to the second sharable function information table, the function of the target sharing device is called, or when the sharing request sent by the target sharing device is received, the target sharing device is allowed to call the function of the target sharing device.
As a further improvement of the present application, when a sharing request initiated by a target sharing device is received, allowing the target sharing device to invoke its own function includes: when a sharing request initiated by a target sharing device is received, target user information of the target sharing device is obtained and compared with local user information; if the target user information is the same as the local user information, allowing the target sharing equipment to directly call the corresponding function of the target sharing equipment; and if the target user information is different from the local user information, allowing the target sharing equipment to call the corresponding function of the target sharing equipment when the target sharing equipment is determined to have the right of calling the function of the target sharing equipment.
As a further improvement of the present application, when a sharing request initiated by a target sharing device is received, allowing the target sharing device to invoke its own function includes: when a sharing request initiated by a target sharing device is received, inquiring whether a target function requested to be called by the target sharing device needs to be authenticated; if so, allowing the target sharing equipment to call the target function when the target sharing equipment has the right of calling the target function; and if not, allowing the target sharing equipment to directly call the target function.
As a further improvement of the present application, after allowing the target sharing device to invoke its own function when receiving a sharing request initiated by the target sharing device, the method further includes: the function that has been called is marked as occupied in the first sharable function information table, and the first sharable function information table is rebroadcast in the sharing network.
As a further improvement of the present application, when a sharing request is initiated to a target sharing device online in the sharing network according to the second sharable function information table, the invoking of the function of the target sharing device includes: confirming all sharing devices with target functions from all sharing devices; and inquiring the second sharable function information tables of all the sharing devices with the target function to confirm the target sharing device with the target function in an idle state, and initiating a request for calling the target function to the target device.
As a further improvement of the present application, after receiving and recording the second sharable function information table fed back by the online sharing device in the sharing network, the method further includes: when detecting that the device which does not join the shared network sends a request for joining the shared network through the first communication mode, sending a transmission protocol and a broadcast protocol to the device through the first communication mode, and reminding the device to deploy.
As a further improvement of the present application, after receiving and recording the second sharable function information table fed back by the online sharing device in the sharing network, the method further includes: when a signal of equipment which does not join the shared network is detected through a second communication mode, sharing invitation information is sent to the equipment; and when receiving the sharing consent information fed back by the equipment, sending a transmission protocol and a broadcast protocol to the equipment through a second passing mode, and reminding the equipment of deployment.
In order to solve the above technical problem, another technical solution adopted by the present application is: the utility model provides a device function sharing device based on thing networking, includes: the broadcast module is used for accessing the shared network when detecting the shared network, and broadcasting a first sharable function information table in the shared network, wherein the shared network is constructed by deploying a uniform transmission protocol and a broadcast protocol in all shared devices; the receiving module is used for receiving and recording a second sharable function information table fed back by the online sharing equipment in the sharing network; and the sharing module is used for calling the function of the target sharing device when a sharing request is initiated to one online target sharing device in the sharing network according to the second sharable function information table, or allowing the target sharing device to call the function of the target sharing device when the sharing request initiated by the target sharing device is received.
In order to solve the above technical problem, the present application adopts another technical solution that: there is provided a terminal comprising a processor, a memory coupled to the processor, the memory having stored therein program instructions which, when executed by the processor, cause the processor to carry out the steps of the device function sharing method as claimed in any one of the preceding claims.
In order to solve the above technical problem, the present application adopts another technical solution that: there is provided a storage medium storing a program file capable of implementing the above-described device function sharing method.
The beneficial effect of this application is: the device function sharing method of the present application constructs a shared network for hardware function sharing by deploying a unified transmission and broadcast protocol on an electronic device having a communication function, when the device accesses the shared network, it will broadcast the function available for sharing in the shared network actively, and receive the sharable function information fed back by other devices, and then calls the functions of the other devices based on the sharable function information or calls the functions sharable by themselves to the other devices, the same set of transmission protocol and broadcast protocol is deployed in each device, so that the devices are not limited to the existing communication mode and the point-to-point sharing mode, but a set of shared network is directly constructed, so that the devices in the shared network can be shared with each other to meet the requirements of users.
Drawings
Fig. 1 is a flowchart illustrating a device function sharing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a device function sharing method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a device function sharing method according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a device function sharing method according to a fourth embodiment of the present invention;
FIG. 5 is a functional block diagram of an apparatus function sharing device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a storage medium according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all 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 application.
The terms "first", "second" and "third" in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any indication of the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. All directional indications (such as up, down, left, right, front, and rear … …) in the embodiments of the present application are only used to explain the relative positional relationship between the components, the movement, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indication is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Fig. 1 is a flowchart illustrating a device function sharing method according to a first embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same. As shown in fig. 1, the method comprises the steps of:
step S101: and when the shared network is detected, accessing the shared network, and broadcasting the first sharable function information table in the shared network, wherein the shared network is constructed by deploying a uniform transmission protocol and a uniform broadcasting protocol in all the shared devices.
It should be noted that the shared network is constructed based on the transmission protocol and the broadcast protocol deployed in all the shared devices, for example, the transmission protocol and the broadcast protocol may be fantastic simple transmission protocols. Through the uniformly deployed transmission protocol and broadcast protocol, a uniform calling mode can be provided for functions which can be shared among sharing devices. The sharing device in this embodiment may be an intelligent device such as an intelligent television, a mobile phone, a computer, a printer, an intelligent robot, a bluetooth headset, a bluetooth speaker, and the like, and all of the sharing device have been deployed with the transmission protocol and the broadcast protocol.
In step S101, when the sharing device enters the area of the sharing network and detects the sharing network, the sharing device automatically accesses the sharing network and then obtains the function that can be shared by itself, for example, when the mobile phone enters the sharing network, the sharing device automatically obtains the function that can be shared by itself, such as a camera function, a speaker function, etc., then forms a first sharable function information table, and broadcasts the first sharable function information table in the sharing network, so that the sharing device online in the sharing network obtains the first sharable function information table, and the sharing device online can obtain the function that can be shared by the sharing device online through the first sharable function information table, where the sharing device online refers to another sharing device that is currently accessed to the sharing network except the sharing device.
Further, in some embodiments, in order to avoid affecting the user experience of the user, the user may further perform sharing permission or sharing prohibition setting on the sharable function in the sharing device according to the user's own needs, for example, when the user uses a great amount of the camera function of the sharing device, if the sharing of the camera function may cause inconvenience in use of the user, the camera function may be set to be sharing prohibition, and when the sharing device acquires the first sharable function information table of the sharing device, the camera function may not be counted, and only the function that the user permits sharing may be counted.
Step S102: and receiving and recording a second sharable function information table fed back by the online sharing equipment in the sharing network.
In step S102, after the sharing device enters the sharing network and broadcasts the first sharable function information table of the sharing device itself, other sharing devices online in the sharing network may know that a new sharing device joins the sharing network, and at this time, the second sharable function information table is sent to the new sharing device, so that the new sharing device can know that the other sharing devices can share the function.
Step S103: when a sharing request is sent to one target sharing device on line in the sharing network according to the second sharable function information table, the function of the target sharing device is called, or when the sharing request sent by the target sharing device is received, the target sharing device is allowed to call the function of the target sharing device.
In step S103, the target sharing device is a sharing device that the sharing device wants to invoke the function, or a sharing device that wants to invoke the function of the sharing device, and the sharing device can share the function after the sharing device broadcasts its first sharable function information table in the sharing network and receives the second sharable function information table sent by the sharing device on line in the sharing network. When the sharing device needs to use a certain function which the sharing device does not have, the sharing device can obtain the target sharing device with the function by inquiring the second sharable function information table, then the current sharing device sends a sharing request of the function to the target sharing device, and then the function of the target sharing device is called; when the sharing device receives a sharing request aiming at a certain function sent by a target sharing device, the target sharing device is allowed to call the function.
Further, in order to improve the security of the device and reduce the risk of the device being hacked, in some embodiments, the step of allowing the target sharing device to invoke its own function when receiving the sharing request initiated by the target sharing device includes:
1. when a sharing request initiated by the target sharing equipment is received, target user information of the target sharing equipment is obtained and compared with local user information.
It should be noted that the sources of the devices accessing the same shared network are different, and may be from the same user or different users, and for the shared devices from different users, there is a risk that the shared device providing the shared function is intruded when the functions of the devices are shared.
Therefore, in this embodiment, when a sharing request initiated by a target sharing device is received, target user information of the target sharing device is obtained, and the target user information is compared with local user information of the sharing device to determine whether the target sharing device and the sharing device belong to the same user. The target user information may be an account name, a password, and a verification code of the target user, or may be biometric information such as a fingerprint and a face image.
2. And if the target user information is the same as the local user information, allowing the target sharing equipment to directly call the corresponding function of the target sharing equipment.
Specifically, when the comparison result of the target user information is the same as that of the local user information, the target sharing device may be allowed to directly call the corresponding function of the target sharing device.
3. And if the target user information is different from the local user information, allowing the target sharing equipment to call the corresponding function of the target sharing equipment when the target sharing equipment is determined to have the right of calling the function of the target sharing equipment.
Specifically, when the comparison result of the target user information is different from the own user information, it indicates that the target sharing device and the own sharing device belong to different users, at this time, the authority verification may be performed on the target sharing device, when the target sharing device has the authority to call the own function, the target sharing device is allowed to call the own corresponding function, and when the target sharing device does not have the authority to call the own function, the target sharing device is not allowed to call the own corresponding function.
It should be noted that, in some embodiments, the setting of the authority may be set in advance, for example, the target user information is marked as a white list user, all white list users may call their own functions, and all black list users prohibit call their own functions. In other embodiments, the authority may be set each time the function is called, for example, when the target sharing device needs to call its own function, a call application needs to be sent, when the call application passes, the target sharing device is given a temporary authority to call its own function, and the authority is automatically recovered when the call is finished.
Further, in some embodiments, the permission setting may be performed for each sharable function of the sharing device, so that when a sharing request initiated by the target sharing device is received, the target sharing device is allowed to call the function of the target sharing device, including:
1. when a sharing request initiated by the target sharing equipment is received, whether the target function requested to be called by the target sharing equipment needs authentication is inquired.
Specifically, the user may perform permission setting for each sharable function in the own device, for example, setting the camera function and the bluetooth function as not requiring authentication, and setting the call function and the GPS positioning function as requiring authentication, so that the user may perform setting according to importance of the functions or relevance to privacy.
2. If yes, allowing the target sharing equipment to call the target function when the target sharing equipment has the right of calling the target function.
Specifically, when the target function called by the target sharing device needs authentication, whether the target sharing device has the corresponding authority is verified, and if yes, the target function is allowed to be called.
3. And if not, allowing the target sharing equipment to directly call the target function.
Specifically, when the target function does not require authentication, the target sharing device is allowed to directly call the target function.
The device function sharing method of the first embodiment of the present invention constructs a shared network for hardware function sharing by deploying a unified transmission and broadcast protocol on an electronic device having a communication function, when the device accesses the shared network, it will broadcast the function available for sharing in the shared network actively, and receive the sharable function information fed back by other devices, and then calls the functions of the other devices based on the sharable function information or calls the functions sharable by themselves to the other devices, the same set of transmission protocol and broadcast protocol is deployed in each device, so that the devices are not limited to the existing communication mode and the point-to-point sharing mode, but a set of shared network is directly constructed, so that the devices in the shared network can be shared with each other to meet the requirements of users.
Fig. 2 is a flowchart illustrating a device function sharing method according to a second embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 2 if the results are substantially the same. As shown in fig. 2, the method comprises the steps of:
step S201: and when the shared network is detected, accessing the shared network, and broadcasting the first sharable function information table in the shared network, wherein the shared network is constructed by deploying a uniform transmission protocol and a uniform broadcasting protocol in all the shared devices.
In this embodiment, step S201 in fig. 2 is similar to step S101 in fig. 1, and for brevity, is not described herein again.
Step S202: and receiving and recording a second sharable function information table fed back by the online sharing equipment in the sharing network.
In this embodiment, step S202 in fig. 2 is similar to step S102 in fig. 1, and for brevity, is not described herein again.
Step S203: when a sharing request is sent to one target sharing device on line in the sharing network according to the second sharable function information table, the function of the target sharing device is called, or when the sharing request sent by the target sharing device is received, the target sharing device is allowed to call the function of the target sharing device.
In this embodiment, step S203 in fig. 2 is similar to step S103 in fig. 1, and for brevity, is not described herein again.
Step S204: the function that has been called is marked as occupied in the first sharable function information table, and the first sharable function information table is rebroadcast in the sharing network.
In step S204, after the function of the device itself is called by another device, the called function is marked as occupied in the first sharable function information table, and the updated first sharable function information table is broadcasted again in the sharing network, so as to inform other sharing devices of which functions are available for sharing, thereby avoiding a situation that the same function is requested to be called by a plurality of sharing devices at the same time and causes waiting.
After the other sharing devices stop calling a certain function, the function needs to be marked as being called in the first sharable function information table and broadcasted again to inform the other sharing devices that the function is in an idle state.
Further, in this embodiment, the invoking the function of the target sharing device when the sharing request is initiated to the online target sharing device in the sharing network according to the second sharable function information table in step S203 includes:
1. all the shared devices having the target function are confirmed from all the shared devices.
2. And inquiring the second sharable function information tables of all the sharing devices with the target function to confirm the target sharing device with the target function in an idle state, and initiating a request for calling the target function to the target device.
Specifically, when the target function of the other sharing device needs to be called, all other sharing devices having the target function are confirmed through the second sharable function information table, the target sharing device with the target function in an idle state is further confirmed, and then a call request is initiated to the target sharing device. It should be noted that, when a plurality of target sharing devices are included, one target sharing device may be randomly selected from the plurality of target sharing devices to initiate the invocation request.
Further, in some embodiments, when the function usage of the sharing device is busy, which causes a call request of another function device to need waiting, if there are more than two sharing devices waiting, the multiple sharing devices in the waiting state are sequentially ordered from high to low according to the contribution degrees of the sharing devices, the higher the contribution degree is, the earlier the ranking is, the lower the contribution degree is, and the later the ranking is, the contribution degree may be dynamically updated according to the contribution made by the sharing devices in the sharing network, for example, each time the sharing device provides function sharing, the contribution degree of the sharing device is increased by one. In the embodiment, the contribution degree is set to encourage the enthusiasm of the sharing device for joining the sharing network, so that the benign development of the sharing network is promoted, more devices are attracted to join the sharing network, the sharing function of the sharing network is enriched, and the user requirements are met in an all-round and multi-level manner.
In the device function sharing method according to the second embodiment of the present invention, after the function of the sharing device is called, the corresponding function is marked as occupied in the sharable function information table, and broadcast is performed to notify other sharing devices, so as to prevent a plurality of sharing devices from simultaneously applying for calling the same function of the same sharing device, and avoid the need for continuously waiting for the request for calling the function of the sharing device.
Fig. 3 is a flowchart illustrating a device function sharing method according to a third embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 3 if the results are substantially the same. As shown in fig. 3, the method comprises the steps of:
step S301: and when the shared network is detected, accessing the shared network, and broadcasting the first sharable function information table in the shared network, wherein the shared network is constructed by deploying a uniform transmission protocol and a uniform broadcasting protocol in all the shared devices.
In this embodiment, step S301 in fig. 3 is similar to step S101 in fig. 1, and for brevity, is not described herein again.
Step S302: and receiving and recording a second sharable function information table fed back by the online sharing equipment in the sharing network.
In this embodiment, step S302 in fig. 3 is similar to step S102 in fig. 1, and for brevity, is not described herein again.
Step S303: when detecting that the device which does not join the shared network sends a request for joining the shared network through the first communication mode, sending a transmission protocol and a broadcast protocol to the device through the first communication mode, and reminding the device to deploy.
It should be noted that, if a device that does not join the shared network can perform communication connection with any shared device in the shared network through any communication method, the device may apply for joining the shared network to the shared device, where the communication method described herein includes but is not limited to WiFi, bluetooth, NFC, and the like. Specifically, in step S303, the device cannot join the shared network until the transmission protocol and the broadcast protocol are not deployed, and therefore, the device can only connect with a device having the same communication method in a point-to-point manner through its own existing communication method and perform function sharing. In this embodiment, a device that does not join a shared network may apply for a request to join the shared network to any shared device in the shared network, specifically, when detecting a request to join the shared network that is sent by a device that does not join the shared network in a first communication manner, send a transmission protocol and a broadcast protocol to the device in the first communication manner, and remind the device to deploy, where the first communication manner may be any one of a local area network, a hotspot, and a bluetooth manner, and after the device deploys the transmission protocol and the broadcast protocol, the device may join the shared network, and then broadcast a first sharable function information table of the device in the shared network, and receive a second sharable function information table fed back by an online shared device in the shared network.
Step S304: when a sharing request is sent to one target sharing device on line in the sharing network according to the second sharable function information table, the function of the target sharing device is called, or when the sharing request sent by the target sharing device is received, the target sharing device is allowed to call the function of the target sharing device.
In this embodiment, step S304 in fig. 3 is similar to step S103 in fig. 1, and for brevity, is not described herein again.
The device function sharing method according to the third embodiment of the present invention sends a transmission protocol and a broadcast protocol to a device when receiving a request for joining a shared network sent by a device that does not join the shared network, and after the transmission protocol and the broadcast protocol are deployed on the device, the device can join the shared network to perform function sharing.
Fig. 4 is a flowchart illustrating a device function sharing method according to a fourth embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 4 if the results are substantially the same. As shown in fig. 4, the method includes the steps of:
step S401: and when the shared network is detected, accessing the shared network, and broadcasting the first sharable function information table in the shared network, wherein the shared network is constructed by deploying a uniform transmission protocol and a uniform broadcasting protocol in all the shared devices.
In this embodiment, step S401 in fig. 4 is similar to step S101 in fig. 1, and for brevity, is not described herein again.
Step S402: and receiving and recording a second sharable function information table fed back by the online sharing equipment in the sharing network.
In this embodiment, step S402 in fig. 4 is similar to step S102 in fig. 1, and for brevity, is not described herein again.
Step S403: and when the signal of the equipment which does not join the sharing network is detected through the second communication mode, the sharing invitation information is sent to the equipment.
It should be noted that a device that does not join the shared network may also be invited to join the shared network by a device in the shared network. Specifically, in step S403, when a certain sharing device in the sharing network detects a signal of a certain device through a second communication method, whether the device exists in the sharing network may be queried in the sharing network, and if the device does not exist, the sharing device may send a sharing invitation to the device, where the second communication method may be any one of a local area network, a hotspot, and a bluetooth method.
Step S404: and when receiving the sharing consent information fed back by the equipment, sending a transmission protocol and a broadcast protocol to the equipment through a second passing mode, and reminding the equipment of deployment.
In step S404, when receiving the information about agreeing to share fed back by the device, the device may send a transmission protocol and a broadcast protocol to the device, and after deploying the transmission protocol and the broadcast protocol, the device may join the shared network to implement function sharing.
Step S405: when a sharing request is sent to one target sharing device on line in the sharing network according to the second sharable function information table, the function of the target sharing device is called, or when the sharing request sent by the target sharing device is received, the target sharing device is allowed to call the function of the target sharing device.
In this embodiment, step S405 in fig. 4 is similar to step S103 in fig. 1, and for brevity, is not described herein again.
The device function sharing method according to the fourth embodiment of the present invention actively queries whether a device that does not join the shared network exists around through its own communication method, and if so, sends a sharing invitation message to the device to invite the device to join the shared network, thereby achieving the purposes of expanding the shared network and improving the diversity of the sharing functions of the shared network.
Fig. 5 is a schematic functional module diagram of an apparatus for sharing device functions based on the internet of things according to an embodiment of the present invention. As shown in fig. 5, the internet-of-things-based device function sharing apparatus 50 includes a broadcasting module 51, a receiving module 52 and a sharing module 53.
A broadcast module 51, configured to access a shared network when detecting the shared network, and broadcast a first sharable function information table in the shared network, where the shared network is constructed by deploying a uniform transmission protocol and a broadcast protocol in all shared devices;
a receiving module 52, configured to receive and record a second sharable function information table fed back by an online sharing device in the sharing network;
a sharing module 53, configured to invoke a function of a target sharing device when a sharing request is initiated to an online target sharing device in the sharing network according to the second sharable function information table, or, when a sharing request initiated by the target sharing device is received, allow the target sharing device to invoke a function of itself.
Optionally, the sharing module 53 performs an operation of allowing the target sharing device to invoke its own function when receiving a sharing request initiated by the target sharing device, and may further be: when a sharing request initiated by a target sharing device is received, target user information of the target sharing device is obtained and compared with local user information; if the target user information is the same as the local user information, allowing the target sharing equipment to directly call the corresponding function of the target sharing equipment; and if the target user information is different from the local user information, allowing the target sharing equipment to call the corresponding function of the target sharing equipment when the target sharing equipment is determined to have the right of calling the function of the target sharing equipment.
Optionally, the sharing module 53 performs an operation of allowing the target sharing device to invoke its own function when receiving a sharing request initiated by the target sharing device, and may further be: when a sharing request initiated by a target sharing device is received, inquiring whether a target function requested to be called by the target sharing device needs to be authenticated; if so, allowing the target sharing equipment to call the target function when the target sharing equipment has the right of calling the target function; and if not, allowing the target sharing equipment to directly call the target function.
Optionally, after the sharing module 53 performs an operation of allowing the target sharing device to invoke its own function when receiving a sharing request initiated by the target sharing device, the broadcasting module 52 is further configured to: marking the functions which are called by other sharing equipment in the first sharable function information table as occupied; the first shareable function information table is rebroadcast in the shared network.
Optionally, the sharing module 53 performs an operation of allowing the target sharing device to invoke its own function when receiving a sharing request initiated by the target sharing device, and may further be: confirming all sharing devices with target functions from all sharing devices; and inquiring the second sharable function information tables of all the sharing devices with the target function to confirm the target sharing device with the target function in an idle state, and initiating a request for calling the target function to the target device.
Optionally, in some embodiments, the internet-of-things based device function sharing apparatus 50 further includes a first adding module configured to: when detecting that the device which does not join the shared network sends a request for joining the shared network through the first communication mode, sending a transmission protocol and a broadcast protocol to the device through the first communication mode, and reminding the device to deploy.
Optionally, in some embodiments, the internet-of-things based device function sharing apparatus 50 further includes a second adding module configured to: when a signal of equipment which does not join the shared network is detected through a second communication mode, sharing invitation information is sent to the equipment; and when receiving the sharing consent information fed back by the equipment, sending a transmission protocol and a broadcast protocol to the equipment through a second passing mode, and reminding the equipment of deployment.
For other details of the technical solution implemented by each module in the device function sharing apparatus based on the internet of things according to the foregoing embodiment, reference may be made to the description of the device function sharing method in the foregoing embodiment, and details are not described here again.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 6, the terminal 60 includes a processor 61 and a memory 62 coupled to the processor 61, wherein the memory 62 stores program instructions, and the program instructions, when executed by the processor 61, cause the processor 61 to execute the steps of the device function sharing method according to any of the embodiments.
The processor 61 may also be referred to as a CPU (Central Processing Unit). The processor 61 may be an integrated circuit chip having signal processing functions. The processor 61 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a storage medium according to an embodiment of the invention. The storage medium of the embodiment of the present invention stores a program file 71 capable of implementing all the methods described above, wherein the program file 71 may be stored in the storage medium in the form of a software product, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or terminal devices, such as a computer, a server, a mobile phone, and a tablet.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have 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. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (10)

1. A method for sharing device functions, comprising:
when a shared network is detected, accessing the shared network, and broadcasting a first sharable function information table in the shared network, wherein the shared network is constructed by deploying a uniform transmission protocol and a uniform broadcasting protocol in all shared devices;
receiving and recording a second sharable function information table fed back by the online sharing equipment in the sharing network;
when a sharing request is initiated to a target sharing device on line in the sharing network according to the second sharable function information table, the function of the target sharing device is called, or,
and when receiving a sharing request initiated by the target sharing equipment, allowing the target sharing equipment to call the function of the target sharing equipment.
2. The device function sharing method according to claim 1, wherein the allowing the target sharing device to invoke its own function when receiving the sharing request initiated by the target sharing device comprises:
when a sharing request initiated by the target sharing equipment is received, acquiring target user information of the target sharing equipment, and comparing the target user information with local user information;
if the target user information is the same as the local user information, allowing the target sharing equipment to directly call the corresponding function of the target sharing equipment;
if the target user information is different from the local user information, allowing the target sharing device to call the corresponding function when the target sharing device is determined to have the right of calling the function of the target sharing device.
3. The device function sharing method according to claim 1, wherein the allowing the target sharing device to invoke its own function when receiving the sharing request initiated by the target sharing device comprises:
when a sharing request initiated by the target sharing equipment is received, inquiring whether a target function requested to be called by the target sharing equipment needs to be authenticated;
if so, allowing the target sharing equipment to call the target function when the target sharing equipment has the right of calling the target function;
and if not, allowing the target sharing equipment to directly call the target function.
4. The device function sharing method according to claim 1, wherein after allowing the target sharing device to invoke its own function when receiving the sharing request initiated by the target sharing device, the method further comprises:
marking the called function as occupied in the first sharable function information table, and rebroadcasting the first sharable function information table in the sharing network.
5. The device function sharing method according to claim 4, wherein the invoking the function of the target sharing device when a sharing request is initiated to a target sharing device online in the sharing network according to the second sharable function information table comprises:
confirming all sharing devices with target functions from all sharing devices;
and querying a second sharable function information table of all sharing devices with the target function to confirm the target sharing device with the target function in an idle state, and initiating a request for calling the target function to the target device.
6. The device function sharing method according to claim 1, wherein after receiving and recording the second sharable function information table fed back by the online sharing device in the sharing network, the method further comprises:
and when detecting that the equipment which does not join the shared network sends a request for joining the shared network through a first communication mode, sending the transmission protocol and the broadcast protocol to the equipment through the first communication mode, and reminding the equipment of deployment.
7. The device function sharing method according to claim 1, wherein after receiving and recording the second sharable function information table fed back by the online sharing device in the sharing network, the method further comprises:
when a signal of a device which does not join the shared network is detected through a second communication mode, sending sharing invitation information to the device;
and when receiving the sharing consent information fed back by the equipment, sending the transmission protocol and the broadcast protocol to the equipment through the second communication mode, and reminding the equipment of deployment.
8. The utility model provides an equipment function sharing device based on thing networking which characterized in that includes:
the broadcast module is used for accessing the shared network and broadcasting a first sharable function information table in the shared network when detecting the shared network, wherein the shared network is constructed by deploying a uniform transmission protocol and a broadcast protocol in all shared devices;
the receiving module is used for receiving and recording a second sharable function information table fed back by the online sharing equipment in the sharing network;
and a sharing module, configured to invoke a function of a target sharing device when a sharing request is initiated to an online target sharing device in the sharing network according to the second sharable function information table, or allow the target sharing device to invoke a function of the target sharing device when the sharing request initiated by the target sharing device is received.
9. A terminal, characterized in that the terminal comprises a processor, a memory coupled to the processor, in which memory program instructions are stored, which program instructions, when executed by the processor, cause the processor to carry out the steps of the device function sharing method according to any one of claims 1 to 7.
10. A storage medium storing a program file capable of implementing the device function sharing method according to any one of claims 1 to 7.
CN202110390558.5A 2021-04-12 2021-04-12 Device function sharing method, device, terminal and storage medium Pending CN113114763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110390558.5A CN113114763A (en) 2021-04-12 2021-04-12 Device function sharing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110390558.5A CN113114763A (en) 2021-04-12 2021-04-12 Device function sharing method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113114763A true CN113114763A (en) 2021-07-13

Family

ID=76716030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110390558.5A Pending CN113114763A (en) 2021-04-12 2021-04-12 Device function sharing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113114763A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051214A (en) * 2021-11-15 2022-02-15 杭州老板电器股份有限公司 Method, device and system for sharing terminal functions
CN114143349A (en) * 2021-12-02 2022-03-04 杭州老板电器股份有限公司 Terminal function sharing method, system, device terminal and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789470A (en) * 2016-12-23 2017-05-31 Tcl海外电子(惠州)有限公司 terminal resource sharing method, device and system
CN107466089A (en) * 2017-08-23 2017-12-12 广东欧珀移动通信有限公司 A kind of data sharing method, device and terminal device
CN109951424A (en) * 2017-12-20 2019-06-28 北京三星通信技术研究有限公司 Sharing method and relevant device
CN112395242A (en) * 2020-11-30 2021-02-23 重庆紫光华山智安科技有限公司 Multi-chip control method, device, electronic equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789470A (en) * 2016-12-23 2017-05-31 Tcl海外电子(惠州)有限公司 terminal resource sharing method, device and system
CN107466089A (en) * 2017-08-23 2017-12-12 广东欧珀移动通信有限公司 A kind of data sharing method, device and terminal device
CN109951424A (en) * 2017-12-20 2019-06-28 北京三星通信技术研究有限公司 Sharing method and relevant device
CN112395242A (en) * 2020-11-30 2021-02-23 重庆紫光华山智安科技有限公司 Multi-chip control method, device, electronic equipment and computer readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
DALLAS98: "HarmonyOS分布式软总线研究", pages 1 - 23, Retrieved from the Internet <URL:https://www.cnblogs.com/Dallas98/p/14348950.html> *
FRANKRXWEST: "鸿蒙分布式软总线技术研究", pages 1 - 34, Retrieved from the Internet <URL:https://www.cnblogs.com/rxwest/p/14290923.html> *
技术火炬手: "深度解读设备的"万能语言"鸿蒙的分布式软总线能力", pages 1 - 18, Retrieved from the Internet <URL:https://bbs.huaweicloud.com/blogs/detail/239194> *
黄烨锋: "代码给你解密:华为如何用分布式软总线串联起一个新生态", pages 1 - 19, Retrieved from the Internet <URL:https://www.eet-china.com/news/202006031150.html> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051214A (en) * 2021-11-15 2022-02-15 杭州老板电器股份有限公司 Method, device and system for sharing terminal functions
CN114143349A (en) * 2021-12-02 2022-03-04 杭州老板电器股份有限公司 Terminal function sharing method, system, device terminal and medium

Similar Documents

Publication Publication Date Title
KR101697414B1 (en) Shared network access via a peer-to-peer link
US10827334B2 (en) Method and apparatus for connecting devices using Bluetooth LE technology
US9154561B2 (en) Methods and system for providing location-based communication services
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
US9253318B2 (en) Method and apparatus for providing state information
EP2901799B1 (en) Method and system for establishing wireless fidelity direct(wfd) connection in a wfd network environment
KR20200028208A (en) electronic device for supporting access to wireless media using TWT(target wake time) defined in the IEEE 802.11 standard
JP2017517824A (en) SMART APPLIANCE MANAGEMENT ACCOUNT SETTING METHOD, DEVICE, PROGRAM, AND RECORDING MEDIUM
CN113114763A (en) Device function sharing method, device, terminal and storage medium
EP3114821B1 (en) Method and devices for establishing a connection between a seeker device and a target device
WO2024016772A1 (en) Incoming-call reminding method and electronic device
WO2020024775A1 (en) Data transmission control method and related apparatus
CN113329381B (en) Method for establishing Bluetooth connection and electronic equipment
CN114629932B (en) Cooperative method between electronic devices, electronic device and storage medium
CN112422634B (en) Internet-based cross-network-segment distributed scheduling method and system
CN105163391B (en) Data transmission method, terminal and wireless access points
US11367449B2 (en) Method and apparatus for calling voice recognition service by using Bluetooth low energy technology
CN112543431A (en) Account synchronization method, medium and server
KR102001223B1 (en) System and method for authorizing mobile terminal connecting to external device, and external device authorizing mobile terminal
CN112040057B (en) Device control method, device, electronic device, control system and storage medium
US20230292365A1 (en) Method for random access communication device, and storage medium
CN108718401B (en) Video conference implementation method and related device
CN110945926A (en) Connection establishing method and device, base station, user equipment and core network equipment
CN109067882A (en) data sharing method and related product
KR101767425B1 (en) Recording medium for interlocking terminal apparatus

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