Method and electronic device for transmitting business information

Through the first terminal device, the user information is used to authenticate with the IoT server, and the token information is obtained to realize communication with the IoT server, solving the problem that the IoT terminal devices of different manufacturers cannot communicate with the IoT server, reducing costs and improving applicability.

CN115150088BActive Publication Date: 2025-04-11HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110282727.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-16
Publication Date
2025-04-11
Estimated Expiration
2041-03-16

AI Technical Summary

Technical Problem

Communication between existing IoT terminal devices and IoT servers relies on private protocols, causing devices from different vendors to be unable to communicate with each other, increasing costs and limiting applicability.

Method used

The first terminal device uses its user information to authenticate with the IoT server, and obtains token information for communication with the IoT server, avoiding the binding between the IoT terminal device and the IoT server, and allowing devices from different manufacturers to communicate.

Benefits of technology

It realizes interoperability between IoT terminal devices and IoT servers of different manufacturers, reduces deployment costs and improves applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115150088B_ABST
    Figure CN115150088B_ABST
Patent Text Reader

Abstract

The present application provides a method and electronic device for transmitting business information. The method includes that a first terminal device can use user information of the first terminal device to authenticate with an IoT server and obtain token information for communicating with the IoT server, the first terminal device can communicate with the server through the token information, and the first terminal device and the IoT server are authenticated by using the user information of the first terminal device, thereby avoiding the need to bind the first IoT terminal device to the IoT server, and when the first IoT terminal device and the IoT server are devices of different manufacturers, they can also communicate, which can improve applicability, avoid the need to deploy different IoT servers for IoT terminal devices of different manufacturers, and reduce costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and more specifically to a method and electronic device for transmitting service information in the field of communications. Background Art

[0002] In order to facilitate people's lives, more and more Internet of Things (IoT) devices have emerged. Different IoT terminal devices can bring different user experiences to users, which can greatly facilitate users' lives. During the communication between the IoT terminal device and the IoT server, the data of the IoT terminal device needs to be routed through a dedicated IoT gateway or needs to be routed through an IoT router. When the data of the IoT terminal device needs to be routed through a dedicated IoT gateway, the communication protocol between the IoT terminal device, the IoT gateway and the IoT server is a private protocol, that is, the IoT terminal device, the IoT gateway and the IoT server must be produced by the same manufacturer to follow the private protocol for communication, which will increase the cost. IoT terminal devices, IoT gateways and IoT servers from different manufacturers cannot communicate with each other, and the applicability is limited. When the data of the IoT terminal device needs to be routed through a router, the data of the IoT terminal device can only be routed to the corresponding IoT server. The IoT terminal device and the IoT server also need to follow the private protocol. The IoT terminal device and the IoT server also need to be produced by the same manufacturer, which will increase the cost and limit the adaptability. In other words, the mutual dependence of the existing IoT terminal devices and IoT servers leads to high communication costs and limited applicability. Summary of the invention

[0003] The embodiments of the present application provide a method and electronic device for transmitting business information, which can reduce costs and improve applicability.

[0004] In a first aspect, a method for transmitting business information is proposed, including: a first terminal device transmits first business information of the first business to an Internet of Things (IoT) server corresponding to a first business through token information, the token information is obtained by the first terminal device from the IoT server after authenticating with the IoT server according to user information of the first terminal device, and the token information is used for the first terminal device to communicate with the IoT server; the first terminal device transmits second business information of the first business to a first IoT terminal device corresponding to the first business, the second business information is associated with the first business information; wherein the user information of the first terminal device is the same as the user information of the first IoT terminal device.

[0005] In the above scheme, the first terminal device can use the user information of the first terminal device to authenticate with the IoT server and obtain token information for communicating with the IoT server. The first terminal device can communicate with the server through the token information. The user information of the first terminal device is used for authentication during the authentication between the first terminal device and the IoT server, thereby avoiding the need to bind the first IoT terminal device to the IoT server. When the first IoT terminal device and the IoT server are devices from different manufacturers, they can also communicate, which can improve applicability and avoid the need to deploy different IoT servers for IoT terminal devices from different manufacturers, thereby reducing costs. For example, IoT terminal device A is produced by manufacturer A, and IoT terminal device B is produced by manufacturer B. IoT terminal device A and IoT terminal device B are the same type of devices. IoT terminal device A, IoT terminal device B and the first terminal device are devices of the same user. The first terminal device can be from manufacturer A or from another manufacturer. The IoT server is from manufacturer A. The first terminal device uses the user's information during the authentication process with the IoT server of manufacturer A, and does not use the information of IoT terminal device A or IoT terminal device B. In this way, the IoT server of manufacturer A can not only provide business information for IoT terminal device A, but also provide business information for IoT terminal device B, avoiding the need to specially deploy the IoT server of manufacturer B, which can reduce costs and improve applicability.

[0006] Among them, the user information of the first terminal device and the user information of the first IoT terminal device are the same, which can be understood as: the first terminal device and the first IoT terminal device are devices of the same user, for example, the first terminal device and the first IoT terminal device have registered the same mobile phone number or logged in to the same Huawei account.

[0007] Optionally, during the process of transmitting the first service information of the first service between the first terminal device and the IoT server, the device information of the first IoT terminal device does not need to be used. In this way, the first IoT terminal device and the IoT server can be generated by the same manufacturer or produced by different manufacturers, thereby saving costs.

[0008] Among them, the association between the first business information and the second business information can be understood as: the first business information is the same as the second business information, or the first terminal device processes the first business information to obtain the second business information, or the first terminal device processes the second business information to obtain the first business information. For example, after the first terminal device receives the first business information sent from the IoT server through token information, the first terminal device can directly send the first business information (at this time, the first business information is the same as the second business information) to the first IoT terminal device, or the first terminal device processes the first business information to obtain the second business information and sends it to the first IoT terminal device. For another example, when the first terminal device receives the second business information from the first IoT terminal device, the first terminal device directly sends the second business information (at this time, the second business information is the same as the first business information) to the IoT server, or the first terminal device processes the second business information to obtain the first business information and sends it to the IoT server.

[0009] Optionally, the first terminal device may communicate with the first IoT device through a soft bus channel or may not communicate through the soft bus channel. During the communication between the first terminal device and the first IoT terminal device through the soft bus channel, the first terminal device may send the first IoT terminal device through the soft bus channel. Of course, the first terminal device may also send the first IoT terminal device through a physical channel.

[0010] Optionally, there is no restriction on the order in which the first terminal device transmits the first service information to the IoT server and the order in which the first terminal device transmits the second service information to the first IoT terminal device.

[0011] Optionally, the first service information and the second service information may be control signaling or service data related to the first service, which is not limited in the embodiment of the present application.

