CN114205329A - Equipment coding method and device - Google Patents

Equipment coding method and device Download PDF

Info

Publication number
CN114205329A
CN114205329A CN202111352655.1A CN202111352655A CN114205329A CN 114205329 A CN114205329 A CN 114205329A CN 202111352655 A CN202111352655 A CN 202111352655A CN 114205329 A CN114205329 A CN 114205329A
Authority
CN
China
Prior art keywords
monitoring
national standard
organization
target
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111352655.1A
Other languages
Chinese (zh)
Inventor
赵斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Huacheng Software Technology Co Ltd
Original Assignee
Hangzhou Huacheng Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Huacheng Software Technology Co Ltd filed Critical Hangzhou Huacheng Software Technology Co Ltd
Priority to CN202111352655.1A priority Critical patent/CN114205329A/en
Publication of CN114205329A publication Critical patent/CN114205329A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to the technical field of computers, and provides a device coding method and a device, wherein the device coding method is used for improving the efficiency of generating national standard codes of monitoring devices. The device coding method comprises the following steps: the access platform generates a first national standard code of the monitoring equipment according to first position information corresponding to a first organization to which the monitoring equipment belongs, target equipment type information corresponding to the monitoring equipment and a preset rule, and sends the first national standard code to the supervision platform.

Description

