WO2022194063A1 - 传输业务信息的方法和电子设备 - Google Patents

传输业务信息的方法和电子设备 Download PDF

Info

Publication number
WO2022194063A1
WO2022194063A1 PCT/CN2022/080510 CN2022080510W WO2022194063A1 WO 2022194063 A1 WO2022194063 A1 WO 2022194063A1 CN 2022080510 W CN2022080510 W CN 2022080510W WO 2022194063 A1 WO2022194063 A1 WO 2022194063A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
service
information
iot
server
Prior art date
Application number
PCT/CN2022/080510
Other languages
English (en)
French (fr)
Inventor
王成录
刘海洋
王磊
马志伟
杨峻峰
方卫庆
侯前进
索勋飞
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US18/550,499 priority Critical patent/US20240187237A1/en
Priority to EP22770418.6A priority patent/EP4283921A4/en
Publication of WO2022194063A1 publication Critical patent/WO2022194063A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/321Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
    • H04L9/3213Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0884Network architectures or network communication protocols for network security for authentication of entities by delegation of authentication, e.g. a proxy authenticates an entity to be authenticated on behalf of this entity vis-à-vis an authentication entity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0866Generation of secret information including derivation or calculation of cryptographic keys or passwords involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3218Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using proof of knowledge, e.g. Fiat-Shamir, GQ, Schnorr, ornon-interactive zero-knowledge proofs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3263Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/069Authentication using certificates or pre-shared keys
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/80Wireless
    • H04L2209/805Lightweight hardware, e.g. radio-frequency identification [RFID] or sensor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • H04W12/71Hardware identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • H04W12/72Subscriber identity

