CN109819026B - Method and device for transmitting information - Google Patents

Method and device for transmitting information Download PDF

Info

Publication number
CN109819026B
CN109819026B CN201910054658.3A CN201910054658A CN109819026B CN 109819026 B CN109819026 B CN 109819026B CN 201910054658 A CN201910054658 A CN 201910054658A CN 109819026 B CN109819026 B CN 109819026B
Authority
CN
China
Prior art keywords
information
target
processed
target information
initial
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.)
Active
Application number
CN201910054658.3A
Other languages
Chinese (zh)
Other versions
CN109819026A (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910054658.3A priority Critical patent/CN109819026B/en
Publication of CN109819026A publication Critical patent/CN109819026A/en
Application granted granted Critical
Publication of CN109819026B publication Critical patent/CN109819026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the disclosure discloses a method and a device for transmitting information. One embodiment of the method comprises: in response to the fact that feature information is detected to be contained in initial information to be processed sent by an information sending end, setting the initial information to be processed as target information to be processed, wherein the initial information to be processed corresponds to a subscription theme in the Internet of things; converting the target information to be processed into target information which does not contain the characteristic information according to an information conversion table, wherein the information conversion table is used for indicating the mutual conversion between the target information to be processed and the target information; and sending the target information according to the subscription theme. This embodiment improves the security of data transmission.

Description

Method and device for transmitting information
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method and a device for transmitting information.
Background
With the development of science and technology, many devices and control terminals can be separately located in different geographic spaces, so that workers can remotely control the devices. In order to monitor the working state of the equipment, the equipment can send the working state information to a remote control end through a network, so that the control end can timely acquire the working state of the equipment, and the equipment is effectively controlled by workers.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for transmitting information.
In a first aspect, an embodiment of the present disclosure provides a method for transmitting information, the method including: in response to the fact that feature information is detected to be contained in initial information to be processed sent by an information sending end, setting the initial information to be processed as target information to be processed, wherein the initial information to be processed corresponds to a subscription theme in the Internet of things; converting the target information to be processed into target information which does not contain the characteristic information according to an information conversion table, wherein the information conversion table is used for indicating the mutual conversion between the target information to be processed and the target information; and sending the target information according to the subscription theme.
In some embodiments, the converting the target information to be processed into the target information not including the feature information according to the information conversion table includes: converting the target information to be processed into initial target information of a specified information type according to the information conversion table; and encapsulating the local device label and the initial target information into target information, wherein the local label is used for identifying an information sending end corresponding to the initial target information.
In some embodiments, the converting the target information to be processed into the initial target information of the specified information type according to the information conversion table includes: and in response to that the feature information belongs to a first feature information type, replacing the feature information in the target information to be processed to obtain replacement information corresponding to the target information to be processed, wherein the first feature information type includes at least one of the following: the name information type of the information sending end, the address information type of the information sending end, the equipment type information type of the information sending end and the user name information type of the information sending end; and converting the replacement information into initial target information of a specified information type according to the information conversion table.
In some embodiments, the converting the target information to be processed into the initial target information of the specified information type according to the information conversion table includes: in response to the feature information belonging to a second feature information type, converting the target information to be processed into initial target information of a specified information type according to the information conversion table, wherein the second feature information type includes at least one of: the type of the running state information of the information sending end, the type of the application running information of the information sending end and the type of the position information of the information sending end.
In some embodiments, the above method further comprises: in response to detecting that the feedback information contains the local device tag, extracting initial response information from the feedback information, wherein the feedback information comprises the local device tag and the initial response information; and after the initial response information is converted into response information through the information conversion table, the response information is sent to the information sending end.
In a second aspect, an embodiment of the present disclosure provides a method for transmitting information, the method including: receiving target information, wherein the target information corresponds to a subscription theme; and in response to the target information being of the encryption type, converting the target information into target information to be processed according to an information conversion table, wherein the information conversion table is used for indicating the mutual conversion between the target information to be processed and the target information.
In some embodiments, the target information includes a local tag and initial target information, where the local tag is used to identify an information sending end of the initial target information, and the method further includes: and converting the initial target information into target information to be processed according to the information conversion table.
In some embodiments, the above method further comprises: and encapsulating the processing result information corresponding to the target information to be processed and the local label into feedback information, and sending the feedback information according to the subscription theme.
In a third aspect, an embodiment of the present disclosure provides an apparatus for transmitting information, the apparatus including: the target information-to-be-processed setting unit is configured to set initial information-to-be-processed, which is sent by an information sending end, as target information-to-be-processed in response to detecting that the initial information-to-be-processed contains characteristic information, wherein the initial information-to-be-processed corresponds to a subscription theme in the internet of things; a target information conversion unit configured to convert the target information to be processed into target information not including the characteristic information according to an information conversion table indicating mutual conversion between the target information to be processed and the target information; and the first information sending unit is configured to send the target information according to the subscription theme.
In some embodiments, the target information conversion unit includes: an initial target information conversion subunit configured to convert the target information to be processed into initial target information of a specified information type according to the information conversion table; and the target information packaging subunit is configured to package a local device tag and the initial target information into target information, where the local tag is used to identify an information sending end corresponding to the initial target information.
In some embodiments, the initial target information converting subunit includes: a replacement information obtaining module, configured to, in response to that feature information belongs to a first feature information type, obtain replacement information corresponding to the target information to be processed after replacing the feature information in the target information to be processed, where the first feature information type includes at least one of: the name information type of the information sending end, the address information type of the information sending end, the equipment type information type of the information sending end and the user name information type of the information sending end; and the first initial target information conversion module is configured to convert the replacement information into initial target information of a specified information type according to the information conversion table.
In some embodiments, the initial target information converting subunit includes: a second initial target information conversion module, responsive to the feature information belonging to a second feature information type, configured to convert the target information to be processed into initial target information of a specified information type according to the information conversion table, the second feature information type including at least one of: the type of the running state information of the information sending end, the type of the application running information of the information sending end and the type of the position information of the information sending end.
In some embodiments, the above apparatus further comprises: an initial response information extracting unit, configured to extract initial response information from the feedback information in response to detecting that the feedback information includes the local device tag, the feedback information including the local device tag and the initial response information; and a second information transmitting unit configured to transmit the response information to the information transmitting terminal after converting the initial response information into response information through the information conversion table.
In a fourth aspect, an embodiment of the present disclosure provides an apparatus for transmitting information, the apparatus including: an information receiving unit configured to receive target information, the target information corresponding to a subscription topic; and the target information to be processed conversion unit is used for responding to the fact that the target information is of an encryption type, and is configured to convert the target information into the target information to be processed according to an information conversion table, wherein the information conversion table is used for indicating mutual conversion between the target information to be processed and the target information.
In some embodiments, the target information includes a local tag and initial target information, where the local tag is used to identify an information sending end of the initial target information, and the target to-be-processed information converting unit includes: and the target information to be processed conversion subunit is configured to convert the initial target information into target information to be processed according to the information conversion table.
In some embodiments, the above apparatus further comprises: and the feedback information packaging unit is configured to package the processing result information corresponding to the target information to be processed and the local label into feedback information and send the feedback information according to the subscription theme.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to perform the method for transmitting information of the first aspect or the method for transmitting information of the second aspect.
In a sixth aspect, an embodiment of the present disclosure provides a computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method for transmitting information of the first aspect or the method for transmitting information of the second aspect.
The method and the device for transmitting information provided by the embodiment of the disclosure firstly set initial information to be processed as target information to be processed when detecting that the initial information to be processed sent by an information sending end contains characteristic information; then, converting the target information to be processed into target information which does not contain the characteristic information according to an information conversion table; and finally, sending the target information. According to the technical scheme, the target information to be processed containing the characteristic information can be converted into the target information not containing the characteristic information, so that the target information does not contain the characteristic information any more, and the safety of data transmission is improved.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present disclosure may be applied;
FIG. 2 is a flow diagram for one embodiment of a method for transmitting information, according to the present disclosure;
FIG. 3 is a schematic diagram of one application scenario of a method for transmitting information according to the present disclosure;
FIG. 4 is a flow diagram of yet another embodiment of a method for transmitting information according to the present disclosure;
FIG. 5 is a schematic block diagram illustrating one embodiment of an apparatus for transmitting information in accordance with the present disclosure;
FIG. 6 is a schematic block diagram of yet another embodiment of an apparatus for transmitting information according to the present disclosure;
FIG. 7 is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 of a method for transmitting information or an apparatus for transmitting information to which embodiments of the present disclosure may be applied.
As shown in fig. 1, system architecture 100 may include edge computing devices 101, 102, 103, a network 104, and a cloud 105. Network 104 is used to provide a medium for communication links between edge computing devices 101, 102, 103 and cloud 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
Edge computing refers to an open platform integrating network, computing, storage and application core capabilities at one side close to an object or a data source to provide nearest-end services nearby. The application program is initiated at the edge side, so that a faster network service response is generated, and the basic requirements of the industry in the aspects of real-time business, application intelligence, safety, privacy protection and the like are met. Edge computing devices (i.e., devices that deploy edge computing, which may also be referred to as brokers) have partial cloud computing capabilities and are therefore capable of providing the same or similar data processing services as cloud computing.
The edge computing devices 101, 102, 103 interact with the cloud 105 over the network 104 to receive or send messages, etc. The edge computing devices 101, 102, 103 may have installed thereon various data processing applications, such as an image acquisition application, an image analysis application, a temperature analysis application, a humidity analysis application, a soil analysis application, an unmanned aerial vehicle control application, an unmanned vehicle control application, and the like. The edge computing devices 101, 102, 103 may be servers that provide various data processing services, such as receiving initial information to be processed from a local information sender (e.g., various sensors) and performing data processing on the initial information to be processed. The server can receive the initial information to be processed sent by the information sending end and perform data processing on the initial information to be processed to obtain target information to be processed; then, carrying out data processing on the target information to be processed to obtain target information; and finally, sending out the target information.
The edge computing devices 101, 102, 103 may be hardware or software. When the edge computing devices 101, 102, 103 are hardware, they may be a variety of electronic devices having a display screen and supporting data processing, including but not limited to tablet computers, laptop portable computers, desktop computers, and the like. When the edge computing devices 101, 102, 103 are software, they may be installed in the electronic devices listed above. It may be implemented as a plurality of software or software modules (for example, for providing distributed services), or as a single software or software module, which is not specifically limited herein.
Cloud 105 may be a network that provides cloud computing. Cloud 105 may interact with edge computing devices 101, 102, 103 through network 104. Such as a server that performs data processing on target information sent from the edge computing devices 101, 102, 103. The server may perform processing such as analysis on the received data such as the target information, and feed back the processing result (e.g., feedback information) to the edge computing devices 101, 102, 103.
It should be noted that the method for transmitting information provided by the embodiments of the present disclosure is generally performed by the edge computing devices 101, 102, 103, and accordingly, the apparatus for transmitting information is generally disposed in the edge computing devices 101, 102, 103.
It should be noted that the cloud 105 may be hardware or software. When the cloud 105 is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the cloud 105 is software, it may be implemented as a plurality of software or software modules (for example, to provide distributed services), or may be implemented as a single software or software module, which is not specifically limited herein.
It should be understood that the number of edge computing devices, networks, and clouds in fig. 1 is merely illustrative. There may be any number of edge computing devices, networks, and cloud ends, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method for transmitting information in accordance with the present disclosure is shown. The method for transmitting information comprises the following steps:
step 201, in response to detecting that the initial information to be processed sent by the information sending end includes feature information, setting the initial information to be processed as target information to be processed.
In this embodiment, the execution main body of the method for transmitting information (e.g., the edge computing devices 101, 102, 103 shown in fig. 1) may receive the initial information to be processed from the local information sending end through a wired connection manner or a wireless connection manner. The local information sending end may be various sensors, machine tools, motors, unmanned aerial vehicles, unmanned vehicles and other devices which need to perform data communication with the cloud 105 (e.g., internet of things). The initial information to be processed may be various operation status data of the information transmitting end. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
In the prior art, when a device sends its own operation status data, the operation status data usually includes some characteristic information of the device itself. The characteristic information may be interfered or illegally acquired in the network transmission process, and the data security is further reduced.
After receiving the initial to-be-processed information sent by the information sending end, the execution main body of the application can detect the characteristic information (for example, various sensitive words) of the initial to-be-processed information in various ways in order to ensure the safety of data. When the execution main body detects that the initial to-be-processed letter does not contain the feature information, the execution main body can directly send the initial to-be-processed letter according to a subscription theme corresponding to the cloud 105; when the execution main body detects that the initial to-be-processed message contains the feature information, the execution main body may set the initial to-be-processed message as the target to-be-processed message. The target information to be processed needs to be sent after corresponding data processing is performed locally on the execution main body.
Step 202, converting the target information to be processed into target information not containing the characteristic information according to an information conversion table.
After the target information to be processed is determined, the execution main body can send the target information to be processed only after the target information to be processed is converted into target information which does not contain characteristic information. For different target information to be processed, a corresponding information conversion table is needed to convert the target information into target information which does not contain characteristic information. For this reason, the execution body may analyze the information type, the information structure, the encoding manner, and the like of the target information to be processed to determine a corresponding information conversion table. For example, the editing language of the target information to be processed is a, the execution main body converts the editing language a of the target information to be processed into the target information of the editing language B, and the target information has no feature information. The information conversion table may indicate that the editing language a is converted into the editing language B, which enables conversion of the target information to be processed into the target information. The information conversion table may be used to indicate mutual conversion between the target information to be processed and the target information. The information conversion table may be an information conversion table that is held locally in advance in the execution main body. The information to be converted (which may be, for example, the above-described editing language of a) and the target conversion information (which may be, for example, the above-described editing language of B) in the information conversion table may have a one-to-one correspondence relationship. That is, in the information conversion table, the editing language a can only be converted into the editing language B. Moreover, the target conversion information (for example, the above editing language is B) may also be data that cannot be directly processed by the cloud end 105, so that the cloud end 105 can know that information conversion needs to be performed on the target conversion information after receiving the target conversion information. Generally, the target conversion information may be determined by a technician after data conversion is performed on possible feature information in the converted information in advance, so as to ensure that the converted target conversion information does not contain any feature information any more, and improve the security of data transmission.
In some optional implementation manners of this embodiment, the converting the target information to be processed into target information that does not include the characteristic information according to the information conversion table may include:
the first step, the target information to be processed is converted into the initial target information of the designated information type according to the information conversion table.
The execution body may convert the target information to be processed into initial target information of a specified information type according to the information conversion table. Wherein, the initial target information no longer contains characteristic information.
And secondly, encapsulating the local equipment label and the initial target information into target information.
In practice, the cloud 105 may communicate with multiple devices of the same type or execution entities of the same type. For example, the plurality of devices are electronic devices of the same model. When each device sends the initial information to be processed, since the target information to be processed corresponding to the initial information to be processed is converted into the initial target information, the identity information of the device itself may be lost or cannot be identified. For this reason, after obtaining the initial target information, the execution body may also package the local tag and the initial target information into target information by combining them. The local tag may be configured to identify an information sending end corresponding to the initial target information. That is, the local tag may be used to simultaneously perform identification of the transmitting end of the information corresponding to the initial target information and perform identification of the subject. Therefore, the safety of data transmission is improved.
In some optional implementation manners of this embodiment, the converting the target to-be-processed information into initial target information of a specific information type according to the information conversion table may include:
the method comprises the steps of responding to the characteristic information belonging to a first characteristic information type, and replacing the characteristic information in the target information to be processed to obtain replacement information corresponding to the target information to be processed.
The characteristic information may be different information, and different processing methods may be adopted for different information. For some feature information with higher security level, the execution subject can directly replace it. When detecting that the feature information belongs to the first feature information type, the execution main body may replace the feature information in the target information to be processed to obtain replacement information corresponding to the target information to be processed. Wherein the first feature information type may include at least one of: the name information type of the information sending end, the address information type of the information sending end, the equipment type information type of the information sending end and the user name information type of the information sending end. After replacement, the execution subject may locally record the replaced feature information and the replaced mark information, so as to subsequently perform replacement between the mark information and the feature information. Here, the replacement information is information obtained by replacing the feature information in the target information to be processed, and is not information obtained by replacing only the feature information.
And a second step of converting the replacement information into initial target information of a specified information type according to the information conversion table.
After obtaining the replacement information, the execution body may convert the replacement information into the initial target information of the specified information type according to the information conversion table.
In some optional implementation manners of this embodiment, the converting the target to-be-processed information into initial target information of a specific information type according to the information conversion table may include: and in response to the characteristic information belonging to the second characteristic information type, converting the target information to be processed into initial target information of a specified information type according to the information conversion table.
Some characteristic information has certain universality and lower security level. When the feature information belongs to the second feature information type, the execution main body may convert the target information to be processed into the initial target information of the specified information type directly according to the information conversion table. Wherein the second feature information type may include at least one of: the type of the running state information of the information sending end, the type of the application running information of the information sending end and the type of the position information of the information sending end.
Step 203, sending the target information according to the subscription theme.
In the cloud 105, the information delivery needs to determine the sender and the receiver of the information by means of the subscription theme. The execution principal may send the target information according to a subscription topic.
In some optional implementations of this embodiment, the method may further include:
first, in response to detecting that the feedback information includes the local device tag, initial response information is extracted from the feedback information.
The execution subject may receive feedback information sent from the cloud 105, where the feedback information may include the above-mentioned local device tag and initial response information. . When the execution main body detects that the feedback information contains the local device label, the feedback information is indicated to be the feedback information corresponding to the target information sent by the execution main body. The execution body may extract the initial response information from the feedback information.
And a second step of converting the initial response message into a response message through the message conversion table and then transmitting the response message to the message transmitting terminal.
As is apparent from the above description, the information conversion table can realize mutual conversion between the converted information and the target conversion information, and the converted information and the target conversion information have a one-to-one correspondence relationship. The execution body may convert the initial response information into the response information according to the information conversion table. Then, the execution body may transmit the response information to the above-described information transmitting end. Therefore, the safety of data transmission is improved.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for transmitting information according to the present embodiment. In the application scenario of fig. 3, when detecting that the initial to-be-processed information sent by the information sending end includes feature information, the edge computing device 103 sets the initial to-be-processed information as target to-be-processed information; then, the edge computing device 103 converts the target information to be processed into target information; finally, the edge computing device 103 sends out the target information.
The method provided by the above embodiment of the present disclosure first sets initial information to be processed as target information to be processed when detecting that the initial information to be processed sent by an information sending end includes feature information; then, converting the target information to be processed into target information which does not contain the characteristic information according to an information conversion table; and finally, sending the target information. According to the technical scheme, the target information to be processed containing the characteristic information can be converted into the target information not containing the characteristic information, so that the target information does not contain the characteristic information any more, and the safety of data transmission is improved.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method for transmitting information is shown. The process 400 of the method for transmitting information includes the steps of:
step 401, receiving target information.
In this embodiment, an executing subject (e.g., the cloud 105 shown in fig. 1) of the method for transmitting information may receive the target information from the edge computing devices 101, 102, 103 with which the user performs information transmission by a wired connection manner or a wireless connection manner. And the target information corresponds to the subscription theme.
Step 402, in response to the target information being of the encryption type, converting the target information into target information to be processed according to an information conversion table.
When the execution body detects that the target information is not information that can be directly processed, the target information may be considered as an encryption type. At this time, the execution body may convert the above target information into target information to be processed according to the information conversion table. The information conversion table may be used to indicate mutual conversion between the target information to be processed and the target information. The information conversion table of this embodiment is the same as the information conversion table in the embodiment corresponding to fig. 2, so as to realize accurate conversion between the target information to be processed and the target information, and improve the security of data transmission.
In some optional implementation manners of this embodiment, the target information may include a local tag and initial target information, where the local tag is used to identify an information sending end of the initial target information, and the method further includes: and converting the initial target information into target information to be processed according to the information conversion table.
The execution body may extract initial target information from the target information, and then convert the initial target information into target information to be processed through an information conversion table. At this time, the execution body acquires the original information of the information sending end. The execution main body can modify parameters, colors and other information of the shadow device according to the target to-be-processed information, so that technicians can intuitively and quickly know the current working state of the information sending end on the side of the edge computing devices 101, 102 and 103.
In some optional implementations of this embodiment, the method further includes: and encapsulating the processing result information corresponding to the target information to be processed and the local label into feedback information, and sending the feedback information according to the subscription theme.
The execution body may have a shadow device thereon. The shadow device is used for describing an information sending end on an execution main body of the application. The shadow device may be implemented in a variety of ways, such as by way of a data model, a still image, a motion map, a data table, and so forth. Then, the execution main body can perform relevant data processing on the target information to be processed, so as to obtain corresponding processing result information. Then, the execution body may encapsulate the processing result information and the local tag into feedback information, and send the feedback information according to the subscription topic, so that the edge computing devices 101, 102, and 103 sending the target information can receive the feedback information.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for transmitting information, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the apparatus 500 for transmitting information of the present embodiment may include: a target to-be-processed information setting unit 501, a target information converting unit 502, and a first information transmitting unit 503. The target information-to-be-processed setting unit 501 is configured to set initial information to be processed, which is sent by an information sending end and corresponds to a subscription topic in the internet of things, as target information to be processed in response to detecting that the initial information to be processed contains feature information; the target information converting unit 502 is configured to convert the target information to be processed into target information that does not include the characteristic information, based on an information conversion table indicating interconversion between the target information to be processed and the target information; the first information sending unit 503 is configured to send the target information according to the subscription theme.
In some optional implementations of this embodiment, the target information conversion unit 502 may include: an initial target information conversion subunit (not shown in the figure) and a target information encapsulation subunit (not shown in the figure). Wherein the initial target information conversion subunit is configured to convert the target information to be processed into initial target information of a specified information type according to the information conversion table; the target information packaging subunit is configured to package a local device tag and the initial target information into target information, where the local tag is used to identify an information sending end corresponding to the initial target information.
In some optional implementation manners of this embodiment, the initial target information conversion subunit may include: a replacement information acquisition module (not shown in the figure) and a first initial target information conversion module (not shown in the figure). The replacement information obtaining module, in response to that the feature information belongs to a first feature information type, is configured to obtain replacement information corresponding to the target information to be processed after replacing the feature information in the target information to be processed, where the first feature information type includes at least one of: the name information type of the information sending end, the address information type of the information sending end, the equipment type information type of the information sending end and the user name information type of the information sending end; the first initial target information conversion module is configured to convert the replacement information into initial target information of a specified information type according to the information conversion table.
In some optional implementation manners of this embodiment, the initial target information conversion subunit may include: a second initial target information conversion module (not shown in the figure), in response to the feature information belonging to a second feature information type, configured to convert the target information to be processed into initial target information of a specified information type according to the information conversion table, the second feature information type including at least one of: the type of the running state information of the information sending end, the type of the application running information of the information sending end and the type of the position information of the information sending end.
In some optional implementations of this embodiment, the apparatus 500 for transmitting information may further include: an initial response information extracting unit (not shown in the figure) and a second information transmitting unit (not shown in the figure). The initial response information extracting unit is configured to extract initial response information from the feedback information in response to detecting that the feedback information includes the local device tag, wherein the feedback information includes the local device tag and the initial response information; the second information transmitting unit is configured to transmit the response information to the information transmitting terminal after converting the initial response information into the response information by the information conversion table.
With further reference to fig. 6, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for transmitting information, which corresponds to the method embodiment shown in fig. 4, and which is particularly applicable to various electronic devices.
As shown in fig. 6, the apparatus 600 for transmitting information of the present embodiment may include: an information receiving unit 601 and a target to-be-processed information converting unit 602. The information receiving unit 601 is configured to receive target information, where the target information corresponds to a subscription topic; the target to-be-processed information converting unit 602, in response to being of an encryption type with the target information, is configured to convert the target information into target to-be-processed information according to an information conversion table indicating mutual conversion between the target to-be-processed information and the target information.
In some optional implementation manners of this embodiment, the target information includes a local tag and initial target information, where the local tag is used to identify an information sending end of the initial target information, and the target to-be-processed information converting unit 602 may include: and a target to-be-processed information converting subunit (not shown in the figure) configured to convert the initial target information into target to-be-processed information according to the information converting table.
In some optional implementations of this embodiment, the apparatus 600 for transmitting information may further include: and a feedback information encapsulating unit (not shown in the figure) configured to encapsulate the processing result information corresponding to the target to-be-processed information and the local tag into feedback information, and send the feedback information according to the subscription topic.
The present embodiment also provides an electronic device, including: one or more processors; a memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to perform the above-described method for transmitting information.
The present embodiment also provides a computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method for transmitting information.
Referring now to FIG. 7, a block diagram of a computer system 700 suitable for use with an electronic device (e.g., edge computing devices 101, 102, 103 of FIG. 1) implementing embodiments of the present disclosure is shown. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 7 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of embodiments of the present disclosure.
It should be noted that the computer readable medium mentioned above in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to the fact that feature information is detected to be contained in initial information to be processed sent by an information sending end, setting the initial information to be processed as target information to be processed, wherein the initial information to be processed corresponds to a subscription theme in the Internet of things; converting the target information to be processed into target information which does not contain the characteristic information according to an information conversion table, wherein the information conversion table is used for indicating the mutual conversion between the target information to be processed and the target information; and sending the target information according to the subscription theme.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a target information-to-be-processed setting unit, a target information converting unit, and a first information transmitting unit. Here, the names of these units do not constitute a limitation to the unit itself in some cases, and for example, the target information conversion unit may also be described as "a unit for converting target information to be processed into target information".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept as defined above. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (14)

1. A method for transmitting information, comprising:
in response to the fact that feature information is detected to be contained in initial information to be processed sent by an information sending end, setting the initial information to be processed as target information to be processed, wherein the initial information to be processed corresponds to a subscription theme in the Internet of things;
converting the target information to be processed into target information which does not contain the characteristic information according to an information conversion table, wherein the target information to be processed comprises the following steps: converting the target information to be processed into initial target information of a designated information type according to an information conversion table, and encapsulating a local device tag and the initial target information into target information, wherein the local tag is used for identifying an information sending end corresponding to the initial target information, and the information conversion table is used for indicating the mutual conversion between the target information to be processed and the target information;
and sending the target information according to the subscription theme.
2. The method of claim 1, wherein said converting the target to-be-processed information into initial target information of a specified information type according to the information conversion table comprises:
in response to that the feature information belongs to a first feature information type, replacing the feature information in the target information to be processed to obtain replacement information corresponding to the target information to be processed, wherein the first feature information type includes at least one of the following: the name information type of the information sending end, the address information type of the information sending end, the equipment type information type of the information sending end and the user name information type of the information sending end;
and converting the replacement information into initial target information of a specified information type according to the information conversion table.
3. The method of claim 2, wherein said converting the target to-be-processed information into initial target information of a specified information type according to the information conversion table comprises:
in response to the feature information belonging to a second feature information type, converting the target information to be processed into initial target information of a specified information type according to the information conversion table, wherein the second feature information type comprises at least one of the following items: the type of the running state information of the information sending end, the type of the application running information of the information sending end and the type of the position information of the information sending end.
4. The method of claim 2, wherein the method further comprises:
in response to detecting that feedback information contains the local device tag, extracting initial response information from the feedback information, wherein the feedback information comprises the local device tag and the initial response information;
and after the initial response information is converted into response information through the information conversion table, the response information is sent to the information sending end.
5. A method for transmitting information, comprising:
receiving target information, wherein the target information corresponds to a subscription theme, and the target information comprises a local tag and initial target information, and the local tag is used for identifying an information sending end of the initial target information;
responding to the target information being the encryption type, converting the target information into target information to be processed according to an information conversion table, and the method comprises the following steps: and converting the initial target information into target information to be processed according to an information conversion table, wherein the information conversion table is used for indicating the mutual conversion between the target information to be processed and the target information.
6. The method of claim 5, wherein the method further comprises:
and packaging the processing result information corresponding to the target information to be processed and the local label into feedback information, and sending the feedback information according to the subscription theme.
7. An apparatus for transmitting information, comprising:
the target information-to-be-processed setting unit is configured to set initial information-to-be-processed to target information-to-be-processed in response to detecting that the initial information-to-be-processed sent by the information sending end contains characteristic information, wherein the initial information-to-be-processed corresponds to a subscription theme in the Internet of things;
a target information conversion unit configured to convert the target information to be processed into target information not containing the feature information according to an information conversion table, including: an initial target information conversion subunit configured to convert the target information to be processed into initial target information of a specified information type according to an information conversion table, a target information encapsulation subunit configured to encapsulate a local device tag and the initial target information into target information, the local tag being used to identify an information sending end corresponding to the initial target information, and the information conversion table being used to indicate mutual conversion between the target information to be processed and the target information;
a first information sending unit configured to send the target information according to the subscription topic.
8. The apparatus of claim 7, wherein the initial target information conversion subunit comprises:
the replacement information obtaining module, configured to, in response to that feature information belongs to a first feature information type, obtain replacement information corresponding to the target information to be processed after replacing the feature information in the target information to be processed, where the first feature information type includes at least one of: the name information type of the information sending end, the address information type of the information sending end, the equipment type information type of the information sending end and the user name information type of the information sending end;
a first initial target information conversion module configured to convert the replacement information into initial target information of a specified information type according to the information conversion table.
9. The apparatus of claim 7, wherein the initial target information conversion subunit comprises:
a second initial target information conversion module, responsive to feature information belonging to a second feature information type, configured to convert the target information to be processed into initial target information of a specified information type according to the information conversion table, the second feature information type including at least one of: the type of the running state information of the information sending end, the type of the application running information of the information sending end and the type of the position information of the information sending end.
10. The apparatus of claim 8, wherein the apparatus further comprises:
an initial response information extraction unit, configured to extract initial response information from feedback information in response to detecting that the feedback information includes the local device tag, the feedback information including the local device tag and the initial response information;
and the second information sending unit is configured to send the response information to the information sending end after converting the initial response information into the response information through the information conversion table.
11. An apparatus for transmitting information, comprising:
the system comprises an information receiving unit, a subscribing unit and a service providing unit, wherein the information receiving unit is configured to receive target information, the target information corresponds to a subscription subject, and the target information comprises a local tag and initial target information, wherein the local tag is used for identifying an information sending end of the initial target information;
a target information-to-be-processed converting unit configured to convert the target information into target information-to-be-processed according to an information conversion table in response to the target information being of an encryption type, including: and the target information to be processed conversion subunit is configured to convert the initial target information into the target information to be processed according to the information conversion table, and the information conversion table is used for indicating the mutual conversion between the target information to be processed and the target information.
12. The apparatus of claim 11, wherein the apparatus further comprises:
and the feedback information packaging unit is configured to package the processing result information corresponding to the target information to be processed and the local label into feedback information and send the feedback information according to the subscription theme.
13. An electronic device, comprising:
one or more processors;
a memory having one or more programs stored thereon,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-4 or the method of any of claims 5-6.
14. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method of one of the claims 1 to 4 or the method of one of the claims 5 to 6.
CN201910054658.3A 2019-01-21 2019-01-21 Method and device for transmitting information Active CN109819026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910054658.3A CN109819026B (en) 2019-01-21 2019-01-21 Method and device for transmitting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910054658.3A CN109819026B (en) 2019-01-21 2019-01-21 Method and device for transmitting information

Publications (2)

Publication Number Publication Date
CN109819026A CN109819026A (en) 2019-05-28
CN109819026B true CN109819026B (en) 2021-12-24

Family

ID=66604842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910054658.3A Active CN109819026B (en) 2019-01-21 2019-01-21 Method and device for transmitting information

Country Status (1)

Country Link
CN (1) CN109819026B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493341A (en) * 2019-08-21 2019-11-22 北京百度网讯科技有限公司 Method and device for controlling devices
CN114205158A (en) * 2021-12-06 2022-03-18 江西八戒创新资源有限公司 Internet of things platform information transmission method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751729B1 (en) * 1998-07-24 2004-06-15 Spatial Adventures, Inc. Automated operation and security system for virtual private networks
CN105471575A (en) * 2014-09-05 2016-04-06 阿里巴巴集团控股有限公司 Information encryption, decryption method and device
CN106453405A (en) * 2016-11-24 2017-02-22 济南浪潮高新科技投资发展有限公司 Security authentication method for fog node in cloud environment
CN206461664U (en) * 2017-02-16 2017-09-01 杭州景涛科技有限公司 A kind of data collecting system
CN108093401A (en) * 2017-12-13 2018-05-29 电子科技大学 A kind of mobile intelligent terminal intimacy protection system and method based on edge calculations
CN108764354A (en) * 2018-05-31 2018-11-06 北京百度网讯科技有限公司 Method and device for handling information

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10187855B2 (en) * 2014-11-28 2019-01-22 Huawei Technologies Co., Ltd. Message processing method and apparatus
CN107819543A (en) * 2016-09-12 2018-03-20 北京百度网讯科技有限公司 Data transmission method and device
CN107070920A (en) * 2017-04-18 2017-08-18 北京元心科技有限公司 Information transmission method and device based on communication application

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751729B1 (en) * 1998-07-24 2004-06-15 Spatial Adventures, Inc. Automated operation and security system for virtual private networks
CN105471575A (en) * 2014-09-05 2016-04-06 阿里巴巴集团控股有限公司 Information encryption, decryption method and device
CN106453405A (en) * 2016-11-24 2017-02-22 济南浪潮高新科技投资发展有限公司 Security authentication method for fog node in cloud environment
CN206461664U (en) * 2017-02-16 2017-09-01 杭州景涛科技有限公司 A kind of data collecting system
CN108093401A (en) * 2017-12-13 2018-05-29 电子科技大学 A kind of mobile intelligent terminal intimacy protection system and method based on edge calculations
CN108764354A (en) * 2018-05-31 2018-11-06 北京百度网讯科技有限公司 Method and device for handling information

Also Published As

Publication number Publication date
CN109819026A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
US11627208B2 (en) Method for management of intelligent internet of things, system and server
CN109743209B (en) Method and device for transmitting information
US11016716B2 (en) Picture interface display method and apparatus according to jump protocol
CN105320440B (en) Information processing method, device and system
CN104025070A (en) System and method for managing industrial processes
CN109947989B (en) Method and apparatus for processing video
US11740997B2 (en) Method and apparatus for debugging a device
CN109819026B (en) Method and device for transmitting information
CN109787829B (en) Method and device for generating information
CN110225510A (en) Method and apparatus for burning embedded SIM card
CN110719233B (en) Method and device for transmitting information
CN109995782B (en) Information processing method, device, system and computer storage medium
CN111324470A (en) Method and device for generating information
Kim et al. Wearable device control platform technology for network application development
US20180336446A1 (en) Lost and found systems, methods, and devices
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN115022328A (en) Server cluster, server cluster testing method and device and electronic equipment
CN110334763B (en) Model data file generation method, model data file generation device, model data file identification device, model data file generation apparatus, model data file identification apparatus, and model data file identification medium
CN112783189A (en) Unmanned aerial vehicle landing system, unmanned aerial vehicle landing method, landmark device, unmanned aerial vehicle and readable medium
CN110083283B (en) Method, device and system for managing information
CN110351713B (en) Method and device for processing information
CN112905254B (en) Method and device for sending request
CN111488928B (en) Method and device for acquiring samples
CN114924843B (en) Information transmission method and device, computer equipment and storage medium
CN114513548B (en) Directional call information processing method and device

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
GR01 Patent grant
GR01 Patent grant