[0012] Optionally, the first terminal device transmits the first service information of the first service to the IoT server corresponding to the first service through the token information, including: the first terminal device receives the first service information of the first service sent by the IoT server corresponding to the first service through the token information; after the first terminal device receives the first service information, the first terminal device transmits the second service information of the first service to the first IoT terminal device corresponding to the first service, including: the first terminal device sends the second service information of the first service to the first IoT terminal device corresponding to the first service. That is, this process can be understood as downlink transmission.

[0013] Optionally, the first terminal device transmits the second business information of the first business to the first IoT terminal device corresponding to the first business, including: the first terminal device receives the second business information of the first business sent by the first IoT terminal device corresponding to the first business; after the first terminal device receives the second business information, the first terminal device transmits the first business information of the first business to the Internet of Things IoT server corresponding to the first business through token information, including: the first terminal device sends the first business information of the first business to the Internet of Things IoT server corresponding to the first business through token information.

[0014] In some possible implementations, before the first terminal device transmits the second service information of the first service through the first IoT terminal device corresponding to the first service, the method further includes: the first terminal device establishes a soft bus channel with the first IoT terminal device;

[0015] The first terminal device and the first IoT terminal device corresponding to the first service transmit the second service information of the first service, including:

[0016] The first terminal device transmits the second service information of the first service to the first IoT terminal device corresponding to the first service through the soft bus channel.

[0017] The soft bus channel can form a network of devices with the same user identity through different access technologies (Bluetooth, WiFi, USB, etc.) in different scenarios. The first terminal device has the ability to discover and connect through the soft bus channel, providing a high-throughput, low-latency, high-reliability, and secure communication channel for various distributed IoT terminal devices (including the first terminal device). The soft bus channel is a distributed intelligent communication highway network that provides infinitely close to localized access effects across devices. Among them, the first terminal device has the soft bus capability to manage the connections of various IoT terminal devices, and can discover new IoT terminal devices connected to the soft bus network in real time; for IoT terminal devices that have been connected, the first terminal device can maintain the ability to connect to them in real time, so that data can be transmitted with IoT terminal devices that have been connected. This capability of the first terminal device is called the bus hub capability.

[0018] In the above scheme, the soft bus channel can realize the interconnection and intercommunication of devices from different manufacturers, that is, the first IoT terminal device and the first terminal device can be produced by the same manufacturer or by different manufacturers. In other words, in the above scheme, the first terminal device, the first IoT terminal device and the IoT server can be produced by the same manufacturer or by different manufacturers, so that the interconnection and intercommunication of devices produced by different manufacturers can be realized, thereby improving applicability and reducing costs.

[0019] In some possible implementations, the method further includes: the first terminal device sending a first query message to the first IoT terminal device through the soft bus channel, where the first query message is used to query the first IoT terminal device for information of the first IoT terminal device;

[0020] The first terminal device receives the information of the first IoT terminal device sent by the first IoT terminal device according to the first query message through the soft bus channel.

[0021] Optionally, the information of the first IoT terminal device may also be referred to as capability file description information of the first terminal device.

[0022] Optionally, the information of the first IoT terminal device may include basic information of the first IoT terminal device, at least one service information of the first IoT terminal device, and at least one item of the first service port address of the first IoT terminal device accessed by the first terminal device through the soft bus channel. Among them, the basic information of the first IoT terminal device includes at least one item of the device name, device type, manufacturer information and manufacturer model of the first IoT terminal device. Each service information of the first IoT terminal device is used to indicate each service supported by the first IoT terminal device. For example, if the first IoT terminal device is a treadmill, the treadmill supports services such as query, heart rate reporting or distance reporting.

[0023] In the above scheme, the first terminal device can send a first query message for querying the first IoT terminal device to the first IoT terminal device through the soft bus channel, and the first IoT terminal device can send the information of the first IoT terminal device to the first terminal device through the soft bus channel. In this way, the first terminal device can obtain the information of the first IoT terminal device so as to communicate with the first IoT terminal device subsequently.

[0024] In some possible implementations, the information of the first IoT terminal device includes a first service port address of the first IoT terminal device accessed by the first terminal device through the soft bus channel;

[0025] The first terminal device transmits the first service information of the first service to the IoT server corresponding to the first service through the token information, including:

[0026] The first terminal device receives the first service information sent by the IoT server through the token information;

[0027] The first terminal device transmits the second service information of the first service to the first IoT terminal device corresponding to the first service through the soft bus channel, including:

[0028] The first terminal device sends the second business information associated with the first business information to the first service port address of the first IoT terminal device through the soft bus channel.

[0029] In the above scheme, in downlink transmission, the first terminal device can send the second service information to the first IoT terminal device based on the first service port address, so as to avoid the first terminal device not knowing how to send the second service information to the first IoT terminal device.

[0030] In some possible implementations, the information of the first IoT terminal device includes service information and address request information, and the address request information is used to request the first IoT terminal device to report the service port address required by the first service indicated by the service information;

[0031] The first terminal device sends a service request message to the first IoT terminal device according to the address request message and the service information, where the service request message is used to request the first IoT terminal device to report the business information of the first service, and the service request message includes the second service port address required by the first IoT terminal device to report the first service;

[0032] The first terminal device transmits the second service information of the first service to the first IoT terminal device corresponding to the first service through the soft bus channel, including:

[0033] The first terminal device receives, through the soft bus channel, the second business information corresponding to the first service sent by the first IoT terminal device according to the second service port address;

[0034] The first terminal device transmits first service information of the first service to the IoT server corresponding to the first service through the token information, including:

[0035] The first terminal device sends the first business information associated with the second business information to the IoT server through the token information.

[0036] In the above scheme, in the process of the first terminal device requesting the first IoT terminal device for information of the first IoT terminal device, the first IoT terminal device can carry its own demand for the first terminal device (i.e., address request information) in the information of the first IoT terminal device, and the first terminal device can carry the second service port address required by the first IoT terminal device to report the first service in the service request message sent to the first IoT terminal device. In this way, when the first IoT terminal device needs to report the first service, it can report to the second service port address.

[0037] In some possible implementations, the information of the first IoT terminal device includes basic information of the first IoT terminal device, and the basic information of the first IoT terminal device includes at least one of a device type, manufacturer information, and a device name.

[0038] In some possible implementations, after the first terminal device obtains the token information from the IoT server, the method further includes: the first terminal device receives subscription information of the first service sent by the IoT server through the token information; wherein the first terminal device transmits the first service information of the first service to the server corresponding to the first service through the token information, including:

[0039] The first terminal device transmits the first service information to the IoT server through the token information according to the subscription information.

[0040] Optionally, the subscription information may include at least one of a subscription package of the first service, a validity period of the first service, arrears of the first service, a remaining number of uses of the first service, and a remaining time of the first service.

[0041] In the above scheme, when the first terminal device transmits the first business information with the IoT server, it needs to consider the subscription information of the first business, that is, the first terminal device needs to determine whether it can transmit the first business information with the IoT server based on the subscription information. In this way, it can avoid the situation where the first terminal device blindly transmits the first business information with the IoT server, resulting in the IoT server being unable to process the first business information.