Definitions

  • the present application relates to the field of communications, and more particularly to methods and electronic devices for transmitting service information in the field of communications.
  • IoT Internet of things
  • the communication protocol between the IoT terminal device, IoT gateway and IoT server is a private protocol, that is, the IoT terminal device, IoT gateway and IoT server must be produced by the same manufacturer Only in order to follow the private protocol to communicate, this will increase the cost, and the IoT terminal devices, IoT gateways and IoT servers of different manufacturers cannot communicate with each other, and the applicability is limited.
  • the data of the IoT terminal device needs to be routed through the 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 a private protocol, and the IoT terminal device and the IoT server also need to be from the same manufacturer. production, which will increase the cost and limit the adaptability. In other words, the interdependence of existing IoT terminal devices and IoT servers leads to high communication costs and limited applicability.
  • the embodiments of the present application provide a method and electronic device for transmitting service information, which can reduce costs and improve applicability.
  • a method for transmitting service information which includes: a first terminal device transmits first service information of the first service through an IoT server whose token information corresponds to the first service, and the token The 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. communicate with the IoT server; the first terminal device and the first IoT terminal device corresponding to the first service transmit second service information of the first service, and the second service information is associated with the first service information ; wherein the user information of the first terminal device is the same as the user information of the first IoT terminal device.
  • 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, and the first terminal device can communicate with the server through the token information.
  • the authentication process between the first terminal device and the IoT server is based on the user information authentication of the first terminal device, avoiding the need to bind the first IoT terminal device and the IoT server.
  • the first IoT terminal device and IoT Servers are devices of different manufacturers and can also communicate, which can improve applicability and avoid the need to deploy different IoT servers for IoT terminal devices of different manufacturers, which can reduce costs.
  • IoT terminal device A produced by manufacturer A IoT terminal device B produced by manufacturer B, IoT terminal device A and IoT terminal device B are the same type of device, IoT terminal device A, IoT terminal device B and the first terminal device It is a device of the same user, the first terminal device can be from manufacturer A or another manufacturer, the IoT server is from manufacturer A, and the first terminal device uses the user The information of IoT terminal device A or IoT terminal device B is not used. 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 for special Deploying Vendor B's IoT server can reduce costs and improve applicability.
  • the fact that the user information of the first terminal device and the user information of the first IoT terminal device are the same 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 The same mobile phone number is registered or the same Huawei account is logged in.
  • the device information of the first IoT terminal device does not need to be used.
  • the first IoT terminal device and the IoT server may be produced by the same manufacturer or produced by different manufacturers, thereby saving costs.
  • the association between the first service information and the second service information can be understood as: the first service information is the same as the second service information, or the first terminal device processes the first service information to obtain the second service information, or the first terminal device obtains the second service information.
  • the first service information is obtained by processing the second service information. For example, after the first terminal device receives the first service information sent from the IoT server through the token information, the first terminal device can directly send the first service information (in this case the first service information is the same as the second service information) to The first IoT terminal device, or the first terminal device obtains the second service information after processing the first service information, and sends the second service information to the first IoT terminal device.
  • the first terminal device directly sends the second service information (this time the second service information is the same as the first service information) to the IoT server, or The first terminal device obtains the first service information after processing the second service information, and sends the information to the IoT server.
  • the communication between the first terminal device and the first IoT device may be performed through a soft bus channel, or may not be communicated through a soft bus channel.
  • the first terminal device may send the first IoT terminal device through the soft bus channel.
  • the first terminal device may also send the first IoT terminal device through a physical channel.
  • 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 this embodiment of the present application.
  • transmitting the first service information of the first service by the first terminal device through the IoT server corresponding to the token information and the first service includes: the first terminal device receiving, by using the token information, the first service corresponding to the first service.
  • the second service information of the first service includes: 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.
  • transmitting the second service information of the first service by the first terminal device and the first IoT terminal device corresponding to the first service includes: the first terminal device receiving the first IoT corresponding to the first service.
  • the first service information includes: the first service information of the first service sent by the first terminal device to the Internet of Things IoT server corresponding to the first service through the token information.
  • the method 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 The first terminal device establishes a soft bus channel with the first IoT terminal device;
  • the transmission of the second service information of the first service by the first terminal device and the first IoT terminal device corresponding to the first service includes:
  • the first terminal device transmits the second service information of the first service through the soft bus channel and the first IoT terminal device corresponding to the first service.
  • the soft bus channel can use different access technologies (Bluetooth, WiFi, USB, etc.) in different scenarios to form a network of devices with the same user identity.
  • the first terminal device has discovery and connection capabilities through the soft bus channel, and provides a high-throughput, low-latency, high-reliability, safe and trusted 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 localized access effect between devices.
  • the first terminal device has the soft bus capability to manage the connection of various IoT terminal devices, and can discover in real time that new IoT terminal devices are connected to the soft bus network; for the IoT terminal devices that have been connected before, the first terminal device can maintain real-time connection with the IoT terminal device. Connection capability, so that data can be transmitted with the IoT terminal device that has been connected before. This capability of the first terminal device is called the bus hub capability.
  • the soft bus channel can realize the interconnection and intercommunication of devices of 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.
  • the first terminal device, the first IoT terminal device, and the IoT server can be from the same manufacturer or from different manufacturers, so that the interconnection of devices produced by different manufacturers can be realized, thereby improving the applicability and improving the applicability. cut costs.
  • the method further includes: 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 send a The first IoT terminal device queries the information of the first IoT terminal device;
  • the first terminal device receives, through the soft bus channel, the information of the first IoT terminal device sent by the first IoT terminal device according to the first query message.
  • the information of the first IoT terminal device may also be referred to as capability file description information of the first terminal device.
  • 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 the first terminal device accessing the first IoT terminal device through the soft bus channel. At least one item of service port address.
  • the basic information of the first IoT terminal device includes at least one of a 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 various services supported by the first IoT terminal device, for example, the first IoT terminal device is a treadmill, and the treadmill supports services such as query, heart rate reporting, or distance reporting.
  • the first terminal device may 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 may send the first terminal device through the soft bus channel.
  • the information of the first IoT terminal device in this way, the first terminal device can be made to obtain the information of the first IoT terminal device, so as to communicate with the first IoT terminal device subsequently.
  • the information of the first IoT terminal device includes a first service port address through which the first terminal device accesses the first IoT terminal device through the soft bus channel;
  • the first terminal device transmits the first service information of the first service through the IoT server corresponding to the token information and the first service, 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 through the soft bus channel and the first IoT terminal device corresponding to the first service, including:
  • the first terminal device sends the second service information associated with the first service information to the first service port address of the first IoT terminal device through the soft bus channel.
  • the first terminal device in the downlink transmission, can send the second service information to the first IoT terminal device based on the first service port address, so that the first terminal device does not know how to send the second service information to the first IoT terminal device. business information.
  • 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 first IoT terminal device to the first terminal device.
  • 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 first IoT terminal device.
  • Service information of a service where the service request message includes a 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 through the soft bus channel and the first IoT terminal device corresponding to the first service, including:
  • the first terminal device receives, through the soft bus channel, the second service 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 the first service information of the first service through the IoT server corresponding to the token information and the first service, including:
  • the first terminal device sends the first service information associated with the second service information to the IoT server by using the token information.
  • the first IoT terminal device in the process of the first terminal device requesting the information of the first IoT terminal device from the first IoT terminal device, the first IoT terminal device can carry its own demand for the first terminal device (ie, address request information) with
  • the service request message sent by the first terminal device to the first IoT terminal device may carry the address of the second service port required by the first IoT terminal device to report the first service. In this way, When the first IoT terminal device needs to report the first service, it can report to the second service port address.
  • 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 device type, manufacturer information, and device name item.
  • the method further includes: the first terminal device receives the IoT through the token information The subscription information of the first service sent by the server; wherein, the first terminal device transmits the first service information of the first service through the server corresponding to the token information and the first service, including:
  • the first terminal device transmits the first service information with the IoT server through the token information according to the subscription information.
  • the subscription information may include at least one of the package of the subscription of the first service, the validity period of the first service, the arrears of the first service, the remaining usage times of the first service, and the remaining time of the first service, etc. .
  • the subscription information of the first service needs to be considered, that is, the first terminal device needs to determine whether it can transmit the first service information with the IoT server according to the subscription information. , to avoid the situation where the first terminal device blindly transmits the first service information with the IoT server, resulting in the IoT server being unable to process the first service information.
  • a method for transmitting service information including: a first IoT terminal device corresponding to a first service establishes a soft bus channel with the first terminal device, and the first IoT terminal device corresponds to the first service through the soft bus channel
  • the first IoT terminal device transmits the second service information of the first service
  • the first terminal device is used for the IoT server corresponding to the first service to transmit the first service information associated with the second service information, wherein the first terminal device and
  • the token information used for transmitting the second service between IoT servers is obtained from the IoT server after the first terminal device performs authentication with the IoT server according to the user information of the first terminal device.
  • the soft bus channel can realize the interconnection and intercommunication of devices of 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 different manufacturers can The interconnection of the equipment produced can improve the applicability and reduce the cost.
  • the first terminal device, the first IoT terminal device, and the IoT server can be from the same manufacturer or from different manufacturers, so that the interconnection of devices produced by different manufacturers can be realized, thereby improving the Applicability and cost reduction.
  • the method further includes: the first IoT terminal device receives a first query message sent by the first terminal device through a soft bus channel, where the first query message is used to query the first IoT terminal device for the first query message. Information of the 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.
  • 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 the first terminal device accessing the first IoT terminal device through the soft bus channel. At least one item of service port address.
  • the basic information of the first IoT terminal device includes at least one of a 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 various services supported by the first IoT terminal device, for example, the first IoT terminal device is a treadmill, and the treadmill supports services such as query, heart rate reporting, or distance reporting.
  • the information of the first IoT terminal device includes a first service port address through which the first terminal device accesses the first IoT terminal device through the soft bus channel; the first IoT terminal device Transmission of the second service information of the first service by the first IoT terminal device corresponding to the first service through the soft bus channel includes: the first IoT terminal device receiving the second service information sent by the first terminal device according to the first service port address.
  • 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 terminal device to report the first service required by the first IoT terminal device to report the service information.
  • the service port address; the method further includes:
  • the first IoT terminal device receives a service request message sent by the first terminal device according to the address request message and the service information.
  • the service request message is used to request the first IoT terminal device to report service information of the first service, and the service request message includes the first IoT terminal device.
  • the second service port address required by the terminal device to report the first service;
  • the first IoT terminal device transmits the second service information of the first service through the soft bus channel and the first IoT terminal device corresponding to the first service, including:
  • the first IoT terminal device sends the second service information corresponding to the first service to the second service port address of the first terminal device through the soft bus channel.
  • the information of the first IoT terminal device includes at least one of a device type, manufacturer information, and device name of the first IoT terminal device.
  • the present application provides an apparatus, the apparatus is included in an electronic device, and the apparatus has a function of implementing the above aspects and the behavior of the electronic device in possible implementations of the above aspects.
  • the functions can be implemented by hardware, or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above functions. For example, a transmission module or unit, a processing module or unit, and the like.
  • the apparatus may be the above-mentioned first terminal device or the first IoT terminal device.
  • the present application provides an electronic device, comprising: one or more processors; a memory; a plurality of application programs; and one or more computer programs. Wherein, one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. When the instruction is executed by the electronic device, the electronic device is caused to execute the method of notifying a fault in any possible implementation of any of the above aspects.
  • 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;
  • the electronic device may be the above-mentioned first terminal device or the first IoT terminal device.
  • the present application provides an electronic device including one or more processors and one or more memories.
  • the one or more memories are coupled to the one or more processors for storing computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform A method for transmitting service information in any possible implementation of any one of the above aspects.
  • the present application provides a computer-readable storage medium, including computer instructions, which, when the computer instructions are executed on an electronic device, cause the electronic device to execute any of the possible methods for transmitting service information in any of the foregoing aspects.
  • the present application provides a computer program product that, when the computer program product runs on an electronic device, enables the electronic device to execute any of the possible methods for transmitting service information in any of the above aspects.
  • 1 to 4 are schematic diagrams of possible transmission of service information in the prior art.
  • 5 to 7 are schematic diagrams of a method for transmitting service information provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a possible application scenario provided by an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
  • 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.
  • the IoT terminal device is a treadmill
  • the IoT server is a body and fitness service platform
  • the user is on the treadmill
  • the data generated by running needs to be uploaded to the bodybuilding and fitness service platform, and the bodybuilding and fitness service platform will guide the user's fitness according to the data uploaded by the treadmill.
  • the IoT server may be composed of an IoT platform and an IoT application server, where the IoT platform is used to adapt and/or forward protocol packets of the IoT terminal device, and manage the online status of whether the IoT terminal device is online.
  • the IoT application server is used to provide specific business data to IoT terminal devices.
  • the data of the IoT terminal device needs to be sent to the IoT server or the IoT terminal device needs to go through the IoT gateway to obtain data from the IoT server.
  • data from IoT terminal devices needs to be routed to IoT servers through IoT gateways, or data from IoT servers needs to go through IoT gateways to reach IoT terminal devices.
  • the IoT gateway needs to convert the transmission protocol with the IoT terminal device 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 the IoT terminal device of the same manufacturer, that is to say, the IoT terminal device, IoT gateway and IoT server transmit data according to a 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 of the three devices follows the transmission protocol customized by the manufacturer, and the corresponding IoT gateway and IoT server need to be deployed for the IoT terminal devices, which will lead to high cost and limited application scope.
  • the data of the IoT terminal device needs to be sent to the IoT server or the IoT terminal device needs to go through a wireless local area network (WLAN) router to obtain data from the IoT server.
  • WLAN wireless local area network
  • the data of the IoT terminal device needs to pass through the WLAN router to reach the IoT server.
  • the WLAN router needs to carry the information of the IoT terminal device.
  • the IoT server can identify the IoT terminal device according to the information of the IoT terminal device.
  • the IoT terminal device needs to be produced by the same manufacturer for the IoT server to 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 according to the information of the IoT server.
  • the IoT server and the IoT terminal device need to be produced by the same manufacturer. , only the IoT terminal device can identify the IoT server.
  • the data of the IoT terminal device needs to be sent to the IoT server or the IoT terminal device needs to obtain the data from the IoT server. As shown in Figure 3, it needs to pass through the IoT gateway and then the WLAN router. This method It is also necessary to deploy the corresponding IoT gateway and IoT server of the same manufacturer for IoT terminal devices, which will lead to higher costs and limited application scope.
  • the IoT gateway or WLAN router needs to communicate with the IoT server through the WAN, and the IoT server and the IoT terminal device need to be produced by the same manufacturer, which will lead to high costs and limited scope of application.
  • 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 implemented by means of cellular communication.
  • data needs to be transmitted to the IoT server through IoT radio access network (RAN) equipment and IoT core network equipment.
  • RAN radio access network
  • IoT terminal devices need to have cellular radio frequency modules, which are not applicable to IoT terminal devices without cellular capabilities, and IoT RAN and IoT core network need to deploy different network slices for different types of IoT terminal devices. It will increase the maintenance and operation costs of operators, and the WAN needs to distinguish between different types of IoT terminal devices. Different types of IoT terminal devices have different service requirements. Some types of IoT terminal devices are real-time services, and some types Most IoT terminal devices are non-real-time services, which will lead to complex WAN processing and higher costs.
  • 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, and the first terminal device can communicate with the server through the token information , in the process of authentication between the first terminal device and the IoT server, the user information of the first terminal device is used for authentication, avoiding the need to bind the first IoT terminal device and the IoT server.
  • the first IoT terminal device and the IoT server It is equipment of different manufacturers and can also communicate, which can improve the applicability and avoid the need to deploy different IoT servers for IoT terminal devices of different manufacturers, which can reduce costs.
  • the method 500 for transmitting service information provided by the embodiment of the present application is described below with reference to FIG. 5 .
  • uplink transmission is described as an example, and uplink transmission is an example where an IoT device needs to send first service information to an IoT server.
  • Method 500 includes:
  • the first terminal device performs authentication with the IoT server according to user information of the first terminal device.
  • S501 includes: the first terminal device can receive the login account entered by the user through the application, and send the login account entered by the user to the IoT server, and the IoT server verifies the login account, if the user logs in through the first terminal device If the IoT server has registered the login account, it means that the authentication is passed, and the IoT server can send the authentication passed information to the first terminal device.
  • the login account can be a Huawei account or a mobile phone number or a personal identification number (PIN) code.
  • 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.
  • the first terminal device After the user information of a terminal device is authenticated by the IoT server, during the 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, It is possible to avoid binding IoT terminal devices to IoT servers.
  • 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.
  • 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 a communication key allocated by the IoT server to the first terminal device.
  • the token information may be an identification of a token or indication information for indicating the identification of the token, or the like.
  • the IoT server sends the 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.
  • the user may 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 corresponds to the first service application.
  • the IoT server authenticates the first application of the first terminal device and sends the token information
  • the IoT server can send subscription information about the first service to the first application of the first terminal device, such as subscription information Specifically, it includes the subscription package of the first service, the validity period of the first service, the arrears of the first service, the remaining usage times of the first service, the remaining time of the first service, and the like.
  • the IoT server may actively push the subscription information of the first service to the first application of the first terminal device.
  • 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 the subscription information of the first service, and the IoT server according to the second query message
  • the query message returns subscription information of the first service to the first terminal device.
  • 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.
  • the first terminal device establishes a soft bus channel with the first IoT terminal device.
  • the IoT terminal device After the IoT terminal device establishes a soft bus channel with the first terminal device, it is equivalent to that the first IoT terminal device is mounted on the first terminal device, that is, the first IoT terminal device can communicate with the first terminal device, and the first IoT terminal device can communicate with the first terminal device.
  • the manufacturers of the terminal device and the first terminal device may be the same manufacturer or different manufacturers, and the soft bus channel can interconnect the devices of different manufacturers.
  • any one of steps S504 and S501-S503 can be performed simultaneously; or S503 can be performed before any step of S501-S503, that is, the first IoT terminal device can first establish a soft bus channel with the first terminal device, The first terminal device then authenticates with the IoT server, or the first terminal device receives the token information again, or the first terminal device then receives the subscription information of the first service; That is, the first terminal device can authenticate with the IoT server first, or the first terminal device can receive the token information first, or the first terminal device can receive the subscription information of the first service first, and then the first terminal device can establish a software connection with the first IoT terminal device.
  • the first IoT terminal device is the IoT terminal device corresponding to the first service.
  • 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 according to the information reported by the first terminal device that the first terminal device is not connected to the IoT terminal device corresponding to the IoT server, the IoT server sends a trigger message to the first terminal device, and the trigger message is used to trigger the first terminal device to communicate with the first terminal device.
  • the IoT terminal device establishes a soft bus channel, that is, the trigger message is used to trigger the execution of S504.
  • the first terminal device sends a first query message to the first IoT terminal device through the soft bus channel
  • 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 send the first query message to the first IoT terminal device.
  • the first IoT terminal device queries information of the first IoT terminal device.
  • 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.
  • 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 the first terminal device accessing the first IoT terminal device through the soft bus channel. At least one item of service port address.
  • the basic information of the first IoT terminal device includes at least one of a 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 various services supported by the first IoT terminal device, for example, the first IoT terminal device is a treadmill, and the treadmill supports services such as query, heart rate reporting, or distance reporting.
  • the information of the first IoT terminal device further includes address request information, where the address request information is used to request the first terminal device for a service port address required by the first IoT terminal device to report the first service indicated by the first service information,
  • the at least one service information includes first service information.
  • S507 is executed, in other words, the order between S507 and S505 or S506 is not limited.
  • the IoT server sends the 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.
  • the first terminal device receives the first service information according to the token information.
  • the IoT server may trigger sending the first service information of the first service to the first terminal device based on two methods.
  • the IoT server may actively send the first service information of the first service 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 first terminal device
  • the service information of the first service in other words, if the first terminal device subscribes to the first service on the IoT server, the IoT server can actively push the first service after completing the authentication with the first terminal device and sending the token information first business information.
  • the first terminal device can receive the operation input by the user for the demand of the first service through the first application program, and the first terminal device generates the user demand information according to the user's demand and the subscription information of the first service, and report it to the IoT server.
  • the IoT server generates first service information corresponding to the first service according to the user demand information and sends it to the first terminal device.
  • the first business is the running business
  • the IoT server is the body care and fitness service platform
  • the first IoT terminal device is a treadmill.
  • the user subscribes to the fitness guide on the body care and fitness service platform through the sports and health application of the first terminal device.
  • the demand for the desired exercise effect set in the first application program of the terminal device such as how many calories you want to consume.
  • the first terminal device determines whether the remaining effective instruction content of the subscribed fitness instruction can meet the needs of the user, and if so, the first terminal device generates user demand information, and sends it to the bodybuilding and fitness service platform.
  • the demand information formulates a guidance strategy (also referred to as the first service information of the running service), and sends it to the first terminal device.
  • the first terminal device sends the second service information to the first IoT device according to the first service information.
  • the first service information can be understood as the service information for transmitting the first service between the first terminal device and the IoT server
  • the second service information can be understood as the transmission of the first service between the first terminal device and the first IoT terminal device.
  • business information The first service information and the second service information may be service data related to the first service or signaling data related to the first service, which are not limited in this embodiment of the present application. The first service information and the second service information are discussed below in two cases.
  • the first service information is the same as the second service information
  • the first terminal device can directly send the first service information received from the IoT server to the first IoT terminal device.
  • the guidance strategy specified by the body-building 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 For treadmills, these data can be displayed on the treadmill for user reference.
  • the first terminal device can generate the second service information according to the first service information, and send the generated second service information to the first IoT terminal device. Further, the first terminal device may generate the second service information according to the first service information and the information of the first IoT terminal device, and send the generated second service information to the first IoT terminal device.
  • 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 according to these data.
  • the treadmill needs to report parameters such as speed, distance, or heartbeat.
  • the second service information sent by the first terminal device to the treadmill may indicate that parameters such as speed, distance, or heartbeat need to be reported, that is, if the first IoT terminal device is a treadmill, the first terminal device can run according to S406.
  • the service information included in the information of the machine determines whether the treadmill supports services such as reporting speed, reporting distance, or reporting heartbeat, and if so, sends second service information to the treadmill.
  • the information of the first IoT terminal device in S506 includes the first service port address of the first terminal device accessing the first IoT terminal device through the soft bus channel. Then the first terminal device can send the second service information to the first service port address through the soft bus channel.
  • the above combination method 500 describes the 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.
  • the uplink transmission is described below with reference to the method 600 in FIG. 6 .
  • the first terminal device may receive, through the first application, an operation input by the user for the requirement of the first service, and the first terminal device generates user requirement information according to the user's requirement and subscription information of the first service.
  • the first terminal device reports user demand information to the IoT server.
  • the IoT server generates policy information according to the user demand information.
  • 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.
  • the IoT server sends policy information to the first terminal device.
  • the first terminal device determines that the first IoT terminal device needs to execute the first service according to the policy information and the subscription information.
  • the method 600 may include S607-S611, and some services do not require user parameters, that is, the user will not be in the first application of the first terminal device.
  • the program input requires operation, so S607-S611 may not exist.
  • 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 It is determined to execute the first service without the participation of the user.
  • the first service is a meter reading service
  • the first IoT terminal device is a water meter.
  • the first IoT terminal device reports the information of the first IoT terminal device in S606.
  • the information 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 the service of reporting water meter data. Therefore, the first terminal device determines that the first IoT terminal device Need to perform services that report water meter data.
  • the first terminal device sends a service request message to the first IoT terminal device.
  • the service request message is used to request the first IoT terminal device to report the service information of the first service, and the service request information may further include the second service port address required by the first IoT terminal device to report the first service to the first terminal device.
  • 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 IoT terminal device needs to execute the first When a service 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.
  • the first IoT terminal device sends the second service information corresponding to the first service to the first terminal device through the soft bus channel according to the second service port address.
  • the first terminal device sends the first service information to the IoT server through the token information, where the first service information is associated with the second service information.
  • the first service information can be understood as the service information for transmitting the first service between the first terminal device and the IoT server
  • the second service information can be understood as the transmission of the first service between the first terminal device and the first IoT terminal device.
  • business information The first service information and the second service information may be service data related to the first service or signaling data related to the first service, which are not limited in this embodiment of the present application. The first service information and the second service information are discussed below in two cases.
  • the first service information is the same as the second service information
  • the first terminal device can directly send the second service information received from the first IoT terminal device to the IoT server.
  • the first service information is heartbeat information
  • the first IoT terminal device is a treadmill
  • the IoT server is a bodybuilding and fitness service platform
  • the treadmill can report the user's heartbeat information
  • the mobile phone directly reports the heartbeat information to Bodybuilding and fitness service platform.
  • the bodybuilding and fitness service platform determines the fitness effect that the user can achieve according to the heartbeat information, so that the fitness strategy can be further specified.
  • the first terminal device can generate the first service information according to the second service information, and send the generated first service information to the IoT server.
  • 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 according to the heartbeat information, and then sends the calories as the first service information to the IoT server
  • the IoT server can calculate the calories consumed by the user according to the heartbeat information.
  • Calories reported by the device further shape fitness strategies.
  • the first terminal device is a mobile phone
  • the first IoT terminal device is a treadmill
  • the IoT server is a body-building fitness service platform
  • the first service is a running service.
  • Example Method 700 is described in conjunction with FIG. 7 .
  • the mobile phone is authenticated with the body and fitness service platform.
  • the sports health APP is installed on the mobile phone, and the user enters a login account on the mobile phone health APP.
  • the login account is the Huawei account or mobile phone number of the user's registered sports health.
  • the mobile phone After the user enters the login account on the sports health APP, the mobile phone will The login account is sent to the bodybuilding and fitness service platform. If you have registered for sports health or subscribed to the fitness guidance service corresponding to running, the bodybuilding fitness service platform determines that the authentication has passed.
  • the body-building and fitness service platform sends token information to the mobile phone, and the mobile phone receives the token information.
  • the token information is used for the communication between the mobile phone and the body and fitness service platform.
  • the body-building and fitness service platform sends the subscription information of the running service to the mobile phone.
  • the body beauty 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.
  • the bodybuilding and fitness service platform may actively push the subscription information of the running service to the sports health APP of the mobile phone.
  • the mobile phone after receiving the token information, can send a second query message to the body beauty and fitness service platform, and the second query message is used to query the body beauty and fitness service platform for subscription information of the running business.
  • the second query message returns subscription information of the running service to the mobile phone.
  • the treadmill After the treadmill establishes a soft bus channel with the mobile phone, it is equivalent to that the treadmill is mounted on the mobile phone, that is, the treadmill can communicate with the mobile phone.
  • the manufacturers of the treadmill and the mobile phone can be the same manufacturer or different manufacturers.
  • the bus channel can interconnect devices from different manufacturers.
  • any step in S704 and S701-S703 is not limited in order. That is, the process of establishing a soft bus channel between the treadmill and the mobile phone does not have any restrictions on the order between the mobile phone and the bodybuilding and fitness service platform authentication, the transmission of token information, or the sending of subscription information for running services.
  • the mobile phone sends a first query message to the treadmill through the soft bus channel, the treadmill receives the first query message through the soft bus channel, and the first query message is used to query the treadmill for information about the treadmill.
  • the treadmill sends the information of the treadmill to the mobile phone, and the mobile phone receives the information of the treadmill sent by the treadmill.
  • the information of the treadmill includes at least one service information supported by the treadmill, basic information of the treadmill and at least one item of the address of the first service port that the mobile phone accesses the treadmill 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's model of the treadmill, and the like.
  • the treadmill information is as follows:
  • the mobile phone receives the demand input by the user
  • the user inputs their own needs in the sports health APP of the mobile phone, and the sports health APP of the mobile phone receives the requirements input by the user.
  • S707 is executed, in other words, the order between S707 and S705 or S706 is not limited.
  • the mobile phone reports the user demand information to the bodybuilding and fitness service platform.
  • the body beauty and fitness service platform generates strategy information according to the user demand information.
  • the bodybuilding and fitness service platform formulates a running strategy for the user according to the 1000 calories the user wishes to consume indicated by the user demand information, and the strategy information is used to indicate the running strategy.
  • the running strategy is that the user's running speed is 7km/h, and the running distance is 10km, heart rate is 120 per minute.
  • the body-building and fitness service platform sends the strategy information to the mobile phone, and the mobile phone receives the strategy information sent by the body-body fitness service platform.
  • the mobile phone determines the function required by the treadmill according to the policy information in S710 and the subscription information in S703.
  • the running strategy indicated by the strategy information is that the user's running speed is 7km/h, the running distance is 10km, and the heart rate is 120 per minute. It can be determined that the treadmill needs to report the running speed, the running distance and the heart rate.
  • S712 can be executed.
  • the mobile phone sends a service request message to the treadmill.
  • the service request message is used to request functions such as running speed, running distance, and heartbeat reporting to the treadmill.
  • the service request message may also include the service port address for the treadmill to report running speed, running distance, and heartbeat to the mobile phone.
  • the service port addresses for reporting running speed, reporting running distance, and reporting heartbeat may be the same service port address or different service port addresses.
  • the mobile phone can determine the service that can query whether the treadmill is turned on according to the information of the treadmill in S706, that is, the treadmill has the service to be queried whether it is turned on. Before S712, the mobile phone can send a query to the treadmill through the soft bus channel. Whether the message is turned on or not, if the treadmill is already turned on, the treadmill can return the turned-on message to the mobile phone. S712 is performed only when the mobile phone determines that the treadmill has been turned on.
  • 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.
  • the second service information in S613 at this time may be the running speed, running distance, and heartbeat in S713.
  • the treadmill can acquire the user's running speed, running distance and heartbeat on the treadmill through sensors.
  • the mobile phone sends the running speed, running distance and heartbeat in S713 to the body-building and fitness service platform through the token information.
  • the first service information in S614 at this time may be the running speed, running distance and heartbeat in S714.
  • the body beauty and fitness service platform determines the calories consumed by the user according to the running speed, running distance and heartbeat.
  • the body beauty and fitness service platform determines the calories that the user has consumed according to the running speed, running distance and heartbeat, and the body beauty and fitness service platform determines whether the calories that the user has consumed reach the calories that the user wants to consume in the user demand information in S708. , the body beauty and fitness service platform can generate policy information again, and execute S710-S715 in a cycle until reaching the calories that the user wants to consume.
  • 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.
  • the mobile phone reports the data from the treadmill, it avoids carrying the information of the treadmill, and also avoids Bind the treadmill to the bodybuilding and health service platform.
  • the bodybuilding and fitness service platform and the treadmill are equipment of different manufacturers, they can also communicate and have applicability.
  • the treadmill is owned by manufacturer A in the user's home, but the user's treadmill on manufacturer A can exercise under the guidance of manufacturer B's bodybuilding and fitness service platform.
  • 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.
  • the treadmill and mobile phone The body and fitness service platform can be from the same manufacturer or different manufacturers, so that the interconnection of equipment produced by different manufacturers can be realized, which can improve the applicability and reduce the cost.
  • 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.
  • the IoT-C of manufacturer C can be mounted on the mobile phone through the soft bus channel, which can realize the interconnection and intercommunication of equipment of different manufacturers.
  • IoT-A, IoT-B, IoT-C and the mobile phone are devices of the same user, so the user information and IoT server can be used in the process of authentication between the mobile phone and the IoT server, avoiding the need to authenticate the information of the IoT terminal device and the IoT server , avoiding the need to deploy specialized IoT servers for specialized vendors, thereby reducing costs and improving applicability.
  • each electronic device can be divided into functional modules according to the above method.
  • each function may be divided into various function modules, or two or more functions may be integrated into one processing module.
  • the above-mentioned 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, and there may be other division manners in actual implementation.
  • each electronic device may include a processing module, a storage module, and a communication module, respectively.
  • the processing module may be used to control and manage the actions of each electronic device. For example, it may be used to support the electronic device to perform the steps performed by the processing unit.
  • the storage module may be used to support the electronic device to execute stored program codes and data, and the like.
  • the communication module can be used to support the communication between the electronic device and other devices.
  • the processing module may be a processor or a controller. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure.
  • the processor may 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, and the like.
  • the storage module may be a memory.
  • the communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
  • FIG. 9 shows a schematic diagram of the hardware structure of the electronic device 900 .
  • 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 charge management module 940 , a power management module 941 , and a battery 942 , Antenna 1, Antenna 2, wireless communication module 950, sensor module 960, etc.
  • a processor 910 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 charge management module 940 , a power management module 941 , and a battery 942 , Antenna 1, Antenna 2, wireless communication module 950, sensor module 960, etc.
  • USB universal serial bus
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 900 .
  • the electronic device 900 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • Processor 910 may include one or more processing units.
  • the processor 910 may include an application processor (AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (ISP), a controller, a video Codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc.
  • AP application processor
  • ISP image signal processor
  • controller a video Codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • NPU neural-network processing unit
  • electronic device 900 may also include one or more processors 910 .
  • the controller can generate an operation control signal according to the instruction operation code and the timing signal, and complete the control of fetching and executing instructions.
  • the processor 910 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM card interface, and/or USB interface, etc.
  • the USB interface 930 is an interface that conforms to the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • 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.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 900 .
  • the electronic device 900 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the wireless communication function of the electronic device 900 may be implemented by the antenna 1 , the antenna 2 , the wireless communication module 950 and the like.
  • the wireless communication module 950 can provide Wi-Fi (including Wi-Fi perception and Wi-Fi AP), Bluetooth (Bluetooth, BT), and wireless data transmission modules (for example, 433MHz, 868MHz, 915MHz) applied on the electronic device 900 and other wireless communication solutions.
  • the wireless communication module 950 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 950 receives electromagnetic waves via the antenna 1 or the antenna 2 (or, the antenna 1 and the 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 , perform frequency modulation on it, amplify the signal, and then convert it into an electromagnetic wave and radiate it through the antenna 1 or the antenna 2 .
  • 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 realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 921 may be used to store one or more computer programs including instructions.
  • the processor 910 may execute the above-mentioned instructions stored in the internal memory 921, thereby causing the electronic device 900 to execute the method for transmitting services provided in some embodiments of the present application, as well as various applications and data processing.
  • the internal memory 21 may include a code storage area and a data storage area. Among them, the code storage area can store the operating system.
  • the data storage area may store data and the like created during the use of the electronic device 00 .
  • the internal memory 21 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage components, flash memory components, universal flash storage (UFS), and the like.
  • the processor 10 may cause the electronic device 00 to execute the instructions provided in the embodiments of the present application by executing the instructions stored in the internal memory 21 and/or the instructions stored in the memory provided in the processor 10 . Methods of transmitting business information, and other applications and data processing.
  • 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 computer, Laptop), a smart TV (such as a smart screen), a car computer, a smart speaker, and augmented reality (AR). ) devices, virtual reality (VR) devices, other smart devices with displays, wearable electronic devices with wireless communication capabilities (such as smart watches, smart glasses), and other smart devices with speakers, etc.
  • Exemplary embodiments of electronic devices include, but are not limited to, onboard Portable electronic devices with Linux or other operating systems.
  • This embodiment also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on the electronic device, the electronic device is made to execute the method for transmitting service information in the above-mentioned embodiments .
  • This embodiment also provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the method for transmitting service information in the foregoing embodiments.
  • the embodiments of the present application further provide an apparatus.
  • the device may be a chip, an assembly or a module.
  • the device may include a processor and a memory connected together; wherein, the memory is used to store computer-executed instructions, and when the device is running, the processor may execute the computer-executed instructions stored in the memory, so that the chip executes the process of transmitting service information in the above embodiments. method.
  • the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects in the corresponding methods provided above, which will not be repeated here.
  • Units described as separate components may or may not be physically separate.
  • a component shown as a unit can be one physical unit or multiple physical units. That is, it can be located in one place, or it can be distributed in many different places. According to actual needs, some or all of the units can be selected to achieve the purpose of this solution.
  • each functional unit in the various embodiments of the present application may be integrated in a processing unit; may also exist physically independently; or some units may be integrated in one unit, and some units may physically exist independently.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the software product is stored on a storage medium.
  • the software product includes several instructions for causing a device (which may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods 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 (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Accounting & Taxation (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种传输业务信息的方法和电子设备,该方法包括:第一终端设备利用第一终端设备的用户信息与IoT服务器进行鉴权,并获得用于与IoT服务器通信的令牌信息,第一终端设备与IoT服务器通过令牌信息进行通信。第一终端设备与IoT服务器鉴权的过程中利用的是第一终端设备的用户信息,避免需要将第一IoT终端设备与IoT服务器绑定,当第一IoT终端设备与IoT服务器是不同厂商的设备时,也可以进行通信,能够提高适用性,也避免需要为不同厂商的IoT终端设备部署不同的IoT服务器,能够降低成本。

Description

传输业务信息的方法和电子设备
本申请要求于2021年03月16日提交国家知识产权局、申请号为202110282727.3、申请名称为“传输业务信息的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,并且更具体地涉及通信领域中传输业务信息的方法和电子设备。
背景技术
为了方便人们的生活,越来越多的物联网(internet of things,IoT)设备的应运而生。不同的IoT终端设备能够带给用户不同的用户体验,在很大程度上能够方便用户的生活。IoT终端设备与IoT服务器通信过程中,IoT终端设备的数据需要通过专用的IoT网关路由或者需要通过IoT路由器路由。当IoT终端设备的数据需要通过专用的IoT网关路由时,IoT终端设备、IoT网关和IoT服务器之间的通信协议为私有协议,也即IoT终端设备、IoT网关和IoT服务器必须是同一个厂商生产的才能遵循私有协议进行通信,这样会增加成本,不同厂商的IoT终端设备、IoT网关和IoT服务器不能互相通信,适用性受限。当IoT终端设备的数据需要通过路由器路由时,IoT终端设备的数据也只能路由到对应的IoT服务器,IoT终端设备和IoT服务器也需要遵循私有协议,IoT终端设备和IoT服务器也需要是同一厂商生产的,这样会增加成本,适应性受限。换句话说,现有的IoT终端设备和IoT服务器的互相依赖,导致通信成本较高,适用性受限。
发明内容
本申请实施例提供了一种传输业务信息的方法和电子设备,能够降低成本,也能提高适用性。
第一方面,提成了一种传输业务信息的方法,包括:第一终端设备通过令牌信息与第一业务对应的物联网IoT服务器传输所述第一业务的第一业务信息,所述令牌信息为所述第一终端设备根据所述第一终端设备的用户信息与所述IoT服务器进行鉴权之后从所述IoT服务器获得的,所述令牌信息用于所述第一终端设备与所述IoT服务器通信;所述第一终端设备与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息,所述第二业务信息与所述第一业务信息关联;其中,所述第一终端设备的用户信息与所述第一IoT终端设备的用户信息相同。
在上述方案中,第一终端设备可以利用第一终端设备的用户信息与IoT服务器进行鉴权,并获得用于与IoT服务器通信的令牌信息,第一终端设备可以与服务器通过令牌信息进行通信,第一终端设备与IoT服务器鉴权的过程中利用的是第一终端设备的用户信息鉴权的,避免需要将第一IoT终端设备与IoT服务器绑定,当第一IoT终 端设备与IoT服务器是不同厂商的设备,也可以进行通信,能够提高适用性,也避免需要为不同厂商的IoT终端设备部署不同的IoT服务器,能够降低成本。例如,厂商A生产的IoT终端设备A,厂商B生产的IoT终端设备B,IoT终端设备A与IoT终端设备B为同一种类型的设备,IoT终端设备A、IoT终端设备B和第一终端设备为同一用户的设备,第一终端设备的可以是厂商A的也可以是其他厂商的,IoT服务器为厂商A的,第一终端设备在与厂商A的IoT服务器鉴权的过程中利用的是用户的信息,没有利用IoT终端设备A或者IoT终端设备B的信息,这样,厂商A的IoT服务器不仅可以为IoT终端设备A提供业务信息,也能够为IoT终端设备B提供业务信息,避免还需要专门部署厂商B的IoT服务器,能够降低成本,也能提高适用性。
其中,第一终端设备的用户信息和第一IoT终端设备的用户信息相同可以理解为:第一终端设备与第一IoT终端设备为同一用户的设备,例如第一终端设备和第一IoT终端设备注册了同一个手机号码或者登陆了同一个华为账号。
可选地,第一终端设备与IoT服务器传输第一业务的第一业务信息过程中,不需要利用第一IoT终端设备的设备信息。这样,第一IoT终端设备与IoT服务器可以是同一厂商生成的或者是不同厂商生产的,从而可以节省成本。
其中,第一业务信息与第二业务信息关联可以理解为:第一业务信息与第二业务信息相同,或者第一终端设备对第一业务信息进行处理得到第二业务信息,或者第一终端设备对第二业务信息处理得到第一业务信息。例如,对于第一终端设备通过令牌信息接收来自IoT服务器发送的第一业务信息之后,第一终端设备可以直接将第一业务信息(此时第一业务信息与第二业务信息相同)发送给第一IoT终端设备,或者第一终端设备对第一业务信息进行处理之后得到第二业务信息,并发送给第一IoT终端设备。又例如对于第一终端设备接收来自第一IoT终端设备的第二业务信息,第一终端设备直接将第二业务信息(此时第二业务信息与第一业务信息相同)发送给IoT服务器,或者第一终端设备对第二业务信息进行处理之后得到第一业务信息,并发送给IoT服务器。
可选地,第一终端设备与第一IoT设备通信可以通过软总线通道进行通信,也可以不通道软总线通道进行通信。在第一终端设备与第一IoT终端设备通过软总线通道通信的过程中,第一终端设备可以通过软总线通道发送第一IoT终端设备。当然第一终端设备也可以通过物理通道发送第一IoT终端设备。
可选地,第一终端设备与IoT服务器传输第一业务信息的顺序与第一终端设备与第一IoT终端设备传输第二业务信息的顺序没有任何限制。
可选地,第一业务信息和第二业务信息可以为与第一业务有关的控制信令或者业务数据,本申请实施例不予限制。
可选地,第一终端设备通过令牌信息与第一业务对应的物联网IoT服务器传输所述第一业务的第一业务信息,包括:第一终端设备通过令牌信息接收第一业务对应的物联网IoT服务器发送的所述第一业务的第一业务信息;第一终端设备接收到第一业务信息之后,所述第一终端设备与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息,包括:第一终端设备向第一业务对应的第一IoT终端设备发送第一业务的第二业务信息。即这个过程可以理解为下行传输。
可选地,所述第一终端设备与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息,包括:第一终端设备接收第一业务对应的第一IoT终端设备发送的第一业务的第二业务信息;第一终端设备接收到第二业务信息之后,第一终端设备通过令牌信息与第一业务对应的物联网IoT服务器传输所述第一业务的第一业务信息,包括:第一终端设备通过令牌信息向第一业务对应的物联网IoT服务器发送的第一业务的第一业务信息。
在一些可能的实现方式中,在所述第一终端设备通过与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息之前,所述方法还包括:所述第一终端设备与所述第一IoT终端设备建立软总线通道;
其中,所述第一终端设备与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息,包括:
所述第一终端设备通过所述软总线通道与所述第一业务对应的所述第一IoT终端设备传输所述第一业务的第二业务信息。
软总线通道可以通过在不同的场景下可以通过不同的接入技术(蓝牙、WiFi、USB等),将同一个用户身份标识的设备进行组建成一个网络。在第一终端设备通过软总线通道具有发现与连接能力,为各种分布式IoT终端设备(包括第一终端设备)提供的高吞吐、低时延、高可靠、安全可信的通信通道。软总线通道是为跨设备间提供无限接近本地化访问效果的分布式智慧化通信高速公路网。其中,第一终端设备具有管理各种IoT终端设备连接的软总线能力,可以实时发现新IoT终端设备连入软总线网络中;对于曾连接过的IoT终端设备,第一终端设备可以实时保持与其连接能力,以便与曾连接过的IoT终端设备能传输数据,第一终端设备的这个能力称之为总线中枢能力。
上述方案中,软总线通道可以实现将不同厂商的设备进行互联互通,也即第一IoT终端设备与第一终端设备可以是同一个厂商生产的也可以是不同厂商生产的,换句话说,上述方案中的,第一终端设备、第一IoT终端设备和IoT服务器可以是同一个厂商的也可以是不同厂商的,这样可以实现不同厂商生产的设备的互联互通,从而可以提高适用性,也能降低成本。
在一些可能的实现方式中,所述方法还包括:所述第一终端设备通过所述软总线通道向所述第一IoT终端设备发送第一查询消息,所述第一查询消息用于向所述第一IoT终端设备查询所述第一IoT终端设备的信息;
所述第一终端设备通过所述软总线通道接收所述第一IoT终端设备根据所述第一查询消息发送的所述第一IoT终端设备的信息。
可选地,第一IoT终端设备的信息也可以称为第一终端设备的能力文件描述信息。
可选地,第一IoT终端设备的信息可以包括第一IoT终端设备的基本信息、第一IoT终端设备的至少一个服务信息和第一终端设备通过软总线通道访问第一IoT终端设备的第一服务端口地址至少一项。其中,第一IoT终端设备的基本信息包括第一IoT终端设备的设备名称、设备类型、厂商信息和厂商型号中的至少一项。第一IoT终端设备的每个服务信息用于指示第一IoT终端设备支持的各个服务,例如第一IoT终端设备为跑步机,跑步机支持查询、上报心率或者上报距离等服务。
上述方案中,第一终端设备可以通过软总线通道向第一IoT终端设备发送用于查询第一IoT终端设的第一查询消息,第一IoT终端设备可以通过软总线通道向第一终端设备发送第一IoT终端设备的信息,这样,可以使得第一终端设备获取到第一IoT终端设备的信息,以便后续与第一IoT终端设备进行通信。
在一些可能的实现方式中,所述第一IoT终端设备的信息包括所述第一终端设备通过所述软总线通道访问所述第一IoT终端设备的第一服务端口地址;
其中,所述第一终端设备通过令牌信息与第一业务对应的IoT服务器传输所述第一业务的第一业务信息,包括:
所述第一终端设备通过所述令牌信息接收所述IoT服务器发送的所述第一业务信息;
其中,所述第一终端设备通过软总线通道与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息,包括:
所述第一终端设备通过所述软总线通道向所述第一IoT终端设备的第一服务端口地址发送所述第一业务信息关联的第二业务信息。
在上述方案中,在下行传输中,第一终端设备可以基于第一服务端口地址向第一IoT终端设备发送第二业务信息,避免第一终端设备不知道如何向第一IoT终端设发送第二业务信息。
在一些可能的实现方式中,所述第一IoT终端设备的信息包括服务信息和地址请求信息,所述地址请求信息用于向所述第一终端设备请求所述第一IoT终端设备上报所述服务信息所指示的第一服务所需要的服务端口地址;
所述第一终端设备根据所述地址请求消息和所述服务信息向所述第一IoT终端设备发送服务请求消息,所述服务请求消息用于向所述第一IoT终端设备请求上报所述第一服务的业务信息,所述服务请求消息包括所述第一IoT终端设备上报所述第一服务所需要的第二服务端口地址;
其中,所述第一终端设备通过软总线通道与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息,包括:
所述第一终端设备通过所述软总线通道接收所述第一IoT终端设备根据所述第二服务端口地址发送的所述第一服务对应的所述第二业务信息;
所述第一终端设备通过令牌信息与第一业务对应的IoT服务器传输所述第一业务的第一业务信息,包括:
所述第一终端设备通过所述令牌信息向所述IoT服务器发送与所述第二业务信息关联的所述第一业务信息。
在上述方案中,在第一终端设备向第一IoT终端设备请求第一IoT终端设备的信息的过程中,第一IoT终端设备可以将自身对第一终端设备的需求(即地址请求信息)携带在第一IoT终端设备的信息中,第一终端设备可以向第一IoT终端设备发送的服务请求消息中携带第一IoT终端设备需要的上报第一服务所需要的第二服务端口地址,这样,当第一IoT终端设备需要上报第一服务时,即可以向第二服务端口地址上报。
在一些可能的实现方式中,所述第一IoT终端设备的信息包括所述第一IoT终端设备的基本信息,第一IoT终端设备的基本信息包括设备类型、厂商信息和设备名称 中的至少一项。
在一些可能的实现方式中,所述第一终端设备从所述IoT服务器获得的所述令牌信息之后,所述方法还包括:所述第一终端设备通过所述令牌信息接收所述IoT服务器发送的所述第一业务的订阅信息;其中,所述第一终端设备通过令牌信息与第一业务对应的服务器传输所述第一业务的第一业务信息,包括:
所述第一终端设备根据所述订阅信息通过所述令牌信息与所述IoT服务器传输所述第一业务信息。
可选地,订阅信息可以包括第一业务的订阅的套餐、第一业务的有效期、第一业务的欠费情况、第一业务剩余的使用次数和第一业务的剩余时间等中的至少一项。
在上述方案中,第一终端设备在与IoT服务器传输第一业务信息,需要考虑第一业务的订阅信息,即第一终端设备需要根据订阅信息确定是否能与IoT服务器传输第一业务信息,这样,避免第一终端设备盲目的与IoT服务器传输第一业务信息,导致IoT服务器无法处理第一业务信息的情况。
第二方面,提供了一种传输业务信息的方法,包括:第一业务对应的第一IoT终端设备与第一终端设备建立软总线通道,第一IoT终端设备通过软总线通道与第一业务对应的第一IoT终端设备传输第一业务的第二业务信息,第一终端设备用于与第一业务对应的IoT服务器传输与第二业务信息关联的第一业务信息,其中,第一终端设备与IoT服务器之间用于传输第二业务的令牌信息为第一终端设备根据第一终端设备的用户信息与IoT服务器进行鉴权之后从所述IoT服务器获得的。
上述方案中,软总线通道可以实现将不同厂商的设备进行互联互通,也即第一IoT终端设备与第一终端设备可以是同一个厂商生产的也可以是不同厂商生产的,这样可以实现不同厂商生产的设备的互联互通,从而可以提高适用性,也能降低成本。换句话说,上述方案中的,第一终端设备、第一IoT终端设备和IoT服务器可以是同一个厂商的也可以是不同厂商的,这样可以实现不同厂商生产的设备的互联互通,从而可以提高适用性,也能降低成本。
在一些可能的实现方式中,所述方法还包括:第一IoT终端设备通过软总线通道接收第一终端设备发送的第一查询消息,第一查询消息用于向第一IoT终端设备查询第一IoT终端设备的信息;第一IoT根据所述第一查询消息向第一终端设备发送第一IoT终端设备的信息。
可选地,第一IoT终端设备的信息可以包括第一IoT终端设备的基本信息、第一IoT终端设备的至少一个服务信息和第一终端设备通过软总线通道访问第一IoT终端设备的第一服务端口地址至少一项。其中,第一IoT终端设备的基本信息包括第一IoT终端设备的设备名称、设备类型、厂商信息和厂商型号中的至少一项。第一IoT终端设备的每个服务信息用于指示第一IoT终端设备支持的各个服务,例如第一IoT终端设备为跑步机,跑步机支持查询、上报心率或者上报距离等服务。
在一些可能的实现方式中,所述第一IoT终端设备的信息包括所述第一终端设备通过所述软总线通道访问所述第一IoT终端设备的第一服务端口地址;第一IoT终端设备通过软总线通道与第一业务对应的第一IoT终端设备传输第一业务的第二业务信息,包括:第一IoT终端设备接收第一终端设备根据第一服务端口地址发送的第二业 务信息。
在一些可能的实现方式中,第一IoT终端设备的信息包括服务信息和地址请求信息,地址请求信息用于向第一终端设备请求第一IoT终端设备上报服务信息所指示的第一服务所需要的服务端口地址;所述方法还包括:
第一IoT终端设备接收第一终端设备根据地址请求消息和服务信息发送的服务请求消息,服务请求消息用于向第一IoT终端设备请求上报第一服务的业务信息,服务请求消息包括第一IoT终端设备上报第一服务所需要的第二服务端口地址;
其中,第一IoT终端设备通过软总线通道与第一业务对应的第一IoT终端设备传输第一业务的第二业务信息,包括:
第一IoT终端设备通过所述软总线通道向所述第一终端设备的第二服务端口地址发送第一服务对应的第二业务信息。
在一些可能的实现方式中,所述第一IoT终端设备的信息包括所述第一IoT终端设备的设备类型、厂商信息和设备名称中的至少一项。
第三方面,本申请提供了一种装置,该装置包含在电子设备中,该装置具有实现上述各方面及上述各方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,传输模块或单元、处理模块或单元等。
可选地,该装置可以是上述的第一终端设备或者第一IoT终端设备。
第四方面,本申请提供了一种电子设备,包括:一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述任一方面任一项可能的实现中的通知故障的方法。
可选地,该电子设备还可以包括:触摸显示屏和/或摄像头,其中,触摸显示屏包括触敏表面和显示器;
可选地,该电子设备可以是上述的第一终端设备或者第一IoT终端设备。
第五方面,本申请提供了一种电子设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述任一方面任一项可能的实现中的传输业务信息的方法。
第六方面,本申请提供了一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的传输业务信息的方法。
第七方面,本申请提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的传输业务信息的方法。
附图说明
图1至图4是现有技术可能的传输业务信息的示意图。
图5至图7是本申请实施例提供的传输业务信息的方法示意图。
图8是本申请实施例提供的可能的应用场景示意图。
图9是本申请实施例提供的电子设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
用户在使用IoT终端设备时,IoT终端设备的数据需要发送到IoT服务器或者IoT终端设备要从IoT服务器获取数据,例如,IoT终端设备为跑步机,IoT服务器为美体健身服务平台,用户在跑步机上跑步产生的数据需要上传到美体健身服务平台,美体健身服务平台根据跑步机上传的数据对用户的健身进行指导。
可选地,IoT服务器可以由IoT平台和IoT应用服务器组成,其中,IoT平台用于适配和/或转发IoT终端设备的协议报文,管理IoT终端设备是否在线的在线状态。IoT应用服务器用于向IoT终端设备提供具体的业务数据。
在一种可能的实现方式中,IoT终端设备的数据需要发送到IoT服务器或者IoT终端设备要从IoT服务器获取数据,需要经过IoT网关。如图1所示,IoT终端设备的数据需要通过IoT网关路由到IoT服务器,或者来自IoT服务器的数据需要经过IoT网关才能到达IoT终端设备。这个过程中,IoT网关需要将与IoT终端设备之间的传输协议转换为IoT网关与IoT服务器之间的传输协议,且IoT网关需要将IoT终端设备的设备信息发送给IoT服务器,IoT服务器只能识别与自身厂商相同的IoT终端设备,也就是说IoT终端设备、IoT网关和IoT服务器之间根据私密协议传输数据,这种情况需要保证IoT终端设备、IoT网关和IoT服务器为一个厂商生产的,这样,三个设备的通信遵循厂商自定义的传输协议,需要给IoT终端设备部署相应的IoT网关和IoT服务器,这样会导致成本较高,且适用范围有限。
在另一种可能的实现方式中,IoT终端设备的数据需要发送到IoT服务器或者IoT终端设备要从IoT服务器获取数据,需要经过无线局域网(wirele local area network,WLAN)路由器。如图2所示,IoT终端设备的数据需要经过WLAN路由器才能到达IoT服务器,这个过程中,WLAN路由器需要携带IoT终端设备的信息,IoT服务器可以根据IoT终端设备的信息识别IoT终端设备,IoT服务器和IoT终端设备需要是同一厂商生产的,IoT服务器才能识别IoT终端设备。来自IoT服务器的数据需要经过WLAN路由器才能到达IoT终端设备,来自IoT服务器的数据需要携带IoT服务器的信息,IoT终端设备根据IoT服务器的信息识别IoT服务器,IoT服务器和IoT终端设备需要是同一厂商生产的,IoT终端设备才能识别IoT服务器。
在又一种可能的实现方式中,IoT终端设备的数据需要发送到IoT服务器或者IoT终端设备要从IoT服务器获取数据,如图3所示需要先经过IoT网关,再经过WLAN路由器,这种方式也需要给IoT终端设备部署同一厂商的相应的IoT网关和IoT服务器,这样会导致成本较高,且适用范围有限。
在上述三种实现方式中,IoT网关或者WLAN路由器需要经过广域网与IoT服务器进行通信,IoT服务器和IoT终端设备需要是同一厂商生产的,这样会导致成本较高,且适用范围有限。
在又一种可能的实现方式中,IoT终端设备的数据需要发送到IoT服务器或者IoT终端设备要从IoT服务器获取数据,可以通过蜂窝通信的方式来实现。例如,如图4 所示,数据需要经过IoT无线接入网(radio access network,RAN)设备和IoT核心网设备传输到IoT服务器。这种方式中,需要IoT终端设备具备蜂窝无线射频模块,对于不具备蜂窝能力的IoT终端设备则不适用,且IoT RAN和IoT核心网需要针对不同类型的IoT终端设备部署不同的网络切片,这样会增加运营商维护和运营的成本,且广域网需要对不同类型的IoT终端设备进行区分处理,不同类型的IoT终端设备的业务需求不同,如有的类型的IoT终端设备是实时业务,有的类型的IoT终端设备是非实时业务,这样会导致广域网处理过程复杂,成本较高。
鉴于上述问题,第一终端设备可以利用第一终端设备的用户信息与IoT服务器进行鉴权,并获得用于与IoT服务器通信的令牌信息,第一终端设备可以与服务器通过令牌信息进行通信,第一终端设备与IoT服务器鉴权的过程中利用的是第一终端设备的用户信息鉴权的,避免需要将第一IoT终端设备与IoT服务器绑定,当第一IoT终端设备与IoT服务器是不同厂商的设备,也可以进行通信,能够提高适用性,也避免需要为不同厂商的IoT终端设备部署不同的IoT服务器,能够降低成本。
下面结合图5描述本申请实施例提供的传输业务信息的方法500,方法500中以上行传输为例描述,上行传输为IoT设备需要向IoT服务器发送第一业务信息为例。方法500包括:
S501,第一终端设备根据第一终端设备的用户信息与IoT服务器进行鉴权。
示例性地,S501包括:第一终端设备可以通过应用程序接收用户输入的登录账号,并将用户输入的登录账号发送到IoT服务器,IoT服务器对登录账号进行验证,如果用户通过第一终端设备在IoT服务器注册过该登录账号,则表示鉴权通过,IoT服务器可以向第一终端设备发送鉴权通过信息。例如,登录账号可以为华为账号或者是手机号码或者是个人识别密码(personal identification number,PIN)码。
其中,第一终端设备的用户信息与S504中的第一IoT终端设备的用户信息相同,即第一终端设备和IoT终端设备为同一个用户使用的设备,换句话说,第一终端设备以第一终端设备的用户信息在IoT服务器进行鉴权之后,第一终端设备与第一IoT终端设备进行通信的过程中,第一终端设备无需向IoT服务器发送第一IoT终端设备的设备信息,这样,可以避免将IoT终端设备与IoT服务器绑定。
S502,在S501之后,IoT服务器向第一终端设备发送令牌信息,第一终端设备接收IoT服务器发送的令牌信息。
其中,令牌信息用于IoT服务器与第一终端设备进行通信,也即令牌信息可以理解为IoT服务器为第一终端设备分配的通信密钥。令牌信息可以是令牌(token)的标识或者是用于指示令牌的标识的指示信息等。
在S502之后,执行S503。
S503,IoT服务器向第一终端设备发送第一业务的订阅信息,第一终端设备接收IoT服务器发送的第一业务的订阅信息。
具体地,在S501之前,用户可以通过第一终端设备的第一应用程序在IoT服务器订阅了第一业务或者注册了第一业务,即第一终端设备的第一应用程序为第一业务对应的应用程序。IoT服务器对第一终端设备的第一应用程序进行鉴权,并发送的令牌信息之后,IoT服务器可以将关于第一业务的订阅信息发送给第一终端设备的第一应 用程序,例如订阅信息具体包括第一业务的订阅的套餐、第一业务的有效期、第一业务的欠费情况、第一业务剩余的使用次数、第一业务的剩余时间等等。
可选地,S503中,IoT服务器可以在向第一终端设备发送了令牌信息之后,主动向第一终端设备的第一应用程序推送第一业务的订阅信息。
可选地,S503中,第一终端设备接收到令牌信息之后,可以向IoT服务器发送第二查询消息,第二查询消息用于向IoT服务器查询第一业务的订阅信息,IoT服务器根据第二查询消息向第一终端设备返回第一业务的订阅信息。
需要说明的是S503是可选步骤,即IoT服务器也可以不向第一终端设备发送第一业务的订阅信息。
需要说明的是,上述S501至S503可以执行一次,S507之后的步骤可以执行多次,也就说说,第一终端设备与IoT服务器之间的可以鉴权一次,第一终端设备与IoT服务器之间可以可以利用一次鉴权的令牌信息传输多次业务数据;
S504,第一终端设备与第一IoT终端设备建立软总线通道。
IoT终端设备通过与第一终端设备建立软总线通道之后,相当于第一IoT终端设备挂载在了第一终端设备上,即第一IoT终端设备可以与第一终端设备进行通信,第一IoT终端设备与第一终端设备的厂商可以是同一个厂商也可以是不同的厂商,软总线通道能够将不同厂商的设备进行互联互通。
需要说明的是,S504与S501-S503中任一个步骤可以同时进行;或者S503可以在S501-S503中任一个步骤之前,也即第一IoT终端设备可以与第一终端设备先建立软总线通道,第一终端设备再与IoT服务器进行鉴权、或者第一终端设备再接收令牌信息或者第一终端设备再接收第一业务的订阅信息;或者S501-S503中任一个步骤可以在S504之前,也即第一终端设备可以与IoT服务器先鉴权或者第一终端设备先接收令牌信息或者第一终端设备先接收第一业务的订阅信息,之后第一终端设备再与第一IoT终端设备建立软总线通道,此时第一IoT终端设备为第一业务对应的IoT终端设备当第一终端设备与IoT服务器鉴权之后,第一终端设备可以将自身连接的IoT终端设备的信息向IoT服务器上报,如果IoT服务器根据第一终端设备上报的信息确定第一终端设备没有连接IoT服务器对应的IoT终端设备,则IoT服务器向第一终端设备发送触发消息,触发消息用于触发第一终端设备与第一IoT终端设备建立软总线通道,即触发消息用于触发执行S504。
S505,第一终端设备通过软总线通道向第一IoT终端设备发送第一查询消息,第一IoT终端设备通过软总线通道接收第一终端设备发送的第一查询消息,第一查询消息用于向第一IoT终端设备查询第一IoT终端设备的信息。
S506,第一IoT终端设备通过软总线通道向第一终端设备发送第一IoT终端设备的信息,第一终端设备通过软总线通道接收第一IoT终端设备发送的第一IoT终端设备的信息。
可选地,第一IoT终端设备的信息可以包括第一IoT终端设备的基本信息、第一IoT终端设备的至少一个服务信息和第一终端设备通过软总线通道访问第一IoT终端设备的第一服务端口地址至少一项。其中,第一IoT终端设备的基本信息包括第一IoT终端设备的设备名称、设备类型、厂商信息和厂商型号中的至少一项。第一IoT终端 设备的每个服务信息用于指示第一IoT终端设备支持的各个服务,例如第一IoT终端设备为跑步机,跑步机支持查询、上报心率或者上报距离等服务。
可选地,第一IoT终端设备的信息还包括地址请求信息,地址请求信息用于向第一终端设备请求第一IoT终端设备上报第一服务信息指示的第一服务所需要的服务端口地址,其中,至少一个服务信息包括第一服务信息。
在S504之后,执行S507,换句话说,S507与S505或者S506之间的顺序不作限定。
S507,IoT服务器向第一终端设备发送第一业务的第一业务信息,第一终端设备接收第一业务的第一业务信息。
具体地,第一终端设备根据令牌信息接收第一业务信息。
在S507中,IoT服务器可以基于两种方式触发向第一终端设备发送第一业务的第一业务信息。
方式一,IoT服务器可以主动向第一终端设备发送第一业务的第一业务信息,例如,在S402中IoT服务器向第一终端设备发送了令牌信息之后,IoT服务器主动向第一终端设备发送第一业务的业务信息,换句话说,第一终端设备在IoT服务器订阅了第一业务,则IoT服务器可以在与第一终端设备鉴权完成并发送了令牌信息之后,主动推送第一业务的第一业务信息。
方式二,如果存在S503,第一终端设备可以通过第一应用程序接收用户输入的针对第一业务的需求的操作,第一终端设备根据用户的需求和第一业务的订阅信息生成用户需求信息,并向IoT服务器上报。IoT服务器根据用户需求信息生成第一业务对应的第一业务信息并发送给第一终端设备。例如第一业务为跑步业务,IoT服务器为美体健身服务平台,第一IoT终端设备为跑步机,用户通过第一终端设备的运动健康应用程序在美体健身服务平台订阅了健身指导,用户在第一终端设备的第一应用程序中设置的希望达到的运动效果的需求,如希望消耗多少卡路里。第一终端设备根据确定订阅的健身指导的剩余有效指导内容能否满足用户的需求,如果能满足,则第一终端设备生成用户需求信息,并发送给美体健身服务平台,美体健身服务平台根据用户需求信息制定指导策略(也称为跑步业务的第一业务信息),并发送给第一终端设备。
S508,第一终端设备根据第一业务信息向第一IoT设备发送第二业务信息。
其中,第一业务信息可以理解为第一终端设备与IoT服务器之间传输第一业务的业务信息,第二业务信息可以理解为第一终端设备与第一IoT终端设备之间传输第一业务的业务信息。其中第一业务信息和第二业务信息可以是与第一业务相关的业务数据或者与第一业务相关的信令数据,本申请实施例不予限制。以下分两种情况讨论第一业务信息和第二业务信息。
情况一,第一业务信息与第二业务信息相同,第一终端设备可以直接将从IoT服务器接收的第一业务信息发送给第一IoT终端设备。例如,结合上述S407中的方式二的例子,美体健身服务平台根据用户需求信息指定的指导策略是:跑步速度为5km/h,跑步距离10km,坡度是5度,第一终端设备将这些数据发送给跑步机,这些数据可以显示在跑步机上,供用户参考。
情况二,第一业务信息与第二业务信息不同但是相关联,第一终端设备可以根据 第一业务信息生成第二业务信息,并将生成的第二业务信息发送给第一IoT终端设备。进一步地,第一终端设备可以根据第一业务信息和第一IoT终端设备的信息生成第二业务信息,并将生成的第二业务信息发送给第一IoT终端设备。例如,结合上述S407中的方式二的例子,美体健身服务平台根据用户需求信息指定的指导策略是:跑步速度为5km/h,跑步距离10km,坡度是5度,第一终端设备根据这些数据确定跑步机需要上报速度,上报距离或者上报心跳等参数。因此将第一终端设备向跑步机发送的第二业务信息可以指示需要上报速度,上报距离或者上报心跳等参数,即若第一IoT终端设备为跑步机,则第一终端设备可以根据S406中跑步机的信息包括的服务信息确定跑步机是否支持上报速度,上报距离或者上报心跳等服务,若支持,则向跑步机发送第二业务信息。
进一步地,在情况一和情况二中,若S506中的第一IoT终端设备的信息包括第一终端设备通过软总线通道访问第一IoT终端设备的第一服务端口地址。则第一终端设备可以通过软总线通道将第二业务信息发送给第一服务端口地址。
上述结合方法500描述了下行传输,即IoT服务器给第一终端设备发送第一业务信息,第一终端设备向第一IoT终端设备发送第二业务信息,下面结合图6的方法600描述上行传输。
S601-S606,同S501-S506。
S607,第一终端设备可以通过第一应用程序接收用户输入的针对第一业务的需求的操作,第一终端设备根据用户的需求和第一业务的订阅信息生成用户需求信息。
S608,第一终端设备向IoT服务器上报用户需求信息。
S609,IoT服务器根据用户需求信息生成策略信息。
具体地,IoT服务器用于对第一业务进行指导或者规划,并根据用户需求信息生成策略信息发送给第一终端设备。
S610,IoT服务器向第一终端设备发送策略信息。
S611,第一终端设备根据策略信息和订阅信息确定第一IoT终端设备需要执行第一服务。
需要说明的是,有些业务需要用户的参与,即需要用户输入需求的操作,则方法600可以包括S607-S611,有些业务不需要用户的参数,即用户不会在第一终端设备的第一应用程序输入需求操作,因此可以不存在S607-S611,此时作为S607-S611可替换的方式,第一终端设备在S606中接收到第一IoT终端设备发送的第一IoT终端设备的信息之后,直接确定执行第一服务,无需用户的参与,例如,第一业务为抄表业务,第一IoT终端设备为水表,这种情况下,第一IoT终端设备在S606中上报的第一IoT终端设备的信息包括第一IoT终端设备的至少一个服务信息,至少一个服务信息包括的第一服务信息用于指示第一IoT终端设备具备上报水表数据的服务,因此,第一终端设备确定第一IoT终端设备需要执行上报水表数据的服务。
S612,第一终端设备向第一IoT终端设备发送服务请求消息。
其中,服务请求消息用于向第一IoT终端设备请求上报第一服务的业务信息,服务请求信息还可以包括第一IoT终端设备向第一终端设备上报第一服务需要的第二服务端口地址。
具体地,在S606中的第一IoT终端设备的信息可以包括地址请求信息和第一IoT终端设备的第一服务信息,若在S511中,第一终端设备确定第一IoT终端设备需要执行的第一服务为S506中第一IoT终端设备上报的第一服务信息所指示的服务时,第一终端设备向第一IoT终端设备发送服务请求消息。
S613,第一IoT终端设备通过软总线通道根据第二服务端口地址向第一终端设备发送第一服务对应的第二业务信息。
S614,第一终端设备通过令牌信息向IoT服务器发送第一业务信息,第一业务信息与第二业务信息关联。
其中,第一业务信息可以理解为第一终端设备与IoT服务器之间传输第一业务的业务信息,第二业务信息可以理解为第一终端设备与第一IoT终端设备之间传输第一业务的业务信息。其中第一业务信息和第二业务信息可以是与第一业务相关的业务数据或者与第一业务相关的信令数据,本申请实施例不予限制。以下分两种情况讨论第一业务信息和第二业务信息。
情况一,第一业务信息与第二业务信息相同,第一终端设备可以直接将从第一IoT终端设备接收的第二业务信息发送给IoT服务器。例如,第一业务为跑步,第一业务信息为心跳信息,第一IoT终端设备为跑步机,IoT服务器为美体健身服务平台,则跑步机可以上报用户的心跳信息,手机直接将心跳信息上报给美体健身服务平台,美体健身服务平台根据心跳信息确定用户能够达到的健身效果,从而可以进一步指定健身策略。
情况二,第一业务信息与第二业务信息不同但是相关联,第一终端设备可以根据第二业务信息生成第一业务信息,并将生成的第一业务信息发送给IoT服务器。例如,第一IoT终端设备上报的第二业务信息为心跳信息,第一终端设备根据心跳信息计算用户消耗的卡路里,然后将卡路里作为第一业务信息发送给IoT服务器,IoT服务器可以根据第一终端设备上报的卡路里进一步制定健身策略。
为了更好的说明本申请实施例提供的传输业务信息的方法,下面以第一终端设备为手机,第一IoT终端设备为跑步机,IoT服务器为美体健身服务平台,第一业务为跑步业务为例结合图7描述方法700。
S701,手机与美体健身服务平台进行鉴权。
具体地,手机上安装有运动健康APP,用户在手机健康APP上输入登录账号,该登录账号为用户注册的运动健康的华为账号或者手机号码,用户在运动健康APP上输入登录账号之后,手机将登录账号发送给美体健身服务平台,美体健身服务平台根据用户的登录账号,确定手机上的运动健康APP是否注册或者订阅过跑步对应的健身指导服务,若美体健身服务平台根据登录账号确定手机上的运动健康注册或者订阅过跑步对应的健身指导服务,则美体健身服务平台确定鉴权通过。
S702,美体健身服务平台向手机的发送令牌信息,手机接收令牌信息。
令牌信息用于手机与美体健身服务平台通信。
S703,美体健身服务平台向手机发送跑步业务的订阅信息。
具体地,美体健身服务平台将手机通过运动健康APP订阅的健康指导服务的订阅信息向手机的运动健康APP发送,例如订阅的健康指导服务还剩余的可用时间,或者 剩余的可用次数或者剩余的套餐信息。
可选地,S703中,美体健身服务平台可以在向手机发送了令牌信息之后,主动向手机的运动健康APP推送跑步业务的订阅信息。
可选地,S703中,手机接收到令牌信息之后,可以向美体健身服务平台发送第二查询消息,第二查询消息用于向美体健身服务平台查询跑步业务的订阅信息,美体健身服务平台根据第二查询消息向手机返回跑步业务的订阅信息。
S704,跑步机与手机建立软总线通道。
跑步机通过与手机建立软总线通道之后,相当于跑步机挂载在了手机上,即跑步机可以与手机进行通信,跑步机与手机的厂商可以是同一个厂商也可以是不同的厂商,软总线通道能够将不同厂商的设备进行互联互通。
需要说明的是,S704与S701-S703中任一个步骤没有顺序限定。也即跑步机与手机之间建立软总线通道的过程,与手机与美体健身服务平台鉴权、传输令牌信息或者发送跑步业务的订阅信息之间的顺序没有任何限定。
S705,手机通过软总线通道向跑步机发送第一查询消息,跑步机通过软总线通道接收第一查询消息,第一查询消息用于向跑步机查询跑步机的信息。
S706,跑步机向手机发送跑步机的信息,手机接收跑步机发送的跑步机的信息。
跑步机的信息包括跑步机支持的至少一个服务信息、跑步机的基本信息和手机通过软总线通道访问跑步机的第一服务端口地址至少一项。跑步机的基本信息包括跑步机的设备名称、跑步机的设备类型、跑步机的厂商信息、跑步机的厂商型号等。
例如跑步机的信息如下:
Figure PCTCN2022080510-appb-000001
Figure PCTCN2022080510-appb-000002
Figure PCTCN2022080510-appb-000003
S707,手机接收用户输入的需求,
具体地,用户在手机的运动健康APP中输入自身的需求,手机的运动健康APP接收用户输入的需求,用户输入的需求是期望达到的运动效果,如用户希望消耗掉1000卡路里。
在S704之后,执行S707,换句话说,S707与S705或者S706之间的顺序不作限定。
S708,手机向美体健身服务平台上报用户需求信息。
S709,美体健身服务平台根据用户需求信息生成策略信息。
具体地,美体健身服务平台根据用户需求信息指示的用户希望消耗掉的1000卡路里为用户制定跑步策略,策略信息用于指示跑步策略,例如跑步策略为用户的跑步速度为7km/h,跑步距离为10km,心率是120每分钟。
S710,美体健身服务平台将策略信息发送给手机,手机接收美体健身服务平台发送的策略信息。
S711,手机根据S710中策略信息以及S703的订阅信息确定跑步机需要的功能。
例如,策略信息用于指示的跑步策略为用户的跑步速度为7km/h,跑步距离为10km,心率是120每分钟,手机根据订阅信息确定订阅的健康指导服务还剩余的180天,因此,手机可以确定跑步机需要上报跑步速度、上报跑步距离、上报心率这三个功能。
进一步地,手机根据S706中的跑步机的信息确定跑步机支持上报跑步速度、上报跑步距离、上报心率这三个功能,则可以执行S712。
S712,手机向跑步机发送服务请求消息。
服务请求消息用于向跑步机请求上报跑步速度、上报跑步距离、上报心跳这些功能,服务请求消息还可以包括跑步机向手机上报跑步速度、上报跑步距离、上报心跳的服务端口地址。其中,上报跑步速度、上报跑步距离、上报心跳的服务端口地址可以是相同的服务端口地址或者是不同的服务端口地址。
进一步地,手机可以根据S706中的跑步机的信息手机确定可以查询跑步机是否开启的服务,即跑步机具备被查询是否开启的服务,在S712之前,手机可以通过软总线通道向跑步机发送查询是否开启的消息,若跑步机已经开启,则跑步机可以向手机返回已经开启的消息。只有手机确定跑步机在已经开启的情况下,执行S712。
S713,跑步机通过软总线通道根据服务请求消息包括的服务端口地址向手机上报跑步速度、上报跑步距离、上报心跳。
例如,此时S613中的第二业务信息可以为S713中的跑步速度、跑步距离、心跳。
具体地,跑步机可以通过传感器获取用户在跑步机上的跑步速度、跑步距离和心跳。
S714,手机通过令牌信息向美体健身服务平台发送S713中的跑步速度、跑步距离 和心跳。
例如,此时S614中的第一业务信息可以为S714中的跑步速度、跑步距离和心跳。
S715,美体健身服务平台根据跑步速度、跑步距离和心跳确定用户消耗的卡路里。
具体地,美体健身服务平台根据跑步速度、跑步距离和心跳确定用户已经消耗的卡路里,美体健身服务平台确定用户已经消耗的卡路里是否达到S708中的用户需求信息中用户希望消耗的卡路里,如果没有达到,则美体健身服务平台可以再次生成策略信息,再循环执行S710-S715,直到达到用户希望消耗的卡路里。
上述方法700中,跑步机的用户信息与手机的用户信息相同,也即手机和跑步机是同一个用户,这样,手机在上报来自跑步机的数据时,避免携带跑步机的信息,也能避免将跑步机与美体健康服务平台绑定,当美体健身服务平台与跑步机是不同厂商的设备,也可以通信,能够适用性。如在方法700中的跑步机为用户家里的厂商A的,但用户在A厂商上的跑步机可以借助厂商B的美体健身服务平台的指导进行运动,如果用户在健身房的C厂商的跑步机上进行跑步,也可以借助厂商B的美体健身服务平台的指导进行运动,这样,可以避免将不同厂商的跑步机和美体健身服务平台绑定。此外,软总线通道可以实现将不同厂商的设备进行互联互通,也即跑步机与手机可以是同一个厂商生产的也可以是不同厂商生产的,换句话说,上述方案中的,跑步机、手机和美体健身服务平台可以是同一个厂商的也可以是不同厂商的,这样可以实现不同厂商生产的设备的互联互通,从而可以提高适用性,也能降低成本。
因此,上述方法实施例中,如图8所示,若第一终端设备为手机,不同厂商的IoT终端设备可以通过软总线挂载在手机上,厂商A的IoT-A、厂商B的IoT-B、厂商C的IoT-C可以通过软总线通道挂载在手机上,这样可以实现不同厂商的设备的互联互通。IoT-A、IoT-B、IoT-C和手机为同一用户的设备,因此手机与IoT服务器鉴权的过程中可以使用用户信息与IoT服务器,避免需要IoT终端设备的信息与IoT服务器进行鉴权,避免需要为专门的厂商部署专门的IoT服务器,从而可以降低成本,也能够提高适用性。
上述结合图1-图8描述了本申请实施例提供的传输业务信息的方法实施例,下面描述本申请实施例提供的传输业务信息的装置实施例。
本实施例可以根据上述方法,对各个电子设备进行功能模块的划分。例如,可以对应各个功能,划分为各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
需要说明的是,上述方法实施例涉及的各步骤的相关内容,均可以援引到对应功能模块的功能描述,此处不再赘述。
本实施例提供的各个电子设备,用于执行上述传输业务信息的方法,因此可以达到与上述实现方法相同的效果。在采用集成的单元的情况下,各个电子设备分别可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对各个电子设备的动作进行控制管理。例如,可以用于支持电子设备执行处理单元执行的步骤。存储模块可以用于支持电子设备执行存储程序代码和数据等。通信模块,可以用于支持电子设 备与其他设备的通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。
示例性地,图9示出了电子设备900的硬件结构示意图。如图9所示,电子设备900可包括处理器910,外部存储器接口920,内部存储器921,通用串行总线(universal serial bus,USB)接口930,充电管理模块940,电源管理模块941,电池942,天线1,天线2,无线通信模块950,传感器模块960等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备900的具体限定。在本申请另一些实施例中,电子设备900可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器910可以包括一个或多个处理单元。例如:处理器910可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的部件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备900也可以包括一个或多个处理器910。其中,控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
在一些实施例中,处理器910可以包括一个或多个接口。接口可以包括集成电路间(inter-integrated circuit,I2C)接口,集成电路间音频(integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,SIM卡接口,和/或USB接口等。其中,USB接口930是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口930可以用于连接充电器为电子设备2600充电,也可以用于电子设备900与外围设备之间传输数据。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备900的结构限定。在本申请另一些实施例中,电子设备900也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
电子设备900的无线通信功能可以通过天线1,天线2以及无线通信模块950等实现。
无线通信模块950可以提供应用在电子设备900上的包括Wi-Fi(包括Wi-Fi感知和Wi-Fi AP),蓝牙(bluetooth,BT),无线数传模块(例如,433MHz,868MHz,915MHz)等无线通信的解决方案。无线通信模块950可以是集成至少一个通信处理模 块的一个或多个器件。无线通信模块950经由天线1或者天线2(或者,天线1和天线2)接收电磁波,将电磁波信号滤波以及调频处理,将处理后的信号发送到处理器910。无线通信模块950还可以从处理器910接收待发送的信号,对其进行调频,放大,经天线1或者天线2转为电磁波辐射出去。
外部存储器接口920可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备900的存储能力。外部存储卡通过外部存储器接口920与处理器910通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器921可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器910可以通过运行存储在内部存储器921的上述指令,从而使得电子设备900执行本申请一些实施例中所提供的传输业务的方法,以及各种应用以及数据处理等。内部存储器21可以包括代码存储区和数据存储区。其中,代码存储区可存储操作系统。数据存储区可存储电子设备00使用过程中所创建的数据等。此外,内部存储器21可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储部件,闪存部件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器10可以通过运行存储在内部存储器21的指令,和/或存储在设置于处理器10中的存储器的指令,来使得电子设备00执行本申请实施例中所提供的传输业务信息的方法,以及其他应用及数据处理。
电子设备900包括但不限于智能手机、平板电脑、台式计算机、便携式电子设备(如膝上型计算机,Laptop)、智能电视(如智慧屏)、车载电脑、智能音箱、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、其他带有显示屏的智能设备、具备无线通讯功能的可穿戴电子设备(如智能手表、智能眼镜)、以及其他带有扬声器的智能设备等。电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2022080510-appb-000004
Figure PCTCN2022080510-appb-000005
Linux或者其它操作系统的便携式电子设备。
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在电子设备上运行时,使得电子设备执行上述实施例中的传输业务信息的方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述实施例中的传输业务信息的方法。
另外,本申请的实施例还提供一种装置。该装置具体可以为芯片,组件或模块。该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述实施例中的传输业务信息的方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法。因此,其所能达到的有益效果,可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属技术领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明。实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
应该理解到,本申请所提供的几个实施例中所揭露的装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的。例如,模块或单元的划分,仅仅为一种逻辑功能划分。实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置。另外,一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是物理上分开的,也可以不是物理上分开的。作为单元显示的部件可以是一个物理单元或多个物理单元。即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要,选择其中的部分或者全部单元来实现本方案的目的。
另外,本申请各个实施例中的各功能单元,可以集成在一个处理单元中;也可以单独物理存在;还可以是部分单元集成在一个单元中,部分单元单独物理存在。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元若以软件功能单元的形式实现,并作为独立的产品销售或使用时,则可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例技术方案的全部或部分可以以软件产品的形式体现出来。该软件产品存储在一个存储介质中。该软件产品包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
需要说明的是,本申请提供的上述各个实施例的全部或部分(比如,任意特征的部分或全部),均可以任意地、相互地组合或结合使用。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (10)

  1. 一种传输业务信息的方法,其特征在于,包括:
    第一终端设备通过令牌信息与第一业务对应的物联网IoT服务器传输所述第一业务的第一业务信息,所述令牌信息为所述第一终端设备根据所述第一终端设备的用户信息与所述IoT服务器进行鉴权之后从所述IoT服务器获得的,所述令牌信息用于所述第一终端设备与所述IoT服务器通信;
    所述第一终端设备与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息,所述第二业务信息与所述第一业务信息关联;
    其中,所述第一终端设备的用户信息与所述第一IoT终端设备的用户信息相同。
  2. 根据权利要求1所述的方法,其特征在于,在所述第一终端设备通过与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息之前,所述方法还包括:
    所述第一终端设备与所述第一IoT终端设备建立软总线通道;
    其中,所述第一终端设备与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息,包括:
    所述第一终端设备通过所述软总线通道与所述第一业务对应的所述第一IoT终端设备传输所述第一业务的第二业务信息。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    所述第一终端设备通过所述软总线通道向所述第一IoT终端设备发送第一查询消息,所述第一查询消息用于向所述第一IoT终端设备查询所述第一IoT终端设备的信息;
    所述第一终端设备通过所述软总线通道接收所述第一IoT终端设备根据所述第一查询消息发送的所述第一IoT终端设备的信息。
  4. 根据权利要求3所述的方法,其特征在于,所述第一IoT终端设备的信息包括所述第一终端设备通过所述软总线通道访问所述第一IoT终端设备的第一服务端口地址;
    其中,所述第一终端设备通过令牌信息与第一业务对应的IoT服务器传输所述第一业务的第一业务信息,包括:
    所述第一终端设备通过所述令牌信息接收所述IoT服务器发送的所述第一业务信息;
    其中,所述第一终端设备通过软总线通道与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息,包括:
    所述第一终端设备通过所述软总线通道向所述第一IoT终端设备的第一服务端口地址发送所述第一业务信息关联的第二业务信息。
  5. 根据权利要求3所述的方法,其特征在于,所述第一IoT终端设备的信息包括服务信息和地址请求信息,所述地址请求信息用于向所述第一终端设备请求所述第一IoT终端设备上报所述服务信息所指示的第一服务所需要的服务端口地址;所述方法还包括:
    所述第一终端设备根据所述地址请求消息和所述服务信息向所述第一IoT终端设备发送服务请求消息,所述服务请求消息用于向所述第一IoT终端设备请求上报所述第一服务的业务信息,所述服务请求消息包括所述第一IoT终端设备上报所述第一服务所需要的第二服务端口地址;
    其中,所述第一终端设备通过软总线通道与所述第一业务对应的第一IoT终端设备传输所述第一业务的第二业务信息,包括:
    所述第一终端设备通过所述软总线通道接收所述第一IoT终端设备根据所述第二服务端口地址发送的所述第一服务对应的所述第二业务信息;
    所述第一终端设备通过令牌信息与第一业务对应的IoT服务器传输所述第一业务的第一业务信息,包括:
    所述第一终端设备通过所述令牌信息向所述IoT服务器发送与所述第二业务信息关联的所述第一业务信息。
  6. 根据权利要求3至5中任一项所述的方法,其特征在于,所述第一IoT终端设备的信息包括所述第一IoT终端设备的设备类型、厂商信息和设备名称中的至少一项。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述第一终端设备从所述IoT服务器获得的所述令牌信息之后,所述方法还包括:
    所述第一终端设备通过所述令牌信息接收所述IoT服务器发送的所述第一业务的订阅信息;
    其中,所述第一终端设备通过令牌信息与第一业务对应的服务器传输所述第一业务的第一业务信息,包括:
    所述第一终端设备根据所述订阅信息通过所述令牌信息与所述IoT服务器传输所述第一业务信息。
  8. 一种电子设备,其特征在于,包括:一个或多个处理器;存储器;安装有多个应用程序的模块;以及一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,当所述一个或者多个程序被所述处理器执行时,使得所述电子设备执行如权利要求1至7中任一项所述的方法。
  9. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至7中任一项所述的方法。
  10. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至7中任一项所述的方法。
PCT/CN2022/080510 2021-03-16 2022-03-13 传输业务信息的方法和电子设备 WO2022194063A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/550,499 US20240187237A1 (en) 2021-03-16 2022-03-13 Service information communication method and electronic device
EP22770418.6A EP4283921A4 (en) 2021-03-16 2022-03-13 METHOD FOR TRANSMITTING SERVICE INFORMATION AND ELECTRONIC DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110282727.3 2021-03-16
CN202110282727.3A CN115150088A (zh) 2021-03-16 2021-03-16 传输业务信息的方法和电子设备

Publications (1)

Publication Number Publication Date
WO2022194063A1 true WO2022194063A1 (zh) 2022-09-22

Family

ID=83321646

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/080510 WO2022194063A1 (zh) 2021-03-16 2022-03-13 传输业务信息的方法和电子设备

Country Status (4)

Country Link
US (1) US20240187237A1 (zh)
EP (1) EP4283921A4 (zh)
CN (1) CN115150088A (zh)
WO (1) WO2022194063A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578062A (zh) * 2012-07-20 2014-02-12 北京知康优美科技有限公司 一种基于移动互联和二维码技术的科学健身指导实现方法与系统
CN204654887U (zh) * 2015-03-26 2015-09-23 苏州大学 基于云端的中医脉象辅助诊断系统
CN106650303A (zh) * 2017-02-28 2017-05-10 中山市孝美信息科技有限公司 一种老人健康智能监测系统
CN111093197A (zh) * 2019-12-31 2020-05-01 北大方正集团有限公司 权限认证方法、权限认证系统和计算机可读存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10425777B2 (en) * 2015-08-12 2019-09-24 Xerox Corporation Beverage container augmentation for social media
EP3695581B1 (en) * 2017-10-12 2023-09-20 Convida Wireless, LLC Interworking service for the restful internet of things
CN111262866B (zh) * 2020-01-17 2021-04-20 腾讯科技(深圳)有限公司 一种云服务接入方法、装置、设备及介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578062A (zh) * 2012-07-20 2014-02-12 北京知康优美科技有限公司 一种基于移动互联和二维码技术的科学健身指导实现方法与系统
CN204654887U (zh) * 2015-03-26 2015-09-23 苏州大学 基于云端的中医脉象辅助诊断系统
CN106650303A (zh) * 2017-02-28 2017-05-10 中山市孝美信息科技有限公司 一种老人健康智能监测系统
CN111093197A (zh) * 2019-12-31 2020-05-01 北大方正集团有限公司 权限认证方法、权限认证系统和计算机可读存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4283921A4

Also Published As

Publication number Publication date
US20240187237A1 (en) 2024-06-06
EP4283921A1 (en) 2023-11-29
CN115150088A (zh) 2022-10-04
EP4283921A4 (en) 2024-06-19

Similar Documents

Publication Publication Date Title
WO2020147627A1 (zh) 链路选取方法及相关装置
US11395213B2 (en) Systems and methods for implementing multiple band service discovery
EP2941854B1 (en) Authenticating a wireless dockee to a wireless docking service
WO2018223513A1 (zh) 蓝牙测试的方法、终端设备及计算机可读存储介质
WO2019042169A1 (zh) 资源配置方法及相关产品
CN105610469A (zh) 用户界面设备的无线接近配对
EP3711425A1 (en) Method for allocating resource grant
US20100211685A1 (en) Pairing exchange
JP2016528844A (ja) ネットワーク接続方法、ホットスポット端末及び管理端末
CN107450988B (zh) 资源配置方法及相关产品
EP3490304A1 (en) Method for identifying access point and hotspot, and related product
WO2020143579A1 (zh) 链路聚合实现方法及相关产品
JP6782373B2 (ja) PUSCHおよびMsg3用の時間領域表
CN113993193B (zh) 一种无线接入设备的功率调节方法、设备及存储介质
WO2019072180A1 (zh) 应用程序的资源配置方法及设备
WO2014101563A1 (zh) 一种数据传输的方法和数据终端
WO2015127619A1 (zh) 一种发送、接收系统信息的方法及装置
US20230124671A1 (en) Electronic device performing communication using bandwidth part, network, and method for operating the same
WO2022194063A1 (zh) 传输业务信息的方法和电子设备
TWI724139B (zh) 基於設備到設備的通訊方法和終端
JP7481065B2 (ja) 通信方法および装置
CN106686635A (zh) 基于无线接入点的控制和配置协议的数据传输方法和装置
CN103812841A (zh) 旁路认证方法、设备和系统
JP2023546564A (ja) 複数のシムをサポートする電子装置及びその動作方法
EP4008142B1 (en) Electronic device for receiving paging message and operation method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22770418

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022770418

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022770418

Country of ref document: EP

Effective date: 20230825

WWE Wipo information: entry into national phase

Ref document number: 18550499

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE