Information transmission method and related equipment

By generating and outputting image codes on the first device, the second device collects and establishes a connection to obtain target information, the problems of cumbersome file transmission and privacy data leakage in the prior art are solved, and convenient and secure cross-device information sharing is achieved.

CN120075183APending Publication Date: 2025-05-30LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411998331.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The prior art is complicated when transferring mobile phone files to computers, and there is a risk of privacy data leakage, which cannot meet the actual information transmission needs.

Method used

By generating an image code in response to a sharing trigger operation on the first device, and outputting the image code based on a preset display method, the second device collects the image code after detecting the display method, establishes a connection and acquires target information.

Benefits of technology

It enables cross-device information sharing without physical data lines and specific applications, simplifies the transmission process, reduces the risk of privacy data leakage, and reduces device power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075183A_ABST
    Figure CN120075183A_ABST
Patent Text Reader

Abstract

The invention discloses an information transmission method and related equipment, and the method comprises the steps: generating an image code corresponding to target information by first equipment in response to a sharing triggering operation for the target information; the first device outputs an image code based on a preset display mode, so that after the second device detects the display mode of the first device, image code collection is triggered, the image code comprises first information and second information, and after the second device collects the image code, connection between the first device and the second device is established based on the first information; and obtaining target information based on the second information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information processing technology, and more specifically, to an information transmission method and related devices Background Art

[0002] With the development of electronic devices and networks, users can share various information through the Internet and also share information among different device terminals. For example, users can transfer files on the mobile phone terminal to the computer terminal for processing. Usually, when transferring files from the mobile phone terminal to the computer terminal, a data cable transmission mode is adopted, that is, the mobile phone is connected to the computer through a data cable for file transmission. Or, the same application needs to be installed on the mobile phone terminal and the computer terminal, and the transmission is carried out through this application. These processing methods are relatively cumbersome, and there is also a problem of leakage of private data if it is a public computer terminal, which cannot meet the actual information transmission requirements Summary of the Invention

[0003] In view of this, this application provides the following technical solutions

[0004] An information transmission method, applied to a first device, includes

[0005] Responding to a sharing trigger operation for target information, generating an image code corresponding to the target information

[0006] Outputting the image code based on a preset display method, so that after the second device detects the display method of the first device, it triggers the acquisition of the image code. The image code includes first information and second information, so that after the second device acquires the image code, it establishes a connection between the first device and the second device based on the first information, and acquires the target information based on the second information

[0007] Optionally, the responding to a sharing trigger operation for target information and generating an image code corresponding to the target information includes

[0008] Responding to a sharing trigger operation for target information, obtaining device information for the first device to connect

[0009] Based on the device information for the first device to connect and the target information, generating the first information and the second information in the image code. The second information includes an identifier of the target information, so that after the second device establishes a connection with the first device according to the first information, it requests the first device to send the target information or obtains the target information from a third device according to the identifier of the target information

[0010] Optionally, the preset display method is a display method determined based on a screen brightness change parameter, and the outputting the image code based on the preset display method includes

[0011] Control the screen brightness of the display screen to change according to the brightness change parameter corresponding to the display mode, so as to output the image code.

[0012] An information transmission method, applied to a second device, includes:

[0013] When the first device outputs the image code based on a preset display mode, detect the target display information corresponding to the display mode, where the image code is used for the first device to share target information with the second device, and the image code includes first information and second information;

[0014] When the target display information meets the target trigger condition, control the acquisition component to acquire the image code;

[0015] Establish a connection between the first device and the second device based on the first information, and obtain the target information based on the second information.

[0016] Optionally, the preset display mode is a display mode determined based on a screen brightness change parameter, and the detecting the target display information corresponding to the display mode includes:

[0017] Detect the screen brightness change information of the display screen of the first device that displays the image code.

[0018] Optionally, the target trigger condition includes a display brightness change condition, and when the target display information meets the target trigger condition, controlling the acquisition component to acquire the image code includes:

[0019] Obtain a light change waveform corresponding to the screen brightness change information;

[0020] If the light change waveform meets the target waveform corresponding to the display brightness change condition, control the acquisition component to acquire the image code.

[0021] Optionally, the establishing a connection between the first device and the second device based on the first information, and obtaining the target information based on the second information includes:

[0022] In response to establishing a connection between the first device and the second device based on the first information, parse the second information to obtain an identifier of the target information;

[0023] According to the identifier of the target information, receive the target information from a third device, or send a request to the first device to obtain the target information, so as to receive the target information sent by the first device.

[0024] Optionally, it further includes:

[0025] When the target information is obtained, if the target information represents the network address information of the target content, the target content is displayed based on the network address information;

[0026] If the target information represents a target content file, the target content file is displayed.

[0027] A first device includes:

[0028] A generating unit, configured to generate an image code corresponding to the target information in response to a sharing trigger operation for the target information;

[0029] An output unit, configured to output the image code based on a preset display manner, so that after a second device detects the display manner of the first device, the second device is triggered to collect the image code, where the image code includes first information and second information, so that after the second device collects the image code, a connection between the first device and the second device is established based on the first information, and the target information is obtained based on the second information.

[0030] A second device includes:

[0031] A detecting unit, configured to detect target display information corresponding to the display manner when the first device outputs the image code based on the preset display manner, where the image code is used for the first device to share target information to the second device, and the image code includes first information and second information;

[0032] A control unit, configured to control a collecting component to collect the image code when the target display information meets a target trigger condition;

[0033] An obtaining unit, configured to establish a connection between the first device and the second device based on the first information, and obtain the target information based on the second information. Description of the Drawings

[0034] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0035] Figure 1 It is a schematic flowchart of an information transmission method applied to a first device provided by an embodiment of the present application;

[0036] Figure 2 It is a schematic flowchart of an information transmission method applied to a second device provided by an embodiment of the present application;

[0037] Figure 3 A schematic diagram of an application scenario provided by an embodiment of the present application;

[0038] Figure 4 A schematic structural diagram of a first device provided by an embodiment of the present application;

[0039] Figure 5 A schematic structural diagram of a second device provided by an embodiment of the present application. Detailed implementation manners

[0040] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0041] The terms "first" and "second" in the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0042] The embodiment of the present application provides an information transmission method, which can be applied to an application scenario where at least two devices share information. For example, in a scenario where files, web pages, etc. are shared between devices, so as to achieve rapid information sharing. Correspondingly, the method can also be applied to a video projection scenario, that is, rapid information video projection is achieved based on the information transmission method of the present application. For the convenience of description, in the embodiment of the present application, information transmission between a first device and a second device is taken as an example to illustrate information sharing or information projection. The first device and the second device can be devices with device connection and information processing functions. For example, the first device can be a mobile terminal, specifically including electronic devices such as mobile phones, tablets, and computers, and the second device can be a computer, a smart TV, a smart output device, a mobile phone, etc.

[0043] See Figure 1 , a flowchart of an information transmission method applied to a first device provided by an embodiment of the present application, the method may include the following steps:

[0044] S101. In response to a sharing trigger operation for target information, generate an image code corresponding to the target information.

[0045] S102. Output an image code based on a preset display mode, so that after the second device detects the display mode of the first device, it triggers the acquisition of the image code.

[0046] In the embodiments of the present application, the target information may be the information to be shared in the first device, such as a text file, an image, a video, an audio, or a corresponding network sharing link, etc. In the case where the application programs to which the target information belongs are different, the sharing trigger operations for the target information may also be different. For example, the sharing trigger operation may be a click operation on the target information; it may also be a sharing trigger operation generated after triggering a specific shortcut key after selecting the target information; it may also be a sharing trigger operation generated after selecting the sharing button in the shortcut menu after selecting the target information.

[0047] After detecting the sharing trigger operation for the target information, the intention to share the target information will be recognized, and at this time, an image code corresponding to the target information will be generated. Among them, the image code includes first information and second information. The first information represents the device information connected to the first device, and the second information represents the information for obtaining the target information. Specifically, the first information may be network connection information connecting to the first device, such as WIFI direct connection information, Bluetooth connection information, etc. The second information may include the identifier of the target information, such as the download address information of the target information, or it may be the acquisition location of the target information, etc., or it may be the information content of the target information.

[0048] In the embodiments of the present application, the second information in the target information may be one or more. For example, if the user needs to share the current first file, the target information will include the first file. The user can also share multiple files based on the information transmission method of the embodiments of the present application. The user can select multiple files to be shared and use these files as the second information in the target information. Among them, the user can select multiple files in the same storage location as the files to be shared, or can select multiple files corresponding to different storage locations as the files to be shared. For example, the user can select documents stored in different hard disks as the files to be shared, so that the generated image code includes the information of these files to be shared, that is, these files to be shared can be obtained simultaneously by recognizing the image code. The user can also select different types of files as the files to be shared. For example, the user can select the video, audio, and documents to be shared during the same sharing period, and then use an image code generation tool to generate the corresponding image code. And the device to be shared, such as the second device, can obtain the video, audio, and documents shared by the first device simultaneously after recognizing the image code.

[0049] In the embodiments of the present application, the specific form of the image code is not limited. For example, the image code may include a two-dimensional code, a bar code, a data matrix code, or an image code generated in other coding forms, etc.

[0050] Taking the example that the first device needs to share target information with the second device, in order to facilitate the second device to recognize the information sharing task, in the embodiments of the present application, when the first device transmits the image code to the second device, the image code is output in a preset display manner, and it is not necessary to transmit the image code based on a specific application program (such as an instant messaging application program), nor is it necessary to connect the first device and the second device through a physical data cable to transmit the image code. Specifically, when the first device outputs the image code based on the preset display manner, after the second device detects the display manner of the first device, it triggers the acquisition of the image code. After obtaining the image code, the second device establishes a connection between the first device and the second device based on the first information in the image code, and obtains the target information based on the second information in the image code. That is, in this embodiment, only when the second device recognizes that the first device outputs the image code in a preset display manner, will the first device be regarded as the sharing device of the target information, that is, it is determined that the currently received content is related to information sharing. At this time, the second device will trigger its corresponding image acquisition component to collect the image code. This can eliminate the need to transmit the image code or target information through a physical data cable and a specific application program, making the information sharing process more convenient, and there is no need to add additional corresponding hardware or software, making the cross-device sharing cost lower.

[0051] In an embodiment of the embodiments of the present application, generating an image code corresponding to the target information in response to a sharing trigger operation for the target information includes: obtaining device information used by the first device to connect in response to the sharing trigger operation for the target information; generating the first information and the second information in the image code based on the device information used by the first device to connect and the target information.

[0052] Among them, the second information includes the identifier of the target information, so that after the second device establishes a connection with the first device according to the first information, it can send the target information to the first device or obtain the target information from the third device according to the identifier of the target information. In this embodiment, the device information used by the first device for connection may include the device identifier of the first device and the connection information for establishing a communication connection. If the target information is a file, such as a document, picture, audio, video, etc., the identifier of the target information may be a document identifier, picture identifier, audio identifier, video identifier, etc. These identifiers include the name, storage location, etc. Specifically, these identifiers can represent the acquisition or access connection of these files. If the target information is a web page, etc., the identifier of the target information may be the website information of the web page, etc. When the target information to be shared is an encrypted file, the identifier of the target information may further include access permission information, identity authentication information, or password information, etc. Further, the image code may further include the device information of the specified sharing object. For example, if the first device needs to share the target information with the second device, the image code may include the device information of the second device, that is, only the second device can obtain the corresponding target information by collecting the image code, while other devices cannot obtain the target information when collecting the image code. Correspondingly, if the image code does not include the device information of the specified sharing object, other devices can scan the image code to obtain the corresponding target information.

[0053] In the embodiment of the present application, in order to ensure the security of information transmission, after generating the image code, the first device may further configure the security configuration information corresponding to the image code, such as the access right item information of the image code. Specifically, only devices of a specified type or in a specified area can collect the image code. Correspondingly, the security configuration information may further include the aging information of the image code, that is, the image code is valid within the target time period, and the image code will expire after this time, so that the corresponding target information cannot be obtained.

[0054] After obtaining the image code, the second device can parse the image code, establish a communication connection with the first device based on the device information representing the connection, and then obtain the target information according to the identifier of the target information. Correspondingly, the second device can construct a request for obtaining the target information based on the identifier of the target information and send the request to the first device to obtain the target information corresponding to the identifier of the target information based on the first device. For example, if the target information is a document, the second device can send the identifier of the document to the first device so that the first device sends the document to the second device. In another embodiment, the second device can also obtain the target information from the third device according to the identifier of the target information. For example, the third device may be a cloud server, and the second device can send an information request carrying the identifier of the target information to the cloud server so that the cloud server returns the target information to the second device, thereby realizing the sharing of the target information.

[0055] In the process of the first device outputting the image code in a preset display manner, in order to enable the second device to better detect the display information corresponding to the display manner, the display method needs to be distinguished from the general display mode of the display screen of the first electronic device, so that the second electronic device can detect the task of performing image code acquisition based on the display manner. In an implementation manner of the embodiment of the present application, the preset display manner is a display manner determined based on the screen brightness change parameter. Among them, outputting the image code based on the preset display manner includes: controlling the screen brightness of the display screen to change according to the brightness change parameter corresponding to the display manner to output the image code.

[0056] In this implementation manner, the first device will control the display screen or display area for displaying the image code in a preset display manner to display the image code. For example, the brightness change of the display screen can be controlled based on the screen brightness change parameter. Specifically, the brightness of the screen for displaying the image code can be controlled to change regularly. For example, within 1 second, the brightness is the maximum and the background is white for 0.4 seconds, the brightness is the lowest and the background is black for 0.2 seconds, then the brightness is the maximum and the background is white for 0.2 seconds, and finally the brightness is the lowest and the background is black for 0.2 seconds, and it cycles periodically according to this rule. In this way, after the second device detects the regular brightness change of the screen, it can control its image acquisition component to turn on and acquire the image code through the image acquisition component. If the second device detects that the brightness of the screen of the first device for displaying the image code does not change regularly according to the preset rule, it does not meet the condition for triggering the start of the image acquisition component, that is, the image acquisition component is in a non-enabled state. In this way, the image acquisition component does not need to be maintained in the standby or working state all the time, thereby reducing the power consumption of the second device.

[0057] In an implementation manner of the embodiment of the present application, when the first device outputs an image code, it can also determine the display area for displaying the image code according to the state-related information corresponding to the device form or usage state of the first device. For example, when the user of the first device needs to share the video screenshot corresponding to the currently playing video with the second device, in order not to affect the normal video playback state of the first device, the first device can be controlled to perform split-screen processing on the current display screen, that is, the current display screen is divided into a first display area and a second display area. The first display area is used to continue playing the video, and the second display area is used to display the image code. In this way, the image code can be displayed without affecting the normal usage state of the first device. Another example is that the first device is a dual-screen device or a foldable screen device. If the first device is in a folded state, the image code can be displayed on the screen in the folded state. If the first device changes from the folded state to the unfolded state, the image code can be displayed on the unfolded screen. Another example is that the first device has two display screens, and the target display screen for displaying the image code can be determined according to the display characteristics of each display screen. Among them, the display characteristics of the display screen can be determined according to the display parameters, size, or configuration information of the display screen. For example, the size of the first screen of the first device is larger than that of the second screen. Since the display screen needs to output the image code in a preset display manner, the image code can be output to the second screen. In this way, when controlling the second screen to display according to the brightness change rule, the energy consumption of the first device can be reduced. The display of the two-dimensional code is controlled according to the current display scenarios of the first screen and the second screen. For example, if the first screen has a display scenario requirement, while the second screen has no display application window or the display window content is less, it can be displayed on the second screen, and the second screen is controlled to display according to the brightness change rule. It can also be combined with the posture of the dual screen. For example, when the dual-screen device is in the laptop mode, the keyboard / touchpad can be controlled to be the screen with brightness change on the screen of the same body or the screen located on the plane. If the second device, such as a mobile phone, is face down, other light interference can be avoided.

[0058] The information transmission method of the embodiment of the present application will be described below from the execution perspective of the second device. Refer to Figure 2 , which is a schematic flowchart of an information transmission method applied to the second device provided by the embodiment of the present application. The method may include the following steps:

[0059] S201. When the first device inputs an image code based on a preset display manner, detect the target display information corresponding to the display manner.

[0060] S202. When the target display information meets the target trigger condition, control the acquisition component to acquire the image code.

[0061] S203. Establish a connection between the first device and the second device based on the first information, and obtain the target information based on the second information.

[0062] Among them, the image code is used for the first device to share target information with the second device. The image code includes first information and second information. The first information represents the device information used by the first device for connection, and the second information includes the identifier of the target information. When the first device outputs the image code based on a preset display method, the second device can detect the target display information corresponding to the display method through a detection sensor. For example, the target display information can be display brightness information, etc. Only when the target display information meets the target trigger condition, the second device will control the acquisition component to start, so as to acquire the image code, reducing the power consumption of the second device. Further, a connection with the first device is established according to the first information in the image code, and the target information is obtained based on the second information.

[0063] In an implementation manner of the embodiment of the present application, the preset display method is a display method determined based on the screen brightness change parameter. Among them, detecting the target display information corresponding to the display method includes: detecting the screen brightness change information of the display screen of the first device that displays the image code.

[0064] Further, the target trigger condition includes a display brightness change condition. When the target display information meets the target trigger condition, controlling the acquisition component to acquire the image code includes: obtaining the light change waveform corresponding to the screen brightness change information; if the light change model meets the target waveform corresponding to the display brightness change condition, controlling the acquisition component to acquire the image code. Specifically, in order to accurately identify the screen brightness change information, so as to determine the control instruction for accurately controlling the acquisition component. In the embodiment of the present application, an optical sensor can be used to sense the light near the second device. For example, an ambient light sensor (ALS for short) can be used to detect the surrounding light intensity. The ambient light sensor in the second device will perform processing such as sampling, denoising, normalization, and feature extraction on the current ambient light, and use relevant algorithms (such as artificial intelligence model algorithms) to capture the light change waveform corresponding to the screen brightness change information, and implement detecting whether the model conforms to the target waveform corresponding to the brightness change condition, that is, determining whether it conforms to a regular change. If it conforms, the image acquisition component (such as the camera of the second device) will be controlled to be in an enabled state to acquire the image code.

[0065] Correspondingly, in an implementation manner of the embodiment of the present application, establishing a connection between the first device and the second device based on the first information, and obtaining the target information based on the second information includes: in response to establishing a connection between the first device and the second device based on the first information, parsing the second information to obtain the identifier of the target information; according to the identifier of the target information, receiving the target information from the third device, or sending a request for obtaining the target information to the first device to receive the target information sent by the first device.

[0066] Taking the WIFI direct connection between the first device and the second device as an example, after the second device obtains the first information, it can establish a communication connection between the two based on the device information corresponding to the first device in the first information. Specifically, the first device can create a WIFIP2P service and broadcast it so that the second device can learn that the first device allows WIFI direct connection. The second device will obtain the connection point of the first device according to the pairing information included in the first information and connect to the network service. After the connection is successful, the two parties can perform target information transmission.

[0067] In the embodiments of the present application, in order to improve the efficiency of information sharing, when the second device obtains the target information, if the target information represents the network address information of the target content, the target content is displayed based on the network address information; if the target information is a file guaranteeing the target content, the target content file is displayed.

[0068] For example, the first device can share website or file information with the second device. If it is network address information, after the second device obtains the network address information, it can open the network address information based on the browser configured on it, thus realizing the sharing of web page information. If it is a file, the first device and the second device can be connected through a communication connection, so that the first device can transmit the file to the second device.

[0069] In the embodiments of the present application, the first device selects the target information to be shared, and then generates an image code corresponding to the target information. The image code can be displayed in the acquisition area corresponding to the image acquisition component of the second device, thus realizing contactless sharing. It does not depend on the hardware of the first device, so the hardware cost of the first device is not increased. Further, because the second device will only control the image acquisition component to start when the display light change of the displayed image code meets the target conditions, thus realizing instant start and capturing the image code, reducing the power consumption of the device and avoiding the problem of privacy data leakage. And the first device and the second device can realize mutual transmission, automatically pair each time they are connected, without manual operation, and can also use the WIFI direct connection technology without affecting the WIFI function of the current device.

[0070] See Figure 3 , which shows a schematic diagram of an application scenario of the embodiments of the present application. In Figure 3 , there is a mobile phone and a laptop. The mobile phone needs to share the files in the mobile phone with the laptop. When the user is using the mobile phone normally, if they want to transfer a file to the laptop, they can directly click the share button in the file selection menu, and then select the application program for generating the image code, which will automatically generate a QR code. At the same time, when the mobile phone displays the QR code on the display screen, it controls the screen background to present regular bright and dark changes.

[0071] At this time, align the mobile phone screen with the camera area of the laptop. Since the background of the mobile phone screen presents different changes, the light sensor of the laptop will respond to the regular change of the brightness, determine that it is a mobile phone device at present, and further determine that an information transmission task needs to be executed. The laptop will trigger the camera to capture the QR code information, and then close the camera after obtaining the QR code information. According to the QR code information, it is parsed to obtain the WIFI direct connection pairing information included therein, as well as the website or file information to be shared. If it is a website, it can be directly opened with a computer browser to realize the sharing of web page information; if it is a file, the computer and the mobile phone can be connected through the WIFI direct connection technology. After the mobile phone responds to the connection, it starts to transmit the file to the computer.

[0072] In another embodiment, the laptop generates an image code to be shared, the screen brightness changes, and it approaches the mobile phone or tablet. The light sensor of the mobile phone or tablet can sense the change of the screen brightness of the laptop, and then starts to collect the image code of the laptop.

[0073] In the embodiment of the present application, a first device is also provided. Refer to Figure 4 , including:

[0074] A generating unit 401, configured to generate an image code corresponding to the target information in response to a sharing trigger operation for the target information;

[0075] An output unit 402, configured to output the image code based on a preset display method, so that after the second device detects the display method of the first device, it triggers the collection of the image code. The image code includes first information and second information, so that after the second device collects the image code, it establishes a connection between the first device and the second device based on the first information, and obtains the target information based on the second information.

[0076] Optionally, the generating unit includes:

[0077] A first obtaining subunit, configured to obtain device information for the first device to connect in response to a sharing trigger operation for the target information;

[0078] A generating subunit, configured to generate the first information and the second information in the image code based on the device information for the first device to connect and the target information. The second information includes an identifier of the target information, so that after the second device establishes a connection with the first device according to the first information, it requests the first device to send the target information or obtains the target information from a third device according to the identifier of the target information.

[0079] Optionally, the preset display method is a display method determined based on screen brightness change parameters. The output unit includes:

[0080] A control subunit, configured to control the screen brightness of the display screen to change according to the brightness change parameter corresponding to the display mode, so as to output the image code.

[0081] Correspondingly, in an embodiment of the present application, a second device is further provided. Refer to Figure 5 , including:

[0082] A detection unit 501, configured to detect target display information corresponding to the display mode when the first device outputs the image code based on a preset display mode, where the image code is used for the first device to share target information with the second device, and the image code includes first information and second information;

[0083] A control unit 502, configured to control the acquisition component to acquire the image code when the target display information meets a target trigger condition;

[0084] An acquisition unit 503, configured to establish a connection between the first device and the second device based on the first information, and acquire the target information based on the second information.

[0085] Optionally, the preset display mode is a display mode determined based on a screen brightness change parameter, and the detection unit is specifically configured to:

[0086] Detect the screen brightness change information of the display screen of the first device that displays the image code.

[0087] Optionally, the target trigger condition includes a display brightness change condition, and the control unit is configured to:

[0088] Obtain a light change waveform corresponding to the screen brightness change information;

[0089] If the light change waveform meets the target waveform corresponding to the display brightness change condition, control the acquisition component to acquire the image code.

[0090] Optionally, the acquisition unit is configured to:

[0091] In response to establishing a connection between the first device and the second device based on the first information, parse the second information to obtain an identifier of the target information;

[0092] According to the identifier of the target information, receive the target information from a third device, or send a request to the first device to obtain the target information, so as to receive the target information sent by the first device.

[0093] Optionally, the second device further includes:

[0094] The first display unit is configured to, when the target information is obtained, if the target information represents the network address information of the target content, display the target content based on the network address information;