[0042] According to a second aspect, a method for transmitting business information is provided, including: a first IoT terminal device corresponding to a first business establishes a soft bus channel with the first terminal device, the first IoT terminal device transmits second business information of the first business to the first IoT terminal device corresponding to the first business through the soft bus channel, the first terminal device is used to transmit the first business information associated with the second business information to the IoT server corresponding to the first business, wherein the token information used for transmitting the second business between the first terminal device and the IoT server is obtained from the IoT server after the first terminal device authenticates the IoT server based on the user information of the first terminal device.

[0043] In the above solution, the soft bus channel can realize the interconnection and intercommunication of devices from different manufacturers, that is, the first IoT terminal device and the first terminal device can be produced by the same manufacturer or by different manufacturers, so that the interconnection and intercommunication of devices produced by different manufacturers can be realized, thereby improving applicability and reducing costs. In other words, in the above solution, the first terminal device, the first IoT terminal device and the IoT server can be produced by the same manufacturer or by different manufacturers, so that the interconnection and intercommunication of devices produced by different manufacturers can be realized, thereby improving applicability and reducing costs.

[0044] In some possible implementations, the method also includes: the first IoT terminal device receives a first query message sent by the first terminal device through a soft bus channel, the first query message being used to query the first IoT terminal device for information of the first IoT terminal device; the first IoT sends the information of the first IoT terminal device to the first terminal device according to the first query message.

[0045] Optionally, the information of the first IoT terminal device may include basic information of the first IoT terminal device, at least one service information of the first IoT terminal device, and at least one item of the first service port address of the first IoT terminal device accessed by the first terminal device through the soft bus channel. Among them, the basic information of the first IoT terminal device includes at least one item of the device name, device type, manufacturer information and manufacturer model of the first IoT terminal device. Each service information of the first IoT terminal device is used to indicate each service supported by the first IoT terminal device. For example, if the first IoT terminal device is a treadmill, the treadmill supports services such as query, heart rate reporting or distance reporting.

[0046] In some possible implementations, the information of the first IoT terminal device includes the first service port address of the first IoT terminal device accessed by the first terminal device through the soft bus channel; the first IoT terminal device transmits the second business information of the first business to the first IoT terminal device corresponding to the first business through the soft bus channel, including: the first IoT terminal device receives the second business information sent by the first terminal device according to the first service port address.

[0047] In some possible implementations, the information of the first IoT terminal device includes service information and address request information, and the address request information is used to request the first IoT terminal device to report a service port address required for the first service indicated by the service information; the method further includes:

[0048] The first IoT terminal device receives a service request message sent by the first terminal device according to the address request message and service information, where the service request message is used to request the first IoT terminal device to report business information of the first service, and the service request message includes the second service port address required by the first IoT terminal device to report the first service;

[0049] The first IoT terminal device transmits the second service information of the first service to the first IoT terminal device corresponding to the first service through the soft bus channel, including:

[0050] The first IoT terminal device sends the second business information corresponding to the first service to the second service port address of the first terminal device through the soft bus channel.

[0051] In some possible implementations, the information of the first IoT terminal device includes at least one of a device type, manufacturer information, and a device name of the first IoT terminal device.

[0052] In a third aspect, the present application provides a device, which is included in an electronic device, and has the function of implementing the above-mentioned aspects and the electronic device behaviors in the possible implementation methods of the above-mentioned aspects. The functions can be implemented by hardware, or by hardware executing corresponding software implementations. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions. For example, a transmission module or unit, a processing module or unit, etc.

[0053] Optionally, the apparatus may be the above-mentioned first terminal device or the first IoT terminal device.

[0054] In a fourth aspect, the present application provides an electronic device, comprising: one or more processors; a memory; a plurality of applications; and one or more computer programs. The one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed by the electronic device, the electronic device executes the method for notifying a fault in any possible implementation of any of the above aspects.

[0055] Optionally, the electronic device may further include: a touch display screen and / or a camera, wherein the touch display screen includes a touch-sensitive surface and a display;

[0056] Optionally, the electronic device may be the first terminal device or the first IoT terminal device mentioned above.

[0057] In a fifth aspect, the present application provides an electronic device, comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method for transmitting business information in any possible implementation of any of the above aspects.

[0058] In a sixth aspect, the present application provides a computer-readable storage medium, including computer instructions, which, when executed on an electronic device, enables the electronic device to execute any possible method of transmitting business information in any of the above aspects.

[0059] In a seventh aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute any possible method of transmitting business information in any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figures 1 to 4 It is a schematic diagram of possible transmission of business information in the prior art.

[0061] Figures 5 to 7 It is a schematic diagram of a method for transmitting business information provided in an embodiment of the present application.

[0062] Figure 8 It is a schematic diagram of possible application scenarios provided by the embodiments of the present application.

[0063] Fig. 9 It is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0065] When users use IoT terminal devices, the data of the IoT terminal devices needs to be sent to the IoT server or the IoT terminal devices need to obtain data from the IoT server. For example, the IoT terminal device is a treadmill and the IoT server is a body beauty and fitness service platform. The data generated by the user running on the treadmill needs to be uploaded to the body beauty and fitness service platform. The body beauty and fitness service platform guides the user's fitness based on the data uploaded by the treadmill.

[0066] Optionally, the IoT server may be composed of an IoT platform and an IoT application server, wherein the IoT platform is used to adapt and / or forward protocol messages of IoT terminal devices and manage the online status of IoT terminal devices. The IoT application server is used to provide specific business data to IoT terminal devices.

[0067] In a possible implementation, the data of the IoT terminal device needs to be sent to the IoT server or the IoT terminal device needs to obtain data from the IoT server through the IoT gateway. Figure 1 As shown, the data of IoT terminal devices needs to be routed to the IoT server through the IoT gateway, or the data from the IoT server needs to pass through the IoT gateway to reach the IoT terminal device. In this process, the IoT gateway needs to convert the transmission protocol between the IoT terminal device and the IoT gateway into the transmission protocol between the IoT gateway and the IoT server, and the IoT gateway needs to send the device information of the IoT terminal device to the IoT server. The IoT server can only identify IoT terminal devices of the same manufacturer as itself, that is, the IoT terminal device, IoT gateway and IoT server transmit data according to the private protocol. In this case, it is necessary to ensure that the IoT terminal device, IoT gateway and IoT server are produced by the same manufacturer. In this way, the communication between the three devices follows the manufacturer's customized transmission protocol, and the corresponding IoT gateway and IoT server need to be deployed for the IoT terminal device, which will result in high costs and limited scope of application.

