Automatic equipment pushing method and device, electronic equipment, medium and program product
Through the signaling gateway, the device encoding is automatically generated and pushed to the superior platform, which solves the problems of cumbersome equipment encoding operations and large manpower investment, realizes automatic push of equipment, and improves efficiency and timeliness.
Patent Information
- Application Number
- CN202510743739.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-08-12
AI Technical Summary
In the prior art, equipment coding work is cumbersome, manpower investment is large, and timeliness is not guaranteed, which affects the timeliness of monitoring business.
The signaling gateway sends subscription information to the cloud platform when it is started, obtains device sharing information through the URL path, automatically generates device encoding, and automatically pushes device information to the superior platform, simplifying the operation process.
It realizes automatic push of equipment, saves manpower investment, improves push efficiency, reduces manual coding errors, and improves timeliness.
Smart Images

Figure CN120475069A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of device push technology, and in particular to a method, apparatus, electronic device, medium, and program product for automatic device push. Background Art
[0002] The national standard point push process is that the lower-level gateway uniformly encodes the devices and pushes the newly added devices to the upper-level platform. The push message carries the device code. The upper-level platform can display the device information and mount the device under the corresponding organization based on the received push message.
[0003] Currently, device codes are manually edited and uploaded to the gateway through the configuration page, making the process of adding new devices cumbersome and labor-intensive. A typical province can have hundreds of thousands of monitoring points. If all of this were manually pushed, the overall labor investment would be enormous. Furthermore, device coding is a long-term process. Users may cancel and re-share points they shared, causing previously pushed points to become invalid and requiring a new push. Therefore, after national nodes are connected, point push requires significant manpower and a lengthy process, resulting in inadequate timeliness in point monitoring and hindering the development of monitoring services in various regions. Summary of the Invention
[0004] At least one embodiment of the present application provides a device automatic push method, apparatus, electronic device, medium and program product, which are used to solve the problems in the prior art that when adding new devices, the device coding work is cumbersome, requires large manpower and cannot be guaranteed in timeliness.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a device automatic push method, applied to a signaling gateway, the method comprising:
[0007] When the signaling gateway is started, first subscription information is sent to the cloud platform, where the first subscription information is used to subscribe to device sharing information on the cloud platform and carries a uniform resource locator (URL) path used by the signaling gateway to receive information;
[0008] When the device sharing information of the target device sent by the cloud platform is obtained through the URL path, a device code of the target device is generated;
[0009] According to the device code, the device information of the target device is sent to the upper platform.
[0010] Optionally, in the device automatic push method, before sending the device information of the target device to the superior platform, the method further comprises:
[0011] When the signaling gateway completes registration with the upper-level platform, second subscription information sent by the upper-level platform is obtained, where the second subscription information is used to subscribe to device information under the signaling gateway.
[0012] Optionally, in the device automatic push method, generating the device code of the target device includes:
[0013] Generate a device code of the target device according to 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] generating an organization code of the target device according to the organization information of the target device organization to which the target device belongs carried in the device sharing information;
[0016] Generate the industry code of the target device according to the industry comparison information;
[0017] Generate a type code of the target device according to the type information carried by the device sharing information;
[0018] Generate a network code of the target device according to the network type information carried in the device sharing information;
[0019] Generate a serial number code of the target device according to the maximum device code under the target device organization.
[0020] Optionally, the method for automatically pushing a device, wherein 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, includes one of the following:
[0021] If the length of the organization code is greater than a preset length, generating a device code of the target device according to 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, generating a device code of the target device according to the organization code, the industry code, the type code, the network code, and the serial number code;
[0023] When the length of the organization code is less than the preset length, the organization code is updated to the preset length to obtain an updated organization code, and the device code of the target device is generated based on the updated organization code, the industry code, the type code, the network code and the serial number code.
[0024] Optionally, the device automatic push method, wherein the device information is sent to the upper-level platform according to the device code, includes:
[0025] Acquire device information according to the device code, the device name of the target device carried in the device sharing information, and the organization information of the target device organization;
[0026] Send the device information to the superior platform.
[0027] In a second aspect, an embodiment of the present application further provides a device automatic push method, which is applied to a cloud platform, and the method includes:
[0028] Obtaining first subscription information sent by a signaling gateway, where the first subscription information is used to subscribe to device sharing information under the cloud platform and carries a uniform resource locator (URL) address used by the signaling gateway to receive information;
[0029] In the case of acquiring 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 a target device organization on the cloud platform, and the first subscription information further carries organization information of the target device organization;
[0031] In the case of acquiring the device sharing information of the target device sent by the terminal, the method further includes:
[0032] Add the target device to the target device organization.
[0033] In a third aspect, an embodiment of the present application further provides an automatic device pushing device, comprising:
[0034] A first sending module is configured to send first subscription information to the cloud platform when the signaling gateway is started, wherein the 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;
[0035] A first generating module is configured to generate a 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 platform according to the device code.
[0037] In a fourth aspect, an embodiment of the present application further provides an automatic device pushing device, comprising:
[0038] A first acquisition module is configured to acquire first subscription information sent by a signaling gateway, where the first subscription information is used to subscribe to device sharing information under the cloud platform and carries a uniform resource locator (URL) address used by the signaling gateway to receive information;
[0039] The third sending module is configured to send the device sharing information of the target device to the signaling gateway via the URL address when the device sharing information of the target device sent by the terminal is acquired.
[0040] In the fifth aspect, an embodiment of the present application also provides an electronic device, comprising: a processor, a memory, and a program or instruction stored on the memory and runnable on the processor. When the processor executes the program or instruction, it implements the device automatic push method as described in the first aspect, or implements the device automatic push method as described in the second aspect.
[0041] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the device automatic push method as described in the first aspect is implemented, or the device automatic push method as described in the second aspect is implemented.
[0042] In a seventh aspect, an embodiment of the present application further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the device automatic push method as described in the first aspect, or implement the device automatic push method as described in the second aspect.
[0043] Compared with the prior art, the embodiments of the present application provide a device automatic push method, apparatus, electronic device, medium and program product. When the signaling gateway is started, a first subscription message is sent to the cloud platform. The first subscription message is used to subscribe to the device sharing information under the cloud platform and carries the uniform resource locator URL path used by the signaling gateway to receive information. When the device sharing information of the target device sent by the cloud platform is obtained through the URL path, a device code of the target device is generated. According to the device code, the device information of the target device is sent to the upper platform. In this way, the device sharing information of the newly added target device of the cloud platform can be automatically received through the first subscription message, the device code can be automatically generated, and the device information carrying the device code can be automatically pushed to the upper platform, thereby realizing the device automatic push process, simplifying the operation, saving manpower investment, and effectively improving the push efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0045] Figure 1 This is a flowchart of the device automatic push method described in one embodiment of the present application;
[0046] Figure 2 A schematic diagram of the device encoding described in the embodiment of the present application;
[0047] Figure 3 This is a flow chart of a method for automatically pushing data to a device according to another embodiment of the present application;
[0048] Figure 4 This is a flow chart of one implementation of the device automatic push method described in the embodiment of the present application;
[0049] Figure 5 This is a schematic diagram of the structure of the automatic pushing device of the device according to one embodiment of the present application;
[0050] Figure 6 This is a structural diagram of an automatic pushing device for equipment according to another embodiment of the present application;
[0051] Figure 7 This is a hardware block diagram of the electronic device described in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and do not limit the number of objects, for example, the first object can be one or more. In addition, "or" in this application represents at least one of the connected objects. For example, "A or B" covers three options, namely, Option 1: including A but not including B; Option 2: including B but not including A; Option 3: including both A and B. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0053] Please refer to Figure 1 , an embodiment of the present application provides a device automatic push method, which is applied to a signaling gateway.
[0054] Optionally, the signaling gateway is a national standard signaling gateway.
[0055] Furthermore, the above method includes:
[0056] Step 101, when the signaling gateway is started, sends 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 the device to the cloud platform. The device may be a video surveillance device.
[0058] Optionally, the first subscription information is used to subscribe to the device sharing information of all devices under the target device organization of the cloud platform, and also carries the organizational information of the target device organization. The device sharing information is used to add the device 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 the mobile home security cloud platform, and the target device organization is the mobile home security organization.
[0059] In this step, when the signaling gateway is enabled, it sends the first subscription information to the cloud platform. This first subscription information can be an HTTP message. After obtaining the first subscription information, the cloud platform returns a confirmation message (200OK) to the signaling gateway and associates the information changes on the cloud platform with the URL path. When a device on the cloud platform changes, including status changes, device additions, device deletions, and device updates, the cloud platform can send the device sharing information to the signaling gateway via the URL path.
[0060] Step 102 : When the device sharing information of the target device sent by the cloud platform is obtained through the URL path, a device code of the target device is generated.
[0061] Optionally, the device sharing information of the target device under the target device organization sent by the cloud platform is obtained through the URL path; and the device code of the target device is generated according to the device sharing information of the target device.
[0062] It should be noted that when a user shares a target device through a terminal, the terminal sends the target device's device sharing information to the cloud platform. Upon receiving the target device's device sharing information from the terminal, the cloud platform sends the target device's device sharing information to the signaling gateway via a URL path. The signaling gateway obtains the target device's device sharing information via the URL path and generates the target device's device code based on the target device's device sharing information.
[0063] In the Mobile Home Guard application scenario, users can add a target device to the Mobile Home Guard organization on the Mobile Home Guard cloud platform through the Mobile Home Guard app on their devices. Specifically, users log in to the Mobile Home Guard app, navigate 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 Guard cloud platform sends the device sharing information to the signaling gateway.
[0064] Optionally, a device code of the target device is generated based on an automatic coding algorithm and device sharing information. The automatic coding algorithm may be a national standard coding algorithm.
[0065] Optionally, the device code of the target device is stored in a local database.
[0066] Step 103: Send the device information of the target device to the upper platform according to the device code.
[0067] It should be noted that after the signaling gateway pushes the device information of the target device to the upper-level platform, the device is automatically pushed.
[0068] In the embodiment of the present application, optionally, after sending the first subscription information to the cloud platform, the method further includes:
[0069] Sending registration information to the superior platform;
[0070] Obtain the registration confirmation information sent by the parent platform.
[0071] It should be noted that the signaling gateway initiates cascade registration to the upper platform. The signaling gateway and the upper platform confirm their identities through authentication verification to complete the registration. The upper platform returns a registration success message (200OK) to the signaling gateway.
[0072] In the embodiment of the present application, optionally, the above method further includes:
[0073] When the signaling gateway completes registration with the upper-level platform, second subscription information sent by the upper-level platform is obtained, where the second subscription information is used to subscribe to device information under the signaling gateway.
[0074] The upper-level platform is the upper-level platform of the signaling gateway, and the upper-level 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 when the signaling gateway completes registration with the superior platform, the superior platform sends a second subscription message to the signaling gateway. This second subscription message can use the national standard protocol. After obtaining the second subscription message, the signaling gateway returns a confirmation message (200OK) to the superior platform. When the device under the signaling gateway changes, including status changes, device additions, device deletions, and device updates, the signaling gateway can feedback the device information to the superior platform.
[0077] In the embodiment of the present application, optionally, generating the device code of the target device includes:
[0078] Generate a device code of the target device according to 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 by the target device organization; the industry code is determined by the target device industry; the type code is determined by the target device type; the network code is determined by the target device network type; and the sequence number code is determined by the target device sequence number. The target device sequence number is determined by the highest sequence number of the devices currently under the target device organization. A 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 an embodiment of the present application, optionally, the above method further includes at least one of the following:
[0081] generating an organization code of the target device according to the organization information of the target device organization to which the target device belongs carried in the device sharing information;
[0082] Generate the industry code of the target device according to the industry comparison information;
[0083] Generate a type code of the target device according to the type information carried by the device sharing information;
[0084] Generate a network code of the target device according to the network type information carried in the device sharing information;
[0085] Generate a serial number code of the target device according to 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, wherein the automatic encoding algorithm includes at least one of the above items. This automatic encoding algorithm can be completely implemented locally by the signaling gateway, without relying on a central server, and is decentralized, flexible, and autonomous, making it more adaptable to the needs of actual scenarios.
[0087] The device sharing information sent by the cloud platform to the signaling gateway may include the target device's organization information, device name, and device serial number. Based on this information, the target device organization's local national standard code (i.e., 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] The industry code can be generated based on the industry reference information pre-set in the signaling gateway.
[0089] The type code may be generated according to the type of the target device, such as the type code being 131.
[0090] The network type code can be generated according to the network type of the target device. For example, if the network type of the target device is a social resource access network, the network type code is 8.
[0091] In the embodiment of the present application, optionally, after generating the device code of the target device, the method further includes:
[0092] Determine whether the device code of the target device exists;
[0093] If the device code of the target device does not exist, return to the step of generating the device code of the target device.
[0094] In the embodiment of the present application, optionally, generating the device code of the target device according to at least one of the organization code, industry code, type code, network code, and serial number code of the target device includes one of the following:
[0095] If the length of the organization code is greater than a preset length, generating a device code of the target device according to 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, generating a device code of the target device according to the organization code, the industry code, the type code, the network code, and the serial number code;
[0097] When the length of the organization code is less than the preset length, the organization code is updated to the preset length to obtain an updated organization code, and the device code of the target device is generated based on the updated organization code, the industry code, the type code, the network code and the serial number code.
[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 a four-level administrative region, namely province-prefecture-city-county-township, while a 10-digit code can correspond to a five-level administrative region, namely province-prefecture-city-county-township-village (street). The five-level code can more specifically indicate the location of the organization.
[0099] The preset 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 length of the organization code is equal to 8 bits, the device code is generated according to 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 the embodiment of this application. Figure 2 As shown, the length of the device code of the embodiment of the present application is 20 bits, including organization code, industry code, type code, network code and serial number code, wherein the length of the organization code is 8 bits, the length of the industry code is 2 bits, the length of the type code is 3 bits, the length of the network code is 1 bit, and the length of the serial number code is 6 bits.
[0101] When the length of the organization code is less than 8 bits, first update the organization code to 8 bits to obtain the updated organization code. Here, 0 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 is explained:
[0103] Step 1: Find the device code corresponding to the largest serial number code of the current device under the target device organization, and obtain the last 6 digits of the device code as the initial serial number code seq. If there is no device code under the target device organization, set the initial serial number code seq to 000000.
[0104] Step 2: Generate the first 14 digits of the target device code.
[0105] Step 3: Add 1 to the initial serial number as the serial number of the target device.
[0106] Step 4: Generate the device code of the target device based on the first 14-digit code and the serial number code;
[0107] Step 5: Determine whether the target device's device code exists. If not, the code is assigned successfully. If not, return to step 2 to regenerate the first 14 digits of the code. The overall serial code format of the target device's device code is as follows: 33110000101317000001.
[0108] In the embodiment of the present application, optionally, sending the device information to the upper platform according to the device code includes:
[0109] Acquire device information according to the device code, the device name of the target device carried in the device sharing information, and the organization information of the target device organization;
[0110] Send the device information to the superior platform.
[0111] After the signaling gateway completes the device code generation, it saves the device code to the local database of the signaling gateway, and then generates device information according to the NOTIFY information format. The device information includes the device code, device name, organization information, and device status, and then pushes the device information to the upper-level platform. At this point, the device is automatically pushed without the need for platform participation.
[0112] Please refer to Figure 3 , an embodiment of the present application also provides a device automatic push method, which is applied to a cloud platform.
[0113] Furthermore, the above method includes:
[0114] Step 301: Obtain first subscription information sent by a signaling gateway, where the first subscription information is used to subscribe to device sharing information under the cloud platform and carries a uniform resource locator (URL) address used by the signaling gateway to receive information;
[0115] Step 302: When 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 via the URL address.
[0116] In the embodiment of the present 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 further carries the organization information of the target device organization;
[0117] In the case of acquiring the device sharing information of the target device sent by the terminal, the above method further includes:
[0118] Add the target device to the target device organization.
[0119] It should be noted that the cloud platform of the embodiment of the present application can also execute the method executed by the cloud platform in the embodiment of the above-mentioned device automatic push method applied to the signaling gateway, which will not be repeated here.
[0120] Figure 4 This is a flow chart of one embodiment of the method for automatically pushing messages to a device according to an embodiment of the present application. Figure 4 As shown, the method includes:
[0121] Step 401: The signaling gateway sends 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 upper-level platform.
[0124] Step 404: The upper-level platform sends a registration confirmation message 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 the device sharing information to the signaling gateway.
[0129] Step 409: The signaling gateway generates a device code according to the automatic coding algorithm and the 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 device automatic push method described in the embodiment of the present application is adopted. When the signaling gateway is started, the device subscription with the cloud platform is first completed, and a URL path that can accept device sharing information is provided; secondly, the upper-level platform must complete the organization directory subscription with the signaling gateway; when the user shares the device, the cloud platform pushes the information to the signaling gateway through the URL path, and the signaling gateway completes the device coding calculation and synthesis of the device according to the automatic coding algorithm; finally, the signaling gateway pushes the newly added device to the upper-level platform through the NOTIFY information through the organization subscription notification mechanism with the upper-level platform, completing the automatic coding and push of the device. In this way, the problem of pushing new devices to the upper-level platform is solved, the entire push process is automatically completed, the operation is simplified, a lot of manpower investment is saved, and the timeliness of the point push is improved, which greatly improves the push efficiency. Moreover, the automatic coding algorithm can reduce the errors of manual coding and avoid repeated push.
[0133] Please refer to Figure 5 , the embodiment of the present application further provides an automatic device pushing device, comprising:
[0134] A first sending module 501 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 on the cloud platform and carries a uniform resource locator (URL) path used by the signaling gateway to receive information.
[0135] A first generating module 502 is configured to generate a 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 configured to send the device information of the target device to a higher-level platform according to the device code.
[0137] Optionally, the automatic device pushing device further comprises:
[0138] The second acquisition module is used to obtain second subscription information sent by the upper-level platform when the signaling gateway completes registration with the upper-level platform, where the second subscription information is used to subscribe to device information under the signaling gateway.
[0139] Optionally, in the automatic device pushing apparatus, the first generating module 502 includes:
[0140] A generating unit is used to generate a device code of the target device according to 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 comprises at least one of the following:
[0142] a second generating module, configured to generate an organization code of the target device according to the organization information of the target device organization to which the target device belongs carried in the device sharing information;
[0143] A third generating module is used to generate an industry code of the target device according to the industry comparison information;
[0144] A fourth generating module, configured to generate a type code of the target device according to the type information carried by the device sharing information;
[0145] A fifth generating module, configured to generate a network code of the target device according to the network type information carried by the device sharing information;
[0146] The sixth generating module is configured to generate a serial number code of the target device according to the maximum device code under the target device organization.
[0147] Optionally, in the automatic device pushing apparatus, 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, generating a device code of the target device according to 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, generating a device code of the target device according to the organization code, the industry code, the type code, the network code, and the serial number code;
[0150] When the length of the organization code is less than the preset length, the organization code is updated to the preset length to obtain an updated organization code, and the device code of the target device is generated based on the updated organization code, the industry code, the type code, the network code and the serial number code.
[0151] Optionally, in the automatic device pushing apparatus, the second sending module 503 is specifically configured to:
[0152] Acquire device information according to the device code, the device name of the target device carried in the device sharing information, and the organization information of the target device organization;
[0153] Send the device information to the superior platform.
[0154] It should be noted that the above-mentioned device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned device automatic push method embodiment applied to the signaling gateway, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0155] Please refer to Figure 6 , the embodiment of the present application further provides an automatic device pushing device, comprising:
[0156] A first acquisition module 601 is configured to acquire first subscription information sent by a signaling gateway, where the first subscription information is used to subscribe to device sharing information on the cloud platform and carries a uniform resource locator (URL) address used by the signaling gateway to receive information.
[0157] The third sending module 602 is configured to send the device sharing information of the target device to the signaling gateway via the URL address when the device sharing information of the target device sent by the terminal is acquired.
[0158] Optionally, in the device automatic push apparatus, the first subscription information is used to subscribe to device sharing information under a target device organization of the cloud platform, and the first subscription information further carries organization information of the target device organization;
[0159] The method further comprises:
[0160] An adding module is used to add the target device to the target device organization.
[0161] It should be noted that the above-mentioned device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned device automatic push method embodiment applied to the cloud platform, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0162] The present application also provides an electronic device, such as Figure 7 Shown, including:
[0163] Processor 701, memory 702, transceiver 703 and programs or instructions stored on the memory 702 and executable on the processor 701; when the processor 701 executes the programs or instructions, each process of the embodiment of the above-mentioned device automatic push method is implemented, and the same technical effect can be achieved. To avoid repetition, they will not be described here.
[0164] The transceiver 703 is configured to receive and send data under the control of the processor 701 .
[0165] Among them, Figure 7In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically various circuits of one or more processors represented by processor 701 and memory represented by memory 702, which are linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 703 may be a plurality of components, i.e., a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. For different user devices, the user interface 704 may also be an interface capable of connecting external or internal devices as required, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, etc.
[0166] The processor 701 is responsible for managing the bus architecture and general processing, and the memory 702 can store data used by the processor 701 when performing operations.
[0167] The present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the various processes of the above-mentioned device automatic push method embodiment are implemented, and the same technical effects are achieved. To avoid repetition, the details are not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0168] An embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed by a processor, the various processes of the above-mentioned device automatic push method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.
[0169] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0170] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course 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 the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) to execute the methods described in each embodiment of the present application.
[0171] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A device automatic push method, characterized in that: Applied to a signaling gateway, the method includes: When the signaling gateway is started, first subscription information is sent to the cloud platform, where the first subscription information is used to subscribe to device sharing information on the cloud platform and carries a uniform resource locator (URL) path used by the signaling gateway to receive information; When the device sharing information of the target device sent by the cloud platform is obtained through the URL path, a device code of the target device is generated; According to the device code, the device information of the target device is sent to the upper platform.
2. The device automatic push 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, second subscription information sent by the upper-level platform is obtained, where the second subscription information is used to subscribe to device information under the signaling gateway.
3. The device automatic push method according to claim 1, characterized in that: Generating a device code of the target device includes: Generate a device code of the target device according to at least one of the organization code, industry code, type code, network code and serial number code of the target device.
4. The device automatic push method according to claim 3, characterized in that: The method further comprises at least one of the following: generating an organization code of the target device according to the organization information of the target device organization to which the target device belongs carried in the device sharing information; Generate the industry code of the target device according to the industry comparison information; Generate a type code of the target device according to the type information carried by the device sharing information; Generate a network code of the target device according to the network type information carried in the device sharing information; Generate a serial number code of the target device according to the maximum device code under the target device organization.
5. The device automatic push method according to any one of claims 3 or 4, characterized in that: Generating a device code of the target device according to at least one of the organization code, industry code, type code, network code, and serial number code of the target device includes one of the following: If the length of the organization code is greater than a preset length, generating a device code of the target device according to 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, generating a device code of the target device according to the organization code, the industry code, the type code, the network code, and the serial number code; When the length of the organization code is less than the preset length, the organization code is updated to the preset length to obtain an updated organization code, and the device code of the target device is generated based on the updated organization code, the industry code, the type code, the network code and the serial number code.
6. The device automatic push method according to claim 1, characterized in that: According to the device code, the device information is sent to the upper platform, including: Acquire device information according to the device code, the device name of the target device carried in the device sharing information, and the organization information of the target device organization; Send the device information to the superior platform.
7. A device automatic push method, characterized in that: Applied to a cloud platform, the method includes: Obtaining first subscription information sent by a signaling gateway, where the first subscription information is used to subscribe to device sharing information under the cloud platform and carries a uniform resource locator (URL) address used by the signaling gateway to receive information; In the case of acquiring 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.
8. The device automatic push method according to claim 7, 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; In the case of acquiring the device sharing information of the target device sent by the terminal, the method further includes: Add the target device to the target device organization.
9. An automatic pushing device for equipment, characterized in that: include: A first sending module is configured to send first subscription information to the cloud platform when the signaling gateway is started, where the first subscription information is used to subscribe to device sharing information on the cloud platform and carries a uniform resource locator (URL) path used by the signaling gateway to receive information; A first generating module is configured to generate a 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; The second sending module is used to send the device information of the target device to the upper platform according to the device code.
10. An automatic pushing device for equipment, characterized in that: include: A first acquisition module is configured to acquire first subscription information sent by a signaling gateway, where the first subscription information is used to subscribe to device sharing information on a cloud platform and carries a uniform resource locator (URL) address used by the signaling gateway to receive information; The third sending module is configured to send the device sharing information of the target device to the signaling gateway via the URL address when the device sharing information of the target device sent by the terminal is acquired.
11. An electronic device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein when the processor executes the program or instruction, the method for automatically pushing a device as described in any one of claims 1 to 6 is implemented, or the method for automatically pushing a device as described in any one of claims 7 to 8 is implemented.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for automatically pushing a device according to any one of claims 1 to 6 is implemented, or the method for automatically pushing a device according to any one of claims 7 to 8 is implemented.
13. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implements the device automatic push method according to any one of claims 1 to 6, or implements the device automatic push method according to any one of claims 7 to 8.
Citation Information
Patent Citations
Inter-domain directory sharing method and device
CN106953905A
Lightweight internet video gateway secure access system and method
CN107911362A
National standard-based provincial scheduling system, method and equipment and storage medium
CN116156191A
Internet of Things equipment management method and system
CN118264555A