Event processing method and device applied to IoT (Internet of Things) equipment

By using shared container query and transmission interface type execution body identification on IoT devices, the problem of low efficiency in linkage between subroutines and device applications is solved, and efficient event processing and user experience improvement are achieved.

CN118779133APending Publication Date: 2024-10-15ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411080528.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-05-07
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing technology makes it difficult to realize flexible linkage between subprograms and device applications on IoT devices, resulting in low subprogram data transmission efficiency and affecting user experience.

Method used

By deploying the service client on the IoT device, using the shared container to query the execution body identifier of the interface type, intercepting service events and writing the call data to the shared container, reading the matching event data and transmitting it to the device client, event processing for multi-target applications is achieved. .

Benefits of technology

It improves the flexibility of IoT device applications and the usage rate of target applications, avoids event processing failures caused by the device client's lack of event processing capabilities, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779133A_ABST
    Figure CN118779133A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an event processing method and device applied to IoT equipment, and the event processing method applied to the IoT equipment comprises the steps: obtaining call data of a service event transmitted by a subprogram through a call interface; querying an executor identifier corresponding to the interface type of the calling interface in a shared container; the executor identifier is registered to the shared container under the condition that a device client is configured with a corresponding executor; if the executor identifier is queried, intercepting the service event, and writing the calling data into the shared container; and reading event data matched with the executor in the calling data, and transmitting the event data to the equipment client, so as to call at least one target application through the equipment client to carry out event processing.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the Chinese invention patent application with the application date of May 7, 2022, application number CN202210493654.7, and name “Event processing method and device applied to IoT devices”. Technical Field

[0002] This document relates to the field of data processing technology, and in particular to an event processing method and device applied to IoT devices. Background Art

[0003] With the development of Internet technology and the popularization of mobile terminals, more and more services have begun to extend to online scenarios, and application platform software that can carry multiple application sub-programs has emerged, avoiding users from installing different types of applications on mobile terminals. Instead, services are handled with the help of application sub-programs installed in the application platform software. At the same time, application sub-programs can also make full use of the abundant user traffic of the application platform software to provide support for the service improvement of application sub-programs. Summary of the invention

[0004] One or more embodiments of the present specification provide an event processing method applied to IoT devices. The event processing method applied to IoT devices includes: obtaining call data of a service event passed in by a subroutine through a call interface. Querying the executable body identifier corresponding to the interface type of the call interface in a shared container; the executable body identifier is registered to the shared container when the device client configures the corresponding executable body. If the executable body identifier is queried, the service event is intercepted and the call data is written to the shared container. The event data matching the executable body in the call data is read and transmitted to the device client, so as to call at least one target application through the device client for event processing.

[0005] One or more embodiments of the present specification provide an event processing device applied to an IoT device, including: a call data acquisition module, configured to obtain call data of a service event passed in by a subroutine through a call interface. An executable body identification query module, configured to query the executable body identification corresponding to the interface type of the call interface in a shared container; the executable body identification is registered to the shared container when the device client configures the corresponding executable body. If the executable body identification is queried, the call data writing module is run, and the call data writing module is configured to intercept the service event and write the call data to the shared container. An event data transmission module is configured to read the event data matching the executable body in the call data and transmit it to the device client, so as to call at least one target application through the device client for event processing.

[0006] One or more embodiments of the present specification provide an event processing device applied to an IoT device, comprising: a processor; and a memory configured to store computer executable instructions, wherein when the computer executable instructions are executed, the processor: obtains the call data of the service event passed in by the subroutine through the call interface. Query the executable body identifier corresponding to the interface type of the call interface in the shared container; the executable body identifier is registered to the shared container when the device client configures the corresponding executable body. If the executable body identifier is queried, the service event is intercepted and the call data is written to the shared container. The event data matching the executable body in the call data is read and transmitted to the device client, so as to call at least one target application through the device client for event processing.

[0007] One or more embodiments of the present specification provide a storage medium for storing computer executable instructions, which implement the following process when executed by a processor: obtaining call data of a service event passed in by a subroutine through a call interface. Querying the executable body identifier corresponding to the interface type of the call interface in a shared container; the executable body identifier is registered to the shared container when the device client configures the corresponding executable body. If the executable body identifier is queried, the service event is intercepted and the call data is written to the shared container. The event data matching the executable body in the call data is read and transmitted to the device client, so as to call at least one target application through the device client for event processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate one or more embodiments of the present specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.

[0009] Figure 1 A processing flow chart of an event processing method applied to an IoT device provided in one or more embodiments of this specification;

[0010] Figure 2 A processing diagram of an event processing method applied to an IoT device provided in one or more embodiments of this specification;

