A method, device and electronic device for realizing interconnection between devices
By introducing the butler program into the Internet of Things platform, the automatic login and personalized information of apps on the on-board devices are realized, and the problem of the inability to automatically login and personalized information in the existing technology is solved, and the user experience and service personalization level is improved.
Patent Information
- Application Number
- CN202410094380.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-23
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-01-23
AI Technical Summary
In the prior art, apps on vehicle devices cannot be automatically logged in, and each app cannot communicate with user personalized information, resulting in users needing to manually log in to each app, and personalized information cannot be effectively shared.
By introducing a housekeeper program into the IoT platform, detecting user login instructions and automatically logging in bound applications. The housekeeper program obtains and stores the user's personalized information from the server database in a shared storage file, allowing each application to access and use this information. Upload updated personalized information to the server regularly to update the database.
The automatic login of the app is realized, which reduces user operation steps and time, and can communicate user personalized information between each app, improving the personalization and comprehensiveness of the service.
Smart Images

Figure CN117786638B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of interconnection between Internet of Things devices, and in particular to a method, device and electronic equipment for realizing interconnection between devices. Background Art
[0002] In-vehicle devices, such as car computers and other terminal devices, usually have multiple apps installed. In the prior art, users need to manually log in to each app one by one to use these apps. And the personalized information such as personal habits or preferences generated by the user's use of each app is stored in the server corresponding to each app. In the prior art, if you want to obtain all the personalized information of the user, you need to go to the server of each app and obtain the personalized information stored in each server. This makes the prior art have the problem that each app cannot be automatically logged in, and the personalized information of the user cannot be communicated between apps. Summary of the invention
[0003] The embodiment of the present invention provides a method for realizing interconnection and intercommunication between devices, which is used to solve the problems existing in the prior art that various apps cannot be automatically logged in, and personalized information of users cannot be intercommunicated between various apps.
[0004] The specific technical solutions are as follows:
[0005] In a first aspect, an embodiment of the present invention provides a method for realizing interconnection and intercommunication between devices, which is applied to a housekeeper program on a terminal device in an Internet of Things platform, wherein the terminal device includes a housekeeper program and at least one application program, and the method includes the following steps:
[0006] Detecting whether a housekeeper program login instruction issued by a user is received, and if so, logging in; wherein the housekeeper program login instruction includes identification information of the user;
[0007] Sending an application login instruction to each of the applications respectively, so that each of the applications logs in; wherein the application is a program in the terminal device that has been bound to the housekeeper program; and the application login instruction includes the identification information of the user;
[0008] According to the identification information of the user, the personalized information of the user is obtained from the database of the corresponding server, and the obtained personalized information is stored in the shared storage file of the terminal device; when the application in the terminal device receives the application start instruction issued by the user, the application can obtain the personalized information from the shared storage file and provide personalized services to the user according to the personalized information;
[0009] According to a preset time node, the personalized information of the user recorded by the application in the shared storage file is uploaded to the corresponding server to update the personalized information stored in the database.
[0010] Optionally, before the step of issuing an application login instruction to each application to enable each application to log in, the step further includes:
[0011] Binding with said application;
[0012] The step of binding with the application comprises:
[0013] After the login is successful, detecting whether the user has triggered a binding instruction, wherein the binding instruction includes the login interface information of the application to be bound;
[0014] According to the login interface information of the application to be bound, calling the login interface corresponding to the application to be bound to enable the application to be bound to log in;
[0015] After the application to be bound is successfully logged in, obtaining identification information of the user of the application to be bound;
[0016] Bind the identification information of the user of the own application with the identification information of the user of the application to be bound.
[0017] Optionally, the method further includes:
[0018] In the logged-in state, detect the housekeeper program logout instruction issued by the user;
[0019] When the housekeeper program logout instruction is detected, logout is performed, and an application logout instruction is respectively issued to each of the applications to log out each of the applications; wherein the application is an application that has been bound to the housekeeper program in the terminal device.
[0020] In a second aspect, an embodiment of the present invention provides a method for realizing intercommunication between devices, which is applied to an application program that has been bound to a housekeeper program on a terminal device in an Internet of Things platform, wherein the terminal device includes a housekeeper program and at least one application program, and the method includes the following steps:
[0021] Detecting whether an application login instruction issued by the housekeeper program is received, and if so, logging in; wherein the application is a program in the terminal device that has been bound to the housekeeper program; and the application login instruction includes user identification information;
[0022] In the logged-in state, detecting whether a command to start an application program issued by a user is received, and if so, obtaining the personalized information of the user from a shared storage file; wherein the personalized information of the user is obtained by the housekeeper program from a database of a corresponding server according to the identification information of the user and stored in its own shared storage file;
[0023] Providing personalized services to the user according to the personalized information;
[0024] In the process of providing services to the user, the personalized information of the user is recorded, and the recorded personalized information of the user is stored in the shared storage file, so that the housekeeper program can obtain the personalized information of the user recorded by the application from the shared storage file, and upload the obtained personalized information to the corresponding server for updating the personalized information stored in the database.
[0025] Optionally, the method further includes:
[0026] The recorded personalized information of the user is uploaded to the corresponding server for updating the personalized information stored in the database.
[0027] Optionally, the method further includes:
[0028] In the logged-in state, receive the application log-out instruction sent by the housekeeper program;
[0029] When receiving the application logout instruction sent by the housekeeper program, log out.
[0030] Optionally, the method further includes:
[0031] When receiving a command to start an application program from a user in a non-logged-in state, confirming whether the housekeeper program has been logged in;
[0032] If yes, log in, obtain the personalized information from the shared storage file, and provide personalized services to the user according to the personalized information;
[0033] If not, the butler program login interface pops up and detects whether the application login instruction issued by the butler program is received. When the application login instruction issued by the butler program is received, login is performed and the personalized information is obtained from the shared storage file, and personalized services are provided to the user based on the personalized information.
[0034] In a third aspect, an embodiment of the present invention provides a device for implementing interconnection and intercommunication between devices, the device comprising:
[0035] A detection module, used to detect whether a housekeeper program login instruction issued by a user is received, and if so, the housekeeper program logs in; wherein the housekeeper program login instruction includes the identification information of the user;
[0036] a login instruction issuing module, which issues an application login instruction to each application respectively, so that each of the applications logs in; wherein the application is a program in the terminal device that has been bound to the housekeeper program; the application login instruction includes the identification information of the user; a storage module, which is used to obtain the personalized information of the user from the database of the corresponding server according to the identification information of the user, and store the obtained personalized information in its own shared storage file; so that when the application in the terminal device receives the application startup instruction issued by the user, the application can obtain the personalized information from the shared storage file, and provide personalized services to the user according to the personalized information;
[0037] The updating module is used to upload the personalized information of the user recorded by the application in the shared storage file to the corresponding server according to a preset time node, so as to update the personalized information stored in the database.
[0038] Optionally, the device further includes:
[0039] A binding module, used for binding with the application;
[0040] The binding module is specifically used for:
[0041] After the login is successful, detecting whether the user has triggered a binding instruction, wherein the binding instruction includes the login interface information of the application to be bound;
[0042] According to the login interface information of the application to be bound, calling the login interface corresponding to the application to be bound to enable the application to be bound to log in;
[0043] After the application to be bound is successfully logged in, obtaining identification information of the user of the application to be bound;
[0044] Bind the identification information of the user of the application to be bound with the identification information of the user of the application to be bound.
[0045] Optionally, the device further includes:
[0046] Logout module, used to:
[0047] In the logged-in state, detect the housekeeper program logout instruction issued by the user;
[0048] When the housekeeper program logout instruction is detected, logout is performed, and an application logout instruction is respectively issued to each of the applications to log out each of the applications; wherein the application is an application that has been bound to the housekeeper program in the terminal device.
[0049] In a fourth aspect, an embodiment of the present invention provides a device for implementing intercommunication between devices, the device comprising:
[0050] The first detection module is used to detect whether an application login instruction issued by the housekeeper program is received, and if so, the application program is logged in; wherein the application program is a program in the terminal device that has been bound to the housekeeper program; and the application login instruction contains the user's identification information;
[0051] The second detection module is used to detect whether an instruction to start an application program issued by a user is received in the logged-in state, and if so, obtain the personalized information of the user from the shared storage file; wherein the personalized information of the user is obtained by the housekeeper program from the database of the corresponding server according to the identification information of the user and stored in its own shared storage file;
[0052] A service module, used to provide personalized services to the user according to the personalized information;
[0053] A storage module is used to record the personalized information of the user in the process of providing services to the user, and store the recorded personalized information of the user in the shared storage file, so that the housekeeper program can obtain the personalized information of the user recorded by the application from the shared storage file, and upload the obtained personalized information to the corresponding server for updating the personalized information stored in the database.
[0054] Optionally, the device further includes:
[0055] The uploading module is used to upload the recorded personalized information of the user to the corresponding server, so as to update the personalized information stored in the database.
[0056] Optionally, the device further includes:
[0057] Exit module, used to:
[0058] In the logged-in state, receive the application log-out instruction sent by the housekeeper program;
[0059] When receiving the application logout instruction sent by the housekeeper program, log out.
[0060] Optionally, the device further includes:
[0061] Confirmation module for:
[0062] When receiving a command to start an application program from a user in a non-logged-in state, confirming whether the housekeeper program has been logged in;
[0063] If yes, log in, obtain the personalized information from the shared storage file, and provide personalized services to the user according to the personalized information;
[0064] If not, the butler program login interface pops up and detects whether the application login instruction issued by the butler program is received. When the application login instruction issued by the butler program is received, login is performed and the personalized information is obtained from the shared storage file, and personalized services are provided to the user based on the personalized information.
[0065] In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0066] The memory is used to store computer programs;
[0067] The processor is used to implement the method steps applied to the housekeeper program in any method for achieving inter-device interconnection in the above-mentioned embodiments when executing the program stored in the memory.
[0068] In a sixth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0069] The memory is used to store computer programs;
[0070] The processor is used to implement the method steps applied to the application program bound to the housekeeper program in any method for realizing interconnection and intercommunication between devices in the above embodiments when executing the program stored in the memory.
[0071] In the seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method steps applied to the butler program in any method for achieving inter-device interconnection in the above embodiments are implemented.
[0072] In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any of the methods for achieving inter-device interconnection in the above embodiments are applied to an application program that has been bound to a housekeeper program.
[0073] The method for realizing intercommunication between devices provided by the embodiment of the present invention can solve the problems existing in the prior art that each app cannot be automatically logged in, and the personalized information of the user cannot be communicated between each app. The user only needs to log in to the housekeeper app, and other programs that have been bound to the housekeeper app can be automatically logged in, without the need for the user to log in manually one by one. The operation of users logging in to the app is reduced and the time for users to log in to the app is saved. The method provided by the embodiment of the present invention also enables the personalized information of the user to be communicated between each app, which is conducive to each app to better and more comprehensively obtain the personalized information of the user, and then provide the user with more personalized services.
[0074] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0075] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0077] Figure 1 A schematic diagram of a flow chart of a method for realizing interconnection and intercommunication between devices provided by an embodiment of the present invention applied to a housekeeper program on a terminal device in an Internet of Things platform;
[0078] Figure 2 A flow chart of a method for realizing interconnection and intercommunication between devices provided in an embodiment of the present invention applied to an application program that has been bound to a housekeeper program on a terminal device in an Internet of Things platform;
[0079] Figure 3 A schematic diagram of an interaction flow of a method for realizing interconnection and intercommunication between devices provided by an embodiment of the present invention;
[0080] Figure 4 A schematic diagram of a flow chart of an apparatus for realizing interconnection and intercommunication between devices provided by an embodiment of the present invention;
[0081] Figure 5 A schematic diagram of a flow chart of another apparatus for realizing interconnection and intercommunication between devices provided by an embodiment of the present invention;
[0082] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0083] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0084] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0085] Figure 1 A flow chart of a method for realizing intercommunication between devices provided by an embodiment of the present invention is applied to a housekeeper program on a terminal device in an Internet of Things platform, wherein the terminal device includes a housekeeper program and at least one application program, such as Figure 1 As shown, the method includes:
[0086] S101: Detect whether a housekeeper program login instruction issued by a user is received, and if so, log in; wherein the housekeeper program login instruction includes user identification information;
[0087] In a specific Internet of Things platform, the terminal device can be a vehicle-mounted device, such as a car computer.
[0088] In a specific embodiment, the housekeeper program, also referred to as a housekeeper app, may be a housekeeper app set up on a terminal device, or may be an application on the terminal device that is improved so that it has the functions of a housekeeper app, so that the improved application is regarded as a housekeeper app. For example, a personal center app on the terminal device is improved so that it has the functions of a housekeeper app, then the improved personal center app can be regarded as a housekeeper app.
[0089] In actual applications, the application program, that is, the application app, can be a music app, a navigation app, etc.
[0090] S102: Sending an application login instruction to each application respectively, so that each application logs in; wherein the application is a program in the terminal device that has been bound to the housekeeper program; and the application login instruction includes the user's identification information;
[0091] In a specific embodiment, before the step of sending an application login instruction to each application to enable each application to log in, the step may further include: binding with the application.
[0092] Specifically, the steps of binding with the application may include:
[0093] After the login is successful, detecting whether the user has triggered a binding instruction, wherein the binding instruction includes the login interface information of the application to be bound;
[0094] According to the login interface information of the application to be bound, calling the login interface corresponding to the application to be bound to enable the application to be bound to log in;
[0095] After the application to be bound logs in successfully, obtaining identification information of the user of the application to be bound;
[0096] Bind the user's identification information with the user's identification information of the application to be bound.
[0097] Specifically, after the housekeeper app successfully logs in, the server corresponding to the housekeeper app will generate a token for the housekeeper app, where the token contains the user's identification information, that is, the user's identity information. When the user triggers the binding instruction, the housekeeper app calls the login interface corresponding to the application app to be bound through the aidl (Android Interface Definition Language) technology to log in the application to be bound. After the application to be bound logs in successfully, the identification information of the user of the application to be bound is obtained, and the identification information of the user of the application to be bound is bound to the identification information of the user of the application to be bound. Among them, token means "token", which is an encrypted string generated by the server and used as a token for making requests. The application app needs to be bound to the housekeeper app first. Only the bound application app can be issued an application login instruction by the housekeeper app.
[0098] S103: According to the user's identification information, the user's personalized information is obtained from the database of the corresponding server, and the obtained personalized information is stored in its own shared storage file; when the application in the terminal device receives the application start-up instruction issued by the user, the application can obtain the personalized information from the shared storage file and provide personalized services to the user according to the personalized information; specifically, the user's personalized information can be the user's behavior habit information, preference information, etc. S104: According to the preset time node, the user's personalized information recorded by the application in the shared storage file is uploaded to the corresponding server, which is used to update the personalized information stored in the database.
[0099] In actual applications, the application app will also record the user's personalized information in the process of providing services to the user, and store the recorded personalized information in the shared storage file. The housekeeper app will periodically access the shared storage file, read the personalized information recorded in the shared storage file and upload it to the corresponding server to update the personalized information stored in the database. For example, the music app will also record the user's personalized information in the process of playing music for the user, that is, the time period when the user usually likes to listen to music, what kind of music he likes to listen to, etc., and store the recorded personalized information in the shared storage file.
[0100] The method for realizing intercommunication between devices provided by the embodiment of the present invention is applied to the housekeeper program on the terminal device in the Internet of Things platform, and can realize detection whether the housekeeper program login instruction issued by the user is received, and if so, the housekeeper program logs in; wherein the housekeeper program login instruction contains the user's identification information; an application login instruction is issued to each application respectively, so that each application logs in; wherein the application is an application that has been bound to the housekeeper program in the terminal device; the application login instruction contains the user's identification information; according to the user's identification information, the user's personalized information is obtained from the database of the corresponding server, and the obtained personalized information is stored in its own shared storage file; so that when the application in the terminal device receives the application start instruction issued by the user, the application can obtain the personalized information from the shared storage file, and provide personalized services to the user according to the personalized information; according to the preset time node, the personalized information of the user recorded by the application in the shared storage file is uploaded to the corresponding server, which is used to update the personalized information stored in the database. It can be seen that the method provided by the embodiment of the present invention can solve the problems existing in the prior art that each app cannot be automatically logged in, and the personalized information of the user cannot be communicated between each app.
[0101] Figure 2 A flow chart of another method for realizing intercommunication between devices provided by an embodiment of the present invention, wherein the method is applied to an application program that has been bound to a housekeeper program on a terminal device in an Internet of Things platform, wherein the terminal device includes a housekeeper program and at least one application program, such as Figure 2 As shown, the method includes:
[0102] S201: Detect whether an application login instruction sent by the housekeeper program is received, and if so, log in; wherein the application is an application that has been bound to the housekeeper program in the terminal device; and the application login instruction includes user identification information;
[0103] Specifically, only the application apps that have been bound to the housekeeper app will receive the application login instruction issued by the housekeeper app and automatically log in. If those application apps that have not been bound to the housekeeper app want to log in, users need to log in manually one by one.
[0104] S202: In the logged-in state, detecting whether a command to start an application program is received from a user, and if so, obtaining the user's personalized information from a shared storage file; wherein the user's personalized information is obtained by the housekeeper program from a database of a corresponding server according to the user's identification information and stored in its own shared storage file;
[0105] In a specific embodiment, the method may further include:
[0106] When receiving a command to start an application from a user in a non-logged-in state, confirm whether the housekeeper program has been logged in;
[0107] If yes, log in and obtain personalized information from the shared storage file, and provide personalized services to the user according to the personalized information;
[0108] If not, the housekeeper program login interface pops up and detects whether the application login instruction issued by the housekeeper program is received. When the application login instruction issued by the housekeeper program is received, login is performed and personalized information is obtained from the shared storage file, and personalized services are provided to users based on the personalized information.
[0109] S203: Providing personalized services to users according to personalized information;
[0110] For example, a music app pushes a playlist that matches the user's preferences to the user based on the user's listening preferences.
[0111] S204: In the process of providing services to users, the personalized information of users is recorded, and the recorded personalized information of users is stored in a shared storage file, so that the housekeeper program can obtain the personalized information of users recorded by the application from the shared storage file, and upload the obtained personalized information to the corresponding server for updating the personalized information stored in the database.
[0112] In a specific embodiment, the method may further include:
[0113] The recorded personalized information of the user is uploaded to the corresponding server to update the personalized information stored in the database.
[0114] In a specific embodiment, the method may further include:
[0115] In the logged-in state, receive the application log-out instruction sent by the housekeeper program;
[0116] When receiving the application logout instruction sent by the housekeeper program, log out.
[0117] In this way, when the housekeeper program is logged in, the application program bound to the housekeeper program can also be automatically logged in, and when the housekeeper program is exited, the application program bound to the housekeeper program can also be automatically exited. This greatly reduces the user's operations and provides convenience for the user.
[0118] The method for realizing intercommunication between devices provided by the embodiment of the present invention is applied to the application program that has been bound to the housekeeper program on the terminal device in the Internet of Things platform, and can realize detection of whether the application login instruction issued by the housekeeper program is received, and if so, the application program logs in; wherein the application program is the application program that has been bound to the housekeeper program in the terminal device; the application login instruction contains the user's identification information; in the login state, it is detected whether the application startup instruction issued by the user is received, and if so, the user's personalized information is obtained from the shared storage file; wherein the user's personalized information is obtained by the housekeeper program from the database of the corresponding server according to the user's identification information and stored in its own shared storage file; personalized services are provided to the user according to the personalized information; in the process of providing services to the user, the user's personalized information is recorded, and the recorded user's personalized information is stored in the shared storage file; so that the housekeeper program can obtain the user's personalized information recorded by the application program from the shared storage file, and upload the obtained personalized information to the corresponding server for updating the personalized information stored in the database. It can be seen that the method provided by the embodiment of the present invention can solve the problems existing in the prior art that each app cannot be automatically logged in, and the personalized information of the user cannot be communicated between each app.
[0119] The following is a practical example to further explain in more detail the method provided by the embodiment of the present invention. In this embodiment, the application has been bound to the housekeeper program. In a specific embodiment, the process of binding the application to the housekeeper program can be: the user clicks the login button in the housekeeper app and enters the user identification information, that is, the user name and password information, to log in; after the housekeeper app logs in successfully, the server corresponding to the housekeeper app obtains the user identification information and presents a function key for binding the application app in the interface of the housekeeper app. The user can click the function key and select the application app to be bound; at this time, the housekeeper app will call the login interface corresponding to the application app to be bound to log in to the application app to be bound; and after the application app to be bound logs in successfully, obtain the identification information of the user of the application app to be bound; bind the identification information of its own user with the identification information of the user of the application to be bound.
[0120] See also Figure 3 In the method provided in this embodiment, the interaction process between the user, the housekeeper program and the application program is as follows:
[0121] S301: The user issues a housekeeper program login instruction;
[0122] Specifically, the user may send a login instruction to the housekeeper program by clicking a login button in the housekeeper app.
[0123] S302: the housekeeper program detects whether a housekeeper program login instruction issued by the user is received, and logs in when receiving the housekeeper program login instruction issued by the user;
[0124] Specifically, the housekeeper program login instruction includes the user's identification information, that is, the user's username and password information.
[0125] If the housekeeper program does not detect the housekeeper program login instruction issued by the user, the detection continues.
[0126] S303: the housekeeper program sends an application login instruction to each application program respectively;
[0127] S304: The housekeeper program obtains the user's personalized information from the database of the corresponding server according to the user's identification information, and stores the obtained personalized information in its own shared storage file;
[0128] S305: The application program detects whether it has received an application program login instruction issued by the housekeeper program, and logs in when receiving the application program login instruction issued by the housekeeper program;
[0129] Specifically, the application is an application that has been bound to the housekeeper program in the terminal device; the application login instruction includes the user's identification information.
[0130] If the application does not detect the application login instruction issued by the housekeeper program, the detection continues.
[0131] S306: The user issues an instruction to start the application program;
[0132] Specifically, the user may click on an application on the screen.
[0133] There is a difference between launching an app and logging in. Launching refers to opening an app so that it runs and appears on the phone screen. Launching an app can be achieved in a variety of ways, such as clicking on the app icon, receiving push notifications, or using shortcuts. After launching an app, users can use various functions and services, such as reading news, browsing products, playing music, etc. Logging in refers to using personal account and password credentials for identity authentication to obtain permission to use the app. By logging in, users can enjoy some special functions or permissions, such as saving personal preferences, purchasing products, posting information, etc. Login is usually used for operations such as recording user personal information, identity authentication, and data synchronization. In general, launching refers to the act of opening an app to start using the app, while logging in is the necessary identity authentication to ensure that users can obtain personalized services and functions.
[0134] S307: The application detects whether an application startup instruction issued by the user is received, and when receiving the application startup instruction issued by the user, obtains the user's personalized information from the shared storage file;
[0135] Specifically, the personalized information of the user is obtained by the housekeeper program from the database of the corresponding server according to the identification information of the user and stored in its own shared storage file.
[0136] In a specific embodiment, the application may obtain the personalized information of all users from the shared storage file. In another specific embodiment, the application may obtain the personalized information of all users required by the application from the shared storage file according to its own needs.
[0137] S308: The application provides personalized services to the user according to the personalized information;
[0138] S309: the application program records the user's personalized information in the process of providing services to the user, and stores the recorded user's personalized information in a shared storage file;
[0139] In actual applications, when providing services to users, the application program will also store the recorded personalized information of the users in the database of the corresponding server.
[0140] S310: The user issues a command to log out of the housekeeper program;
[0141] S311: when the housekeeper program detects a housekeeper program logout instruction issued by the user, the housekeeper program logs out;
[0142] S312: The housekeeper program sends an application logout instruction to each application respectively;
[0143] S313: When the application detects an application logout instruction issued by the housekeeper program, the application logs out.
[0144] S314: The housekeeper program uploads the personalized information of the user recorded by the application program in the shared storage file to the corresponding server according to the preset time node, so as to update the personalized information stored in the database.
[0145] Specifically, the housekeeper program periodically uploads the personalized information of the user recorded by the application program in the shared storage file to the corresponding server for updating the personalized information stored in the database to ensure that the latest personalized information of the user can be provided to the application server.
[0146] It can be seen from this embodiment that the implementation of the method provided by the embodiment of the present invention can solve the problems existing in the prior art of not being able to automatically log in to each app and not being able to communicate the user's personalized information between apps. The user only needs to log in to the housekeeper app, and other programs that have been bound to the housekeeper app can be automatically logged in, without the need for the user to log in manually one by one. The operation of users logging into the app is reduced and the time for users to log in to the app is saved. The method provided by the embodiment of the present invention also enables the user's personalized information to be communicated between apps, which is conducive to each app being able to better and more comprehensively obtain the user's personalized information, and thus can provide users with more personalized services.
[0147] and Figure 1 Corresponding to the embodiment shown in FIG. 1 , the embodiment of the present invention further provides a device for realizing interconnection and intercommunication between devices. Figure 4 As shown, the device includes: a detection module 401, a login instruction issuing module 402, a storage module 403, and an update module 404, wherein:
[0148] The detection module 401 is used to detect whether a housekeeper program login instruction issued by the user is received. If yes, the housekeeper program logs in; wherein the housekeeper program login instruction contains the user's identification information; the login instruction issuing module 402 is used to issue an application login instruction to each application respectively, so that each application logs in; wherein the application is a program in the terminal device that has been bound to the housekeeper program; the application login instruction contains the user's identification information;
[0149] The storage module 403 is used to obtain the user's personalized information from the database of the corresponding server according to the user's identification information, and store the obtained personalized information in its own shared storage file; so that when the application in the terminal device receives the application start instruction issued by the user, the application can obtain the personalized information from the shared storage file and provide personalized services to the user according to the personalized information;
[0150] The updating module 404 is used to upload the personalized information of the user recorded by the application in the shared storage file to the corresponding server according to a preset time node, so as to update the personalized information stored in the database.
[0151] Optionally, the device further includes:
[0152] Binding module, used to bind with the application;
[0153] Binding module, specifically used for:
[0154] After the login is successful, detecting whether the user has triggered a binding instruction, wherein the binding instruction includes the login interface information of the application to be bound;
[0155] According to the login interface information of the application to be bound, calling the login interface corresponding to the application to be bound to enable the application to be bound to log in;
[0156] After the application to be bound logs in successfully, obtaining identification information of the user of the application to be bound;
[0157] Bind the user's identification information with the user's identification information of the application to be bound.
[0158] Optionally, the device further includes:
[0159] Logout module, used to:
[0160] In the logged-in state, detect the housekeeper program logout instruction issued by the user;
[0161] When a housekeeper program logout instruction is detected, log out and send an application logout instruction to each application respectively, so that each application is logged out; wherein the application is an application that has been bound to the housekeeper program in the terminal device.
[0162] The device for realizing interconnection and intercommunication between devices provided by the embodiment of the present invention can detect whether a housekeeper program login instruction issued by a user is received, and if so, the housekeeper program logs in; wherein the housekeeper program login instruction contains the user's identification information; the login interface of the application is called, and an application login instruction is issued to the application to make the application log in; wherein the application is an application that has been bound to the housekeeper program in the terminal device; the application login instruction contains the user's identification information; according to the user's identification information, the user's personalized information is obtained from the database of the corresponding server, and the obtained personalized information is stored in its own shared storage file; so that when the user clicks on the application in the terminal device, the application can obtain the personalized information from the shared storage file and provide personalized services to the user according to the personalized information; according to the preset time node, the personalized information of the user recorded by the application in the shared storage file is uploaded to the corresponding server for updating the personalized information stored in the database. It can be seen that the device provided by the embodiment of the present invention can solve the problems existing in the prior art that each app cannot be automatically logged in, and the personalized information of the user cannot be communicated between each app.
[0163] and Figure 2 Corresponding to the embodiment shown in FIG. 1 , the embodiment of the present invention further provides a device for realizing interconnection and intercommunication between devices. Figure 5 As shown, the device includes: a first detection module 501, a second detection module 502, a service module 503, and a storage module 504, wherein:
[0164] The first detection module 501 is used to detect whether an application login instruction sent by the housekeeper program is received, and if so, the application program is logged in; wherein the application program is an application program in the terminal device that has been bound to the housekeeper program; and the application login instruction includes the user's identification information;
[0165] The second detection module 502 is used to detect whether a user's instruction to start an application program is received in the logged-in state, and if so, obtain the user's personalized information from the shared storage file; wherein the user's personalized information is obtained by the housekeeper program from the database of the corresponding server according to the user's identification information and stored in its own shared storage file;
[0166] Service module 503, used to provide personalized services to users according to personalized information;
[0167] Storage module 504 is used to record the user's personalized information in the process of providing services to the user, and store the recorded personalized information of the user in a shared storage file, so that the housekeeper program can obtain the personalized information of the user recorded by the application from the shared storage file, and upload the obtained personalized information to the corresponding server for updating the personalized information stored in the database.
[0168] Optionally, the device further includes:
[0169] The upload module is used to upload the recorded personalized information of the user to the corresponding server, so as to update the personalized information stored in the database.
[0170] Optionally, the device further includes:
[0171] Exit module, used to:
[0172] In the logged-in state, receive the application log-out instruction sent by the housekeeper program;
[0173] When receiving the application logout instruction sent by the housekeeper program, log out.
[0174] Optionally, the device further includes:
[0175] Confirmation module for:
[0176] When receiving a command to start an application from a user in a non-logged-in state, confirm whether the housekeeper program has been logged in;
[0177] If yes, log in and obtain personalized information from the shared storage file, and provide personalized services to the user according to the personalized information;
[0178] If not, the housekeeper program login interface pops up and detects whether the application login instruction issued by the housekeeper program is received. When the application login instruction issued by the housekeeper program is received, login is performed and personalized information is obtained from the shared storage file, and personalized services are provided to users based on the personalized information.
[0179] The device for realizing interconnection and intercommunication between devices provided by the embodiment of the present invention can detect whether an application login instruction issued by a housekeeper program is received, and if so, the application is logged in; wherein the application is an application in a terminal device that has been bound to the housekeeper program; the application login instruction contains the user's identification information; detect whether an application startup instruction issued by the user is received, and if so, obtain the user's personalized information from a shared storage file; wherein the user's personalized information is obtained by the housekeeper program from the database of the corresponding server according to the user's identification information and stored in its own shared storage file; provide personalized services to the user according to the personalized information; in the process of providing services to the user, record the user's personalized information, and store the recorded user's personalized information in a shared storage file; so that the housekeeper program can obtain the user's personalized information recorded by the application from the shared storage file, and upload the obtained personalized information to the corresponding server for updating the personalized information stored in the database. It can be seen that the device provided by the embodiment of the present invention can solve the problems existing in the prior art that each app cannot be automatically logged in, and the personalized information of the user cannot be communicated between each app.
[0180] and Figure 1 Corresponding to the embodiment shown, the embodiment of the present invention further provides an electronic device, see Figure 6 , including a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604; the memory 603 is used to store computer programs;
[0181] The processor 601 is used to implement the method steps applied to the housekeeper program in any method for achieving inter-device interconnection in the above embodiments when executing the program stored in the memory.
[0182] The electronic device for realizing intercommunication between devices provided by the embodiment of the present invention can detect whether a housekeeper program login instruction issued by a user is received, and if so, the housekeeper program logs in; wherein the housekeeper program login instruction contains the user's identification information; the login interface of the application is called, and an application login instruction is issued to the application to log in the application; wherein the application is an application in the terminal device that has been bound to the housekeeper program; the application login instruction contains the user's identification information; according to the user's identification information, the user's personalized information is obtained from the database of the corresponding server, and the obtained personalized information is stored in its own shared storage file; so that when the user clicks on the application in the terminal device, the application can obtain the personalized information from the shared storage file, and provide personalized services to the user according to the personalized information; according to the preset time node, the personalized information of the user recorded by the application in the shared storage file is uploaded to the corresponding server, which is used to update the personalized information stored in the database. It can be seen that the electronic device provided by the embodiment of the present invention can solve the problems existing in the prior art that each app cannot be automatically logged in, and the personalized information of the user cannot be communicated between each app.
[0183] and Figure 2 Corresponding to the embodiment shown, the embodiment of the present invention further provides an electronic device, see Figure 7 , including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704; the memory 703 is used to store computer programs;
[0184] The processor 701 is used to implement the method steps of any method for realizing interconnection and intercommunication between devices in the above-mentioned embodiments, when executing the program stored in the memory, which is applied to the application program that has been bound to the housekeeper program.
[0185] The electronic device for realizing intercommunication between devices provided by the embodiment of the present invention can detect whether an application login instruction issued by a housekeeper program is received, and if so, the application is logged in; wherein the application is an application in the terminal device that has been bound to the housekeeper program; the application login instruction contains the user's identification information; detect whether an application startup instruction issued by the user is received, and if so, obtain the user's personalized information from the shared storage file; wherein the user's personalized information is obtained by the housekeeper program from the database of the corresponding server according to the user's identification information and stored in its own shared storage file; provide personalized services to the user according to the personalized information; in the process of providing services to the user, record the user's personalized information, and store the recorded user's personalized information in the shared storage file; so that the housekeeper program can obtain the user's personalized information recorded by the application from the shared storage file, and upload the obtained personalized information to the corresponding server for updating the personalized information stored in the database. It can be seen that the electronic device provided by the embodiment of the present invention can solve the problems existing in the prior art that each app cannot be automatically logged in, and the personalized information of the user cannot be communicated between each app.
[0186] and Figure 1 Corresponding to the embodiment shown, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method steps applied to the housekeeper program in any method for realizing interconnection and intercommunication between devices in the above embodiments are implemented.
[0187] The storage medium for realizing interconnection and intercommunication between devices provided by the embodiment of the present invention can realize detection of whether a housekeeper program login instruction issued by a user is received, and if so, the housekeeper program logs in; wherein the housekeeper program login instruction contains the user's identification information; calling the login interface of the application, issuing an application login instruction to the application, so that the application logs in; wherein the application is an application that has been bound to the housekeeper program in the terminal device; the application login instruction contains the user's identification information; according to the user's identification information, the user's personalized information is obtained from the database of the corresponding server, and the obtained personalized information is stored in its own shared storage file; so that when the user clicks on the application in the terminal device, the application can obtain the personalized information from the shared storage file, and provide personalized services to the user according to the personalized information; according to the preset time node, the personalized information of the user recorded by the application in the shared storage file is uploaded to the corresponding server, which is used to update the personalized information stored in the database. It can be seen that the application of the storage medium provided by the embodiment of the present invention can solve the problems existing in the prior art that each app cannot be automatically logged in, and the personalized information of the user cannot be communicated between each app.
[0188] and Figure 2 Corresponding to the embodiment shown, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method steps of any method for realizing inter-device interconnection in the above embodiments are implemented and applied to an application program that has been bound to a housekeeper program.
[0189] The storage medium for realizing intercommunication between devices provided by the embodiment of the present invention can detect whether an application login instruction issued by a housekeeper program is received, and if so, the application program is logged in; wherein the application program is an application program that has been bound to the housekeeper program in the terminal device; the application login instruction contains the user's identification information; detect whether an application startup instruction issued by the user is received, and if so, obtain the user's personalized information from the shared storage file; wherein the user's personalized information is obtained by the housekeeper program from the database of the corresponding server according to the user's identification information and stored in its own shared storage file; provide personalized services to the user according to the personalized information; in the process of providing services to the user, record the user's personalized information, and store the recorded user's personalized information in the shared storage file; so that the housekeeper program can obtain the user's personalized information recorded by the application program from the shared storage file, and upload the obtained personalized information to the corresponding server for updating the personalized information stored in the database. It can be seen that the application of the storage medium provided by the embodiment of the present invention can solve the problems existing in the prior art that each app cannot be automatically logged in, and the personalized information of the user cannot be communicated between each app.
[0190] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program codes.
[0191] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0192] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0193] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0194] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for achieving interconnection and intercommunication between devices, characterized in that: A housekeeper program applied to a terminal device in an Internet of Things platform, wherein the terminal device includes a housekeeper program and at least one application program, and the method includes the following steps: Detecting whether a housekeeper program login instruction issued by a user is received, and if so, logging in; wherein the housekeeper program login instruction includes identification information of the user; Sending an application login instruction to each of the applications respectively, so that each of the applications logs in; wherein the application is a program in the terminal device that has been bound to the housekeeper program; and the application login instruction includes the identification information of the user; According to the identification information of the user, the personalized information of the user is obtained from the database of the corresponding server, and the obtained personalized information is stored in the shared storage file of the terminal device; when the application in the terminal device receives the application start instruction issued by the user, the application can obtain the personalized information from the shared storage file and provide personalized services to the user according to the personalized information; According to a preset time node, the personalized information of the user recorded by the application in the shared storage file is uploaded to the corresponding server to update the personalized information stored in the database; Before the step of sending an application login instruction to each application to enable each application to log in, the step further includes: Binding with said application; The step of binding with the application comprises: After the login is successful, detecting whether the user has triggered a binding instruction, wherein the binding instruction includes the login interface information of the application to be bound; According to the login interface information of the application to be bound, calling the login interface corresponding to the application to be bound to enable the application to be bound to log in; After the application to be bound is successfully logged in, obtaining identification information of the user of the application to be bound; Binding the identification information of the user of the application to be bound to the identification information of the user of the application to be bound; In the logged-in state, detect the housekeeper program logout instruction issued by the user; When the housekeeper program logout instruction is detected, logout is performed, and an application logout instruction is respectively issued to each of the applications to log out each of the applications; wherein the application is an application that has been bound to the housekeeper program in the terminal device.
2. A method for achieving interconnection and intercommunication between devices, characterized in that: Applied to an application that has been bound to a housekeeper program on a terminal device in an Internet of Things platform, the terminal device includes a housekeeper program and at least one application, and the method includes the following steps: Detecting whether an application login instruction issued by the housekeeper program is received, and if so, logging in; wherein the application is a program in the terminal device that has been bound to the housekeeper program; and the application login instruction includes user identification information; In the logged-in state, detecting whether a command to start an application program issued by a user is received, and if so, obtaining the personalized information of the user from a shared storage file; wherein the personalized information of the user is obtained by the housekeeper program from a database of a corresponding server according to the identification information of the user and stored in its own shared storage file; Providing personalized services to the user according to the personalized information; In the process of providing services to the user, the personalized information of the user is recorded, and the recorded personalized information of the user is stored in the shared storage file, so that the housekeeper program can obtain the personalized information of the user recorded by the application program from the shared storage file, and upload the obtained personalized information to the corresponding server for updating the personalized information stored in the database; In the logged-in state, receive the application log-out instruction sent by the housekeeper program; When receiving the application logout instruction sent by the housekeeper program, log out.
3. The method according to claim 2, characterized in that The method further comprises: When receiving a command to start an application program from a user in a non-logged-in state, confirming whether the housekeeper program has been logged in; If yes, log in, obtain the personalized information from the shared storage file, and provide personalized services to the user according to the personalized information; If not, the butler program login interface pops up and detects whether the application login instruction issued by the butler program is received. When the application login instruction issued by the butler program is received, login is performed and the personalized information is obtained from the shared storage file, and personalized services are provided to the user based on the personalized information.
4. A device for realizing interconnection and intercommunication between devices, characterized in that: The method applied to claim 1, wherein the device comprises: A detection module, used to detect whether a housekeeper program login instruction issued by a user is received, and if so, the housekeeper program logs in; wherein the housekeeper program login instruction includes the identification information of the user; A login instruction issuing module, which issues an application login instruction to each application respectively, so that each of the applications is logged in; wherein the application is a program in the terminal device that has been bound to the housekeeper program; and the application login instruction contains the identification information of the user; a storage module, configured to obtain the personalized information of the user from a database of a corresponding server according to the identification information of the user, and store the obtained personalized information in its own shared storage file; so that when the application in the terminal device receives an application startup instruction issued by the user, the application can obtain the personalized information from the shared storage file and provide personalized services to the user according to the personalized information; The updating module is used to upload the personalized information of the user recorded by the application in the shared storage file to the corresponding server according to a preset time node, so as to update the personalized information stored in the database.
5. A device for realizing interconnection and intercommunication between devices, characterized in that: The device comprises: The first detection module is used to detect whether an application login instruction issued by the housekeeper program is received, and if so, the application program is logged in; wherein the application program is a program in the terminal device that has been bound to the housekeeper program; and the application login instruction contains the user's identification information; The second detection module is used to detect whether an instruction to start an application program issued by a user is received in the logged-in state, and if so, obtain the personalized information of the user from the shared storage file; wherein the personalized information of the user is obtained by the housekeeper program from the database of the corresponding server according to the identification information of the user and stored in its own shared storage file; A service module, used to provide personalized services to the user according to the personalized information; A storage module is used to record the personalized information of the user in the process of providing services to the user, and store the recorded personalized information of the user in the shared storage file, so that the housekeeper program can obtain the personalized information of the user recorded by the application from the shared storage file, and upload the obtained personalized information to the corresponding server for updating the personalized information stored in the database.
6. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method steps described in any one of claims 1 or 2-3 when executing the program stored in the memory.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 or 2-3 are implemented.
Citation Information
Patent Citations
Method, device and system for logging in application program, electronic equipment and medium
CN115544471A
Vehicle machine application control method, device and equipment and storage medium
CN117749521A