Device automatic pushing method and device, electronic device, medium and program product
By subscribing to information from the cloud platform and generating device codes at startup through the signaling gateway, and automatically pushing them to the upper-level platform, the problem of cumbersome operation and high manpower input for adding device codes is solved. This realizes the automated generation and push of device codes, improving efficiency and timeliness.
Patent Information
- Application Number
- CN202510743739.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2045-06-05
AI Technical Summary
The current technology for adding device codes is cumbersome, requires a large amount of manpower, and cannot guarantee timeliness, which affects the development of monitoring services.
When the signaling gateway starts, it sends subscription information to the cloud platform to obtain device sharing information, and generates device codes through an automatic encoding algorithm, which are then automatically pushed to the upper-level platform.
It enables automated generation and push of device codes, simplifying operations, saving manpower, improving push efficiency, and enhancing timeliness.
Smart Images

Figure CN120475069B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of device push technology, specifically to a device automatic push method, apparatus, electronic device, medium, and program product. Background Technology
[0002] The national standard point push process involves the lower-level gateway assigning a unified code to the device, and then pushing the newly added device to the upper-level platform. The push message carries the device code, and the upper-level platform can display the device information and attach the device to the corresponding organization based on the received push message.
[0003] Currently, device codes are manually edited and uploaded to the gateway via a configuration page. This makes adding new devices cumbersome and requires significant manpower. A typical province may have hundreds of thousands of monitoring points; relying entirely on manual push notifications would result in a massive overall manpower investment. Furthermore, device coding is a long-term process. Users may cancel and re-share shared locations, causing previously pushed locations to become invalid and requiring re-push notifications. Therefore, after nationwide node integration, location push notifications will consume substantial manpower and involve lengthy processes, compromising the timeliness of monitoring and hindering the development of monitoring services across different regions. Summary of the Invention
[0004] At least one embodiment of this application provides a method, apparatus, electronic device, medium, and program product for automatically pushing devices, which solves the problems in the prior art where device coding is cumbersome, requires a large amount of manpower, and cannot guarantee timeliness when adding new devices.
[0005] To solve the above-mentioned technical problems, this application is implemented as follows:
[0006] In a first aspect, embodiments of this application provide a method for automatic device push, applied to a signaling gateway, the method comprising:
[0007] When the signaling gateway is started, a first subscription information is sent to the cloud platform. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) path used by the signaling gateway to receive information.
[0008] If the device sharing information of the target device sent by the cloud platform is obtained through the URL path, the device code of the target device is generated;
[0009] Based on the device code, the device information of the target device is sent to the superior platform.
[0010] Optionally, in the aforementioned automatic device push method, before sending the device information of the target device to the superior platform, the method further includes:
[0011] When the signaling gateway completes registration with the upper-level platform, it obtains the second subscription information sent by the upper-level platform. The second subscription information is used to subscribe to device information under the signaling gateway.
[0012] Optionally, in the automatic device push method, generating the device code of the target device includes:
[0013] The device code of the target device is generated based on at least one of the organization code, industry code, type code, network code, and serial number code of the target device.
[0014] Optionally, the device automatic push method further includes at least one of the following:
[0015] Based on the organization information of the target device organization to which the target device belongs, carried in the device sharing information, generate the organization code of the target device;
[0016] Based on industry comparison information, generate the industry code for the target device;
[0017] Based on the type information carried in the device sharing information, a type code for the target device is generated;
[0018] Based on the network type information carried in the device sharing information, the network code of the target device is generated;
[0019] The serial number code of the target device is generated based on the maximum device code under the target device organization.
[0020] Optionally, in the automatic device push method, the device code of the target device is generated based on at least one of the following: organization code, industry code, type code, network code, and serial number code:
[0021] If the length of the organization code is greater than a preset length, the device code of the target device is generated based on the organization code, the type code, the network code, and the sequence number code.
[0022] When the length of the organization code is equal to the preset length, the device code of the target device is generated based on the organization code, the industry code, the type code, the network code, and the serial number code.
[0023] If the length of the organization code is less than the preset length, the organization code is updated to the preset length to obtain the updated organization code. Then, based on the updated organization code, the industry code, the type code, the network code, and the serial number code, the device code of the target device is generated.
[0024] Optionally, the automatic device push method, wherein sending the device information to the upper-level platform according to the device code includes:
[0025] Based on the device code, the device name of the target device carried in the device sharing information, and the organization information of the target device's organization, obtain the device information;
[0026] Send the device information to the higher-level platform.
[0027] Secondly, embodiments of this application also provide a method for automatic device push, applied to a cloud platform, the method comprising:
[0028] Obtain first subscription information sent by the signaling gateway. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) address used by the signaling gateway to receive information.
[0029] Upon receiving the device sharing information of the target device sent by the terminal, the device sharing information of the target device is sent to the signaling gateway via the URL address.
[0030] Optionally, in the device automatic push method, the first subscription information is used to subscribe to device sharing information under the target device organization of the cloud platform, and the first subscription information also carries the organization information of the target device organization;
[0031] When the device sharing information of the target device sent by the terminal is obtained, the method further includes:
[0032] Add the target device to the target device organization.
[0033] Thirdly, embodiments of this application also provide an automatic device pushing apparatus, comprising:
[0034] The first sending module is configured to send first subscription information to the cloud platform when the signaling gateway is started. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) path used by the signaling gateway to receive information.
[0035] The first generation module is used to generate the device code of the target device when the device sharing information of the target device sent by the cloud platform is obtained through the URL path;
[0036] The second sending module is used to send the device information of the target device to the upper-level platform according to the device code.
[0037] Fourthly, embodiments of this application also provide an automatic device pushing apparatus, comprising:
[0038] The first acquisition module is used to acquire first subscription information sent by the signaling gateway. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) address used by the signaling gateway to receive information.
[0039] The third sending module is used to send the device sharing information of the target device to the signaling gateway through the URL address when the device sharing information of the target device sent by the terminal is obtained.
[0040] Fifthly, embodiments of this application also provide an electronic device, including: a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein when the processor executes the program or instructions, it implements the automatic device push method as described in the first aspect, or implements the automatic device push method as described in the second aspect.
[0041] In a sixth aspect, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the automatic device push method as described in the first aspect, or implements the automatic device push method as described in the second aspect.
[0042] In a seventh aspect, embodiments of this application also provide a computer program product, including computer instructions, which, when executed by a processor, implement the automatic device push method as described in the first aspect, or implement the automatic device push method as described in the second aspect.
[0043] Compared with existing technologies, embodiments of this application provide a method, apparatus, electronic device, medium, and program product for automatic device push. When the signaling gateway is activated, a first subscription information is sent to a cloud platform. This first subscription information is used to subscribe to device sharing information under the cloud platform and carries a Uniform Resource Locator (URL) path used by the signaling gateway to receive information. If device sharing information of a target device sent by the cloud platform is obtained through the URL path, a device code for the target device is generated. Based on the device code, the device information of the target device is sent to an upper-level platform. In this way, device sharing information of newly added target devices can be automatically received from the cloud platform through the first subscription information, device codes can be automatically generated, and device information carrying the device code can be automatically pushed to the upper-level platform, thereby realizing an automated device push process, simplifying operations, saving manpower, and effectively improving push efficiency. Attached Figure Description
[0044] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0045] Figure 1 This is a flowchart illustrating the automatic device push method according to one embodiment of this application;
[0046] Figure 2 This is a schematic diagram of the device coding described in the embodiments of this application;
[0047] Figure 3 This is a flowchart illustrating the automatic device push method according to another embodiment of this application;
[0048] Figure 4 This is a flowchart illustrating one embodiment of the automatic device push method described in this application.
[0049] Figure 5 This is a schematic diagram of the structure of the automatic pushing device of one embodiment of this application;
[0050] Figure 6 This is a schematic diagram of the structure of the automatic pushing device described in another embodiment of this application;
[0051] Figure 7 This is a hardware block diagram of the electronic device described in the embodiments of this application. Detailed Implementation
[0052] The terms "first," "second," etc., used in this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same class, without limiting the number of objects; for example, the first object can be one or more. Furthermore, "or" in this application indicates at least one of the connected objects. For example, "A or B" covers three scenarios: Scenario 1: including A but not B; Scenario 2: including B but not A; Scenario 3: including both A and B. The character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0053] Please refer to Figure 1 This application provides an automatic device push method, which is applied to a signaling gateway.
[0054] Optionally, the signaling gateway is a national standard signaling gateway.
[0055] Furthermore, the above methods include:
[0056] Step 101: When the signaling gateway is started, send the first subscription information to the cloud platform. The first subscription information is used to subscribe to the device sharing information under the cloud platform and carries the URL (Uniform Resource Locator) path used by the signaling gateway to receive information.
[0057] The device sharing information is used to add devices to the cloud platform. The devices can be video surveillance devices.
[0058] Optionally, the first subscription information is used to subscribe to device sharing information of all devices under the target device organization of the cloud platform, and also carries the organization information of the target device organization. The device sharing information is used to add devices to the target device organization of the cloud platform. The device organization can be understood as a device directory, specifically a national standard device directory. In the mobile home security application scenario, the cloud platform is a mobile home security cloud platform, and the target device organization is a mobile home security organization.
[0059] In this step, with the signaling gateway enabled, it sends the first subscription information to the cloud platform. This first subscription information can be an HTTP message. After receiving the first subscription information, the cloud platform returns an acknowledgment message (200 OK) to the signaling gateway and associates information changes on the cloud platform with the URL path. When devices on the cloud platform change, including status changes, device additions, device deletions, and device updates, the cloud platform can send device sharing information to the signaling gateway via the URL path.
[0060] Step 102: If the device sharing information of the target device sent by the cloud platform is obtained through the URL path, generate the device code of the target device.
[0061] Optionally, the device sharing information of the target device under the target device organization sent by the cloud platform can be obtained through the URL path; and the device code of the target device can be generated based on the device sharing information of the target device.
[0062] It should be noted that when a user shares a target device via a terminal, the terminal sends the target device's sharing information to the cloud platform. Upon receiving this information, the cloud platform sends it to the signaling gateway via a URL path. The signaling gateway then obtains the target device's sharing information through the URL path and generates the target device's device code based on this information.
[0063] In mobile home security application scenarios, users add target devices to the mobile home security organization under the mobile home security cloud platform through the mobile home security app on their devices. Specifically, users log in to the mobile home security app, go to My → Devices, select the target device, and click Share to add the device to the corresponding target device organization. After the user shares the target device, the mobile home security cloud platform will send the device sharing information to the signaling gateway.
[0064] Optionally, a device code for the target device can be generated based on an automatic encoding algorithm and device sharing information. This automatic encoding algorithm can be a national standard encoding algorithm.
[0065] Optionally, the device code of the target device can be stored in a local database.
[0066] Step 103: Based on the device code, send the device information of the target device to the upper-level platform.
[0067] It should be noted that after the signaling gateway pushes the device information of the target device to the upper-level platform, it enables automatic device push.
[0068] In this embodiment of the application, optionally, after sending the first subscription information to the cloud platform, the above method further includes:
[0069] Send registration information to the aforementioned superior platform;
[0070] Obtain the registration confirmation information sent by the superior platform.
[0071] It should be noted that the signaling gateway initiates cascading registration with the upper-level platform. The signaling gateway and the upper-level platform verify each other's identities through authentication and verification to complete the registration. The upper-level platform then returns a registration success message (200 OK) to the signaling gateway.
[0072] In this embodiment of the application, optionally, the above method further includes:
[0073] When the signaling gateway completes registration with the upper-level platform, it obtains the second subscription information sent by the upper-level platform. The second subscription information is used to subscribe to device information under the signaling gateway.
[0074] The superior platform is the superior platform of the signaling gateway, and the superior platform is a national standard platform.
[0075] Optionally, the second subscription information is used to subscribe to device information of all devices under the target device organization of the signaling gateway.
[0076] It should be noted that after the signaling gateway completes registration with the superior platform, the superior platform sends a second subscription information to the signaling gateway. This second subscription information can adopt the national standard protocol. After receiving the second subscription information, the signaling gateway returns a confirmation message (200 OK) to the superior platform. When there are changes to the devices under the signaling gateway, including status changes, device additions, device deletions, and device updates, the signaling gateway can feed back the device information to the superior platform.
[0077] In this embodiment of the application, optionally, generating the device code of the target device includes:
[0078] The device code of the target device is generated based on at least one of the organization code, industry code, type code, network code, and serial number code of the target device.
[0079] It should be noted that the organization code is determined based on the target device organization to which the target device belongs; the industry code is determined based on the industry to which the target device belongs; the type code is determined based on the type of the target device; the network code is determined based on the network type of the target device; and the sequence number code is determined based on the sequence number of the target device. The sequence number of the target device is determined based on the maximum sequence number of existing devices within the target device organization. The device code is generated by concatenating at least one of these codes, and the length of each code can be flexibly set as needed.
[0080] In this embodiment of the application, optionally, the above method further includes at least one of the following:
[0081] Based on the organization information of the target device organization to which the target device belongs, carried in the device sharing information, generate the organization code of the target device;
[0082] Based on industry comparison information, generate the industry code for the target device;
[0083] Based on the type information carried in the device sharing information, a type code for the target device is generated;
[0084] Based on the network type information carried in the device sharing information, the network code of the target device is generated;
[0085] The serial number code of the target device is generated based on the maximum device code under the target device organization.
[0086] It should be noted that the device code of the target device is generated according to an automatic encoding algorithm, which includes at least one of the above-mentioned algorithms. This automatic encoding algorithm can be implemented entirely locally by the signaling gateway, without relying on a central server, and has the characteristics of decentralization, flexibility and autonomy, making it more suitable for the needs of actual scenarios.
[0087] The device sharing information sent by the cloud platform to the signaling gateway may include the organization information of the target device's organization, the device name, and the device serial number. Based on the organization information, a local national standard code for the target device's organization, i.e., an organization code, is generated. This organization code corresponds to the national administrative code, which can be pre-set in the signaling gateway's local database.
[0088] Industry codes can be generated based on industry reference information pre-set in the signaling gateway.
[0089] The type code can be generated based on the type of the target device, such as type code 131.
[0090] The network type code can be generated based on the network type of the target device. For example, if the network type of the target device is social resource access network, then the network type code is 8.
[0091] In this embodiment of the application, optionally, after generating the device code of the target device, the above method further includes:
[0092] Determine whether the device code of the target device exists;
[0093] If the device code for the target device does not exist, return to the step of generating the device code for the target device.
[0094] In this embodiment of the application, optionally, the device code of the target device is generated based on at least one of the organization code, industry code, type code, network code, and serial number code of the target device, including one of the following:
[0095] If the length of the organization code is greater than a preset length, the device code of the target device is generated based on the organization code, the type code, the network code, and the sequence number code.
[0096] When the length of the organization code is equal to the preset length, the device code of the target device is generated based on the organization code, the industry code, the type code, the network code, and the serial number code.
[0097] If the length of the organization code is less than the preset length, the organization code is updated to the preset length to obtain the updated organization code. Then, based on the updated organization code, the industry code, the type code, the network code, and the serial number code, the device code of the target device is generated.
[0098] It should be noted that the length of each code can be flexibly set as needed. For example, the organization code can be 8 or 10 digits, with each 2 digits representing a first-level administrative region. An 8-digit code can correspond to 4 levels of administrative regions, namely province-prefecture-city-county-town, and a 10-digit code can correspond to 5 levels of administrative regions, namely province-prefecture-city-county-town-village (street). This 5-level code can more specifically indicate the location.
[0099] The default length is 8 bits. If the length of the organization code is greater than 8 bits, the device code is generated based on the organization code, type code, network code, and serial number code.
[0100] When the organization code is 8 bits long, the device code is generated based on the organization code, industry code, type code, network code, and serial number code. Figure 2 This is a schematic diagram of the device coding described in an embodiment of this application. Figure 2 As shown, the device code in this embodiment of the application is 20 bits long, including organization code, industry code, type code, network code and serial number code. The organization code is 8 bits long, the industry code is 2 bits long, the type code is 3 bits long, the network code is 1 bit long, and the serial number code is 6 bits long.
[0101] If the organization code is less than 8 bits long, first update the organization code to 8 bits to obtain the updated organization code. Here, 0s can be used to fill the organization code to 8 bits. Then, generate the device code based on the updated organization code, industry code, type code, network code, and serial number code.
[0102] Next, the coding implementation when adding a target device will be explained:
[0103] Step 1 requires finding the device code corresponding to the largest serial number code of the existing devices under the target device organization, and obtaining the last 6 bits of the device code as the initial serial number code seq. If there is no device code under the target device organization, the initial serial number code seq is set to 000000.
[0104] Step 2: Generate the first 14 bits of the target device's code.
[0105] Step 3: Add 1 to the initial sequence number code to obtain the sequence number code of the target device.
[0106] Step 4: Based on the first 14 bits of the code and the sequence number code, concatenate to generate the device code of the target device;
[0107] Step 5: Determine if the target device's device code exists. If it does not exist, the code allocation is successful; otherwise, return to Step 2 to regenerate the first 14 bits of the code. The overall serial code format of the target device's device code is as follows: 33110000101317000001.
[0108] In this embodiment of the application, optionally, sending the device information to the upper-level platform according to the device code includes:
[0109] Based on the device code, the device name of the target device carried in the device sharing information, and the organization information of the target device's organization, obtain the device information;
[0110] Send the device information to the higher-level platform.
[0111] After the signaling gateway completes the generation of the device code, it saves the device code to the local database of the signaling gateway. Then, it generates device information according to the NOTIFY information format. The device information includes the device code, device name, organization information and device status. The device information is then pushed to the upper-level platform, thus completing the automatic device push without the need for platform intervention.
[0112] Please refer to Figure 3 This application also provides an automatic device push method, which is applied to a cloud platform.
[0113] Furthermore, the above methods include:
[0114] Step 301: Obtain the first subscription information sent by the signaling gateway. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) address used by the signaling gateway to receive information.
[0115] Step 302: If the device sharing information of the target device sent by the terminal is obtained, the device sharing information of the target device is sent to the signaling gateway through the URL address.
[0116] In this embodiment of the application, optionally, the first subscription information is used to subscribe to device sharing information under the target device organization of the cloud platform, and the first subscription information also carries the organization information of the target device organization;
[0117] When the device sharing information of the target device sent by the terminal is obtained, the above method also includes:
[0118] Add the target device to the target device organization.
[0119] It should be noted that the cloud platform in this application embodiment can also execute the method executed by the cloud platform in the above embodiment of the automatic device push method applied to the signaling gateway, which will not be repeated here.
[0120] Figure 4 This is a flowchart illustrating one embodiment of the automatic device push method described in this application. Figure 4 As shown, the method includes:
[0121] Step 401: The signaling gateway sends the first subscription information to the cloud platform.
[0122] Step 402: The cloud platform sends a subscription confirmation message to the signaling gateway.
[0123] Step 403: The signaling gateway sends registration information to the superior platform.
[0124] Step 404: The upper-level platform sends registration confirmation information to the signaling gateway.
[0125] Step 405: The upper-level platform sends the second subscription information to the signaling gateway.
[0126] Step 406: The signaling gateway sends a subscription confirmation message to the upper-level platform.
[0127] Step 407: The terminal sends the device sharing information of the target device to the cloud platform.
[0128] Step 408: The cloud platform sends device sharing information to the signaling gateway.
[0129] Step 409: The signaling gateway generates a device code based on the automatic encoding algorithm and device sharing information.
[0130] Step 410: The signaling gateway sends device information to the upper-level platform.
[0131] Step 411: The upper-level platform sends a push confirmation message to the signaling gateway.
[0132] In summary, the automatic device push method described in this application, when the signaling gateway is started, firstly, completes device subscription with the cloud platform and provides a URL path that can accept device sharing information; secondly, the upper-level platform completes organizational directory subscription with the signaling gateway; when a user shares a device, the cloud platform pushes information to the signaling gateway through the URL path, and the signaling gateway completes the device code calculation and synthesis according to the automatic encoding algorithm; finally, the signaling gateway pushes the newly added device to the upper-level platform through the organizational subscription notification mechanism with the upper-level platform via NOTIFY information, completing the automatic device encoding and push. In this way, the problem of pushing new devices to the upper-level platform is solved, the entire push process is automated, the operation is simplified, a lot of manpower is saved, and the timeliness of point-to-point push is improved, greatly improving the push efficiency. Moreover, the automatic encoding algorithm can reduce the error of manual encoding and avoid duplicate pushes.
[0133] Please refer to Figure 5 This application also provides an automatic device pushing apparatus, comprising:
[0134] The first sending module 501 is used to send first subscription information to the cloud platform when the signaling gateway is started. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) path used by the signaling gateway to receive information.
[0135] The first generation module 502 is used to generate the device code of the target device when the device sharing information of the target device sent by the cloud platform is obtained through the URL path;
[0136] The second sending module 503 is used to send the device information of the target device to the upper-level platform according to the device code.
[0137] Optionally, the automatic device pushing device further includes:
[0138] The second acquisition module is used to acquire second subscription information sent by the upper-level platform when the signaling gateway completes registration with the upper-level platform. The second subscription information is used to subscribe to device information under the signaling gateway.
[0139] Optionally, in the automatic device push device, the first generation module 502 includes:
[0140] The generation unit is configured to generate a device code for the target device based on at least one of the organization code, industry code, type code, network code, and serial number code of the target device.
[0141] Optionally, the automatic device pushing device further includes at least one of the following:
[0142] The second generation module is used to generate the organization code of the target device based on the organization information of the target device organization to which the target device belongs, carried in the device sharing information;
[0143] The third generation module is used to generate the industry code of the target device based on industry comparison information;
[0144] The fourth generation module is used to generate the type code of the target device based on the type information carried in the device sharing information;
[0145] The fifth generation module is used to generate the network code of the target device based on the network type information carried in the device sharing information;
[0146] The sixth generation module is used to generate the serial number code of the target device based on the maximum device code under the target device organization.
[0147] Optionally, in the aforementioned automatic device pushing device, the generating unit is specifically used for one of the following:
[0148] If the length of the organization code is greater than a preset length, the device code of the target device is generated based on the organization code, the type code, the network code, and the sequence number code.
[0149] When the length of the organization code is equal to the preset length, the device code of the target device is generated based on the organization code, the industry code, the type code, the network code, and the serial number code.
[0150] If the length of the organization code is less than the preset length, the organization code is updated to the preset length to obtain the updated organization code. Then, based on the updated organization code, the industry code, the type code, the network code, and the serial number code, the device code of the target device is generated.
[0151] Optionally, in the aforementioned automatic device push device, the second sending module 503 is specifically used for:
[0152] Based on the device code, the device name of the target device carried in the device sharing information, and the organization information of the target device's organization, obtain the device information;
[0153] Send the device information to the higher-level platform.
[0154] It should be noted that the apparatus provided in this application embodiment can implement all the method steps implemented in the above-mentioned automatic push method embodiment for signaling gateway, and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.
[0155] Please refer to Figure 6 This application also provides an automatic device pushing apparatus, comprising:
[0156] The first acquisition module 601 is used to acquire first subscription information sent by the signaling gateway. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) address used by the signaling gateway to receive information.
[0157] The third sending module 602 is used to send the device sharing information of the target device to the signaling gateway through the URL address when the device sharing information of the target device sent by the terminal is obtained.
[0158] Optionally, in the device automatic push device, the first subscription information is used to subscribe to device sharing information under the target device organization of the cloud platform, and the first subscription information also carries the organization information of the target device organization;
[0159] The method further includes:
[0160] The add module is used to add the target device to the target device organization.
[0161] It should be noted that the apparatus provided in this application embodiment can implement all the method steps implemented in the above-mentioned automatic device push method embodiment applied to the cloud platform, and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.
[0162] This application also provides an electronic device, such as... Figure 7 As shown, it includes:
[0163] The processor 701, memory 702, transceiver 703, and a program or instructions stored in the memory 702 and executable on the processor 701; when the processor 701 executes the program or instructions, it implements the various processes of the above-described automatic push method embodiment and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0164] The transceiver 703 is used to receive and send data under the control of the processor 701.
[0165] Among them, Figure 7In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 701 and memory represented by memory 702 together. The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 703 can be multiple elements, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium. For different user equipment, the user interface 704 can also be an interface capable of connecting external or internal devices, including but not limited to keypads, displays, speakers, microphones, joysticks, etc.
[0166] The processor 701 is responsible for managing the bus architecture and general processing, while the memory 702 can store the data used by the processor 701 when performing operations.
[0167] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the above-described device automatic push method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0168] This application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, they implement the various processes of the above-described device automatic push method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0169] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0170] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0171] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for automatically pushing equipment, characterized in that, Applied to a signaling gateway, the method includes: When the signaling gateway is started, a first subscription information is sent to the cloud platform. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) path used by the signaling gateway to receive information. If the device sharing information of the target device sent by the cloud platform is obtained through the URL path, the device code of the target device is generated according to at least one of the organization code, industry code, type code, network code, and serial number code of the target device; wherein, the serial number code is generated by obtaining the initial serial number code based on the device code corresponding to the largest serial number code of the existing devices under the target device organization, and then incrementing the initial serial number code by 1; if there are no devices under the target device organization, the initial serial number code is set. Based on the device code, the device information of the target device is sent to the superior platform.
2. The automatic device pushing method according to claim 1, characterized in that, Before sending the device information of the target device to the superior platform, the method further includes: When the signaling gateway completes registration with the upper-level platform, it obtains the second subscription information sent by the upper-level platform. The second subscription information is used to subscribe to device information under the signaling gateway.
3. The automatic device pushing method according to claim 1, characterized in that, The method further includes at least one of the following: Based on the organization information of the target device organization to which the target device belongs, carried in the device sharing information, generate the organization code of the target device; Based on industry comparison information, generate the industry code for the target device; Based on the type information carried in the device sharing information, a type code for the target device is generated; The network code of the target device is generated based on the network type information carried in the device sharing information.
4. The automatic device pushing method according to any one of claims 1 or 3, characterized in that, Generate a device code for the target device based on at least one of the following: organization code, industry code, type code, network code, and serial number code; the device code may include one of the following: If the length of the organization code is greater than a preset length, the device code of the target device is generated based on the organization code, the type code, the network code, and the sequence number code. When the length of the organization code is equal to the preset length, the device code of the target device is generated based on the organization code, the industry code, the type code, the network code, and the serial number code. If the length of the organization code is less than the preset length, the organization code is updated to the preset length to obtain the updated organization code. Then, based on the updated organization code, the industry code, the type code, the network code, and the serial number code, the device code of the target device is generated.
5. The automatic device pushing method according to claim 1, characterized in that, Based on the device code, the device information is sent to the superior platform, including: Based on the device code, the device name of the target device carried in the device sharing information, and the organization information of the target device's organization, obtain the device information; Send the device information to the higher-level platform.
6. A method for automatically pushing equipment, characterized in that, Applied to a cloud platform, the method includes: Obtain first subscription information sent by the signaling gateway. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) path used by the signaling gateway to receive information. Upon receiving device sharing information of the target device sent by the terminal, the device sharing information of the target device is sent to the signaling gateway via the URL path. The signaling gateway generates a device code for the target device based on at least one of the organization code, industry code, type code, network code, and sequence number code of the target device. The sequence number code is generated by obtaining an initial sequence number code based on the device code corresponding to the largest sequence number code of the existing devices under the target device organization, and then incrementing the initial sequence number code by 1. If there are no devices under the target device organization, the initial sequence number code is set.
7. The automatic device pushing method according to claim 6, characterized in that, The first subscription information is used to subscribe to device sharing information under the target device organization of the cloud platform, and the first subscription information also carries the organization information of the target device organization; When the device sharing information of the target device sent by the terminal is obtained, the method further includes: Add the target device to the target device organization.
8. An automatic equipment pushing device, characterized in that, include: The first sending module is used to send first subscription information to the cloud platform when the signaling gateway is started. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) path used by the signaling gateway to receive information. The first generation module is used to generate a device code for the target device based on at least one of the following: organization code, industry code, type code, network code, and serial number code, when the device sharing information of the target device sent by the cloud platform is obtained through the URL path; wherein, the serial number code is generated by obtaining an initial serial number code based on the device code corresponding to the largest serial number code of the currently existing devices under the target device organization, and then incrementing the initial serial number code by 1; if there are currently no devices under the target device organization, then the initial serial number code is set. The second sending module is used to send the device information of the target device to the upper-level platform according to the device code.
9. An automatic equipment pushing device, characterized in that, include: The first acquisition module is used to acquire the first subscription information sent by the signaling gateway. The first subscription information is used to subscribe to device sharing information under the cloud platform and carries the Uniform Resource Locator (URL) path used by the signaling gateway to receive the information. The third sending module is used to send the device sharing information of the target device to the signaling gateway through the URL path when the device sharing information of the target device sent by the terminal is obtained. The signaling gateway generates the device code of the target device according to at least one of the organization code, industry code, type code, network code and sequence number code of the target device. The sequence number code is obtained by obtaining the initial sequence number code based on the device code corresponding to the largest sequence number code of the existing devices under the target device organization, and then incrementing the initial sequence number code by 1. If there are no devices under the target device organization, the initial sequence number code is set.
10. An electronic device, characterized in that, include: A processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the processor, when executing the program or instructions, implements the automatic device push method as described in any one of claims 1 to 5, or implements the automatic device push method as described in any one of claims 6 to 7.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the automatic device push method as described in any one of claims 1 to 5, or implements the automatic device push method as described in any one of claims 6 to 7.
12. A computer program product, characterized in that, It includes computer instructions, which, when executed by a processor, implement the automatic device push method as described in any one of claims 1 to 5, or implement the automatic device push method as described in any one of claims 6 to 7.
Citation Information
Patent Citations
Inter-domain directory sharing method and device
CN106953905A
Internet of Things equipment management method and system
CN118264555A