[0068] In another possible implementation, the data of the IoT terminal device needs to be sent to the IoT server or the IoT terminal device needs to obtain data from the IoT server through a wireless local area network (WLAN) router. Figure 2As shown in the figure, the data from the IoT terminal device needs to pass through the WLAN router to reach the IoT server. In this process, the WLAN router needs to carry the information of the IoT terminal device. The IoT server can identify the IoT terminal device based on the information of the IoT terminal device. The IoT server and the IoT terminal device need to be produced by the same manufacturer so that the IoT server can identify the IoT terminal device. The data from the IoT server needs to pass through the WLAN router to reach the IoT terminal device. The data from the IoT server needs to carry the information of the IoT server. The IoT terminal device identifies the IoT server based on the information of the IoT server. The IoT server and the IoT terminal device need to be produced by the same manufacturer so that the IoT terminal device can identify the IoT server.

[0069] In another possible implementation, the data of the IoT terminal device needs to be sent to the IoT server or the IoT terminal device needs to obtain data from the IoT server, such as Figure 3 As shown, the data needs to pass through the IoT gateway first and then the WLAN router. This method also requires the deployment of the corresponding IoT gateway and IoT server of the same manufacturer for the IoT terminal devices, which will result in high costs and limited scope of application.

[0070] In the above three implementation methods, the IoT gateway or WLAN router needs to communicate with the IoT server through the wide area network, and the IoT server and IoT terminal device need to be produced by the same manufacturer, which will result in high costs and limited scope of application.

[0071] In another possible implementation, the data of the IoT terminal device needs to be sent to the IoT server or the IoT terminal device needs to obtain data from the IoT server, which can be achieved through cellular communication. Figure 4 As shown, the data needs to be transmitted to the IoT server through the IoT radio access network (RAN) equipment and the IoT core network equipment. In this way, the IoT terminal device needs to have a cellular wireless radio frequency module, which is not applicable to IoT terminal devices that do not have cellular capabilities. In addition, the IoT RAN and IoT core network need to deploy different network slices for different types of IoT terminal devices, which will increase the maintenance and operation costs of operators. In addition, the wide area network needs to distinguish and process different types of IoT terminal devices. Different types of IoT terminal devices have different business requirements. For example, some types of IoT terminal devices are real-time services, and some types of IoT terminal devices are non-real-time services. This will make the wide area network processing process complicated and costly.

[0072] In view of the above problems, the first terminal device can use the user information of the first terminal device to authenticate with the IoT server and obtain token information for communicating with the IoT server. The first terminal device can communicate with the server through the token information. The user information of the first terminal device is used for authentication during the authentication between the first terminal device and the IoT server, thereby avoiding the need to bind the first IoT terminal device to the IoT server. When the first IoT terminal device and the IoT server are devices from different manufacturers, they can also communicate, which can improve applicability and avoid the need to deploy different IoT servers for IoT terminal devices from different manufacturers, thereby reducing costs.

[0073] Combine the following Figure 5 The method 500 for transmitting service information provided in the embodiment of the present application is described. The method 500 is described by taking uplink transmission as an example, and the uplink transmission is an example in which an IoT device needs to send first service information to an IoT server. The method 500 includes:

[0074] S501, the first terminal device authenticates with the IoT server according to the user information of the first terminal device.

[0075] Exemplarily, S501 includes: the first terminal device may receive a login account input by a user through an application, and send the login account input by the user to an IoT server, and the IoT server verifies the login account. If the user has registered the login account on the IoT server through the first terminal device, it means that the authentication is passed, and the IoT server may send authentication pass information to the first terminal device. For example, the login account may be a Huawei account, a mobile phone number, or a personal identification number (PIN) code.

[0076] Among them, the user information of the first terminal device is the same as the user information of the first IoT terminal device in S504, that is, the first terminal device and the IoT terminal device are devices used by the same user. In other words, after the first terminal device authenticates the IoT server with the user information of the first terminal device, during the process of communication between the first terminal device and the first IoT terminal device, the first terminal device does not need to send the device information of the first IoT terminal device to the IoT server. In this way, the binding of the IoT terminal device to the IoT server can be avoided.

[0077] S502, after S501, the IoT server sends token information to the first terminal device, and the first terminal device receives the token information sent by the IoT server.

[0078] The token information is used for the IoT server to communicate with the first terminal device, that is, the token information can be understood as the communication key assigned by the IoT server to the first terminal device. The token information can be the identifier of the token or indication information for indicating the identifier of the token.

[0079] After S502, S503 is executed.

[0080] S503, the IoT server sends subscription information of the first service to the first terminal device, and the first terminal device receives the subscription information of the first service sent by the IoT server.

[0081] Specifically, before S501, the user can subscribe to the first service or register the first service on the IoT server through the first application of the first terminal device, that is, the first application of the first terminal device is the application corresponding to the first service. After the IoT server authenticates the first application of the first terminal device and sends the token information, the IoT server can send the subscription information about the first service to the first application of the first terminal device, for example, the subscription information specifically includes the subscription package of the first service, the validity period of the first service, the arrears of the first service, the remaining number of uses of the first service, the remaining time of the first service, etc.

[0082] Optionally, in S503, after sending the token information to the first terminal device, the IoT server may actively push the subscription information of the first service to the first application of the first terminal device.

[0083] Optionally, in S503, after receiving the token information, the first terminal device may send a second query message to the IoT server, where the second query message is used to query the IoT server for subscription information of the first service, and the IoT server returns the subscription information of the first service to the first terminal device based on the second query message.

[0084] It should be noted that S503 is an optional step, that is, the IoT server may not send the subscription information of the first service to the first terminal device.

[0085] It should be noted that the above S501 to S503 can be performed once, and the steps after S507 can be performed multiple times. In other words, the first terminal device and the IoT server can be authenticated once, and the first terminal device and the IoT server can transmit business data multiple times using the token information of the one-time authentication.

[0086] S504: The first terminal device establishes a soft bus channel with the first IoT terminal device.

[0087] After the IoT terminal device establishes a soft bus channel with the first terminal device, it is equivalent to mounting the first IoT terminal device on the first terminal device, that is, the first IoT terminal device can communicate with the first terminal device. The manufacturer of the first IoT terminal device and the first terminal device can be the same manufacturer or different manufacturers. The soft bus channel can interconnect devices from different manufacturers.

[0088] It should be noted that S504 and any one of steps S501-S503 can be performed simultaneously; or S503 can be performed before any one of steps S501-S503, that is, the first IoT terminal device can first establish a soft bus channel with the first terminal device, and the first terminal device then authenticates with the IoT server, or the first terminal device then receives the token information, or the first terminal device then receives the subscription information of the first service; or any one of steps S501-S503 can be performed before S504, that is, the first terminal device can first authenticate with the IoT server, or the first terminal device first receives the token information, or the first terminal device first receives the subscription information of the first service. After that, the first terminal device establishes a soft bus channel with the first IoT terminal device. At this time, the first IoT terminal device is the IoT terminal device corresponding to the first service. After the first terminal device is authenticated with the IoT server, the first terminal device can report the information of the IoT terminal device connected to itself to the IoT server. If the IoT server determines that the first terminal device is not connected to the IoT terminal device corresponding to the IoT server based on the information reported by the first terminal device, the IoT server sends a trigger message to the first terminal device. The trigger message is used to trigger the first terminal device to establish a soft bus channel with the first IoT terminal device, that is, the trigger message is used to trigger the execution of S504.