[0011] Figure 3 A processing flow chart of an event processing method applied to an IoT device in a ticket purchase navigation scenario provided by one or more embodiments of this specification;

[0012] Figure 4 A processing flow chart of an event processing method applied to an IoT device in a vehicle-mounted IoT device scenario provided by one or more embodiments of this specification;

[0013] Figure 5 A schematic diagram of an event processing device applied to an IoT device provided in one or more embodiments of this specification;

[0014] Figure 6 A schematic diagram of the structure of an event processing device applied to an IoT device provided in one or more embodiments of this specification. DETAILED DESCRIPTION

[0015] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.

[0016] This specification provides an event processing method embodiment applied to IoT devices:

[0017] Reference Figure 1 The event processing method applied to IoT devices provided in this embodiment is applied to a service client deployed by IoT devices, and specifically includes steps S102 to S108.

[0018] Step S102, obtaining the calling data of the service event passed in by the subroutine through the calling interface.

[0019] In actual applications, subprograms in third-party applications running on device terminals can only interact with third-party applications during runtime. Using the application mechanism of third-party applications, they cannot be linked with device applications running on terminal devices, which affects the flexibility of device applications configured on device terminals. If the existing IPC (Inter-Process Communication) communication method is used to transmit subprogram data to IoT devices, the device provider of the IoT device needs to integrate the SDK (Software Development Kit) extension configuration of the subprogram into the device client of the IoT device, which has high access costs and low convenience.

[0020] The event processing method applied to IoT devices provided in this embodiment transmits the call data of the subroutine running on the service client to the IoT device configured with the service client through an intermediate client, that is, the service client deployed by the IoT device. In order to ensure that the IoT device can perform event processing based on the call data of the subroutine and avoid affecting the user experience due to the fact that the call data of the subroutine is transmitted to the IoT device but the IoT device cannot perform event processing based on the call data, after obtaining the call data passed in by the subroutine, the service client first determines whether the IoT device has the ability to process events based on the call data. If so, the service event data in the call data is transmitted to the device client for event processing through at least one target application of the device client. In this way, the data of the subroutine is transmitted to the IoT device, so that event processing is performed through the device application of the IoT device, thereby improving the flexibility of the device application of the IoT device.

[0021] The IoT device described in this embodiment includes but is not limited to at least one of the following: a vehicle terminal installed in the vehicle, a terminal device connected to the vehicle, a smart speaker, an unmanned vending machine, an autonomous radio, an interactive advertising screen, a POS device, and smart home appliances such as smart TVs and smart refrigerators. Optionally, the IoT device includes an on-board IoT device; the on-board IoT device includes a vehicle terminal configured for the vehicle, and / or a terminal device connected to the vehicle. The IoT device is provided by a device provider, and the device provider includes a manufacturer, a seller, and / or a service operator of the terminal device. The subprogram (applet) refers to an application package or application component that is installed on an application platform or loaded and installed by an application platform. From a service perspective, the subprogram has the ability to independently provide self-closed-loop services, such as a sub-application with self-closed-loop capabilities that runs within an application to provide vehicle-related services or ordering services.

[0022] The IoT device is deployed with a device client and a service client; the service client is an operating framework or operating engine provided for IoT devices. By configuring the service client on the IoT device, access to subprograms on the IoT device is achieved, specifically including subprograms that provide corresponding services when running on the IoT device. In other words, the service client is used to run subprograms; the device client refers to a collection of system applications that the terminal device itself relies on to run. Optionally, the device client configures the access entry of the subprogram; when the device client detects that the access entry of the configured subprogram is triggered, it calls the service interface provided by the service client deployed on the IoT device and passes in an access request to the subprogram, so that the service client loads the subprogram based on the access request; or, the service client configures the access entry of the subprogram.

[0023] In specific implementation, the device provider of the IoT device registers the device through the server (the server corresponding to the service client), and after the device registration, the service client is deployed on the IoT device to access the subprogram through the service client. Specifically, the service client can be run independently on the IoT device as an application, or it can be run as a toolkit on the host application deployed by the IoT device (the application registered by the device provider through the server), and the service client is called to load the subprogram when the access entry of the subprogram configured by the host application is triggered. The server is used to cooperate with the service client deployed on the IoT device to perform device login processing and subprogram access processing for the IoT device.

[0024] After the device provider registers the device through the server, the server stores the device information of the IoT device. During the use of the IoT device, it is necessary to activate the use of the IoT device to the service client to ensure that the IoT device has the authority to access the subprogram through the service client. Based on this, in an optional implementation manner provided in this embodiment, the IoT device is activated in the following manner:

[0025] Collecting data to be verified according to the device activation instruction submitted by the device client;

[0026] Upload the data to be verified to the server to verify whether the data to be verified is consistent with the device information entered by the device provider to which the IoT device belongs when registering the IoT device;

[0027] Receive the verification result sent by the server, and return the verification result to the device client through a callback function.

[0028] Specifically, the device client is deployed on the IoT device, and in the process of activating the IoT device, after obtaining the device activation instruction submitted by the device client, the input data to be verified is collected and uploaded to the server. The server compares the data to be verified uploaded by the service client with the device data of the device provider stored in advance, and returns the verification result to the device client. If the device client receives a verification result of passing the verification sent by the server, the data to be verified is stored in the shared container as the device information of the IoT device; if the device client receives a verification result of failing the verification sent by the server, a verification failure reminder is displayed.

[0029] The information to be verified includes a product identifier, a device identifier, and / or an application identifier (an application identifier of a host application) entered by a device provider corresponding to the IoT device.

[0030] The process of activating the above-mentioned devices is explained by taking the on-board IoT device as an example. When leaving the factory, the on-board IoT device is configured with a device client and a service client according to the registration of the vehicle provider on the server. When the car owner uses the on-board IoT device for the first time, the on-board IoT device needs to be activated. The car owner submits the device activation instruction through the device client configured on the on-board IoT device. The device client collects the data to be verified including the device identification and other data according to the device activation instruction, and uploads the data to be verified to the server through the IPC provided by the server, so that after receiving the data to be verified, the server verifies whether the data to be verified matches the device information stored by the vehicle provider when registering the device on the server; and sends the matching result to the device client through the IPC; when the service client receives the verification result of passing the verification, the data to be verified is stored as the device information of the on-board IoT device; if the verification result of failing the verification is received, the verification failure reminder is displayed through the on-board IoT device.

[0031] In the process of accessing the subprogram, if other services are involved (for example, ticketing service involves navigation service), other applications need to be called to cooperate with the subprogram to complete the service. Therefore, other services need to be called. In this embodiment, if the subprogram needs to call other applications to cooperate to complete the service, the call data is transmitted to the service client.

[0032] In specific implementation, when a user accesses a subprogram, the user submits an event processing instruction for a service event through the subprogram. The subprogram processes the event by calling other services. However, in the process of calling other services for event processing, calling data needs to be passed in so that the corresponding service can process the event. In an optional implementation manner provided in this embodiment, the subprogram determines the calling data of the service event in the following manner:

[0033] Perform service processing according to the service data input by the user through the subroutine to obtain a service processing result;

[0034] If an event processing instruction for the service event submitted by the user through the subroutine is received, the calling data is determined in the service processing result according to the event processing instruction.

[0035] Specifically, the user inputs service data or service instructions through the subroutine to perform service processing and obtain service processing results. When the service processing results are displayed to the user, the event access portal of the optional service event can be displayed based on the configuration of the subroutine. If the user receives an access instruction through the subroutine to the event access portal of any of the displayed optional service events, the call data for event processing is determined in the service processing result based on the service event, and the call data is passed in by calling the call interface corresponding to the service event.

[0036] For example, a user accesses the ticketing subprogram through the access entrance of the ticketing subprogram configured by the device client of the on-board IoT device. When the device client detects that the access entrance of the ticketing subprogram is triggered, it transmits an access instruction to the ticketing subprogram to the service interface provided by the service container (service client) configured for the on-board IoT device, and the service container loads the ticketing subprogram based on the access instruction; after the user buys a ticket through the ticketing subprogram, the purchased ticket information includes relevant information such as location data and ticket time; when displaying the ticketing information to the user, in order to enhance the user's awareness of the services provided by the subprogram, the access entrance of the navigation service is displayed to the user. When the subprogram detects that the access entrance of the navigation service is triggered, it determines the location data and ticket time as call data for navigation event processing, and passes them to the service container through the navigation interface.

[0037] Step S104: query the shared container for an executable identifier corresponding to the interface type of the calling interface.

[0038] The shared container includes a storage container that can perform data interaction and data sharing between processes, such as ContentProvider (content provider).

[0039] In order to improve the flexibility of the target applications configured by the device client and improve the utilization rate of the target applications, in this embodiment, after obtaining the call data of the service event passed in by the subroutine through the calling interface, the call data is transmitted to the device client, so that the device client calls multiple target applications for event processing, thereby improving the utilization rate of the target applications.