Equipment coding method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a device encoding method and apparatus.
Background
In national standard 28181, it is specified that the monitoring device needs to be encoded according to the national standard rule to form the national standard code of the device, and the subsequent supervision platform can manage the monitoring device by using the national standard code of the monitoring device. The national standard code is composed of four code segments of central code, industry code, type code and serial number code. Therefore, the national standard code of the monitoring equipment needs to be generated before the monitoring equipment is in butt joint with the supervision platform.
At present, before monitoring equipment reports national standard codes to a supervision platform, firstly, the monitoring equipment needs to be configured with a communication module supporting the national standard cascade protocol, secondly, the monitoring equipment needs to be manually configured with Chinese codes, and then the Chinese codes can be converted into the national standard codes by the monitoring equipment, and then the national standard codes are sent to the supervision platform through the communication module. However, in this method, on one hand, the monitoring device needs to be modified, which requires a lot of time, and on the other hand, the manual configuration of the chinese code also requires a lot of time, which results in a low efficiency of the method for generating the national standard code.
Disclosure of Invention
The embodiment of the application provides a device coding method and device, which are used for improving the efficiency of generating national standard codes.
In a first aspect, a device encoding method is provided, which is applied to an access platform, and the method includes: determining first position information corresponding to a first organization to which monitoring equipment belongs, wherein the first position information is used for indicating the position of the first organization; determining target equipment type information corresponding to the monitoring equipment, wherein the target equipment type information is used for representing the equipment type of the monitoring equipment; generating a first national standard code of the monitoring equipment according to the first position information, the type information of the target equipment and a preset rule; and sending the first national standard code to a supervision platform.
In this application embodiment, compared with a mode in which a national standard code is manually entered into a monitoring device in the prior art, the access platform in this application embodiment can automatically generate the first national standard code of the monitoring device based on the first location information of the first organization where the monitoring device is located, the target device type information corresponding to the monitoring device, and the preset rule, and can relatively improve the efficiency and accuracy of generating the national standard code. Moreover, the international code of the monitoring equipment under a plurality of organizations can be generated through the access platform, and a mechanism and a platform for uniformly generating the international code for a plurality of equipment are provided. In addition, the monitoring equipment does not need to be modified in the embodiment of the application, and the cost of the monitoring equipment is relatively reduced.
In a possible embodiment, generating a first national standard code of the monitoring device according to the first location information, the target device type information, and a preset rule includes: determining a national standard coding prefix corresponding to the first position information; determining a type code corresponding to the type information of the target equipment; determining a target order in which to add the monitoring device in the first organization; generating a serial number code of the monitoring equipment according to the preset rule and the target sequence; and sequentially combining the national standard code prefix, the type code and the serial number code to obtain a first national standard code of the monitoring equipment.
In the embodiment of the application, the serial number codes of the monitoring devices can be generated according to the adding sequence of the monitoring devices in the first organization and the preset rule, so that not only can the serial number codes in the national standard codes be generated, but also the number of the devices in the first organization can be indirectly recorded. And the access platform combines the national standard code prefix, the type code and the serial number code in sequence to generate the national standard code of the monitoring equipment, and the mode of generating the national standard code of the monitoring equipment is simple and direct.
In one possible embodiment, the access platform includes a cache; determining an order of adding the monitoring devices in the first organization, comprising: reading a historical order recorded in the cache, wherein the historical order is used for representing the adding order of other monitoring devices added in the first organization, and the other monitoring devices are monitoring devices except the monitoring device; determining a target sequence of the monitoring equipment according to the historical sequence; updating the historical order to the target order record in the cache.
In the embodiment of the application, the access platform can record the historical sequence of the monitoring equipment added in the first organization in the cache, and further can determine the adding sequence of the monitoring equipment according to the historical sequence, so that the mode of determining the adding sequence of the monitoring equipment is simpler and faster, and the mode of determining the national standard codes of the monitoring equipment is simpler.
In one possible embodiment, the access platform includes a plurality of registration interfaces, wherein any two registration interfaces are used for supporting two different data transmission protocols; the method further comprises the following steps: determining a target registration interface corresponding to a data transmission protocol supported by the monitoring equipment from the plurality of registration interfaces; receiving monitoring data sent by the monitoring equipment through the target registration interface; and associating the monitoring data with the first national standard code and sending the monitoring data to the supervision platform.
In the embodiment of the application, the access platform can be configured with a plurality of registration interfaces, each registration interface supports one data transmission protocol, so that a plurality of types of monitoring equipment can communicate with the access platform to generate national standard codes and report monitoring data and the like through the access platform, and thus, a specific registration protocol does not need to be arranged or installed in the monitoring equipment, and the cost of the monitoring equipment is reduced.
In a possible embodiment, after generating the first national standard code of the monitoring device according to the first location information, the target device type information, and a preset rule, the method further includes: acquiring a change request, wherein the change request is used for requesting to change first position information corresponding to the monitoring equipment into second position information, the change request comprises the second position information, the second position information is used for representing the position of a second organization, and the second organization is the same as or different from the first organization; changing the first national standard code of the monitoring equipment into a second national standard code according to the second position information; and sending the second national standard code to the supervision platform.
In the embodiment of the application, when the location of the first organization changes or the monitoring device changes from the first organization to the second organization, the user may trigger a change request on the access platform or other devices, and after the access platform obtains the change request, the access platform may further generate the second national standard code of the monitoring device according to the second location information in the change request, thereby implementing flexible change of the national standard code of the monitoring device.
In a second aspect, an embodiment of the present application provides an apparatus encoding device, including: the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining first position information corresponding to a first organization to which monitoring equipment belongs, the first position information is used for indicating the position of the first organization, and determining target equipment type information corresponding to the monitoring equipment, and the target equipment type information is used for indicating the equipment type to which the monitoring equipment belongs; the generating module is used for generating a first national standard code of the monitoring equipment according to the first position information, the type information of the target equipment and a preset rule; and the transceiver module is used for sending the first national standard code to a supervision platform.
In a possible embodiment, the generating module is specifically configured to: determining a national standard coding prefix corresponding to the first position information; determining a type code corresponding to the type information of the target equipment; determining a target order in which to add the monitoring device in the first organization; generating a serial number code of the monitoring equipment according to the preset rule and the target sequence; and sequentially combining the national standard code prefix, the type code and the serial number code to obtain a first national standard code of the monitoring equipment.
In one possible embodiment, the apparatus includes a cache; the generation module is specifically configured to: reading a historical order recorded in the cache, wherein the historical order is used for representing the adding order of other monitoring devices added in the first organization, and the other monitoring devices are monitoring devices except the monitoring device; determining a target sequence of the monitoring equipment according to the historical sequence; updating the historical order to the target order record in the cache.
In one possible embodiment, the access platform includes a plurality of registration interfaces, wherein any two registration interfaces are used for supporting two different data transmission protocols; the determining module is further configured to determine, from the multiple registration interfaces, a target registration interface corresponding to a data transmission protocol supported by the monitoring device; the transceiver module is further configured to receive, through the target registration interface, monitoring data sent by the monitoring device, and associate the monitoring data with the first national standard code and send the association to the monitoring platform.
In a possible embodiment, the transceiver module is further configured to obtain a change request after generating a first national standard code of the monitoring device according to the first location information, the target device type information, and a preset rule, where the change request is used to request that a first location information corresponding to the monitoring device be changed into a second location information, the change request includes the second location information, the second location information is used to indicate a location of a second organization, and the second organization is the same as or different from the first organization; the generating module is further configured to change the first national standard code of the monitoring device into a second national standard code according to the second position information; and the transceiver module is also used for sending the second national standard code to the supervision platform.
In a third aspect, a device encoding apparatus is provided, including: at least one processor, and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method as described in any one of the first aspect and any one of the embodiments by executing the instructions stored by the memory.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon computer instructions which, when run on a computer, cause the computer to perform the method of any of the embodiments of the first aspect and any.
With regard to the advantageous effects of the second aspect to the fourth aspect, reference may be made to the advantageous effects discussed in the first aspect, which are not described in detail herein.
Drawings
Fig. 1 is a schematic view of an application scenario to which the device encoding method provided in the embodiment of the present application is applied;
fig. 2 is a schematic deployment diagram of the devices in fig. 1 according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an apparatus encoding method according to an embodiment of the present application;
fig. 4 is another schematic flow chart of an apparatus encoding method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus encoding device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an apparatus encoding device according to an embodiment of the present application.
Detailed Description
In order to better understand the technical solutions provided by the embodiments of the present application, the following detailed description is made with reference to the drawings and specific embodiments.
In order to better solve the technical problems in the embodiments of the present application, those skilled in the art will briefly describe the technical terms related to the embodiments of the present application.
1. The national standard code in the embodiment of the application comprises 20 decimal digits consisting of four segments, namely a central code (8 digits), an industry code (2 digits), a type code (3 digits) and a serial number (7 digits). The center code refers to the code of the monitoring center to which the user or the equipment belongs. The industry code refers to the industry to which the user or the equipment belongs, such as sanitary environment protection access, education department access and the like. The type code specifies a specific type of device or user, such as a front-end host device, such as video server code, and a front-end peripheral device, such as display code. The sequence number may include a sequence number of the device. Optionally, the sequence number may further include a network identifier of the monitoring device, where the network identifier generally includes 1 bit, and is used to indicate which network the monitoring device belongs to, for example, a monitoring alarm private network, a social resource access network, and the like.
2. The monitoring device in the embodiment of the application: the present invention relates to a system for monitoring, and more particularly, to a system for monitoring and controlling a video camera.
3. The supervision platform in the embodiment of the application refers to a unified platform for supervising each monitoring device. In general, the regulatory platform supports a national standard cascade protocol.
4. The organization in the embodiment of the present application refers to a mechanism having a monitoring device, and the form of the organization may be a business, an enterprise, or the like, which is not limited in the embodiment of the present application.
In order to improve the efficiency of generating national standard codes of equipment, the embodiment of the application provides an equipment coding method and device. In the embodiment of the application, the access platform can generate the national standard code according to the position information of the organization to which the monitoring equipment belongs, the type of the monitoring equipment and the like, so that the national standard code does not need to be manually configured for the monitoring equipment, and the efficiency of generating the national standard code is improved. In addition, the monitoring equipment does not need to support the international cascade protocol, and the monitoring equipment does not need to be modified, so that the cost for generating the monitoring equipment can be reduced.
The access platform may be implemented by a device having computing and communication functions, or a system having computing and communication functions and composed of a plurality of devices, for example, the access platform may be implemented by a cloud platform, the cloud platform may be implemented by one or more servers, or may be implemented by a server and a display. The server may be a virtual server or an entity server, which is not limited in this embodiment of the present application.
The following describes an example deployment of an access platform with reference to an architecture diagram of a device coding system shown in fig. 1. Alternatively, fig. 1 may be understood as an application scenario diagram to which the device encoding method provided in the embodiment of the present application is applicable.
The system architecture as shown in fig. 1 includes monitoring devices (specifically, the video recorder 111, the camera 112, the video server 113 in fig. 1), an access platform 120, and a surveillance platform 130. The access platform 120 may communicate with the monitoring device and the administration platform 130, respectively. For specific implementation forms of the monitoring device and the access platform 120, reference may be made to the foregoing description, and details are not described here. The monitoring platform 130 may also be implemented by a device with computing and communication functions, or a system with computing and communication functions formed by multiple devices, which is not limited in this embodiment of the present application. The functions of the various parts of fig. 1 are briefly described below.
The access platform 120 may be configured to manage a perfect organization structure, and generate a national standard code for the monitoring device, for example, the national standard code of the device may be automatically generated by setting information of provincial and urban areas, basic level units, industries, and the like for an organization.
The access platform 120 is also used to synchronize organization, equipment, national code, etc. data in the access platform 120 to the administration platform 130 via a national cascade protocol. For example, the monitoring device may access the access platform 120 and send monitoring data to the access platform 120. The access platform 120 sends the monitoring data to the administration platform 130 via an international cascade protocol.
The administration platform 130 is used to display the organization, equipment, national standard code, etc. data synchronized by the access platform 120 for use by the social resource management department.
To more clearly illustrate the various components of fig. 1, an example is presented below in conjunction with a deployment diagram of the various devices shown in fig. 2.
Fig. 2 includes a camera 112 (as an example of a monitoring device), an access platform 120 (in fig. 2, a cloud platform is implemented as an example), and a supervisory platform 130 (in fig. 2, a cloud platform is implemented as an example).
In addition, fig. 2 also includes a terminal device 200. Note that fig. 1 does not relate to a terminal device. The terminal device 200 may communicate with the access platform 120.
Illustratively, an application may be run in the terminal device 200, and the application is a front-end application corresponding to the access platform 120. The application may be an application pre-installed in the terminal device 200, an applet embedded in a third-party application, or a web page. The terminal device 200 may generate a corresponding request in response to an operation performed by the user in the application, and the access platform 120 receives the request and processes the request.
The following describes a device encoding method performed by the access platform shown in fig. 1 or fig. 2 in the embodiment of the present application as an example. Referring to fig. 3, a flowchart of an apparatus encoding method according to an embodiment of the present application is shown, where the flowchart specifically includes the following steps.
Step 31, determining first position information corresponding to a first organization to which the monitoring device belongs.
In a first mode, the access platform prestores respective location information of at least one organization, determines a first organization corresponding to the monitoring device, and determines the location information of the first organization as first location information corresponding to the monitoring device.
For example, the access platform creates an account for an organization in response to a create operation performed by a user. And the access platform acquires the position information of the organization according to the input operation performed by the user. Wherein the location information is used to indicate the location of a tissue. The location may be an administrative location, for example, the location information of the first business is: province A (33), city B (01), district C (08), street D (10), school (24). By analogy, the access platform may obtain respective location information of at least one organization, i.e., at least one organization information.
Further, the access platform may determine a first organization corresponding to the first device, thereby determining first location information corresponding to the first organization. For example, a user manually performs an adding operation in a first organization, where the adding operation is used to request that a monitoring device be added to the first organization, and the access platform determines that the monitoring device belongs to the first organization according to the adding operation, and further determines first location information corresponding to the first organization from at least one piece of location information. The first location information is indicative of a location at which the first tissue is located. Adding a monitoring device to a first organization may be understood as establishing an association between the first organization and the monitoring device in the access platform. Adding a monitoring device to a first organization may be understood as establishing an association between the first organization and the monitoring device in the access platform.
As an embodiment, the access platform may store and obtain at least one location information in an organization table form, and a national standard coding prefix corresponding to each location information. The national standard coding prefix comprises central coding and industry coding. Optionally, the organization table may further include an identification of the organization, which is expressed, for example, by a name of the organization.
For example, please refer to the organization table shown in table 1 below.
TABLE 1 organizational chart
Identification of tissue Location information of tissue National standard coding prefix for organizations
First enterprise School of D streets in C district of city B of province A 3301081024
The second enterprise D street shop in A province, B city, C district and D district 3301081023
Referring to table 1 above, the corresponding location information of the first enterprise is: province A, city B, district C, and district D, street school; the corresponding location information of the second enterprise is: street shop in district C of city B of province A.
In a second mode, the access platform determines that the monitoring device belongs to the first organization in response to an adding operation of adding the monitoring device to the first organization, and determines the first position information in response to an input operation of the position information of the first organization.
In this embodiment of the present application, the access platform may pre-establish at least one organization, and when the user performs an add operation, the access platform determines that the monitoring device belongs to the first organization. And the access equipment determines the first position information according to the position information of the first organization input by the user. The input operation is, for example, a selection operation of the position information by the user.
And step 32, determining the type information of the target equipment corresponding to the monitoring equipment.
The access platform can also be preconfigured with at least one device type information, and one device type information corresponds to one type of monitoring device. For example, the at least one device type information is used to indicate that the type of the monitoring device includes a camera type or a camera server type. The access platform can determine target equipment information to which the monitoring equipment belongs from at least one piece of equipment type information according to the equipment type corresponding to the monitoring equipment. For example, the access platform may determine target device information to which the monitoring device belongs according to a selection operation of the user on one of the at least one device type information.
Optionally, the access platform may further pre-store at least one device type information and a type code corresponding to each at least one device type information, and for simplifying description, the at least one device type information and the type code corresponding to each at least one device type information are referred to as a first corresponding relationship hereinafter.
For example, please refer to an example of the first correspondence shown in table 2 below.
TABLE 2 type coding
Device type information Type coding
Camera type 131
Camera server type 133
Referring to table 2, at least one piece of device type information pre-stored in the access platform is used to indicate a camera type and a camera server type, where a type code corresponding to the camera type is 131, and a type code corresponding to the camera server type is 133.
And step 33, generating a first national standard code of the monitoring device according to the first position information, the type information of the target device and a preset rule. The manner of generating the first national standard code is as follows.
Step 1.1, a target order for adding the monitoring device in the first organization is determined. The target order may be understood as the order in which the monitoring devices are added in the first organization.
Specifically, after adding other monitoring devices in the first organization, the access platform may record the historical order of the other monitoring devices in the cache. Other monitoring devices refer to monitoring devices other than monitoring devices. Therefore, when the access platform needs to determine the target sequence of the monitoring equipment, the target sequence of the monitoring equipment can be determined according to the historical sequence. When the historical order is cached, the access platform can cache the historical orders of a plurality of organizations, so that the order of the monitoring equipment under any organization can be determined subsequently.
Illustratively, the historical order includes the respective order of the other monitoring devices that have been added in the first organization, or includes the maximum value of the order corresponding to the other monitoring devices added in the first organization. The access platform records a historical order of 1, 2, 3 and 4, or records a historical order of 4, which all indicate that 4 monitoring devices have been accessed in the first organization. For example, the access platform records a historical order of 1, 2, 3, and 4, then the access platform determines that the monitoring device has a target order of 5.
As one example, the form of caching may take the form of Redis. Redis may record the historical order. Redis belongs to a key-value store. Redis can store a database of data by key value pairs, and the key value database has the advantages of high query speed, large data storage amount, high support for concurrency and the like.
It should be noted that if the first organization does not add any other monitoring devices before adding a monitoring device to the first organization, the history order of the cache records is empty or a default value, such as 0.
And 1.2, generating a serial number code of the monitoring equipment according to a preset rule and a target sequence.
After the access platform determines the target sequence of the monitoring device, the access platform can encode the target sequence according to a preset rule, so as to obtain the serial number code of the monitoring device. For example, the predetermined rule encodes sequence numbers whose target order is made to satisfy a predetermined number of bits. Taking the preset number of bits as 7 bits and the target sequence as 5 as an example, the access platform determines that the serial number code of the monitoring device is "0000005".
In one possible embodiment, the historical order in the cache encodes serial numbers corresponding to other monitoring devices. In this embodiment, the access platform may obtain the serial number code of the monitoring device according to a preset rule and the serial number codes corresponding to other monitoring devices. For example, a history sequence of "0000004" is recorded in the cache, the preset rule is to increment the history sequence, and the access platform may increment the history sequence, so as to obtain a serial number of the monitoring device, which is encoded as "0000005".
In a possible embodiment, the access platform may further determine a network identifier corresponding to the monitoring device. For example, the access platform may determine a type of a first organization, and thus determine a network identifier corresponding to the monitoring device, for example, the first organization belongs to a private enterprise, and the access platform determines that the network identifier of the monitoring device corresponds to a social resource access network. Further, the access platform encodes the network identifier and the target sequence according to a preset rule to obtain a serial number code of the monitoring device. For example, the predetermined rule is a serial number code that is made to satisfy a predetermined number of bits according to the network identifier and the target sequence.
And step 1.3, determining the national standard coding prefix corresponding to the first position information.
For example, after obtaining the first location information, the access platform may determine the national standard code prefix according to the organization table described above. Or, the access platform prestores a first coding rule, and can code the first location information according to the first coding rule, so as to obtain the international coding prefix. The first encoding rule refers to a general rule for encoding the position information. For example, referring to table 1, the access platform determines that the location information of the first enterprise is street school, i.e., district D, city B, province a, so as to determine that the international code prefix corresponding to the location information of the first enterprise is 3301081024.
And step 1.4, determining the type code corresponding to the type information of the target equipment.
For example, the access platform may determine the type code corresponding to the monitoring device according to the type information of the target device. Or, the access platform prestores a second coding rule, and can code the type information of the target device according to the second coding rule, so as to obtain the type code corresponding to the monitoring device. The second encoding rule refers to a general rule for encoding device type information.
And step 1.5, sequentially combining the national standard code prefix, the type code and the serial number code to obtain a first national standard code of the monitoring equipment.
After the access platform obtains the national standard code prefix, the type code and the serial number code, the national standard code prefix, the type code and the serial number code can be combined in sequence, so that the first national standard code is obtained.
And step 34, sending the first national standard code to a supervision platform.
The access platform can send the first national standard code to the supervision platform, so that the supervision platform can manage the monitoring equipment according to the first national standard code of the monitoring equipment.
Optionally, the access platform may be preconfigured with multiple registration interfaces, where any two registration interfaces are used to support two different data transmission protocols. Therefore, the monitoring equipment supporting different data transmission protocols can communicate with the access platform through corresponding registration interfaces in various registration interfaces.
Specifically, the access platform may determine the data transmission protocol supported by the monitoring device, for example, the access platform may determine the data transmission protocol supported by the monitoring device according to configuration operation of a user. Or, for example, the monitoring device may broadcast its own device information including the data transmission protocols supported by the monitoring device. Further, the access platform may determine a target registration interface corresponding to the monitoring device from the plurality of registration interfaces, so as to communicate with the monitoring device through the target registration interface.
For example, the access platform may receive monitoring data of the monitoring device through the target registration interface, where the monitoring data is, for example, a monitoring video stream, or a captured monitoring image. And the access platform associates the monitoring data with the first national standard code and sends the monitoring data to the supervision platform so that the supervision platform calls the monitoring data of the monitoring equipment.
Optionally, the access platform may further send the monitoring data, the first national standard code, the first location information, and the like to the monitoring platform, so that the monitoring platform verifies the first national standard code, and the like.
Optionally, the plurality of registration interfaces includes a first registration interface for supporting international tandem protocol, such that the access platform may subsequently communicate with the administration platform via the first registration interface, e.g., the access platform associates the monitoring data with a first national standard code and sends the monitoring data to the administration platform via the first registration interface.
The first organization to which the monitoring device belongs may be changed, for example, the monitoring device originally belongs to enterprise a, and the subsequent enterprise a sells the monitoring device to enterprise B, or the location information of the first organization to which the monitoring device belongs itself is changed, for example, the monitoring device originally belongs to enterprise a, and the subsequent enterprise a is changed in the registration place. In any case, the first position information corresponding to the monitoring device is changed, and in this case, the access platform may change the first national standard code of the monitoring device according to the second position information. The second location information may be understood as location information of the second tissue. The second tissue may or may not be the same as the first tissue.
Specifically, for example, the user performs a change operation in the access platform, and the access platform generates a change request in response to the change operation. Or for example, the user initiates a change request through the terminal device, the terminal device sends the change request to the access platform, and the access platform receives the change request. The change request is used for requesting to change the first position information corresponding to the monitoring equipment into the second position information. The change request also includes second location information. And the access platform generates a new national standard code prefix according to the second position information, and generates a second national standard code of the monitoring equipment according to the new national standard code prefix, the type code and the serial number code, wherein the second national standard code is equivalent to the updated national standard code of the monitoring equipment.
Further, if the second organization is different from the first organization, the access platform may further generate a new serial number code of the monitoring device according to a historical order corresponding to the second organization, and further generate the second national standard code according to the new national standard code prefix, the type code, and the new serial number code.
It should be noted that, in the embodiment shown in fig. 3, at least one organization includes the first organization, and the international code of the monitoring device in the first organization is taken as an example for description, and the international code of the monitoring device in an organization other than the first organization may be actually generated by referring to the foregoing process, which is not listed here.
In order to more clearly illustrate the above embodiments, the device encoding method according to the embodiments of the present application is illustrated below by way of example. Fig. 4 is a flowchart illustrating an apparatus encoding method according to an embodiment of the present application.
Step 41, responding to the creation operation of the user, creating at least one organization in the access platform, and obtaining the position information of each organization in the at least one organization.
The access platform newly builds at least one organization in the access platform according to the creation operation of the user, and determines the respective position information of the at least one organization according to the creation operation of the user.
Optionally, in response to information such as province and city, basic level unit, industry, and the like of an organization selected in the international coding module of the access platform, the international coding prefix corresponding to each organization is determined according to the international convention and stored in the organization table. Of course, an organization may include multiple branches, and similarly, the access platform may generate national standard code prefixes for each branch.
In response to the user's add operation, the monitoring device is added to a first organization of the at least one organization, step 42.
Alternatively, the access platform may add various monitoring devices registered on the access platform to various organizations. Further, each organization may also include multiple affiliates, and the access platform may further add monitoring devices to the affiliates of the corresponding organization.
And 43, responding to the selection operation of the at least one piece of position information, obtaining first position information of the first organization, and responding to the input operation, and obtaining target equipment type information of the monitoring equipment.
The above steps 41 to 43 are examples of obtaining the first location information and the target device type information, but the manner of determining the first location information and the target device type information in the embodiment of the present application includes, but is not limited to, this.
And step 44, generating a first national standard code based on the first position information, the target device type information and a preset rule. The manner of generating the first national standard code may refer to the foregoing, and is not described herein again.
Based on the same inventive concept, the present application provides a device encoding apparatus, which is equivalent to or disposed in the access platform in the foregoing. Referring to fig. 5, a schematic structural diagram of an apparatus encoding device is shown, the apparatus encoding device includes: the determining module 501 is configured to determine first location information corresponding to a first organization to which the monitoring device belongs, where the first location information is used to indicate a location of the first organization, and determine target device type information corresponding to the monitoring device, where the target device type information is used to indicate a device type to which the monitoring device belongs; the generating module 502 is configured to generate a first national standard code of the monitoring device according to the first location information, the type information of the target device, and a preset rule; the transceiver module 503 is configured to send the first national standard code to the monitoring platform.
In a possible embodiment, the generating module 502 is specifically configured to: determining a national standard coding prefix corresponding to the first position information; determining a type code corresponding to the type information of the target equipment; determining a target order in which to add the monitoring devices in the first organization; generating a serial number code of the monitoring equipment according to a preset rule and a target sequence; and sequentially combining the national standard code prefix, the type code and the serial number code to obtain a first national standard code of the monitoring equipment.
In one possible embodiment, an apparatus includes a cache; the generating module 502 is specifically configured to: reading a historical sequence recorded in the cache, wherein the historical sequence is used for indicating the adding sequence of other monitoring devices added in the first organization, and the other monitoring devices are monitoring devices except the monitoring devices; determining a target sequence of the monitoring equipment according to the historical sequence; and updating the historical order into the target order and recording the target order in the cache.
In one possible embodiment, the access platform comprises a plurality of registration interfaces, wherein any two registration interfaces are used for supporting two different data transmission protocols; the determining module 501 is further configured to determine, from the multiple registration interfaces, a target registration interface corresponding to a data transmission protocol supported by the monitoring device; and the transceiver module is also used for receiving the monitoring data sent by the monitoring equipment through the target registration interface, and associating the monitoring data with the first national standard code and sending the monitoring data to the supervision platform.
In a possible embodiment, the transceiver module 503 is further configured to, after generating a first national standard code of the monitoring device according to the first location information, the type information of the target device, and a preset rule, obtain a change request, where the change request is used to request that the first location information corresponding to the monitoring device is changed into second location information, the change request includes the second location information, the second location information is used to indicate a location of a second organization, and the second organization is the same as or different from the first organization; the generating module 502 is further configured to change the first national standard code of the monitoring device into the second national standard code according to the second position information; the transceiver module 503 is further configured to send the second national standard code to the monitoring platform.
The apparatus of fig. 5 may implement any of the device coding methods discussed above, which are not listed here.
Based on the same inventive concept, an apparatus encoding device is provided in the embodiments of the present application, and please refer to fig. 6, which is a schematic structural diagram of the apparatus encoding device provided in the embodiments of the present application. The device encoding apparatus includes: at least one processor 601, and a memory 602 communicatively coupled to the at least one processor; wherein the memory 602 stores instructions executable by the at least one processor 601, and the at least one processor 601 implements the device encoding method as described above by executing the instructions stored by the memory 602.
The processor 601 may be a Central Processing Unit (CPU), a digital processing unit, or the like. The specific connection medium between the memory 602 and the processor 601 is not limited in the embodiments of the present application. In the embodiment of the present application, the memory 602 and the processor 601 are connected by a bus 603 in fig. 6, the bus 603 is represented by a thick line in fig. 6, and the connection manner between other components is merely illustrative and is not limited thereto. The bus may be divided into an address bus, a data bus, a control bus, etc.
The memory 602 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 602 may also be a non-volatile memory (non-volatile memory) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD), or any other medium which can be used to carry or store desired program code in the form of instructions or data structures and which can be accessed by a computer. The memory 602 may be a combination of the above.
As an example, the processor 601 may also be used to implement the functionality of the apparatus shown in fig. 5 above, or the functionality of any of the access platforms above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A device encoding method, applied to an access platform, the method comprising:
determining first position information corresponding to a first organization to which monitoring equipment belongs, wherein the first position information is used for indicating the position of the first organization;
determining target equipment type information corresponding to the monitoring equipment, wherein the target equipment type information is used for representing the equipment type of the monitoring equipment;
generating a first national standard code of the monitoring equipment according to the first position information, the type information of the target equipment and a preset rule;
and sending the first national standard code to a supervision platform.
2. The method of claim 1, wherein generating a first national standard code of the monitoring device according to the first location information, the target device type information, and a preset rule comprises:
determining a national standard coding prefix corresponding to the first position information;
determining a type code corresponding to the type information of the target equipment;
determining a target order in which to add the monitoring device in the first organization;
generating a serial number code of the monitoring equipment according to the preset rule and the target sequence;
and sequentially combining the national standard code prefix, the type code and the serial number code to obtain a first national standard code of the monitoring equipment.
3. The method of claim 2, wherein the access platform comprises a cache; determining an order of adding the monitoring devices in the first organization, comprising:
reading a historical order recorded in the cache, wherein the historical order is used for representing the adding order of other monitoring devices added in the first organization, and the other monitoring devices are monitoring devices except the monitoring device;
determining a target sequence of the monitoring equipment according to the historical sequence;
updating the historical order to the target order record in the cache.
4. The method of any of claims 1-3, wherein the access platform comprises a plurality of registration interfaces, wherein any two registration interfaces are configured to support two different data transfer protocols; the method further comprises the following steps:
determining a target registration interface corresponding to a data transmission protocol supported by the monitoring equipment from the plurality of registration interfaces;
receiving monitoring data sent by the monitoring equipment through the target registration interface;
and associating the monitoring data with the first national standard code and sending the monitoring data to the supervision platform.
5. The method of any one of claims 1-3, wherein after generating a first national standard code for the monitoring device based on the first location information, the target device type information, and a preset rule, the method further comprises:
acquiring a change request, wherein the change request is used for requesting to change first position information corresponding to the monitoring equipment into second position information, the change request comprises the second position information, the second position information is used for representing the position of a second organization, and the second organization is the same as or different from the first organization;
changing the first national standard code of the monitoring equipment into a second national standard code according to the second position information;
and sending the second national standard code to the supervision platform.
6. An apparatus encoding device, comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining first position information corresponding to a first organization to which monitoring equipment belongs, the first position information is used for indicating the position of the first organization, and determining target equipment type information corresponding to the monitoring equipment, and the target equipment type information is used for indicating the equipment type to which the monitoring equipment belongs;
the generating module is used for generating a first national standard code of the monitoring equipment according to the first position information, the type information of the target equipment and a preset rule;
and the transceiver module is used for sending the first national standard code to a supervision platform.
7. The apparatus of claim 6, wherein the generation module is specifically configured to:
determining a national standard coding prefix corresponding to the first position information;
determining a type code corresponding to the type information of the target equipment;
determining a target order in which to add the monitoring device in the first organization;
generating a serial number code of the monitoring equipment according to the preset rule and the target sequence;
and sequentially combining the national standard code prefix, the type code and the serial number code to obtain a first national standard code of the monitoring equipment.
8. The apparatus of claim 7, wherein the apparatus comprises a cache; the generation module is specifically configured to:
reading a historical order recorded in the cache, wherein the historical order is used for representing the adding order of other monitoring devices added in the first organization, and the other monitoring devices are monitoring devices except the monitoring device;
determining a target sequence of the monitoring equipment according to the historical sequence;
updating the historical order to the target order record in the cache.
9. An apparatus encoding device, comprising:
at least one processor, and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method of any one of claims 1-5 by executing the instructions stored by the memory.
10. A computer-readable storage medium having stored thereon computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1-5.
CN202111352655.1A 2021-11-16 2021-11-16 Equipment coding method and device Pending CN114205329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111352655.1A CN114205329A (en) 2021-11-16 2021-11-16 Equipment coding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111352655.1A CN114205329A (en) 2021-11-16 2021-11-16 Equipment coding method and device