[0089] S505, the first terminal device sends a first query message to the first IoT terminal device through the soft bus channel, and the first IoT terminal device receives the first query message sent by the first terminal device through the soft bus channel. The first query message is used to query the first IoT terminal device for information of the first IoT terminal device.

[0090] S506, the first IoT terminal device sends the information of the first IoT terminal device to the first terminal device through the soft bus channel, and the first terminal device receives the information of the first IoT terminal device sent by the first IoT terminal device through the soft bus channel.

[0091] Optionally, the information of the first IoT terminal device may include basic information of the first IoT terminal device, at least one service information of the first IoT terminal device, and at least one item of the first service port address of the first IoT terminal device accessed by the first terminal device through the soft bus channel. Among them, the basic information of the first IoT terminal device includes at least one item of the device name, device type, manufacturer information and manufacturer model of the first IoT terminal device. Each service information of the first IoT terminal device is used to indicate each service supported by the first IoT terminal device. For example, if the first IoT terminal device is a treadmill, the treadmill supports services such as query, heart rate reporting or distance reporting.

[0092] Optionally, the information of the first IoT terminal device also includes address request information, and the address request information is used to request the first IoT terminal device to report a service port address required for the first service indicated by the first service information, wherein at least one service information includes the first service information.

[0093] After S504, S507 is executed. In other words, the order between S507 and S505 or S506 is not limited.

[0094] S507, the IoT server sends first service information of the first service to the first terminal device, and the first terminal device receives the first service information of the first service.

[0095] Specifically, the first terminal device receives the first service information according to the token information.

[0096] In S507, the IoT server may trigger sending the first service information of the first service to the first terminal device based on two methods.

[0097] Method 1: The IoT server can actively send the first business information of the first business to the first terminal device. For example, after the IoT server sends the token information to the first terminal device in S402, the IoT server actively sends the business information of the first business to the first terminal device. In other words, the first terminal device subscribes to the first business on the IoT server. Then, the IoT server can actively push the first business information of the first business after completing the authentication with the first terminal device and sending the token information.

[0098] Method 2: If S503 exists, the first terminal device can receive the operation of the user input for the demand of the first service through the first application program, and the first terminal device generates user demand information according to the user demand and the subscription information of the first service, and reports it to the IoT server. The IoT server generates the first service information corresponding to the first service according to the user demand information and sends it to the first terminal device. For example, the first service is a running service, the IoT server is a body beauty and fitness service platform, and the first IoT terminal device is a treadmill. The user subscribes to fitness guidance on the body beauty and fitness service platform through the sports health application program of the first terminal device. The user sets the demand for the exercise effect that he hopes to achieve in the first application program of the first terminal device, such as how many calories he hopes to consume. The first terminal device determines whether the remaining valid guidance content of the subscribed fitness guidance can meet the user's needs. If it can, the first terminal device generates user demand information and sends it to the body beauty and fitness service platform. The body beauty and fitness service platform formulates a guidance strategy (also called the first service information of the running service) according to the user demand information and sends it to the first terminal device.

[0099] S508: The first terminal device sends second service information to the first IoT device according to the first service information.

[0100] Among them, the first business information can be understood as the business information of the first business transmitted between the first terminal device and the IoT server, and the second business information can be understood as the business information of the first business transmitted between the first terminal device and the first IoT terminal device. The first business information and the second business information can be business data related to the first business or signaling data related to the first business, which is not limited by the embodiment of the present application. The first business information and the second business information are discussed in two cases below.

[0101] In case 1, the first business information is the same as the second business information, and the first terminal device can directly send the first business information received from the IoT server to the first IoT terminal device. For example, in combination with the example of method 2 in S407 above, the guidance strategy specified by the bodybuilding and fitness service platform according to the user demand information is: the running speed is 5km / h, the running distance is 10km, and the slope is 5 degrees. The first terminal device sends these data to the treadmill, and these data can be displayed on the treadmill for the user's reference.

[0102] In case 2, the first business information is different from the second business information but is associated with the first terminal device. The first terminal device can generate the second business information based on the first business information and send the generated second business information to the first IoT terminal device. Further, the first terminal device can generate the second business information based on the first business information and the information of the first IoT terminal device, and send the generated second business information to the first IoT terminal device. For example, in combination with the example of the second method in S407 above, the guidance strategy specified by the body beauty and fitness service platform according to the user demand information is: the running speed is 5km / h, the running distance is 10km, and the slope is 5 degrees. The first terminal device determines that the treadmill needs to report speed, distance or heartbeat and other parameters based on these data. Therefore, the second business information sent by the first terminal device to the treadmill can indicate the need to report speed, distance or heartbeat and other parameters, that is, if the first IoT terminal device is a treadmill, the first terminal device can determine whether the treadmill supports services such as reporting speed, distance or heartbeat according to the service information included in the information of the treadmill in S406. If supported, the second business information is sent to the treadmill.

[0103] Further, in case 1 and case 2, if the information of the first IoT terminal device in S506 includes the first service port address of the first IoT terminal device accessed by the first terminal device through the soft bus channel, the first terminal device can send the second service information to the first service port address through the soft bus channel.

[0104] The above combined method 500 describes downlink transmission, that is, the IoT server sends the first service information to the first terminal device, and the first terminal device sends the second service information to the first IoT terminal device. Figure 6 The method 600 describes uplink transmission.

[0105] S601-S606, same as S501-S506.

[0106] S607: The first terminal device may receive an operation input by a user for a demand for a first service through a first application program, and the first terminal device may generate user demand information according to the user demand and subscription information of the first service.

[0107] S608, the first terminal device reports user demand information to the IoT server.

[0108] S609, the IoT server generates policy information according to the user demand information.

[0109] Specifically, the IoT server is used to guide or plan the first service, and generate policy information according to user demand information and send it to the first terminal device.

[0110] S610, the IoT server sends policy information to the first terminal device.

[0111] S611, the first terminal device determines that the first IoT terminal device needs to execute the first service based on the policy information and the subscription information.

[0112] It should be noted that some services require user participation, that is, the user needs to input required operations, then method 600 may include S607-S611, some services do not require user parameters, that is, the user will not input required operations in the first application of the first terminal device, so S607-S611 may not exist. At this time, as a replaceable method of S607-S611, after the first terminal device receives the information of the first IoT terminal device sent by the first IoT terminal device in S606, it directly determines to execute the first service without user participation. For example, the first service is a meter reading service, and the first IoT terminal device is a water meter. In this case, the information of the first IoT terminal device reported by the first IoT terminal device in S606 includes at least one service information of the first IoT terminal device, and the first service information included in the at least one service information is used to indicate that the first IoT terminal device has a service for reporting water meter data. Therefore, the first terminal device determines that the first IoT terminal device needs to execute the service of reporting water meter data.

[0113] S612: The first terminal device sends a service request message to the first IoT terminal device.

[0114] The service request message is used to request the first IoT terminal device to report business information of the first service, and the service request information may also include the second service port address required by the first IoT terminal device to report the first service to the first terminal device.

[0115] Specifically, the information of the first IoT terminal device in S606 may include address request information and first service information of the first IoT terminal device. If in S511, the first terminal device determines that the first service that the first IoT terminal device needs to execute is the service indicated by the first service information reported by the first IoT terminal device in S506, the first terminal device sends a service request message to the first IoT terminal device.

[0116] S613, the first IoT terminal device sends the second business information corresponding to the first service to the first terminal device through the soft bus channel according to the second service port address.

[0117] S614, the first terminal device sends the first business information to the IoT server through the token information, and the first business information is associated with the second business information.

[0118] Among them, the first business information can be understood as the business information of the first business transmitted between the first terminal device and the IoT server, and the second business information can be understood as the business information of the first business transmitted between the first terminal device and the first IoT terminal device. The first business information and the second business information can be business data related to the first business or signaling data related to the first business, which is not limited by the embodiment of the present application. The first business information and the second business information are discussed in two cases below.

[0119] In case 1, the first service information is the same as the second service information, and the first terminal device can directly send the second service information received from the first IoT terminal device to the IoT server. For example, the first service is running, the first service information is heartbeat information, the first IoT terminal device is a treadmill, and the IoT server is a bodybuilding and fitness service platform. The treadmill can report the user's heartbeat information, and the mobile phone directly reports the heartbeat information to the bodybuilding and fitness service platform. The bodybuilding and fitness service platform determines the fitness effect that the user can achieve based on the heartbeat information, so that the fitness strategy can be further specified.

[0120] In case 2, the first service information is different from the second service information but is related. The first terminal device can generate the first service information based on the second service information and send the generated first service information to the IoT server. For example, the second service information reported by the first IoT terminal device is heartbeat information. The first terminal device calculates the calories consumed by the user based on the heartbeat information, and then sends the calories as the first service information to the IoT server. The IoT server can further formulate a fitness strategy based on the calories reported by the first terminal device.

[0121] In order to better illustrate the method for transmitting business information provided in the embodiment of the present application, the following takes the first terminal device as a mobile phone, the first IoT terminal device as a treadmill, the IoT server as a bodybuilding service platform, and the first business as a treadmill as an example. Figure 7 Method 700 is described.

[0122] S701, the mobile phone and the body beauty and fitness service platform are authenticated.

[0123] Specifically, a sports health APP is installed on the mobile phone, and the user enters the login account on the mobile health APP. The login account is the Huawei account or mobile phone number of the sports health registered by the user. After the user enters the login account on the sports health APP, the mobile phone sends the login account to the body beauty and fitness service platform. The body beauty and fitness service platform determines whether the sports health APP on the mobile phone has registered or subscribed to the fitness guidance service corresponding to running based on the user's login account. If the body beauty and fitness service platform determines that the sports health on the mobile phone has been registered or subscribed to the fitness guidance service corresponding to running based on the login account, the body beauty and fitness service platform determines that the authentication is successful.

[0124] S702, the body beauty and fitness service platform sends token information to the mobile phone, and the mobile phone receives the token information.

[0125] The token information is used for the mobile phone to communicate with the body beauty and fitness service platform.

[0126] S703, the body beauty and fitness service platform sends subscription information of the running service to the mobile phone.

[0127] Specifically, the bodybuilding and fitness service platform sends the subscription information of the health guidance service subscribed by the mobile phone through the sports health APP to the sports health APP of the mobile phone, such as the remaining available time of the subscribed health guidance service, or the remaining available times or the remaining package information.

[0128] Optionally, in S703, after sending the token information to the mobile phone, the body shaping and fitness service platform may actively push the subscription information of the running service to the sports health APP of the mobile phone.

[0129] Optionally, in S703, after receiving the token information, the mobile phone may send a second query message to the bodybuilding and fitness service platform, the second query message being used to query the bodybuilding and fitness service platform for subscription information of the running service, and the bodybuilding and fitness service platform returns the subscription information of the running service to the mobile phone according to the second query message.

[0130] S704, the treadmill establishes a soft bus channel with the mobile phone.

[0131] After the treadmill establishes a soft bus channel with the mobile phone, it is equivalent to mounting the treadmill on the mobile phone, that is, the treadmill can communicate with the mobile phone. The treadmill and the mobile phone can be from the same manufacturer or different manufacturers. The soft bus channel can interconnect devices from different manufacturers.

[0132] It should be noted that there is no order restriction for any of the steps S704 and S701-S703. That is, there is no order restriction for the process of establishing a soft bus channel between the treadmill and the mobile phone, and the order of authenticating between the mobile phone and the bodybuilding service platform, transmitting token information, or sending subscription information for the running service.

[0133] S705, the mobile phone sends a first query message to the treadmill through the soft bus channel, and the treadmill receives the first query message through the soft bus channel. The first query message is used to query the treadmill for information about the treadmill.

[0134] S706, the treadmill sends the treadmill information to the mobile phone, and the mobile phone receives the treadmill information sent by the treadmill.

[0135] The treadmill information includes at least one service information supported by the treadmill, basic information of the treadmill, and at least one of the first service port addresses of the treadmill accessed by the mobile phone through the soft bus channel. The basic information of the treadmill includes the device name of the treadmill, the device type of the treadmill, the manufacturer information of the treadmill, the manufacturer model of the treadmill, etc.

[0136] For example, the information for a treadmill is as follows:

[0137]

[0138]

[0139] S707, the mobile phone receives a user input requirement,

[0140] Specifically, the user inputs his / her own needs in the sports health APP of the mobile phone, and the sports health APP of the mobile phone receives the needs input by the user. The needs input by the user are the desired exercise effects, such as the user hopes to consume 1,000 calories.

[0141] After S704, S707 is executed. In other words, the order of S707 and S705 or S706 is not limited.

[0142] S708, the mobile phone reports the user demand information to the body beauty and fitness service platform.

[0143] S709, the body beauty and fitness service platform generates strategy information according to the user demand information.

[0144] Specifically, the bodybuilding and fitness service platform formulates a running strategy for the user according to the 1,000 calories that the user wants to consume as indicated by the user demand information. The strategy information is used to indicate the running strategy. For example, the running strategy is that the user's running speed is 7 km / h, the running distance is 10 km, and the heart rate is 120 per minute.