[0040] On this basis, in order to avoid the situation where the service client cannot process the event after transmitting the call data to the device client due to the IoT device or the device client of the IoT device not having the ability to process events, and the event processing fails due to the failure to call a third-party application for event processing, thus affecting the access experience of the subprogram, after obtaining the call data of the service event passed in by the subprogram through the call interface, the executable body identifier corresponding to the interface type of the call interface is queried in the shared container. The executable body identifier is registered to the shared container when the device client configures the corresponding executable body; in an optional implementation provided in this embodiment, the executable body identifier is registered in the following manner:

[0041] Obtaining configuration information of an executable body corresponding to the executable body identifier transmitted by the device client;

[0042] Based on the acquisition of the configuration information, the executable body identifier is written into the shared container.

[0043] Specifically, after configuring the executable, the device client transmits the executable identifier to the service client through the service interface provided by the service client. After obtaining the configuration information carrying the executable identifier, the service client stores the executable identifier and the device information of the IoT device in the shared container in correspondence.

[0044] In specific implementation, the calling data of the service event passed in by the subprogram through the calling interface is written into the shared container. After detecting that the calling data is written into the shared container, the executable body identifier corresponding to the interface type of the calling interface is queried in the shared container.

[0045] For example, the subroutine passes the calling data of the service event to the ContentProvider through the calling interface. When the ContentObserver detects that the calling data is written in the ContentProvider, the service client reads the calling data according to the detection result and queries the ContentProvider for the executable identifier corresponding to the interface type of the calling interface, that is, queries whether the device client has the ability to process events based on the calling data.

[0046] If the executable body identifier corresponding to the interface type of the calling interface is queried in the shared container, the service event is intercepted, that is, the calling data is intercepted, and the calling information is written into the shared container. In an optional implementation provided by this embodiment, if the executable body identifier is not queried, the following operations are performed:

[0047] Determine a target service application based on the service event, and perform event processing of the service event based on the call data at the target service application;

[0048] The at least one target application configures a service interface of the service client; the target service application is a third-party application configured by the IoT device.

[0049] Specifically, the executable body identifier corresponding to the interface type of the calling interface is queried in the shared container. If the executable body identifier is found, it indicates that the device client has the processing capability to perform event processing, and the service event is intercepted; if the executable body identifier is not found, the event processing is performed based on the predetermined event processing flow, that is, the target service application is determined based on the service event, and the device client calls the target service application to perform event processing of the service event based on the calling data.

[0050] Continuing with the above example, since the ticketing subroutine cannot provide navigation services, the navigation interface of the service client is called and the ticketing time and location data of the ticketing agency for navigation services are passed to the ContentProvider. After the Content Observer detects that the ContentProvider has written the ticketing time and location data, the service client queries the navigation identifier in the ContentProvider. If the navigation identifier is not found, the third-party navigation application configured by the on-board IoT device or the navigation application integrated in the service client is called to navigate to the ticketing agency; if the navigation identifier is found, the ticketing information and the location data of the ticketing agency are intercepted.

[0051] Step S106: if the executable body identifier is found, the service event is intercepted and the call data is written into the shared container.

[0052] In specific implementation, if the executable body identifier corresponding to the interface type of the calling interface is queried in the shared container, the service event is intercepted, that is, the service client is intercepted from calling the third-party application (target service application) for event processing, and the call data in the shared container is stored correspondingly to the executable body identifier.

[0053] In order to improve the effectiveness of call data management, the call data is written into the shared container in a manner corresponding to the executable identifier. In an optional implementation provided by this embodiment, the call data is written into the shared container in the following manner:

[0054] Constructing a key-value pair with the executable body identifier as the primary key and the calling data as the key value;

[0055] The key-value pair is written into the shared container.

[0056] Specifically, the executable identifier and the call data are written into the shared container in the form of a key-value pair.

[0057] For example, after intercepting the ticket information and the location data of the ticketing agency, a key-value pair is constructed with the navigation identifier (application identifier of the navigation application) as the primary key and the ticket information and the location data of the ticket information as the key value, and the key-value pair is written to the ContentProvider.

[0058] Step S108, reading the event data in the calling data that matches the executable body and transmitting the event data to the device client, so as to call at least one target application through the device client to perform event processing.

[0059] The device client is deployed on the IoT device. The target application includes a device application that is configured by the IoT device at the factory and configures the service interface of the service client; in addition, it may also include a third-party application that is not configured at the factory but configures the service interface of the service client; the target application configures the service interface of the service client.

[0060] During specific implementation, in order to improve data transmission efficiency, improve event processing efficiency, and avoid transmitting other data in the calling data to the device client, which would cause the device client to need to perform data screening during event processing of service events based on the target application, thereby affecting processing efficiency, in this embodiment, the event data matching the executable body in the calling data is first read, and then the event data is transmitted to the device client, so that the device client performs event processing based on the navigation application of the service interface of the deployed service client.

