CN114628966A - Data line, light emission control method, device, equipment and storage medium - Google Patents
Data line, light emission control method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114628966A CN114628966A CN202210260585.5A CN202210260585A CN114628966A CN 114628966 A CN114628966 A CN 114628966A CN 202210260585 A CN202210260585 A CN 202210260585A CN 114628966 A CN114628966 A CN 114628966A
- Authority
- CN
- China
- Prior art keywords
- light
- data line
- interface
- pressure
- unit
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000001514 detection method Methods 0.000 claims description 41
- 238000005286 illumination Methods 0.000 claims description 21
- 230000004044 response Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 13
- 230000005540 biological transmission Effects 0.000 description 8
- JHBVPKZLIBDTJR-UHFFFAOYSA-N 1,2-dichloro-4-(3-chlorophenyl)benzene Chemical compound ClC1=CC=CC(C=2C=C(Cl)C(Cl)=CC=2)=C1 JHBVPKZLIBDTJR-UHFFFAOYSA-N 0.000 description 7
- 238000004590 computer program Methods 0.000 description 5
- 239000003990 capacitor Substances 0.000 description 4
- 230000001681 protective effect Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005669 field effect Effects 0.000 description 2
- 238000002347 injection Methods 0.000 description 2
- 239000007924 injection Substances 0.000 description 2
- 239000004033 plastic Substances 0.000 description 2
- 239000004417 polycarbonate Substances 0.000 description 2
- 239000000243 solution Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 229920000515 polycarbonate Polymers 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000005476 soldering Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R31/00—Coupling parts supported only by co-operation with counterpart
- H01R31/06—Intermediate parts for linking two coupling parts, e.g. adapter
- H01R31/065—Intermediate parts for linking two coupling parts, e.g. adapter with built-in electric apparatus
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F21—LIGHTING
- F21V—FUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
- F21V23/00—Arrangement of electric circuit elements in or on lighting devices
- F21V23/04—Arrangement of electric circuit elements in or on lighting devices the elements being switches
- F21V23/0442—Arrangement of electric circuit elements in or on lighting devices the elements being switches activated by means of a sensor, e.g. motion or photodetectors
- F21V23/0485—Arrangement of electric circuit elements in or on lighting devices the elements being switches activated by means of a sensor, e.g. motion or photodetectors the sensor sensing the physical interaction between a user and certain areas located on the lighting device, e.g. a touch sensor
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F21—LIGHTING
- F21V—FUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
- F21V33/00—Structural combinations of lighting devices with other articles, not otherwise provided for
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R13/00—Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
- H01R13/62—Means for facilitating engagement or disengagement of coupling parts or for holding them in engagement
- H01R13/627—Snap or like fastening
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R13/00—Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
- H01R13/66—Structural association with built-in electrical component
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R13/00—Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
- H01R13/66—Structural association with built-in electrical component
- H01R13/665—Structural association with built-in electrical component with built-in electronic circuit
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R13/00—Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
- H01R13/66—Structural association with built-in electrical component
- H01R13/665—Structural association with built-in electrical component with built-in electronic circuit
- H01R13/6683—Structural association with built-in electrical component with built-in electronic circuit with built-in sensor
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R13/00—Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
- H01R13/66—Structural association with built-in electrical component
- H01R13/717—Structural association with built-in electrical component with built-in light source
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01R—ELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
- H01R13/00—Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
- H01R13/66—Structural association with built-in electrical component
- H01R13/717—Structural association with built-in electrical component with built-in light source
- H01R13/7172—Conduits for light transmission
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Human Computer Interaction (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The disclosure provides a data line, a light-emitting control method, a light-emitting control device, light-emitting equipment and a storage medium, and belongs to the technical field of data lines. The data line includes: the data line comprises a data line body, a first interface and a light-emitting component, wherein the first interface is used for being connected with an equipment interface of target equipment; the light-emitting component is connected with the first interface and used for emitting light when the pressure is greater than or equal to the threshold value. In a dark environment, a user can pinch the light-emitting component in the process of inserting the first interface of the data line into the equipment interface of the target equipment, and the light-emitting component can emit light when the pressure applied to the light-emitting component is larger than or equal to a threshold value. In this way, the user can quickly insert the first interface of the data line into the device interface of the target device in a dark environment.
Description
Technical Field
The present disclosure relates to the field of charging technologies, and in particular, to a data line, a light emission control method, an apparatus, a device, and a storage medium.
Background
The data line is one of auxiliary accessories of the electronic equipment, and is mainly used for charging, data transmission and the like.
The data line comprises a data line body and a first interface, and the first interface of the data line is connected with the equipment interface of the target equipment.
In a dark environment, a user is difficult to insert the first interface of the data line into the device interface of the target device in a short time, so that the charging efficiency or data transmission efficiency of the user is low, and the user experience is affected.
Disclosure of Invention
The embodiment of the disclosure provides a data line, a light-emitting control method, a light-emitting control device, a light-emitting control apparatus and a storage medium, which can facilitate a user to quickly insert a first interface of the data line into an apparatus interface of a target apparatus in a dark environment. The technical scheme is as follows:
in a first aspect, a data line is provided, the data line including: a data line body; a first interface for interfacing with a device of a target device; and the light-emitting component is connected with the first interface and is used for emitting light when the pressure is greater than or equal to the threshold value.
Optionally, the light emitting assembly comprises a housing, and a pressure detection unit, a control unit and a lighting unit arranged in the housing; the pressure detection unit is used for detecting the pressure applied on the shell; the control unit is respectively connected with the pressure detection unit and the illumination unit, the control unit is used for controlling the illumination unit to emit light when the pressure value detected by the pressure detection unit is greater than or equal to the threshold value, and a part of the first interface is positioned in the shell.
Optionally, the control unit comprises: the control end of the switch circuit is connected with the controller, one end of the switch circuit is connected with the power line of the data line body, and the other end of the switch circuit is connected with the lighting unit; the controller is used for controlling the switch circuit to be in a conducting state when the pressure value is larger than or equal to the threshold value, so that the lighting unit emits light.
Optionally, the light emitting assembly further includes a PCB (PCB) located within the housing, and the pressure detection unit, the control unit, and the illumination unit are located on the PCB.
Optionally, the light emitting assembly further comprises a light guiding structure sandwiched between the housing and the first interface, the light guiding structure being configured to guide light emitted by the lighting unit out of the housing.
Optionally, the light guide structure includes a light guide ring and a light guide arm, the light guide ring surrounds the first interface and is sandwiched between the housing and the first interface, one end of the light guide arm is connected to the light guide ring, and the other end of the light guide arm covers the lighting unit.
Optionally, the data line further includes a brightness detection unit, and the brightness detection unit is located at one end of the data line body, which is far away from the first interface.
Optionally, the data line further includes a second interface, the second interface is located at one end of the data line body, which is far away from the first interface, and the second interface is used for being connected with a charging interface of a charger; or, the data line includes the charging plug, the charging plug with the data line body is kept away from the one end of first interface is connected.
In a second aspect, there is provided a light emission control method applied to the data line of the first aspect, the method including: detecting the pressure applied to the light-emitting component; controlling the light emitting assembly to emit light in response to determining that the pressure is greater than or equal to a threshold value.
In a third aspect, there is provided a lighting control apparatus, the apparatus comprising: the detection module is used for acquiring the pressure applied to the light-emitting assembly; a control module to control the light emitting assembly to emit light in response to determining that the pressure is greater than or equal to a threshold.
In a fourth aspect, there is provided a computer device comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the method of the second aspect.
In a fifth aspect, a computer-readable medium is provided, wherein instructions of the computer-readable medium, when executed by a processor of a computer device, enable the computer device to perform the method of the second aspect.
In a sixth aspect, there is provided a computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the method of the second aspect.
The technical scheme provided by the embodiment of the disclosure has the following beneficial effects:
in the embodiment of the disclosure, the data line comprises a data line body, a first interface and a light-emitting component. The first interface is connected with an equipment interface of the target equipment; the light emitting component is connected with the first interface. In a dark environment, a user can pinch the light-emitting component in the process of inserting the first interface of the data line into the equipment interface of the target equipment, and the light-emitting component can emit light when the pressure applied to the light-emitting component is larger than or equal to a threshold value. Therefore, the user can insert the first interface of the data line into the equipment interface of the target equipment quickly in a dark environment, so that the charging or data transmission efficiency of the user can be improved, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a data line provided in an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of another data line provided in the embodiments of the present disclosure;
fig. 3 is a schematic perspective exploded view of a data line according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of a pressure detection unit provided in an embodiment of the present disclosure;
fig. 5 is a schematic circuit diagram of a control unit according to an embodiment of the present disclosure;
fig. 6 is a flowchart of a lighting control method provided by an embodiment of the present disclosure;
fig. 7 is a flowchart of another light emission control method provided by the embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a lighting control device provided in an embodiment of the present disclosure;
fig. 9 is a block diagram of a computer device provided in an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a data line according to an embodiment of the present disclosure. Referring to fig. 1, the data line includes: the data line comprises a data line body 10, a first interface 20 and a light emitting assembly 30.
The first interface 20 is used for interfacing with a device of the target device. Illustratively, the target device may be a notebook, a cell phone, a tablet, and the like. The device interface is a charging interface or a data transmission interface of the target device. Illustratively, the device interface is a USB (Universal Serial Bus) interface, a Type-C (C Type) interface, a Micro USB (Micro USB) interface, or a Lightning interface of the target device, or the like.
The light emitting assembly 30 is connected to the first interface for emitting light when the pressure is greater than or equal to a threshold value.
Illustratively, the threshold value is determined by the skilled person according to the actual need.
In the embodiment of the disclosure, the data line comprises a data line body, a first interface and a light-emitting component. The first interface is connected with an equipment interface of the target equipment; the light emitting component is connected with the first interface. In a dark environment, a user can pinch the light-emitting component in the process of inserting the first interface of the data line into the equipment interface of the target equipment, and the light-emitting component can emit light when the pressure applied to the light-emitting component is larger than or equal to a threshold value. Therefore, the user can insert the first interface of the data line into the equipment interface of the target equipment quickly in a dark environment, so that the charging or data transmission efficiency of the user can be improved, and the use experience of the user is improved.
Fig. 2 is a schematic structural diagram of another data line provided in the embodiment of the present disclosure. Fig. 3 is a schematic perspective exploded structure diagram of a data line according to an embodiment of the present disclosure. In conjunction with fig. 2 or fig. 3, the data line includes: the data line comprises a data line body 10, a first interface 20 and a light emitting assembly 30. The light emitting assembly 30 includes a housing 31, and a pressure detecting unit 32, a control unit 33, and an illumination unit 34 disposed inside the housing 31.
Wherein, one end of the data line 10 is located inside one end of the housing 31.
A portion of the first port 20 is located in the housing 31. Illustratively, the first interface 20 is a USB interface, a Type-C interface, a Micro USB interface, or a Lightning interface.
The housing 31 serves to protect the structure inside the light emitting assembly 30. Illustratively, the housing 31 is a cylinder with one closed end, the open end of the cylinder is sleeved outside the first port 20, and the data line body 10 passes through the closed end of the cylinder to be connected with the first port 20.
In the disclosed embodiment, the cross-sectional shape of the cylinder includes, but is not limited to, a rectangle, a square, an ellipse, or the like. Illustratively, the housing 31 is injection molded from a plastic material.
The pressure detection unit 32 is connected to the control unit 33. The pressure detecting unit 32 is for detecting the pressure applied to the housing 31. Illustratively, a signal output of the pressure detection unit 32 interfaces with an ADC (Analog To Digital Converter) of the control unit 33. The pressure detection unit 32 converts the detected digital pressure signal into an analog pressure signal and transmits the analog pressure signal to an ADC interface of the control unit 33.
Fig. 4 is a schematic structural diagram of a pressure detection unit 32 provided in the embodiment of the present disclosure, where the pressure detection unit 32 is a pressure sensor MLX 90817. As shown in fig. 4, the pressure detecting unit 32 includes a power supply terminal 32a, an analog pressure signal output terminal 32b, a detection terminal 32c, and a ground terminal 32 d. The power supply terminal 32a is connected to the positive power line of the data line body 10, the analog pressure signal output terminal 32b is connected to the control unit 33, the ground terminal 32d is grounded, and the detection terminal 32c is used for detecting the pressure applied to the housing 31.
The pressure sensor MLX90817 is a sensor that employs a high-density CMOS (Complementary Metal Oxide Semiconductor) technology and has EMC (Electromagnetic Compatibility) performance required by a vehicle scale. The pressure sensor MLX90817 is internally integrated with a Digital Signal Processing (DSP) chip, and is a Digital sensor based on a DSP architecture. The pressure sensor MLX90817 includes a pressure sensing element composed of a diaphragm. The power supply voltage (overvoltage) of the pressure sensor MLX90817 is 18V, the reverse protection voltage is-14V, the positive output voltage is 18V, the reverse output voltage is-0.5V, the working temperature range is-40 ℃ to 150 ℃, the storage temperature range is-40 ℃ to 150 ℃, and the programming temperature range is-40 ℃ to 125 ℃.
The control unit 33 is connected to the illumination unit 34, and the control unit 33 is configured to control the illumination unit 34 to emit light when the pressure value detected by the pressure detection unit 32 is greater than or equal to the threshold value.
Illustratively, the lighting unit 34 is an LED (Light Emitting Diode).
In some embodiments, as shown in fig. 2, the control unit 33 includes: a controller 331 and a switching circuit 332. The control terminal of the switch circuit 332 is connected to the controller 331, one terminal of the switch circuit 332 is connected to the power line of the data line body 10, and the other terminal of the switch circuit 332 is connected to the lighting unit 34. The power line of the data line body 10 may be a positive power line, for example, a 5V power line; or a negative power supply line, e.g., 0V ground.
Illustratively, the Controller 331 is a PLC (Programmable Logic Controller), or the Controller 331 is a single chip microcomputer, for example, STM8AF6226 TCY.
The controller 331 is configured to control the switch circuit 332 to be in a conducting state to make the illumination unit 34 emit light when the pressure value detected by the pressure detection unit 32 is greater than or equal to the threshold value. Alternatively, the control unit is configured to control the switch circuit 332 to be in an off state when the pressure value detected by the pressure detection unit 32 is smaller than the threshold value, so that the illumination unit 34 does not emit light.
Fig. 5 is a schematic circuit structure diagram of a control unit according to an embodiment of the present disclosure. As shown in fig. 5, the switching circuit 332 includes a switching tube 332 a. The switch tube 332a may be a triode; alternatively, the switch tube 332a is a transistor, such as an N-channel field effect transistor or a P-channel field effect transistor. Fig. 5 illustrates the switching tube 332a as a triode.
The control terminal of the switching tube 332a is connected to the controller 331, one terminal of the switching tube 332a is grounded or connected to the positive power line of the data line body 10 (only one terminal of the switching tube 332a is grounded in fig. 5 for exemplary illustration), and the third terminal of the switching tube 332a is connected to the output terminal of the lighting unit 34.
The controller 331 is configured to control a conduction state of the switching tube 332a according to the pressure value detected by the pressure detecting unit 32.
In some examples, the controller 331 is configured to output a high level signal to control the switching tube 332a to be in a conducting state when the pressure value detected by the pressure detecting unit 32 is greater than or equal to a threshold value; alternatively, the controller 331 is configured to output a low level signal to control the switching tube 332a to be in the off state when the pressure value detected by the pressure detecting unit 32 is less than the threshold value.
In other examples, the controller 331 is configured to output a low level signal to control the switching tube 332a to be in a conducting state when the pressure value is greater than or equal to the threshold value; alternatively, the controller 331 is configured to output a low level signal to control the switching tube 332a to be in the off state when the pressure value is smaller than the threshold value.
In the embodiment of the disclosure, the switching circuit is designed to be in the form of a switching tube, and the circuit structure is simple and easy to control.
Optionally, referring again to fig. 2, the light emitting assembly 30 further comprises a PCB 35. The PCB 35 is located inside the housing 31, and the pressure detecting unit 32, the control unit 33, and the lighting unit 34 are located on the PCB 35.
By integrally disposing the pressure detection unit 32, the control unit 33, and the illumination unit 34 on the PCB 35, the overall occupied volume of the light emitting assembly 30 can be reduced.
Optionally, referring again to fig. 2, the light emitting assembly 30 further comprises a light guiding structure 36. A light guiding structure 36 is sandwiched between the housing 31 and the first interface 20, the light guiding structure 36 being adapted to guide light emitted by the lighting unit 34 out of the housing 31.
Illustratively, the light guide structure 36 is made of a transparent PC (Polycarbonate) material.
Illustratively, the outer surface of the light guide structure 36 is frosted, so that the light guided out in a dark environment is soft and not dazzling. Here, the outer surface refers to a surface of the light guide structure 36 exposed to the outside.
In some embodiments, light directing structure 36 includes a light directing ring 361 and a light directing arm 362. The light guide ring 361 surrounds the first interface 20 and is sandwiched between the housing 31 and the first interface 20. One end of the light guide arm 362 is connected to the light guide ring 361, and the other end of the light guide arm 362 is covered outside the lighting unit 34.
Illustratively, the other end of the light guide arm 362 is soldered to the periphery of the lighting unit 34 on the PCB 35 by means of rivet soldering.
On one hand, the light guide arm 362 can guide light emitted from the illumination unit 34 into the light guide ring 362, and the light guide ring 362 guides the light out of the housing 31, thereby realizing an illumination function in a dark environment. On the other hand, since the lighting unit 34 is located on the PCB 35 and the light guide arm 362 is covered outside the lighting unit 34, the light guide arm 362 can also play a role of supporting the PCB 35.
Optionally, in the embodiment of the present disclosure, the data line further includes a brightness detection unit (not shown in the figure). The brightness detection unit is located at one end of the data line body 10 far away from the first interface 20. The brightness detection unit is connected to the controller 331. The brightness detection unit is configured to detect an ambient brightness of an environment and send the detected ambient brightness to the controller 331. In this embodiment, a signal connection line between the brightness detection unit and the controller 331 is further included in the data line body 10.
The controller 331 is further configured to obtain a pressure value detected by the pressure detecting unit 32 when the ambient brightness detected by the brightness detecting unit is less than or equal to the brightness threshold; when the pressure value detected by the pressure detecting unit 32 is greater than or equal to the threshold value, the switching circuit 332 is controlled to be in a conductive state to cause the illumination unit 34 to emit light.
Alternatively, the controller 331 is further configured to control the switch circuit 332 to be in an off state to make the illumination unit 34 emit no light when the ambient brightness detected by the brightness detection unit is greater than the brightness threshold.
The ambient brightness detected by the brightness detection unit is less than or equal to the brightness threshold, which indicates that the ambient brightness is dark and the user cannot see the device interface of the target device clearly. The ambient brightness detected by the brightness detection unit is greater than the brightness threshold value, which indicates that the ambient brightness is bright, and the user can clearly see the device interface of the target device, and at this time, the illumination unit 34 is controlled not to emit light, so that unnecessary power loss of the data line can be reduced.
Illustratively, the brightness detection unit may be a brightness sensor or the like.
Illustratively, the brightness threshold is determined experimentally by a person skilled in the art and then stored in the controller 331.
It should be noted that, in the embodiment of the present disclosure, the data line may not include the brightness detection unit, and the light emitting state of the illumination unit 34 is controlled only according to the pressure acting on the housing 31 detected by the pressure detection unit.
In some embodiments, the data line further includes a second interface (not shown in the drawings), the second interface is located at an end of the data line body 10 away from the first interface 20, and the second interface is used for connecting with a charging interface of a charger. The charger provides a charging voltage, such as 5V, to the light emitting elements when energized. Illustratively, the second interface is a USB interface or a Type-C (Type a) interface.
In other embodiments, the data line includes a charging plug, and the charging plug is located at an end of the data line body 10 away from the first interface 20. The charging plug provides a charging voltage, such as 5V, to the light emitting element when energized.
In still other embodiments, the light emitting assembly 30 further comprises a power source (not shown). The power source is located within the housing 31. The power supply is used to supply power to the light emitting assembly 30. Illustratively, the power source is a 5V coin cell battery.
Optionally, in the embodiment of the present disclosure, the data line further includes a protective sheath 50. The protective sheath 50 is located at one end of the data line body 10 near the light emitting assembly 30. The protective sheath 50 is used to protect the data line body 10 from being damaged. Illustratively, the protective sleeve 50 is injection molded from a plastic material.
In the embodiment of the disclosure, in a dark environment, a user may pinch the light emitting element in a process of inserting the first interface of the data line into the device interface of the target device, and the light emitting element emits light when a pressure applied to the light emitting element is greater than or equal to a threshold value. Therefore, the user can insert the first interface of the data line into the equipment interface of the target equipment quickly in a dark environment, so that the charging or data transmission efficiency of the user can be improved, and the use experience of the user is improved.
Optionally, referring to fig. 5 again, in the embodiment of the present disclosure, the control unit 33 further includes a first resistor 333, one end of the first resistor 333 is connected to the input terminal of the lighting unit 34, and the other end of the first resistor 333 is connected to the 5V power supply.
In some examples, the first resistance 333 is an adjustable resistance. By adjusting the resistance value of the first resistor 333, the luminance at the time of lighting of the lighting unit 34 can be changed.
The larger the resistance value of the first resistor 333 is, the smaller the luminance when the illumination unit 34 emits light; the smaller the resistance value of the first resistor 333, the greater the luminance when the illumination unit 34 emits light.
Illustratively, the resistance value of the first resistor 333 is determined by a person skilled in the relevant art according to the actual light emission luminance requirements of the lighting unit 34.
Optionally, referring to fig. 5 again, in the embodiment of the present disclosure, the control unit 33 further includes a second resistor 334, one end of the second resistor 334 is connected to the control signal output end of the controller 331, and the other end of the second resistor 334 is connected to one end of the switch circuit 332.
The second resistor 334 is used to limit the current at the control signal output terminal of the controller 331, and prevent the controller 331 from being damaged by a large current when the switching circuit 332 fails (e.g., the switching unit 332 is short-circuited).
Optionally, referring to fig. 5 again, in the embodiment of the present disclosure, the control unit 33 further includes a third resistor 335 and a capacitor 336, one end of the third resistor 335 is connected to the other end of the second resistor 334, the other end of the third resistor 335 is grounded, one end of the capacitor 336 is connected to the other end of the second resistor 334, and the other end of the capacitor 336 is grounded.
The level of the control signal output by the controller 331 can be stabilized by setting the third resistor 335 and the capacitor 336, so that the state of the switch circuit 332 is stable, and the brightness of the lighting unit 34 is stable when emitting light.
Fig. 6 is a flowchart of a light emitting control method according to an embodiment of the disclosure, and is applied to the data lines shown in fig. 1 to 6. Referring to fig. 6, the method includes:
in step 101, the pressure applied to the light emitting assembly is detected.
For example, the pressure applied to the light emitting assembly may be detected by the pressure detecting unit.
In step 102, the light emitting assembly is controlled to emit light in response to determining that the pressure to which the light emitting assembly is subjected is greater than or equal to a threshold value.
Optionally, in an embodiment of the present disclosure, the light-emitting control method further includes: and controlling the light-emitting component not to emit light in response to determining that the pressure applied to the light-emitting component is less than the threshold value.
In the embodiment of the disclosure, in a dark environment, a user may pinch the light-emitting component in a process of inserting the first interface of the data line into the device interface of the target device, and the light-emitting component may emit light when a pressure applied to the light-emitting component is greater than or equal to a threshold value. Therefore, the user can insert the first interface of the data line into the equipment interface of the target equipment quickly in a dark environment, so that the charging or data transmission efficiency of the user can be improved, and the use experience of the user is improved.
Fig. 7 is a flowchart of another light-emitting control method provided in the embodiment of the present disclosure, which is applied to the data lines shown in fig. 1 to 5. Referring to fig. 7, the method includes:
in step 201, in response to determining that the ambient brightness is less than or equal to the brightness threshold, a pressure experienced by the light emitting assembly is detected.
The ambient brightness is less than or equal to the brightness threshold, which indicates that the ambient brightness is dark and the user cannot see the device interface of the target device clearly. Illustratively, the ambient brightness may be detected by the aforementioned brightness detection unit.
In step 202, the light emitting assembly is controlled to emit light in response to determining that the pressure to which the light emitting assembly is subjected is greater than or equal to a threshold value.
Optionally, in an embodiment of the present disclosure, the light emission control method further includes: in response to determining that the ambient brightness is greater than the brightness threshold, the light emitting assembly is controlled not to emit light.
The ambient brightness is greater than the brightness threshold, which indicates that the ambient brightness is bright, and the user can clearly see the device interface of the target device.
In an embodiment of the disclosure, on the one hand, when the ambient brightness is less than or equal to the brightness threshold and the pressure applied to the light emitting assembly is greater than or equal to the threshold, the light emitting assembly is controlled to emit light. Therefore, the user can insert the first interface of the data line into the equipment interface of the target equipment quickly in a dark environment, so that the charging or data transmission efficiency of the user can be improved, and the use experience of the user is improved. On the other hand, when the ambient brightness is greater than the brightness threshold, the light-emitting component is controlled not to emit light, and unnecessary power consumption can be reduced.
Fig. 8 is a block diagram of a light-emitting control device 800 according to an embodiment of the present disclosure, and as shown in fig. 8, the device includes: a detection module 801 and a control module 802.
The detection module 801 is used for acquiring the pressure applied to the light emitting assembly. A control module 802 for controlling the light emitting assembly to emit light in response to determining that the pressure is greater than or equal to a threshold.
Optionally, the control module 802 is further configured to control the lighting unit not to emit light in response to determining that the pressure is less than the threshold.
It should be noted that: in the light emission control device provided in the above embodiments, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the functions described above. In addition, the light-emitting control device and the light-emitting control method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 9 is a block diagram of a computer device provided in an embodiment of the present disclosure. As shown in fig. 9, the computer apparatus 900 may be a vehicle-mounted computer or the like. The computer device 900 comprises: a processor 901 and a memory 902.
Those skilled in the art will appreciate that the configuration illustrated in FIG. 9 is not intended to be limiting of the computer device 900 and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components may be employed.
The disclosed embodiments also provide a non-transitory computer readable medium, in which instructions, when executed by a processor of the computer device 900, enable the computer device 900 to perform the lighting control method provided in the disclosed embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program/instructions which, when executed by a processor, implement the lighting control method provided in the disclosed embodiments.
The above description is intended only to illustrate the preferred embodiments of the present disclosure, and should not be taken as limiting the disclosure, as any modifications, equivalents, improvements and the like which are within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.
Claims (10)
1. A data line, comprising:
a data line body (10);
a first interface (20), the first interface (20) for interfacing with a device of a target device;
a light emitting assembly (30), the light emitting assembly (30) being connected to the first interface for emitting light when the pressure is greater than or equal to a threshold value.
2. The data line according to claim 1, wherein the light emitting assembly (30) comprises a housing (31), and a pressure detecting unit (32), a control unit (33) and a lighting unit (34) disposed within the housing (31);
the pressure detection unit (32) is used for detecting the pressure exerted on the shell (31);
the control unit (33) is respectively connected with the pressure detection unit (32) and the illumination unit (34), the control unit (33) is used for controlling the illumination unit (34) to emit light when the pressure value detected by the pressure detection unit (32) is greater than or equal to the threshold value,
a portion of the first interface is located in the housing (31).
3. The data line according to claim 2, characterized in that the control unit (33) comprises: a controller (331) and a switch circuit (332), wherein a control end of the switch circuit (332) is connected with the controller (331), one end of the switch circuit (332) is connected with a power line of the data line body (10), and the other end of the switch circuit (331) is connected with the lighting unit (34);
the controller (331) is configured to control the switch circuit (332) to be in a conducting state when the pressure value is greater than or equal to the threshold value, so as to enable the lighting unit (34) to emit light.
4. The data line according to claim 3, wherein the light emitting assembly (30) further comprises a printed circuit board (35), the printed circuit board (35) being located within the housing (31), the pressure detection unit (32), the control unit (33) and the illumination unit (34) being located on the printed circuit board (35).
5. The data line of claim 4, wherein the light emitting assembly (30) further comprises a light guiding structure (36), the light guiding structure (36) being sandwiched between the housing (31) and the first interface (20), the light guiding structure (36) being configured to guide light emitted by the illumination unit (34) out of the housing (31).
6. The data line of claim 5, wherein the light guiding structure (36) comprises a light guiding ring (361) and a light guiding arm (362),
the light guide ring (361) surrounds the first interface (20) and is clamped between the shell (31) and the first interface (20),
one end of the light guide arm (362) is connected with the light guide ring (361), and the other end of the light guide arm (362) covers the outside of the lighting unit (34).
7. The data line according to any one of claims 1 to 6, further comprising a brightness detection unit, wherein the brightness detection unit is located at an end of the data line body (10) far away from the first interface (20).
8. The data line according to any one of claims 1 to 6, further comprising a second interface, wherein the second interface is located at one end of the data line body (10) far away from the first interface (20), and is used for being connected with a charging interface of a charger; or,
the data line comprises a charging plug, and the charging plug is connected with one end, far away from the first interface (20), of the data line body (10).
9. A light emission control method applied to the data line of claim 1, the method comprising:
detecting the pressure applied to the light-emitting component;
controlling the light emitting assembly to emit light in response to determining that the pressure is greater than or equal to a threshold value.
10. A light emission control device applied to the data line of claim 1, the device comprising:
the detection module is used for acquiring the pressure applied to the light-emitting assembly;
a control module to control the light emitting assembly to emit light in response to determining that the pressure is greater than or equal to a threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210260585.5A CN114628966A (en) | 2022-03-16 | 2022-03-16 | Data line, light emission control method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210260585.5A CN114628966A (en) | 2022-03-16 | 2022-03-16 | Data line, light emission control method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114628966A true CN114628966A (en) | 2022-06-14 |
Family
ID=81902326
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210260585.5A Pending CN114628966A (en) | 2022-03-16 | 2022-03-16 | Data line, light emission control method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114628966A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203446911U (en) * | 2013-08-29 | 2014-02-26 | 四川福瑞达光电有限公司 | LED (Light Emitting Diode) chair with automatic illumination function |
CN204315881U (en) * | 2015-01-28 | 2015-05-06 | 黄尔忠 | A kind of inducing luminous USB connecting line |
CN105390896A (en) * | 2015-10-23 | 2016-03-09 | 广东欧珀移动通信有限公司 | Data line |
CN207353621U (en) * | 2017-11-02 | 2018-05-11 | 付琦 | A kind of data cable of tangible control illumination |
-
2022
- 2022-03-16 CN CN202210260585.5A patent/CN114628966A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203446911U (en) * | 2013-08-29 | 2014-02-26 | 四川福瑞达光电有限公司 | LED (Light Emitting Diode) chair with automatic illumination function |
CN204315881U (en) * | 2015-01-28 | 2015-05-06 | 黄尔忠 | A kind of inducing luminous USB connecting line |
CN105390896A (en) * | 2015-10-23 | 2016-03-09 | 广东欧珀移动通信有限公司 | Data line |
CN207353621U (en) * | 2017-11-02 | 2018-05-11 | 付琦 | A kind of data cable of tangible control illumination |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9509360B2 (en) | Electronic device and method of transmitting data between electronic device and flip cover thereof | |
US9665187B2 (en) | Color input device and its application kit | |
CN109245244B (en) | Charging circuit, charging processing method, electronic device, and storage medium | |
WO2019019891A1 (en) | Method, mobile terminal and non-transitory computer-readable storage medium for adjusting scanning frequency of touch screen | |
CN110998705B (en) | Electronic device and display for reducing leakage current | |
US11029841B2 (en) | Electronic device for generating augmented reality emoji and method thereof | |
JP3213161U (en) | Transfer cable structure | |
US20150002554A1 (en) | Power saving techniques for displays with pixel-addressable intensity | |
US20170062998A1 (en) | Cable connector assembly transferring different voltages | |
KR102676572B1 (en) | programming building blocks | |
CN109286219B (en) | Charging circuit, charging processing method, electronic device, and storage medium | |
CN112433634A (en) | Touch screen identification circuit, display device and wearable equipment | |
CN114628966A (en) | Data line, light emission control method, device, equipment and storage medium | |
CN106855792A (en) | A kind of terminal with display function | |
US20120162992A1 (en) | Electronic reading system | |
US20220149470A1 (en) | Mouse device | |
EP3654624A1 (en) | Screen state control method and device, storage medium, and mobile terminal | |
CN115379615B (en) | Electronic equipment and method for controlling brightness of light-emitting device | |
CN113805051B (en) | Switch performance testing method and device, electronic equipment and storage medium | |
KR101392309B1 (en) | Multi-function touch pen | |
CN204515403U (en) | A kind of smart pen with light filling function | |
CN207676655U (en) | Solid state disk | |
US20140184094A1 (en) | Connector position device | |
CN105872163B (en) | Test result wiring method, device and test macro and mobile terminal | |
CN214845822U (en) | Uncovering detection device and case |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220614 |
|
RJ01 | Rejection of invention patent application after publication |