[0145] S710, the body beauty and fitness service platform sends the policy information to the mobile phone, and the mobile phone receives the policy information sent by the body beauty and fitness service platform.

[0146] S711, the mobile phone determines the functions required by the treadmill according to the policy information in S710 and the subscription information in S703.

[0147] For example, the policy information is used to indicate that the user's running strategy is 7km / h, 10km, and 120 heart rates per minute. The mobile phone determines that there are 180 days left for the subscribed health guidance service based on the subscription information. Therefore, the mobile phone can determine that the treadmill needs to report three functions: running speed, running distance, and heart rate.

[0148] Further, the mobile phone determines, based on the information of the treadmill in S706, that the treadmill supports three functions of reporting running speed, reporting running distance, and reporting heart rate, and then S712 can be executed.

[0149] S712, the mobile phone sends a service request message to the treadmill.

[0150] The service request message is used to request the treadmill to report the running speed, the running distance, and the heartbeat. The service request message may also include the service port address for the treadmill to report the running speed, the running distance, and the heartbeat to the mobile phone. The service port addresses for reporting the running speed, the running distance, and the heartbeat may be the same service port address or different service port addresses.

[0151] Further, the mobile phone can determine that the service of querying whether the treadmill is turned on can be used according to the information of the treadmill in S706, that is, the treadmill has the service of being queried whether it is turned on. Before S712, the mobile phone can send a message to the treadmill to query whether it is turned on through the soft bus channel. If the treadmill is already turned on, the treadmill can return a message of having been turned on to the mobile phone. Only when the mobile phone determines that the treadmill is already turned on, S712 is executed.

[0152] S713, the treadmill reports the running speed, the running distance, and the heartbeat to the mobile phone through the soft bus channel according to the service port address included in the service request message.

[0153] For example, at this time, the second service information in S613 may be the running speed, running distance, and heart rate in S713.

[0154] Specifically, the treadmill can obtain the user's running speed, running distance and heart rate on the treadmill through sensors.

[0155] S714, the mobile phone sends the running speed, running distance and heart rate in S713 to the body beauty and fitness service platform through the token information.

[0156] For example, at this time, the first service information in S614 may be the running speed, running distance and heart rate in S714.

[0157] S715, the body beauty and fitness service platform determines the calories consumed by the user according to the running speed, running distance and heart rate.

[0158] Specifically, the body beauty and fitness service platform determines the calories that the user has consumed based on the running speed, running distance and heart rate. The body beauty and fitness service platform determines whether the calories that the user has consumed have reached the calories that the user wants to consume in the user demand information in S708. If not, the body beauty and fitness service platform can generate strategy information again and execute S710-S715 in a loop until the calories that the user wants to consume are reached.

[0159] In the above method 700, the user information of the treadmill is the same as the user information of the mobile phone, that is, the mobile phone and the treadmill are the same user. In this way, when the mobile phone reports the data from the treadmill, it avoids carrying the information of the treadmill, and can also avoid binding the treadmill with the body beauty and health service platform. When the body beauty and fitness service platform and the treadmill are devices of different manufacturers, they can also communicate and be applicable. For example, the treadmill in method 700 is from manufacturer A in the user's home, but the user can exercise on the treadmill of manufacturer A with the guidance of the body beauty and fitness service platform of manufacturer B. If the user runs on the treadmill of manufacturer C in the gym, he can also exercise with the guidance of the body beauty and fitness service platform of manufacturer B. In this way, it is possible to avoid binding treadmills of different manufacturers with body beauty and fitness service platforms. In addition, the soft bus channel can realize the interconnection of equipment from different manufacturers, that is, the treadmill and the mobile phone can be produced by the same manufacturer or by different manufacturers. In other words, in the above solution, the treadmill, mobile phone and body beauty and fitness service platform can be from the same manufacturer or from different manufacturers. This can realize the interconnection of equipment produced by different manufacturers, thereby improving applicability and reducing costs.

[0160] Therefore, in the above method embodiment, if Figure 8 As shown, if the first terminal device is a mobile phone, IoT terminal devices of different manufacturers can be mounted on the mobile phone through the soft bus. IoT-A of manufacturer A, IoT-B of manufacturer B, and IoT-C of manufacturer C can be mounted on the mobile phone through the soft bus channel, so that the interconnection and interoperability of devices of different manufacturers can be achieved. IoT-A, IoT-B, IoT-C and the mobile phone are devices of the same user, so the user information and the IoT server can be used in the process of authentication between the mobile phone and the IoT server, avoiding the need for the information of the IoT terminal device to authenticate with the IoT server, and avoiding the need to deploy a dedicated IoT server for a dedicated manufacturer, thereby reducing costs and improving applicability.

[0161] The above combination Figure 1-Figure 8 An embodiment of a method for transmitting business information provided by an embodiment of the present application has been described. The following describes an embodiment of an apparatus for transmitting business information provided by an embodiment of the present application.

[0162] In this embodiment, each electronic device can be divided into functional modules according to the above method. For example, each function can be divided into functional modules, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0163] It should be noted that the relevant contents of each step involved in the above method embodiment can all be referred to the functional description of the corresponding functional module, which will not be repeated here.

[0164] Each electronic device provided in this embodiment is used to execute the above-mentioned method for transmitting business information, so the same effect as the above-mentioned implementation method can be achieved. In the case of an integrated unit, each electronic device may include a processing module, a storage module and a communication module. Among them, the processing module can be used to control and manage the actions of each electronic device. For example, it can be used to support the electronic device to execute the steps performed by the processing unit. The storage module can be used to support the electronic device to execute the stored program code and data, etc. The communication module can be used to support the communication between the electronic device and other devices.

[0165] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0166] For example, Fig. 9 FIG. 9 is a schematic diagram showing the hardware structure of the electronic device 900. Fig. 9 As shown, the electronic device 900 may include a processor 910, an external memory interface 920, an internal memory 921, a universal serial bus (USB) interface 930, a charging management module 940, a power management module 941, a battery 942, an antenna 1, an antenna 2, a wireless communication module 950, a sensor module 960, and the like.

[0167] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 900. In other embodiments of the present application, the electronic device 900 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0168] The processor 910 may include one or more processing units. For example, the processor 910 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent components or integrated into one or more processors. In some embodiments, the electronic device 900 may also include one or more processors 910. The controller may generate an operation control signal based on the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0169] In some embodiments, the processor 910 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM card interface, and / or a USB interface, etc. Among them, the USB interface 930 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 930 can be used to connect a charger to charge the electronic device 2600, and can also be used to transmit data between the electronic device 900 and peripheral devices.

[0170] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 900. In other embodiments of the present application, the electronic device 900 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0171] The wireless communication function of the electronic device 900 can be implemented through the antenna 1, the antenna 2 and the wireless communication module 950.

[0172] The wireless communication module 950 can provide wireless communication solutions including Wi-Fi (including Wi-Fi sensing and Wi-Fi AP), Bluetooth (BT), wireless data transmission modules (for example, 433MHz, 868MHz, 915MHz) applied to the electronic device 900. The wireless communication module 950 can be one or more devices integrating at least one communication processing module. The wireless communication module 950 receives electromagnetic waves via antenna 1 or antenna 2 (or, antenna 1 and antenna 2), filters and frequency modulates the electromagnetic wave signals, and sends the processed signals to the processor 910. The wireless communication module 950 can also receive the signal to be sent from the processor 910, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through antenna 1 or antenna 2.

[0173] The external memory interface 920 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 900. The external memory card communicates with the processor 910 through the external memory interface 920 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0174] The internal memory 921 can be used to store one or more computer programs, which include instructions. The processor 910 can enable the electronic device 900 to perform the method of transmitting business provided in some embodiments of the present application, as well as various applications and data processing, etc. by running the above instructions stored in the internal memory 921. The internal memory 21 may include a code storage area and a data storage area. Among them, the code storage area can store an operating system. The data storage area can store data created during the use of the electronic device 00, etc. In addition, the internal memory 21 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, a flash memory component, a universal flash storage (UFS), etc. In some embodiments, the processor 10 can enable the electronic device 00 to perform the method of transmitting business information provided in the embodiments of the present application, as well as other applications and data processing by running instructions stored in the internal memory 21, and / or instructions stored in a memory provided in the processor 10.

[0175] The electronic device 900 includes but is not limited to a smartphone, a tablet computer, a desktop computer, a portable electronic device (such as a laptop), a smart TV (such as a smart screen), a car computer, a smart speaker, an augmented reality (AR) device, a virtual reality (VR) device, other smart devices with display screens, wearable electronic devices with wireless communication functions (such as smart watches, smart glasses), and other smart devices with speakers. Exemplary embodiments of electronic devices include but are not limited to devices equipped with Portable electronic devices running Linux or other operating systems.

[0176] This embodiment further provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on an electronic device, the electronic device executes the method for transmitting service information in the above embodiment.

[0177] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the method for transmitting service information in the above embodiment.

[0178] In addition, an embodiment of the present application further provides a device. The device may specifically be a chip, a component or a module. The device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory, so that the chip executes the method for transmitting service information in the above embodiment.

[0179] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0180] Through the description of the above implementation mode, those skilled in the art can understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0181] It should be understood that the devices and methods disclosed in the several embodiments provided in the present application can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device. In addition, some features can be ignored or not performed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0182] The units described as separate components may or may not be physically separated. The components shown as units may be one physical unit or multiple physical units. That is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected to achieve the purpose of this solution according to actual needs.

[0183] In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit; or may exist physically separately; or some units may be integrated into one unit, and some units may exist physically separately. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.

[0184] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, all or part of the technical solution of the embodiment of the present application can be embodied in the form of a software product. The software product is stored in a storage medium. The software product includes a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0185] It should be noted that all or part of the above-mentioned embodiments provided in the present application (for example, part or all of any feature) can be arbitrarily combined or used in combination with each other.

[0186] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for transmitting business information, characterized in that: include: The first terminal device transmits the first service information of the first service to the IoT server corresponding to the first service through the token information, wherein the token information is obtained from the IoT server after the first terminal device authenticates with the IoT server according to the user information of the first terminal device, and the token information is used for the first terminal device to communicate with the IoT server; wherein, if the first terminal device has registered the user information in the IoT server, it indicates that the authentication is successful; The first terminal device transmits second service information of the first service to a first IoT terminal device corresponding to the first service, where the second service information is associated with the first service information; Among them, the user information of the first terminal device is the same as the user information of the first IoT terminal device, and the first IoT terminal device and the IoT server are devices of the same manufacturer or different manufacturers.

2. The method according to claim 1, characterized in that Before the first terminal device transmits the second service information of the first service through the first IoT terminal device corresponding to the first service, the method further includes: The first terminal device establishes a soft bus channel with the first IoT terminal device; The first terminal device and the first IoT terminal device corresponding to the first service transmit the second service information of the first service, including: The first terminal device transmits the second service information of the first service to the first IoT terminal device corresponding to the first service through the soft bus channel.

3. The method according to claim 2, characterized in that The method further comprises: The first terminal device sends a first query message to the first IoT terminal device through the soft bus channel, where the first query message is used to query the first IoT terminal device for information of the first IoT terminal device; The first terminal device receives the information of the first IoT terminal device sent by the first IoT terminal device according to the first query message through the soft bus channel.

4. The method according to claim 3, characterized in that The information of the first IoT terminal device includes a first service port address of the first IoT terminal device accessed by the first terminal device through the soft bus channel; The first terminal device transmits the first service information of the first service to the IoT server corresponding to the first service through the token information, including: The first terminal device receives the first service information sent by the IoT server through the token information; The first terminal device transmits the second service information of the first service to the first IoT terminal device corresponding to the first service through the soft bus channel, including: The first terminal device sends the second business information associated with the first business information to the first service port address of the first IoT terminal device through the soft bus channel.

5. The method according to claim 3, characterized in that: The information of the first IoT terminal device includes service information and address request information, and the address request information is used to request the first IoT terminal device to report the service port address required by the first service indicated by the service information; the method also includes: The first terminal device sends a service request message to the first IoT terminal device according to the address request information and the service information, where the service request message is used to request the first IoT terminal device to report the business information of the first service, and the service request message includes the second service port address required by the first IoT terminal device to report the first service; The first terminal device transmits the second service information of the first service to the first IoT terminal device corresponding to the first service through the soft bus channel, including: The first terminal device receives, through the soft bus channel, the second business information corresponding to the first service sent by the first IoT terminal device according to the second service port address; The first terminal device transmits first service information of the first service to the IoT server corresponding to the first service through the token information, including: The first terminal device sends the first business information associated with the second business information to the IoT server through the token information.

6. The method according to any one of claims 3 to 5, characterized in that The information of the first IoT terminal device includes at least one of a device type, manufacturer information, and a device name of the first IoT terminal device.

7. The method according to any one of claims 1 to 5, characterized in that After the first terminal device obtains the token information from the IoT server, the method further includes: The first terminal device receives subscription information of the first service sent by the IoT server through the token information; The first terminal device transmits the first service information of the first service to the server corresponding to the first service through the token information, including: The first terminal device transmits the first service information to the IoT server through the token information according to the subscription information.

8. An electronic device, characterized in that: include: one or more processors; Memory; a module with multiple applications installed; and one or more programs, wherein the one or more programs are stored in the memory, and when the one or more programs are executed by the processor, the electronic device executes the method as claimed in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 7.

10. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Authority authentication method, authority authentication system and computer readable storage medium

    CN111093197A

  • Diagnostic system is assisted to traditional chinese medical science pulse condition based on high in clouds

    CN204654887U

  • Interworking service for the restful internet of things

    EP3695581A1