[0061] In an optional implementation manner provided by this embodiment, taking a navigation event as an example, in reading the event data matching the executable body in the call data and transmitting it to the device client, the location data matching the navigation executable body in the call data is read, and the location data is transmitted to the device client of the IoT device; further, in the process of the device service client calling at least one target application for event processing, the following operations are performed:

[0062] Loading the navigation application configured by the device client, and transmitting the location data to the navigation application, so that the navigation application uses the device location data of the IoT device as the starting location data and uses the location data as the ending location data to perform navigation processing;

[0063] Wherein, the navigation application configures the service interface of the service client.

[0064] Specifically, when the service event is a navigation event, the location data matching the navigation executor in the call data is read and sent to the device client. After the device client receives the location data, the navigation application of the service interface of the configured service client configured by the device client is loaded to collect the device location data of the IoT device, and navigation processing is performed based on the device location data and the location data.

[0065] For example, when ContentObserver detects that ContentProvider writes a key-value pair with the navigation identifier as the primary key and the ticketing information and the location data of the ticketing agency as the key value, it reads the event data in the key-value pair and transmits the event data to the device client, so that the device client loads the corresponding navigation service based on the navigation identifier and performs navigation processing on the location data of the ticketing agency based on the navigation service.

[0066] After receiving the event data, the device client can call multiple target applications to process the event. In this embodiment, in order to avoid data loss caused by the device client performing event processing based on the target application that does not execute the executable body after reading the event data matching the executable body in the call data and transmitting it to the device client, after writing the call data to the shared container, the call data is transmitted to the device client so that at least one target application is called by the device client to process the event.

[0067] It should be noted that in the process of transmitting call data or event data to the device client, data transmission from the service client to the device client is performed through a shared container, that is, the call data or event data is transmitted from the process corresponding to the service client to the process corresponding to the device client through the shared container.

[0068] In this embodiment, after the event data is transmitted to the device client, the device client may perform event processing based on multiple target applications; in an optional implementation manner provided by this embodiment, the device client calls at least one target application to perform event processing in the following manner:

[0069] Determine a first target application and a second target application to load the event data;

[0070] The event data is input into the first target application and the second target application to load the event data based on an application attribute of the first target application and to load the event data based on an application attribute of the second target application.

[0071] For example, in the process of the device client of the on-board IoT device calling the first target application and the second target application for event processing, the device client, when obtaining the location data, calls the navigation service and weather service configured by the device client, and transmits the location data to the navigation service so that the navigation service performs navigation processing based on the location data and the terminal location data of the vehicle terminal, and transmits the location data to the weather service so that the weather service broadcasts the weather at the location corresponding to the location data.

[0072] It should be noted that the above only describes the process of event processing by the device client by taking calling two target applications for event processing as an example. Three or more target applications can also be called for event processing, because the device client can perform event processing based on any target application after obtaining the event data. The process of calling three or more target applications for event processing is similar to the above-mentioned method of calling two target applications for event processing, and this embodiment will not be repeated here.

[0073] It should also be noted that the device client can configure at least one target application for the executable body, and when obtaining event data matching the executable body or call data associated with the executable body identifier (key-value pair) of the executable body, read multiple target applications configured for the executable body, and perform event processing for each target application based on the application properties and event data (or call data) of each target application.

[0074] After the service client transmits the event data to the device client, in order to improve the subprogram's perception of the data transmission, the service client synchronizes the data transmission result to the subprogram through a callback function.

[0075] The following takes the application of an event processing method for IoT devices provided in this embodiment in a ticket purchase navigation scenario as an example, combined with Figure 2 , further describes the event processing method applied to IoT devices provided in this embodiment, see Figure 3 , the event processing method applied to the IoT device in the ticket purchase navigation scenario specifically includes the following steps S302 to S316.

[0076] like Figure 2 As shown, the equipment manufacturer that provides the vehicle-mounted IoT device registers the vehicle-mounted IoT device and selects the sub-program open to the vehicle-mounted IoT device through the AMPE (Alipay Mini-Program Engine) platform. The sub-program that the equipment manufacturer can select is the sub-program in the sub-program pool registered by the sub-program provider to the AMPE platform; after the equipment manufacturer chooses the sub-program open to the vehicle-mounted IoT device, the AMPE client (service client) is integrated based on the sub-program selected by the equipment manufacturer, so that the equipment manufacturer configures the AMPE client in the vehicle-mounted IoT device when configuring the vehicle-mounted IoT device, so that the user can access the sub-program through the AMPE client configured on the vehicle-mounted IoT device.

[0077] It should be noted that the AMPE client is configured as a third-party application configured in the device client of the vehicle-mounted IoT device. Specifically, the third-party application is configured with an access entry of the subroutine.

[0078] When a user accesses a subprogram through an onboard IoT device, the user first triggers the access entry of the subprogram through the device client configured on the onboard IoT device. When the device client detects that the access entry of the subprogram is triggered, it transmits the access instruction of the subprogram to the service interface provided by the AMPE client. After receiving the access instruction of the subprogram, the AMPE client loads the subprogram on the onboard IoT device.

[0079] After the user obtains the service processing result by accessing the subroutine to perform service processing, the user submits the event processing instruction for the service event through the subroutine. After the subroutine determines the call data in the service processing result according to the event processing instruction, the call data is transmitted to the AMPE client based on the call interface of the event type corresponding to the service event. After receiving the call data, the AMPE client queries the executable body identifier corresponding to the event type in the shared container. If the executable body identifier is queried, the call data is intercepted, and the call data and the executable body identifier are written into the shared container, and the event data matching the executable body corresponding to the executable body identifier in the call data is read and transmitted to the device client. After receiving the event data, the device client performs event processing based on the target application corresponding to the executable body identifier contained in the event data.

[0080] Step S302: the device client obtains the user's triggering operation on the access entry of the ticketing subprogram, and transmits an access request to the ticketing subprogram to the service interface provided by the service client.

[0081] Step S304: the service client loads the ticketing subroutine on the vehicle-mounted IoT device based on the access request.

[0082] Step S306, the ticket purchase subroutine performs ticket purchase processing on the user according to the ticket purchase request submitted by the user and obtains the ticket purchase result.

[0083] Step S308: the ticket purchase subprogram obtains the navigation request for the navigation event submitted by the user on the ticket purchase result display page.

[0084] Step S310: the ticket purchase subroutine determines the ticket location data and ticket time included in the ticket purchase result as call data based on the navigation request, and calls the navigation interface to pass the call data to the service client.

[0085] Step S312: if the service client finds the navigation application identifier in the shared container, the service client intercepts the call data and stores the navigation application identifier and the call data in the shared container in the form of a key-value pair.

[0086] If the service client does not find the navigation application identifier in the shared container, the navigation service processing is performed based on the navigation application integrated in the service client.

[0087] Step S314: Transmit the navigation application identifier and the calling data to the device client.

[0088] Step S316: the device client performs navigation processing on the ticket location data in the call data based on the navigation application corresponding to the navigation application identifier.

[0089] The navigation application is an application configured on the device client.

[0090] The following takes the application of an event processing method for an IoT device provided in this embodiment in a vehicle-mounted IoT device scenario as an example to further illustrate the event processing method for an IoT device provided in this embodiment. Figure 4 , the event processing method applied to IoT devices in the vehicle-mounted IoT device scenario specifically includes the following steps S402 to S422.

[0091] Step S402, according to the device activation instruction submitted by the device client deployed by the vehicle-mounted IoT device, obtain the data to be verified and send the data to be verified to the server to perform device verification.

[0092] Step S404: according to the verification result sent by the server, the information to be verified is stored in the shared container as the device information of the vehicle-mounted IoT device.

[0093] Step S406: Execute the callback function to return an activation result indicating successful activation to the device client.

[0094] Step S408: Obtain configuration information of the executable body corresponding to the configuration executable body identifier passed in by the device client by calling the service interface configured by the service client.

[0095] Step S410: Based on the configuration information, write the executable body identifier into the shared container to complete the registration of the executable body.

[0096] Step S412: After the executable body identifier is written into the shared container, the callback function is executed to return a registration result indicating successful registration to the device client.

[0097] Step S414: if it is detected that the call data of the service event written into the shared container by the subprogram through the call interface is transmitted, the executable body identifier corresponding to the interface type of the call interface is queried in the shared container.

[0098] Step S416: if the executable identifier is found, the service event is intercepted.

[0099] Step S418: construct a key-value pair based on the executable identifier and the calling data, and write the key-value pair into the shared container.

[0100] Step S420 , reading event data matching the executable body in the call data and transmitting the event data to the device client based on the shared container, so that the device client performs event processing based on the first target application and the second target application based on the event data.

[0101] Wherein, step S420 may also be replaced by transmitting the call data to the device client based on the shared container during the execution process.

[0102] Step S422, executing the callback function to return the data transmission result to the subroutine.

