CN116389583A - Information transmission method, device, electronic equipment and storage medium - Google Patents

Information transmission method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116389583A
CN116389583A CN202310470717.1A CN202310470717A CN116389583A CN 116389583 A CN116389583 A CN 116389583A CN 202310470717 A CN202310470717 A CN 202310470717A CN 116389583 A CN116389583 A CN 116389583A
Authority
CN
China
Prior art keywords
information
transmitted
equipment
cloud
message queue
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
CN202310470717.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.)
Apollo Zhilian Beijing Technology Co Ltd
Original Assignee
Apollo Zhilian Beijing 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 Apollo Zhilian Beijing Technology Co Ltd filed Critical Apollo Zhilian Beijing Technology Co Ltd
Priority to CN202310470717.1A priority Critical patent/CN116389583A/en
Publication of CN116389583A publication Critical patent/CN116389583A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The disclosure provides an information transmission method, an information transmission device, electronic equipment and a storage medium, relates to the technical field of artificial intelligence, and particularly relates to the field of automatic driving. The specific implementation scheme is as follows: acquiring information to be transmitted from a first device, wherein the information to be transmitted comprises a second device identifier of a second device associated with the first device; determining whether the second device is in an online state according to the second device identifier; under the condition that the second equipment is in an offline state, adding information to be transmitted into a message queue; and in response to detecting that the second device is switched from the offline state to the online state, sending information to be transmitted in the message queue to the second device.

Description

Information transmission method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of artificial intelligence, and more particularly, to the field of autopilot, and more particularly, to an information transmission method, apparatus, electronic device, storage medium, and computer program product.
Background
Users sometimes need to mutually transmit information between two devices, in the transmission process, the two devices need to be kept connected in a Bluetooth, wi-Fi or other mode, and factors such as whether the two devices are connected or not, the distance between the two devices and the like can influence the normal transmission of the information.
Disclosure of Invention
The present disclosure provides an information transmission method, apparatus, electronic device, storage medium, and computer program product.
According to an aspect of the present disclosure, there is provided an information transmission method including: acquiring information to be transmitted from a first device, wherein the information to be transmitted comprises a second device identifier of a second device associated with the first device; determining whether the second device is in an online state according to the second device identifier; under the condition that the second equipment is in an offline state, adding information to be transmitted into a message queue; and in response to detecting that the second device is switched from the offline state to the online state, sending information to be transmitted in the message queue to the second device.
According to another aspect of the present disclosure, there is provided an information transmission method including: the first device sends information to be transmitted to the cloud, wherein the information to be transmitted comprises a second device identifier of a second device associated with the first device; the cloud responds to the received information to be transmitted from the first equipment, and determines whether the second equipment is in an online state or not according to the second equipment identifier; the cloud end adds the information to be transmitted to a message queue under the condition that the second equipment is in an offline state; the cloud responds to the detection that the second equipment is switched from an offline state to an online state, and sends information to be transmitted in a message queue to the second equipment; and the second equipment receives the information to be transmitted from the cloud.
According to another aspect of the present disclosure, there is provided an information transmission apparatus including: the device comprises an acquisition module, a determination module, an addition module and a sending module. The acquisition module is used for acquiring information to be transmitted from the first device, wherein the information to be transmitted comprises a second device identifier of a second device associated with the first device. The determining module is used for determining whether the second device is in an online state according to the second device identification. The adding module is used for adding the information to be transmitted to the message queue under the condition that the second equipment is in an offline state. The sending module is used for sending information to be transmitted in the message queue to the second equipment in response to detecting that the second equipment is switched from the offline state to the online state.
According to another aspect of the present disclosure, there is provided an electronic device 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 to enable the at least one processor to perform the methods provided by the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method provided by the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method provided by the present disclosure.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is an application scenario schematic diagram of an information transmission method and apparatus according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of an information transmission method according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of an information transmission method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a method of updating a database according to an embodiment of the present disclosure;
fig. 5A is a schematic flow chart of an information transmission method according to an embodiment of the present disclosure;
FIG. 5B is a schematic diagram of an information transmission method according to an embodiment of the present disclosure;
fig. 6 is a schematic structural block diagram of an information transmission apparatus according to an embodiment of the present disclosure; and
fig. 7 is a block diagram of an electronic device for implementing an information transmission method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Users sometimes need to transfer information between two devices, called a first device and a second device, respectively, which information is called information to be transferred.
In some embodiments, two devices may connect via bluetooth, wi-Fi, etc., which requires that both devices be online at the same time, e.g., both devices need to turn on bluetooth or connect to Wi-Fi.
However, bluetooth connection or Wi-Fi is susceptible to external interference, resulting in unstable connection between two devices, and when the two devices are disconnected due to signal instability or the like, information cannot be normally transmitted between the two devices, and the information cannot be retransmitted after the two devices resume connection. In addition, the physical distance between two devices can also affect the normal transmission of information. In addition, there is some complexity in establishing a bluetooth or Wi-Fi connection between two devices. Thus, the user experience is reduced.
The present disclosure is directed to providing an information transmission method, which has fewer transmission restrictions, and can use a cloud as an intermediate information processor and a message distributor, and the cloud can retransmit information to be transmitted that is not successfully transmitted, thereby eliminating the restriction that two devices must be online at the same time, and eliminating the restriction that a short distance between the two devices is maintained. In addition, when information transmission is needed, a user can simply operate on the first device, operation steps are simpler and more convenient, and therefore user experience is improved.
The information transmission method provided by the disclosure is suitable for a scene of mutually transmitting information between two devices, for example, the scene can comprise mutually transmitting target geographic position information between mobile phone navigation software and vehicle-mounted system navigation software. In actual operation, the user can send the selected target address position information in the mobile phone navigation software to the navigation software of the vehicle-mounted system, and can also send the target address position information in the navigation software of the vehicle-mounted system to the mobile phone navigation software.
The technical solutions provided by the present disclosure will be described in detail below with reference to the accompanying drawings and specific embodiments.
Fig. 1 is an application scenario schematic diagram of an information transmission method and apparatus according to an embodiment of the present disclosure.
It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, the system architecture 100 according to this embodiment may include first devices 1011, 1012, 1013, second devices 1021, 1022, 1023, a cloud 103, and a network.
The network is used to provide a medium for communication links between the first devices 1011, 1012, 1013 and the cloud 103, and a medium for communication links between the second devices 1021, 1022, 1023 and the cloud 103. The network may include various connection types, such as wired and/or wireless communication links, and the like.
The user may interact with the cloud 103 over a network using the first device 1011, 1012, 1013, to receive or send messages, etc. The first devices 1011, 1012, 1013 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The cloud 103 may be a cloud providing various services, such as a background management cloud (by way of example only) providing support for websites browsed by the user using the first devices 1, 1012, 1013. The cloud 103 may forward the information to be transmitted of the first device 1011, 1012, 1013 to the second device 1021, 1022, 1023.
It should be noted that, the information transmission method provided in the embodiments of the present disclosure may be generally executed by the cloud 103. Accordingly, the information transmission device provided in the embodiments of the present disclosure may be generally disposed in the cloud end 103. The information transmission method provided by the embodiment of the disclosure may also be executed by a cloud or a cloud cluster different from the cloud 103 and capable of communicating with the first devices 101, 102, 103 and/or the cloud 103. Accordingly, the information transmission device provided in the embodiments of the present disclosure may also be disposed in a cloud or a cloud cluster different from the cloud 103 and capable of communicating with the first devices 101, 102, 103 and/or the cloud 103.
It should be understood that the number of first devices, second devices, and clouds in fig. 1 is merely illustrative. There may be any number of first devices, second devices, and cloud ends, as desired for implementation.
In some embodiments, the first device may be a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, or the like, and may also be a vehicle terminal. The second device may be a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, or a vehicle terminal. In some embodiments, the first device is a mobile terminal and the second device is a vehicle terminal, or the first device is a vehicle terminal and the second device is a mobile terminal, or both the first device and the second device are mobile terminals, or both the first device and the second device are vehicle terminals.
The first device and the second device may be respectively installed with target software, and the target software may be navigation software.
Fig. 2 is a schematic flow chart of an information transmission method according to an embodiment of the present disclosure.
As shown in fig. 2, the information transmission method 200 may be performed by a cloud, and the information transmission method 200 may include operations S210 to S240.
In operation S210, information to be transmitted from a first device is acquired, the information to be transmitted including a second device identification of a second device associated with the first device.
The information to be transmitted may also include target information, which may represent information that needs to be transmitted between the first device and the second device. For example, the first device and the second device may be respectively installed with navigation software, and the target information may be target geographical location information. For another example, the first device and the second device may be respectively installed with audio playing software, and the target information may be audio information. For another example, the first device and the second device may be respectively installed with image software, and the target information may be image information. The present embodiment does not limit the target information.
For example, the first device may send the information to be transmitted through an https request, and security may be improved by using https network transmission.
In operation S220, it is determined whether the second device is in an online state according to the second device identification.
For example, in the case where a device has established a connection with the cloud, the cloud may add the identity of the device to the set of identities. Under the condition that the equipment and the cloud end are disconnected, the cloud end can delete the equipment identifier from the identifier set. After receiving the information to be transmitted, the cloud can detect whether the second equipment identifier is included in the identifier set, if so, the cloud determines that the second equipment is in an online state, and if not, the cloud determines that the second equipment is in an offline state.
In operation S230, in case it is determined that the second device is in an offline state, information to be transmitted is added to the message queue.
For example, the message queue may be a Kafka message queue.
In response to detecting that the second device is switched from the offline state to the online state, information to be transmitted in the message queue is transmitted to the second device in operation S240.
For example, the cloud end may refer to the above for detecting whether the second device is in an online state, which is not described herein.
According to the technical scheme provided by the embodiment of the disclosure, when the second equipment is in an offline state, the cloud end can store the information to be transmitted to the message queue first and send the information to the second equipment when the second equipment is in an online state, so that the first equipment and the second equipment are not required to be online at the same time, and the physical distance between the first equipment and the second equipment has no influence on the information to be transmitted, thereby improving user experience.
Fig. 3 is a schematic flow chart of an information transmission method according to an embodiment of the present disclosure.
As shown in fig. 3, the information transmission method 300 may be performed by an information transmission system including a first device, a cloud, and a second device. The information transmission method 300 may include operations S310 to S360.
In operation S310, the first device sends information to be transmitted to the cloud.
In operation S320, the cloud end determines whether the second device is in an online state according to the second device identifier in response to receiving the information to be transmitted from the first device. If the operation is in the on-line state, the operation proceeds to operation S330, and if the operation is in the off-line state, the operation proceeds to operation S340.
For example, in the case where a device has established a connection with the cloud, the cloud adds the identity of the device to the set of identities. And under the condition that the equipment is disconnected from the cloud end, the cloud end deletes the equipment identifier from the identifier set. After receiving the information to be transmitted, the cloud can detect whether the second equipment identifier is included in the identifier set, if so, the cloud determines that the second equipment is in an online state, and if not, the cloud determines that the second equipment is in an offline state.
For another example, the cloud end and the second device may maintain heartbeat connection, if the heartbeat connection between the cloud end and the second device is disconnected, it is determined that the second device is in an offline state, otherwise, it is determined that the second device is in an online state.
In operation S330, the cloud end sends information to be transmitted to the second device.
In operation S340, the cloud end adds the information to be transmitted to the message queue.
In operation S350, the cloud end sends information to be transmitted in the message queue to the second device in response to detecting that the second device is switched from the offline state to the online state.
In operation S360, the second device receives the information to be transmitted from the cloud.
According to the technical scheme provided by the embodiment of the disclosure, when the second equipment is in an offline state, the cloud end can store information to be transmitted to the message queue first and send the information to the second equipment when the second equipment is in an online state, so that the first equipment and the second equipment do not need to be online at the same time, and the physical distance between the first equipment and the second equipment has no influence on the information to be transmitted, thereby improving user experience.
According to another embodiment of the present disclosure, the above information transmission method may further include the following operations: and the cloud end deletes the information to be transmitted from the message queue in response to detecting that the storage time length of the information to be transmitted in the message queue is greater than or equal to the preset push time length.
In this embodiment, the user may set a predetermined pushing duration through the first device, and if the duration of the information to be transmitted in the cloud exceeds the predetermined pushing duration, the user may not push the information to be transmitted any more, so as to avoid pushing the expired information to be transmitted to the second device.
It should be noted that, when the cloud end can clear the information to be transmitted according to the predetermined pushing duration, the cloud end can send the information to be transmitted in the message queue to the second device when detecting that the second device is switched from the offline state to the online state and the information to be transmitted is not deleted from the message queue.
Fig. 4 is a schematic diagram of a method of updating a database according to an embodiment of the present disclosure.
As shown in fig. 4, in this embodiment, a record corresponding to the information to be transmitted may also be stored in the database, and the database may be updated according to the actual situation, and the process of updating the database will be described below.
For example, the first device 401 sends information to be transmitted to the cloud 402. In response to receiving the information to be transmitted, the cloud 402 stores a record corresponding to the information to be transmitted in a database.
When the user needs to query the record, the user can operate on the first device 401, and the first device 401 sends a query instruction to the cloud 402. In response to receiving the query instruction from the first device 401, the cloud 402 outputs, to the first device 401, the remaining records in the database and a transmission state of information to be transmitted corresponding to each remaining record, where the transmission state may include transmitted and untransmitted.
The first device 401 presents the remaining records and transmission status to the user in response to receiving the remaining records and transmission status from the cloud 402. The user may click on the first device 401 to undo a target remaining record, which may trigger a cancel instruction.
The first device 401 sends a delete instruction for the target remaining record to the cloud 402 in response to receiving a cancel instruction for the target remaining record. Next, in response to receiving a deletion instruction for the target remaining record, the cloud 402 may determine whether the information to be transmitted is in the message queue, if so, may delete the information to be transmitted corresponding to the target remaining record from the message queue, and if not, may return a result to the user.
In this embodiment, the user may query the navigation software of the first device 401 for the sending record, and the cloud 402 returns the remaining records that are not deleted in the database to the first device 401. If the information to be transmitted is not successfully transmitted and is still in the message queue of the cloud 402, the user can cancel the request for transmitting the information to be transmitted, so that the flexibility of use is improved.
In other examples, records in the database may also be deleted in other ways. For example, the user may set a predetermined clearing duration on the navigation software of the first device or the second device, the cloud may traverse the remaining records in the database according to the received instruction or periodically, determine whether the storage duration of each record in the database is greater than or equal to the predetermined clearing duration, if so, delete the record from the database, and if not, continue to reserve the record. In this embodiment, the cloud may run a script, and clear the sending record of the information to be transmitted at regular time according to the preset clear duration set by the user, so as to improve the security of the user information.
Fig. 5A is a schematic flowchart of an information transmission method according to an embodiment of the present disclosure, and fig. 5B is a schematic diagram of an information transmission method according to an embodiment of the present disclosure.
As shown in fig. 5A and 5B, in the present embodiment, the information transmission method 500 may include operations S511 to S512, and operations S520 to S580.
Before performing operation S511, some preprocessing operations may be performed in advance. For example, an asymmetric encrypted key pair may be generated in advance using the RSA algorithm, and the key pair may include a first key and a second key, where it can be seen that one of the first key and the second key is a public key, and the other is a private key. The first device 501 and the second device 503 may then store the first key and the second key, respectively.
In use, the first device 501 may take the geographic location of the first device 501 at the current time as target geographic location information, or take the geographic location selected by the user in the navigation software of the first device 501 as target geographic location information. The user may also configure the values of the predetermined push time period and the predetermined clear time period in the first device 501. Next, operation S511 may be performed.
In operation S511, the first device 501 performs encryption processing.
For example, the first device 501 generates a symmetric key using a symmetric encryption algorithm, which may be an AES algorithm. The first device 501 then encrypts the target geographic location information using the symmetric key to obtain encrypted information. The first device 501 further encrypts the symmetric key by using the first key in the key pair to obtain an encrypted symmetric key. The first device 501 then determines information to be transmitted according to the encrypted information, the encrypted symmetric key, and the second device 503 identifier, for example, splices the encrypted information and the encrypted symmetric key, and combines the spliced character string with the second device 503 identifier to form the information to be transmitted.
The embodiment encrypts the information to be transmitted by using the symmetric key and the secret key, so that the information to be transmitted can be prevented from being leaked, and the safety is improved. In addition, the embodiment also utilizes the symmetric encryption algorithm to randomly generate the symmetric key, so that the security of the symmetric key can be improved, and the security of information to be transmitted is further improved.
In operation S512, the first device 501 sends information to be transmitted to the cloud 502.
In operation S520, the cloud 502 determines whether the second device 503 is in an online state according to the identification of the second device 503 in response to receiving the information to be transmitted from the first device 501. If the operation is in the on-line state, the operation proceeds to operation S530, and if the operation is in the off-line state, the operation proceeds to operation S540.
In operation S530, the cloud 502 sends information to be transmitted to the second device 503.
In operation S540, the cloud 502 adds the information to be transmitted to the message queue.
In operation S550, the cloud 502 sends the information to be transmitted in the message queue to the second device 503 in response to detecting that the second device 503 is switched from the offline state to the online state.
In operation S560, the second device 503 receives the information to be transmitted from the cloud 502.
In operation S570, the second device 503 determines target geographical location information according to the information to be transmitted.
For example, the first device 501 performs encryption processing using a symmetric key and a key pair, and accordingly, the second device 503 decrypts the encrypted symmetric key using a second key in the key pair to obtain a symmetric key, and then the second device 503 decrypts the encrypted information using the symmetric key to obtain the target geographical location information.
In operation S580, the second device 503 performs navigation based on the target geographical location information.
For example, the navigation software of the second device 503 presents that the target geographic location information is received and asks the user whether to initiate navigation, and in response to the user clicking to initiate navigation, the navigation software of the second device 503 may initiate navigation.
It should be noted that, in addition to the above-described manner of performing encryption and decryption processing using the symmetric key and the key pair, other manners of encryption and decryption may be adopted. For example, the first device and the second device may agree in advance on a predetermined encryption algorithm and a predetermined decryption algorithm, where the first device encrypts the information to be transmitted according to the predetermined encryption algorithm, and the second device decrypts the information according to the predetermined decryption algorithm, thereby obtaining the target geographic location information.
It should be noted that in some embodiments, the operations of encrypting and decoding may be omitted, for example, the first device does not encrypt the target geographic location information to encrypt, but directly sends the information to be transmitted, which is not encrypted, to the cloud end, and after the second device obtains the information to be transmitted from the cloud end, the second device may directly extract the sub-information of the predetermined field from the information to be transmitted, as the target geographic location information.
Fig. 6 is a schematic block diagram of an information transmission apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the information transmission apparatus 600 may include an acquisition module 610, a determination module 620, an addition module 630, and a transmission module 640.
The obtaining module 610 is configured to obtain information to be transmitted from a first device, where the information to be transmitted includes a second device identifier of a second device associated with the first device.
The determining module 620 is configured to determine whether the second device is in an online state according to the second device identifier.
The adding module 630 is configured to add information to be transmitted to the message queue if it is determined that the second device is in an offline state.
The sending module 640 is configured to send information to be transmitted in the message queue to the second device in response to detecting that the second device is switched from the offline state to the online state.
According to another embodiment of the present disclosure, the determining module includes: a first determination sub-module and a second determination sub-module. The first determining submodule is used for determining that the second device is in an online state in response to detecting that the identifier set comprises the second device identifier; the second determining submodule is used for determining that the second device is in an offline state in response to detecting that the identifier set does not comprise the second device identifier; wherein the set of identifications includes identifications of devices that have established a connection with the cloud.
According to another embodiment of the present disclosure, the above apparatus further includes: the device comprises a storage module, a first deleting module, an output module, a second deleting module and a third deleting module. The storage module is used for responding to the received information to be transmitted and storing records corresponding to the information to be transmitted in the database; the first deleting module is used for deleting the record from the database in response to the fact that the storage time length of the record in the database is longer than or equal to the preset clearing time length; the output module is used for responding to the query instruction received from the first equipment and outputting the residual records in the database and the transmission state of the information to be transmitted corresponding to each residual record to the first equipment; the second deleting module is used for deleting the information to be transmitted corresponding to the target residual record from the message queue in response to receiving a deleting instruction aiming at the target residual record; and the third deleting module is used for deleting the information to be transmitted from the message queue in response to the fact that the storage time length of the information to be transmitted in the message queue is greater than or equal to the preset push time length.
According to another embodiment of the present disclosure, the information to be transmitted further includes target geographic location information.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order colloquial is not violated.
In the technical scheme of the disclosure, the authorization or consent of the user is obtained before the personal information of the user is obtained or acquired.
According to an embodiment of the present disclosure, the present disclosure also provides an electronic device including at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the information transmission method described above.
According to an embodiment of the present disclosure, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the above-described information transmission method.
According to an embodiment of the present disclosure, the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-mentioned information transmission method.
Fig. 7 is a block diagram of an electronic device for implementing an information transmission method of an embodiment of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the apparatus 700 includes a computing unit 701 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 may also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in device 700 are connected to I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, etc.; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, an optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 701 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the respective methods and processes described above, such as an information transmission method. For example, in some embodiments, the information transmission method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 700 via ROM 702 and/or communication unit 709. When a computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the information transmission method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the information transmission method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (21)

1. An information transmission method, comprising:
acquiring information to be transmitted from a first device, wherein the information to be transmitted comprises a second device identifier of a second device associated with the first device;
determining whether the second equipment is in an online state according to the second equipment identifier;
under the condition that the second equipment is in an offline state, adding the information to be transmitted into a message queue; and
and in response to detecting that the second device is switched from an offline state to an online state, sending the information to be transmitted in the message queue to the second device.
2. The method of claim 1, wherein the determining whether the second device is online based on the second device identification comprises:
in response to detecting that the second device identifier is included in the identifier set, determining that the second device is in an online state; and
in response to detecting that the second device identifier is not included in the identifier set, determining that the second device is in an offline state;
the identification set comprises identifications of devices connected with the cloud.
3. The method of claim 1, further comprising:
in response to receiving the information to be transmitted, storing a record corresponding to the information to be transmitted in a database; and
in response to detecting that the storage time period of a record in the database is greater than or equal to a predetermined purge time period, the record is deleted from the database.
4. The method of claim 1, further comprising:
in response to receiving a query instruction from the first device, outputting to the first device remaining records in a database and transmission states of information to be transmitted corresponding to each remaining record;
deleting information to be transmitted corresponding to the target residual record from the message queue in response to receiving a deleting instruction for the target residual record; and
and deleting the information to be transmitted from the message queue in response to detecting that the storage time length of the information to be transmitted in the message queue is greater than or equal to a preset push time length.
5. The method of claim 1, wherein the information to be transmitted further comprises target geographic location information.
6. An information transmission method, comprising:
the method comprises the steps that a first device sends information to be transmitted to a cloud, wherein the information to be transmitted comprises a second device identifier of a second device associated with the first device;
the cloud responds to the received information to be transmitted from the first equipment, and determines whether the second equipment is in an on-line state or not according to the second equipment identifier;
the cloud end adds the information to be transmitted to a message queue under the condition that the second equipment is in an offline state;
the cloud end responds to the fact that the second equipment is detected to be switched from an offline state to an online state, and the information to be transmitted in the message queue is sent to the second equipment; and
and the second equipment receives the information to be transmitted from the cloud.
7. The method of claim 6, wherein the determining whether the second device is online based on the second device identification comprises:
the cloud end responds to the fact that the second equipment identifier is included in the identifier set, and the second equipment is determined to be in an on-line state; and
the cloud responds to the fact that the second equipment identifier is not included in the identifier set, and the second equipment is determined to be in an offline state;
the identification set comprises identifications of devices connected with the cloud.
8. The method of claim 6, further comprising:
the cloud end responds to the receiving of the information to be transmitted, and records corresponding to the information to be transmitted are stored in a database; and
and deleting the record from the database in response to detecting that the storage time period of the record in the database is longer than or equal to a predetermined clearing time period.
9. The method of claim 6, further comprising:
and the cloud end deletes the information to be transmitted from the message queue in response to detecting that the storage time length of the information to be transmitted in the message queue is greater than or equal to a preset push time length.
10. The method of claim 6, further comprising:
the first device sends a query instruction to the cloud;
the cloud end responds to the query instruction received from the first device and outputs the residual records in the database and the transmission state of the information to be transmitted corresponding to each residual record to the first device;
the first device displaying the remaining records and the transmission state in response to receiving the remaining records and the transmission state from the cloud;
the first device responds to receiving a cancel instruction aiming at a target residual record, and sends a delete instruction aiming at the target residual record to the cloud; and
and the cloud end responds to receiving a deleting instruction aiming at the target residual record, and deletes information to be transmitted corresponding to the target residual record from the message queue.
11. The method according to any of claims 6 to 10, the information to be transmitted further comprising target geographical location information; the method further comprises the steps of: after the second device receives the information to be transmitted from the cloud,
the second equipment determines the target geographic position information according to the information to be transmitted; and
the second device navigates based on the target geographic location information.
12. The method of claim 11, the first device sending information to be transmitted to a cloud comprising:
the first device generates a symmetric key by using a symmetric encryption algorithm;
the first equipment encrypts the target geographic position information by using the symmetric key to obtain encrypted information;
the first device encrypts the symmetric key by using a first key in a key pair to obtain an encrypted symmetric key;
the first device determines the information to be transmitted according to the encryption information, the encrypted symmetric key and the second device identifier; and
and the first equipment sends the information to be transmitted to the cloud.
13. The method of claim 12, the second device determining the target geographic location information from the information to be transmitted comprising:
the second device decrypts the encrypted symmetric key by using the second key in the key pair to obtain the symmetric key; and
and the second equipment decrypts the encrypted information by using the symmetric key to obtain the target geographic position information.
14. An information transmission apparatus comprising:
the device comprises an acquisition module, a transmission module and a transmission module, wherein the acquisition module is used for acquiring information to be transmitted from a first device, and the information to be transmitted comprises a second device identifier of a second device associated with the first device;
the determining module is used for determining whether the second equipment is in an online state according to the second equipment identifier;
the adding module is used for adding the information to be transmitted to a message queue under the condition that the second equipment is in an offline state; and
and the sending module is used for responding to the detection that the second equipment is switched from the offline state to the online state and sending the information to be transmitted in the message queue to the second equipment.
15. The apparatus of claim 14, wherein the means for determining comprises:
a first determination submodule for determining that the second device is in an online state in response to detecting that the second device identifier is included in the identifier set; and
a second determining sub-module configured to determine, in response to detecting that the second device identifier is not included in the identifier set, that the second device is in an offline state;
the identification set comprises identifications of devices connected with the cloud.
16. The apparatus of claim 14, further comprising:
the storage module is used for responding to the received information to be transmitted and storing records corresponding to the information to be transmitted in a database; and
and the first deleting module is used for deleting the record from the database in response to detecting that the storage time length of the record in the database is longer than or equal to the preset clearing time length.
17. The apparatus of claim 14, further comprising:
the output module is used for responding to the query instruction received from the first equipment and outputting the residual records in the database and the transmission state of the information to be transmitted corresponding to each residual record to the first equipment;
the second deleting module is used for deleting information to be transmitted corresponding to the target residual record from the message queue in response to receiving a deleting instruction aiming at the target residual record; and
and the third deleting module is used for deleting the information to be transmitted from the message queue in response to the fact that the storage time length of the information to be transmitted in the message queue is greater than or equal to the preset pushing time length.
18. The apparatus of claim 14, wherein the information to be transmitted further comprises target geographic location information.
19. An electronic 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 to enable the at least one processor to perform the method of any one of claims 1 to 5.
20. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1 to 5.
21. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 5.
CN202310470717.1A 2023-04-27 2023-04-27 Information transmission method, device, electronic equipment and storage medium Pending CN116389583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310470717.1A CN116389583A (en) 2023-04-27 2023-04-27 Information transmission method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310470717.1A CN116389583A (en) 2023-04-27 2023-04-27 Information transmission method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116389583A true CN116389583A (en) 2023-07-04