Publications (1)

Publication Number Publication Date
CN114205329A true CN114205329A (en) 2022-03-18

Family

ID=80647623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111352655.1A Pending CN114205329A (en) 2021-11-16 2021-11-16 Equipment coding method and device

Country Status (1)

Country Link
CN (1) CN114205329A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114756776A (en) * 2022-06-15 2022-07-15 中国信息通信研究院 Method and device for displaying industrial internet information, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070038776A1 (en) * 2005-08-15 2007-02-15 Microsoft Corporation International regulatory compliance for ad hoc networking
CN107046559A (en) * 2016-12-23 2017-08-15 浙江宇视科技有限公司 A kind of device encoding method and server
CN107147754A (en) * 2017-07-13 2017-09-08 冯贵良 A kind of coding method of Internet of Things mark and system
WO2019056734A1 (en) * 2017-09-21 2019-03-28 平安科技(深圳)有限公司 Customer number encoding method, application server, system, and storage medium
WO2020037929A1 (en) * 2018-08-24 2020-02-27 深圳云天励飞技术有限公司 Method and device for community management and electronic apparatus
WO2020062439A1 (en) * 2018-09-30 2020-04-02 网宿科技股份有限公司 Method and device for monitoring bandwidth state
CN111447303A (en) * 2020-04-03 2020-07-24 宁波市水利水电规划设计研究院有限公司 GPS-based dynamic coding method for Internet of things platform equipment
US20200348984A1 (en) * 2019-05-05 2020-11-05 Mastercard International Incorporated Control cluster for multi-cluster container environments
CN113031943A (en) * 2021-03-29 2021-06-25 北京大米科技有限公司 Code generation method, device, storage medium and electronic equipment
CN113159253A (en) * 2021-04-09 2021-07-23 深圳精匠云创科技有限公司 Industrial Internet label coding method and device and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070038776A1 (en) * 2005-08-15 2007-02-15 Microsoft Corporation International regulatory compliance for ad hoc networking
CN107046559A (en) * 2016-12-23 2017-08-15 浙江宇视科技有限公司 A kind of device encoding method and server
CN107147754A (en) * 2017-07-13 2017-09-08 冯贵良 A kind of coding method of Internet of Things mark and system
WO2019056734A1 (en) * 2017-09-21 2019-03-28 平安科技(深圳)有限公司 Customer number encoding method, application server, system, and storage medium
WO2020037929A1 (en) * 2018-08-24 2020-02-27 深圳云天励飞技术有限公司 Method and device for community management and electronic apparatus
WO2020062439A1 (en) * 2018-09-30 2020-04-02 网宿科技股份有限公司 Method and device for monitoring bandwidth state
US20200348984A1 (en) * 2019-05-05 2020-11-05 Mastercard International Incorporated Control cluster for multi-cluster container environments
CN111447303A (en) * 2020-04-03 2020-07-24 宁波市水利水电规划设计研究院有限公司 GPS-based dynamic coding method for Internet of things platform equipment
CN113031943A (en) * 2021-03-29 2021-06-25 北京大米科技有限公司 Code generation method, device, storage medium and electronic equipment
CN113159253A (en) * 2021-04-09 2021-07-23 深圳精匠云创科技有限公司 Industrial Internet label coding method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114756776A (en) * 2022-06-15 2022-07-15 中国信息通信研究院 Method and device for displaying industrial internet information, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107219997B (en) Method and device for verifying data consistency
CN109447820B (en) Data processing method, device, computer equipment and storage medium
CN110555078A (en) Distributed ID generation
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
CN111090440B (en) Information processing method, system, device and storage medium
US10204021B2 (en) Recovery of an infected and quarantined file in a primary storage controller from a secondary storage controller
CN104636286A (en) Data access method and equipment
US20200379670A1 (en) Method, apparatus, and computer program product for determining usage change rate of storage system
US20200363979A1 (en) Logical deletions in append only storage devices
CN104199683A (en) ISO mirror image document loading method and device
CN112988770A (en) Method and device for updating serial number, electronic equipment and storage medium
CN114205329A (en) Equipment coding method and device
CN109743179B (en) Electronic certificate issuing method according to requirements
US9160705B2 (en) Identifier management
US10448124B2 (en) Method and system for issuing media information
CN112950341A (en) Accounting system based on block chain
CN111488117A (en) Method, electronic device, and computer-readable medium for managing metadata
CN111489212B (en) Order billing method, device, equipment and medium based on big data
US10895985B1 (en) Real-time estimation of working sets
CN112148712A (en) Data processing method, device, equipment and medium
CN112527276A (en) Data updating method and device in visual programming tool and terminal equipment
CN113765962A (en) Data processing method and system for service platform, computer system and medium
US20240104069A1 (en) Systems and methods of managing state machine systems with compacting distributed log storage
CN110990414B (en) Data processing method and device
US11176108B2 (en) Data resolution among disparate data sources

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220318