[0103] To summarize, the event processing method applied to IoT devices provided in this embodiment, on the one hand, realizes data transmission between the service client and the device client by configuring a shared container, that is, realizes data transmission between the process corresponding to the service client and the process corresponding to the device client; on the other hand, after receiving the transmitted data, the device client can perform event processing through multiple target applications of the service interface of the configured service client, thereby realizing the linkage between the mini program and the device application configured by the IoT device, solving the limitation of one-to-one data transmission of the sub-program, improving the service awareness of the device provider of the IoT device, and improving the flexibility of the device application.

[0104] An embodiment of an event processing device applied to an IoT device provided in this specification is as follows:

[0105] In the above-mentioned embodiment, an event processing method applied to an IoT device is provided, and correspondingly, an event processing device applied to an IoT device is also provided, which is described below with reference to the accompanying drawings.

[0106] Reference Figure 5 , which shows a schematic diagram of an event processing device applied to an IoT device provided by this embodiment.

[0107] Since the device embodiment corresponds to the method embodiment, the description is relatively simple, and the relevant parts can refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.

[0108] This embodiment provides an event processing device applied to an IoT device, including:

[0109] The calling data acquisition module 502 is configured to acquire the calling data of the service event passed in by the subroutine through the calling interface;

[0110] The executable body identification query module 504 is configured to query the executable body identification corresponding to the interface type of the calling interface in the shared container; the executable body identification is registered to the shared container when the device client configures the corresponding executable body;

[0111] If the executable body identifier is found, the call data writing module 506 is run, and the call data writing module 506 is configured to intercept the service event and write the call data into the shared container;

[0112] The event data transmission module 508 is configured to read the event data matching the executable body in the call data and transmit it to the device client, so as to call at least one target application through the device client to perform event processing.

[0113] An embodiment of an event processing device applied to an IoT device provided in this specification is as follows:

[0114] Corresponding to the event processing method applied to an IoT device described above, based on the same technical concept, one or more embodiments of this specification also provide an event processing device applied to an IoT device, and the event processing device applied to the IoT device is used to execute the event processing method applied to the IoT device provided above. Figure 6 A schematic diagram of the structure of an event processing device applied to an IoT device provided in one or more embodiments of this specification.

[0115] This embodiment provides an event processing device applied to an IoT device, including:

[0116] like Figure 6 As shown, the event processing device applied to the IoT device may have relatively large differences due to different configurations or performances, and may include one or more processors 601 and memory 602, and the memory 602 may store one or more storage applications or data. Among them, the memory 602 can be a short-term storage or a persistent storage. The application stored in the memory 602 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the event processing device applied to the IoT device. Furthermore, the processor 601 can be configured to communicate with the memory 602, and execute a series of computer executable instructions in the memory 602 on the event processing device applied to the IoT device. The event processing device applied to the IoT device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input / output interfaces 605, one or more keyboards 606, etc.

[0117] In a specific embodiment, an event processing device applied to an IoT device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions corresponding to the event processing device applied to the IoT device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:

[0118] Obtain the calling data of the service event passed in by the subroutine through the calling interface;

[0119] Querying the executable body identifier corresponding to the interface type of the calling interface in the shared container; the executable body identifier is registered to the shared container when the device client configures the corresponding executable body;

[0120] If the executable body identifier is found, the service event is intercepted and the call data is written into the shared container;

[0121] The event data matching the executable body in the calling data is read and transmitted to the device client, so as to call at least one target application through the device client to perform event processing.

[0122] An embodiment of a storage medium provided in this specification is as follows:

[0123] Corresponding to the above-described event processing method applied to IoT devices, based on the same technical concept, one or more embodiments of this specification also provide a storage medium.

[0124] The storage medium provided in this embodiment is used to store computer executable instructions, and the computer executable instructions implement the following process when executed by a processor:

[0125] Obtain the calling data of the service event passed in by the subroutine through the calling interface;

[0126] Querying the executable body identifier corresponding to the interface type of the calling interface in the shared container; the executable body identifier is registered to the shared container when the device client configures the corresponding executable body;

[0127] If the executable body identifier is found, the service event is intercepted and the call data is written into the shared container;

[0128] The event data matching the executable body in the calling data is read and transmitted to the device client, so as to call at least one target application through the device client to perform event processing.

[0129] It should be noted that the embodiments of the storage medium in this specification and the embodiments of the event processing method applied to IoT devices in this specification are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the corresponding method mentioned above, and the repeated parts will not be repeated.

[0130] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0131] In the 1930s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0132] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0133] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0134] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0135] It should be understood by those skilled in the art that one or more embodiments of this specification may be provided as a method, system or computer program product. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0136] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0137] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0139] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0140] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0141] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0142] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0143] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0144] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0145] The above description is only an embodiment of this document and is not intended to limit this document. For those skilled in the art, this document may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document should be included in the scope of the claims of this document.

Claims

1. An event processing method applied to an IoT device, applied to a service client for running a subprogram deployed by the IoT device, include: Obtaining the calling data of the service event passed in by the subroutine through the calling interface; Querying the execution body identifier corresponding to the interface type of the calling interface in the shared container; If the executable body identifier is not found, a target service application is determined based on the service event, so that the device client deployed by the IoT device calls the target service application to perform event processing based on the call data.

2. According to the event processing method applied to IoT devices according to claim 1, the executable body identifier is registered to the shared container in the following manner: Obtaining configuration information of an executable body corresponding to the executable body identifier transmitted by the device client; Based on the acquisition of the configuration information, the executable body identifier is written into the shared container.

3. The event processing method applied to IoT devices according to claim 1, further comprising: include: If the executable body identifier is found, the service event is intercepted and the call data is written into the shared container; The event data matching the executable body in the calling data is read and transmitted to the device client, so as to call at least one target application through the device client to perform event processing.

4. The event processing method applied to IoT devices according to claim 3, wherein the calling data is written into the shared container. include: Constructing a key-value pair with the executable body identifier as the primary key and the calling data as the key value; The key-value pair is written into the shared container.

5. According to the event processing method applied to IoT devices according to claim 1, the device client is deployed on the IoT device; Before the step of obtaining the calling data of the service event passed in by the subroutine through the calling interface is executed, it also includes: Collecting data to be verified according to the device activation instruction submitted by the device client; Upload the data to be verified to the server to verify whether the data to be verified is consistent with the device information entered by the device provider to which the IoT device belongs when registering the IoT device; Receive the verification result sent by the server, and return the verification result to the device client through a callback function.

6. The event processing method applied to IoT devices according to claim 3, wherein the event data matching the executable body in the call data is read and transmitted to the device client. include: Reading the location data matching the navigation executive in the call data, and transmitting the location data to the device client of the IoT device; Accordingly, calling at least one target application to process the event includes: Loading the navigation application configured by the device client, and transmitting the location data to the navigation application, so that the navigation application uses the device location data of the IoT device as the starting location data and uses the location data as the ending location data to perform navigation processing; Wherein, the navigation application configures the service interface of the service client.

7. The event processing method applied to IoT devices according to claim 3, wherein the calling of at least one target application to process the event, include: Determine a first target application and a second target application to load the event data; The event data is input into the first target application and the second target application to load the event data based on an application attribute of the first target application and to load the event data based on an application attribute of the second target application.

8. According to the event processing method applied to IoT devices according to claim 3, the at least one target application configures the service interface of the service client; the target service application is a third-party application configured for the IoT device.

9. According to the event processing method applied to IoT devices according to claim 1, the device client is deployed on the IoT device, and the device client configures the access entry of the subroutine; in, When the device client detects that the access entry of the configured subprogram is triggered, it calls the service interface provided by the service client deployed by the IoT device to pass in an access request to the subprogram, so that the service client loads the subprogram based on the access request.

10. According to the event processing method applied to IoT devices according to claim 1, the calling data of the service event is determined in the following manner: Perform service processing according to the service data input by the user through the subroutine to obtain a service processing result; If an event processing instruction for the service event submitted by the user through the subroutine is received, the calling data is determined in the service processing result according to the event processing instruction.

11. The event processing method applied to an IoT device according to claim 1, wherein the IoT device comprises an in-vehicle IoT device; in, The vehicle-mounted IoT device includes a vehicle terminal configured for the vehicle and / or a terminal device external to the vehicle.

12. An event processing device applied to IoT devices, include: A calling data acquisition module is configured to acquire calling data of a service event passed in by a subprogram through a calling interface; An executable body identification query module is configured to query the executable body identification corresponding to the interface type of the calling interface in the shared container; If the executable body identifier is not found, the call data writing module is run, and the call data writing module is configured based on determining the target service application so that the device client deployed by the IoT device calls the target service application to perform event processing based on the call data.

13. An event processing device applied to IoT devices, include: processor; as well as, a memory configured to store computer executable instructions which, when executed, cause the processor to: Obtain the calling data of the service event passed in by the subroutine through the calling interface; Querying the execution body identifier corresponding to the interface type of the calling interface in the shared container; If the executable body identifier is not found, a target service application is determined based on the service event, so that the device client deployed by the IoT device calls the target service application to perform event processing based on the call data.

14. A storage medium for storing computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the following process: Obtain the calling data of the service event passed in by the subroutine through the calling interface; Querying the execution body identifier corresponding to the interface type of the calling interface in the shared container; If the executable body identifier is not found, a target service application is determined based on the service event, so that the device client deployed by the IoT device calls the target service application to perform event processing based on the call data.