Family

ID=86980737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310470717.1A Pending CN116389583A (en) 2023-04-27 2023-04-27 Information transmission method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116389583A (en)

Similar Documents

Publication Publication Date Title
US9219710B2 (en) Seamless authentication with proxy servers
CN111199037B (en) Login method, system and device
CN111478974B (en) Network connection method and device, electronic equipment and readable storage medium
CN113630412B (en) Resource downloading method, resource downloading device, electronic equipment and storage medium
CN110324384B (en) Data pushing method and device
CN112702229B (en) Data transmission method, device, electronic equipment and storage medium
CN113794706A (en) Data processing method and device, electronic equipment and readable storage medium
CN113438256A (en) Data transmission method, system and proxy server based on double-layer SSL
US20150156157A1 (en) Association method and device for communications modes
CN115514718B (en) Data interaction method, control layer and equipment based on data transmission system
CN113992345B (en) Webpage sensitive data encryption and decryption method and device, electronic equipment and storage medium
CN113609156B (en) Data query and write method and device, electronic equipment and readable storage medium
CN116389583A (en) Information transmission method, device, electronic equipment and storage medium
CN112825519B (en) Method and device for identifying abnormal login
CN113190812A (en) Login method, system, electronic equipment and storage medium
CN113763646A (en) Device control method, device, electronic device and computer readable medium
WO2019223759A1 (en) Method and device for displaying wireless access point information
CN111786936A (en) Method and device for authentication
CN107181772B (en) Method and device for updating client state on line in real time
CN110011767B (en) Method and apparatus for TCP connection backup
CN114186669B (en) Training method, device, equipment and storage medium of neural network model
CN114024780B (en) Node information processing method and device based on Internet of things equipment
CN114598524B (en) Method, device, equipment and storage medium for detecting agent tool
CN114428967A (en) Data transmission method, device, equipment and storage medium
CN114398622A (en) Cloud application processing method and device, electronic equipment and storage medium

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