[0095] The second display unit is configured to, if the target information represents a target content file, display the target content file.

[0096] It should be noted that the specific implementation of each unit and sub-unit in this embodiment can refer to the corresponding content in the foregoing text, and will not be elaborated herein.

[0097] In another embodiment of the present application, a readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the above information transmission method is implemented.

[0098] It should be noted that the specific implementation of the processor in this embodiment can refer to the corresponding content in the foregoing text, and will not be elaborated herein.

[0099] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method part.

[0100] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0101] The steps of the methods or algorithms described in combination with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.

[0102] The foregoing description of the disclosed embodiments enables those skilled in the art to practice or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An information transmission method, applied to a first device, comprising: In response to a sharing trigger operation on target information, generating an image code corresponding to the target information; The image code is output based on a preset display mode, so that after the second device detects the display mode of the first device, it triggers the acquisition of the image code, and the image code includes first information and second information, so that after the second device acquires the image code, a connection between the first device and the second device is established based on the first information, and the target information is obtained based on the second information.

2. The method according to claim 1, wherein in response to a sharing trigger operation on target information, generating an image code corresponding to the target information comprises: In response to a sharing trigger operation for target information, obtaining device information used by the first device for connection; Based on the device information used for connection by the first device and the target information, the first information and the second information in the image code are generated, and the second information includes an identifier of the target information, so that after the second device establishes a connection with the first device according to the first information, it requests the first device to send the target information or obtain the target information from the third device according to the identifier of the target information.

3. The method according to claim 1, wherein the preset display mode is a display mode determined based on a screen brightness change parameter, and outputting the image code based on the preset display mode comprises: The screen brightness of the display screen is controlled to change according to the brightness change parameter corresponding to the display mode to output the image code.

4. An information transmission method, applied to a second device, comprising: When the first device outputs the image code based on a preset display mode, target display information corresponding to the display mode is detected and obtained, the image code is used by the first device to share the target information with the second device, and the image code includes the first information and the second information; When the target display information meets the target trigger condition, controlling the acquisition component to acquire the image code; A connection is established between the first device and the second device based on the first information, and the target information is acquired based on the second information.

5. The method according to claim 4, wherein the preset display mode is a display mode determined based on a screen brightness change parameter, and the detecting and obtaining target display information corresponding to the display mode comprises: The screen brightness change information of the display screen of the first device displaying the image code is detected and obtained.

6. The method according to claim 5, wherein the target trigger condition includes a display brightness change condition, and when the target display information satisfies the target trigger condition, controlling the acquisition component to acquire the image code comprises: Obtaining a light change waveform corresponding to the screen brightness change information; If the light variation waveform satisfies the target waveform corresponding to the display brightness variation condition, the acquisition component is controlled to acquire the image code.

7. The method according to claim 4, wherein establishing a connection between the first device and the second device based on the first information and acquiring the target information based on the second information comprises: In response to establishing a connection between the first device and the second device based on the first information, parsing the second information to obtain an identifier of target information; According to the identifier of the target information, the target information is received from the third device, or a request for obtaining the target information is sent to the first device to receive the target information sent by the first device.

8. The method according to claim 7, further comprising: In the case where the target information is obtained, if the target information represents network address information of the target content, displaying the target content based on the network address information; If the target information represents a target content file, the target content file is displayed.

9. A first device, comprising: a generating unit, configured to generate an image code corresponding to the target information in response to a sharing triggering operation on the target information; An output unit is used to output the image code based on a preset display mode, so that after the second device detects the display mode of the first device, it triggers the acquisition of the image code, and the image code includes first information and second information, so that after the second device acquires the image code, a connection between the first device and the second device is established based on the first information, and the target information is obtained based on the second information.

10. A second device, comprising: a detection unit, configured to detect and obtain target display information corresponding to a preset display mode when the first device outputs the image code based on the preset display mode, wherein the image code is used by the first device to share the target information with the second device, and the image code includes the first information and the second information; A control unit, configured to control the acquisition component to acquire the image code when the target display information meets the target trigger condition; An acquiring unit is used to establish a connection between the first device and the second device based on the first information, and to acquire the target information based on the second information.