CN117111970A - Product burning method, burning information transmission method and related equipment - Google Patents

Product burning method, burning information transmission method and related equipment Download PDF

Info

Publication number
CN117111970A
CN117111970A CN202311379803.8A CN202311379803A CN117111970A CN 117111970 A CN117111970 A CN 117111970A CN 202311379803 A CN202311379803 A CN 202311379803A CN 117111970 A CN117111970 A CN 117111970A
Authority
CN
China
Prior art keywords
burning
data
decoding
light
sequence
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.)
Granted
Application number
CN202311379803.8A
Other languages
Chinese (zh)
Other versions
CN117111970B (en
Inventor
李国军
马双武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Waytronic Electronics Co ltd
Original Assignee
Shenzhen Waytronic Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Waytronic Electronics Co ltd filed Critical Shenzhen Waytronic Electronics Co ltd
Priority to CN202311379803.8A priority Critical patent/CN117111970B/en
Publication of CN117111970A publication Critical patent/CN117111970A/en
Application granted granted Critical
Publication of CN117111970B publication Critical patent/CN117111970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optical Communication System (AREA)

Abstract

The application discloses a product burning method, a burning information transmission method and related equipment, wherein the method comprises the following steps: information corresponding to light emitted by the light signal emitter or the light emitting component of the burning device is obtained as single-time received light information, wherein the single-time received light information comprises: a luminance value and/or a color value; decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method to obtain a decoding sequence; burning is carried out according to the decoding sequence, and a burning result is obtained; each recording device transmits a coding sequence corresponding to data to be recorded to at least one target device, and the recording device is used for: and (3) coding the data to be recorded by adopting a preset coding method to obtain a coding sequence, controlling the light emitting component to emit light according to the coding sequence when the recording equipment is provided with the light emitting component, and controlling the optical signal emitter to emit light according to the coding sequence when the recording equipment is not provided with the light emitting component. Thereby improving the burning efficiency.

Description

Product burning method, burning information transmission method and related equipment
Technical Field
The present application relates to the field of recording technologies, and in particular, to a product recording method, a recording information transmission method, and related devices.
Background
At present, most of electronic equipment is updated in a contact type by software upgrading mode, the equipment to be burnt is connected with the electronic equipment to be burnt through a transmission line, one piece of equipment to be burnt is connected with one piece of electronic equipment to be burnt, so that the burning efficiency is low, in addition, some electronic equipment can be connected with the transmission line only by disassembling the shell, so that the burning operation is complicated, and the burning efficiency is further reduced.
Disclosure of Invention
Based on this, a product burning method, a burning information transmission method and related equipment are provided for solving the technical problem of low burning efficiency in the contact type upgrading method in the prior art.
In a first aspect, a product burning method is provided, the method is applied to a target device, and the method includes: information corresponding to light emitted by a light signal emitter or a light emitting component of a burning device is obtained as single-time received light information, wherein the single-time received light information comprises: a luminance value and/or a color value; decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method to obtain a decoding sequence; burning is carried out according to the decoding sequence, and a burning result is obtained; each burning device transmits a coding sequence corresponding to data to be burned to at least one target device, and the burning device is used for: and adopting a preset coding method to code data to be recorded to obtain a coding sequence, controlling the light emitting component to emit light according to the coding sequence when the recording equipment is provided with the light emitting component, and controlling the optical signal emitter to emit light according to the coding sequence when the recording equipment is not provided with the light emitting component.
In a second aspect, a recording information transmission method is provided, and the method is applied to a recording device, and includes: coding the data to be burnt by adopting a preset coding method to obtain a coding sequence; when the burning equipment is provided with a light-emitting component, controlling the light-emitting component to emit light according to the coding sequence; when the burning equipment is not provided with the light-emitting component, controlling the light signal emitter to emit light according to the coding sequence; each burning device transmits a coding sequence corresponding to data to be burned to at least one target device; the target device is configured to: information corresponding to light emitted by a light signal emitter or a light emitting component of a burning device is obtained as single-time received light information, wherein the single-time received light information comprises: and decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method to obtain a decoding sequence, and burning according to the decoding sequence to obtain a burning result.
In a third aspect, a product burning apparatus is provided, the apparatus being applied to a target device, the apparatus being configured to implement the steps of the product burning method according to any of the first aspects.
In a fourth aspect, there is provided a recording information delivery apparatus, which is applied to a recording device, for implementing the steps of the recording information delivery method according to any one of the second aspects.
In a fifth aspect, there is provided a target device comprising a light sensor, a memory, a processor and a computer program stored in the memory and executable on the processor, the light sensor being connected to the processor, the light sensor being for sensing light emitted by a light signal emitter or by a light emitting part of a burning device, the processor, when executing the computer program, performing the steps of the method for burning a product according to any of the first aspects.
In a sixth aspect, there is provided a burning apparatus including: comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the burn information transfer method according to any of the second aspects when the computer program is executed.
In a seventh aspect, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the product burn method according to any one of the first aspects or the burn information transfer method according to any one of the second aspects.
In an eighth aspect, there is provided a product system comprising: the recording device according to the sixth aspect and the target device according to the fifth aspect are configured to transmit, to at least one of the target devices, a coding sequence corresponding to data to be recorded.
The application provides a product burning method, a burning information transmission method and related equipment, wherein the method is adopted firstly, data to be burned is coded by adopting a preset coding method to obtain a coding sequence, when the burning equipment is provided with a light emitting component, the light emitting component is controlled to emit light according to the coding sequence, when the burning equipment is not provided with the light emitting component, the light signal emitter is controlled to emit light according to the coding sequence, wherein the method is adopted secondly, the information corresponding to the light emitted by the light signal emitter or the light emitting component of the burning equipment is obtained by adopting the product burning method to be used as single-time received light information, and the single-time received light information comprises the following steps: the brightness value and/or the color value are/is decoded by adopting a decoding method corresponding to a preset encoding method, so that a decoding sequence is obtained, and the burning is carried out according to the decoding sequence, so that the burning result is obtained, the target equipment can be burned without disassembling the shell of the target equipment, the burning operation is simplified, and the burning efficiency is improved; and one burning device transmits the coding sequence corresponding to the data to be burned to at least one target device, so that a plurality of target devices are burned at one time, and the burning efficiency is further improved; in addition, the single received light information includes: the brightness value and/or the color value, so that information is transmitted through the brightness value and/or the color value of the light, the richness of the transmitted information is increased, and the cost of a brightness sensing component and a color sensing component is lower; the target equipment decodes by adopting a decoding method corresponding to the preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved; the whole burning process does not need a transmission line for connecting the burning device and the target device, so that the cost of the transmission line is reduced, and the condition that the burning cannot be performed due to the loss of the transmission line is avoided.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
FIG. 1 is a diagram of an application environment of a product burning method and a burning information transmission method according to an embodiment;
FIG. 2 is a flow chart of a method of burning a product according to an embodiment;
FIG. 3 is a flow chart of a method for transferring burning information according to one embodiment;
FIG. 4 is a block diagram of a product burning apparatus according to an embodiment;
FIG. 5 is a block diagram of a recording information delivery device according to an embodiment;
FIG. 6 is a block diagram of the architecture of a product system in one embodiment.
Description of the embodiments
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The product burning method and the burning information transmission method provided by the embodiment of the invention can be applied to an application environment as shown in fig. 1, wherein the application environment comprises a burning device 2 and at least one target device 1. The light emitted by the light emitting part of the burning device 2 or the light emitted by the light signal emitter is controlled by the burning device 2, and each target device 1 receives the light and then burns.
Each recording device transmits a coding sequence corresponding to data to be recorded to at least one target device, and the recording device realizes a recording information transmission method, and the recording information transmission method comprises the following steps: and adopting a preset coding method to code data to be recorded to obtain a coding sequence, controlling the light emitting component to emit light according to the coding sequence when the recording equipment is provided with the light emitting component, and controlling the optical signal emitter to emit light according to the coding sequence when the recording equipment is not provided with the light emitting component.
The target device is used for realizing a product burning method, and the product burning method comprises the following steps: information corresponding to light emitted by a light signal emitter or a light emitting component of a burning device is obtained as single-time received light information, wherein the single-time received light information comprises: a luminance value and/or a color value; decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method to obtain a decoding sequence; and burning according to the decoding sequence to obtain a burning result.
It can be understood that the application can burn the target equipment without disassembling the shell of the target equipment, thereby simplifying the burning operation and improving the burning efficiency; and one burning device transmits the coding sequence corresponding to the data to be burned to at least one target device, so that a plurality of target devices are burned at one time, and the burning efficiency is further improved; in addition, the single received light information includes: the brightness value and/or the color value, so that information is transmitted through the brightness value and/or the color value of the light, the richness of the transmitted information is increased, and the cost of a brightness sensing component and a color sensing component is lower; the target equipment decodes by adopting a decoding method corresponding to the preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved; the whole burning process does not need a transmission line for connecting the burning device and the target device, so that the cost of the transmission line is reduced, and the condition that the burning cannot be performed due to the loss of the transmission line is avoided.
The prior proposal is based on a connection mode, adopts a binary transmission mode in the optical fiber, adopts transmission with or without transmission, and is based on single received light information for transmission, and has more information quantity and higher transmission effect in each transmission.
Optionally, the application environment of the present application further includes an upper computer 3, where the upper computer 3 sends the data to be recorded to the recording device 2.
It can be understood that the data to be burned may be pre-stored in the burning device in advance.
The upper computer can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and can also be implemented by an independent server or a server cluster formed by a plurality of servers. The present application will be described in detail with reference to specific examples.
The burning device comprises a light sensor, wherein the light sensor is used for sensing light emitted by a light signal emitter or a light emitting component of the burning device; the light sensor includes: a brightness sensing component and/or a color sensing component.
The brightness sensing component is used for sensing the brightness of the light; the brightness sensing component is connected with an interface of the analog signal collector; if the target equipment does not have AD hardware, the device is realized by adopting an RC charging circuit, the brightness sensing component is connected with the RC charging circuit, and the RC charging circuit is connected with a common I/O interface (input/output interface) of a singlechip of the target equipment. The RC charging circuit is a circuit formed by a resistor (R) and a capacitor (C).
The color sensing component is used for sensing the color of the light; the different color bands are different and the color sensing component is used to identify the wavelength. The color sensing component is connected with AD hardware in the target equipment; when the AD hardware is not arranged in the target equipment, the color sensing component is connected with an RC charging circuit, and the RC charging circuit is connected with a common I/O interface of a singlechip of the target equipment.
The light emitting part and the optical signal emitter are both devices that can emit light, such as LED lamps. The LED lamp is an electroluminescent semiconductor material chip, is solidified on the bracket by silver colloid or white colloid, then is connected with the chip and the circuit board by silver wires or gold wires, and the periphery of the LED lamp is sealed by epoxy resin to protect the internal core wires, and finally, the shell is arranged, so that the LED lamp has good anti-seismic performance.
Alternatively, different levels of brightness of the light emitting component or light signal emitter are controlled by PWM (Pulse width modulation wave) waveforms of different duty cycles.
Optionally, the light emitting component or the light signal emitter is controlled to be lighted by the lamp beads with different brightness, so that different levels of brightness are realized.
Optionally, the target device is an embedded device, such as a set-top box, projector.
In a first aspect, referring to fig. 2, fig. 2 is a schematic flow chart of a product burning method according to an embodiment of the present invention, where the method is applied to a target device, and the method includes:
S11: information corresponding to light emitted by a light signal emitter or a light emitting component of a burning device is obtained as single-time received light information, wherein the single-time received light information comprises: a luminance value and/or a color value;
specifically, the light emitted by the light signal emitter or the light emitting component of the burning device is sensed by the light sensor of the target device, the light sensor sends sensed information to the controller (such as a singlechip) of the target device, and the controller generates single received light information according to the information sensed by the light sensor.
The single received light information is information of the light signal emitter or the light emitting part of the burning device emitting the primary light.
It will be appreciated that the single received light information may also include other information, such as duration information (duration of light emitted by the light signal emitter or the light emitting component of the burning device), which is not limited herein.
The luminance value is a specific value of the luminance of light. Color value is a specific value of the wavelength of the color of light.
S12: decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method to obtain a decoding sequence;
optionally, the preset encoding method is to convert binary system into hexadecimal system, so as to obtain brightness level and/or color level, wherein the value range of the brightness level is sixteen levels; the decoding method corresponding to the preset encoding method is that the brightness level is converted into binary. Each color level corresponds to a color.
It is to be understood that other encoding methods may be used in the preset encoding method, for example, converting binary into octal, which is not limited herein.
Optionally, the preset encoding method is to convert the binary system into thirty binary systems, each converted code is 32 binary systems, split the code into two parts (for example, the code is divided by 2 and rounded down as one part, divided by 2 and rounded up as the other part), one of the two parts is a brightness level, and the other of the two parts is a color level. Thereby realizing the transfer of burning information based on the brightness of light and the color of light.
Specifically, a decoding method corresponding to a preset encoding method is adopted to decode each piece of single-time received light information, a sequence is generated according to the receiving sequence of the single-time received light information by the data obtained by decoding, and the sequence is used as a decoding sequence, so that the arrangement sequence of the decoding sequence is identical to the receiving sequence of the single-time received light information. That is, the reception time of the single reception optical information corresponding to the data arranged in the ith bit in the decoding sequence is earlier than the reception time of the single reception optical information corresponding to the data arranged in the jth bit, i is smaller than j, and i and j are integers.
It will be appreciated that the decoded sequence will be stored in the cache of the target device.
Optionally, when a decoding method corresponding to a preset encoding method is adopted to decode each piece of the single received light information, the single received light information is directly decoded.
Optionally, when the decoding method corresponding to the preset encoding method is adopted to decode each piece of the single received light information, the single received light information is firstly corresponding to the nearest standard value, and then the decoding method corresponding to the preset encoding method is adopted to decode the nearest standard value corresponding to the single received light information.
S13: burning is carried out according to the decoding sequence, and a burning result is obtained;
specifically, the target device is burned according to the data corresponding to the data to be burned in the decoding sequence, and the data is written into the flash memory of the chip of the target device during the burning.
Optionally, identifying a command and a parameter from the decoding sequence, and burning the target device according to the identified command and parameter.
Each burning device transmits a coding sequence corresponding to data to be burned to at least one target device, and the burning device is used for: and adopting a preset coding method to code data to be recorded to obtain a coding sequence, controlling the light emitting component to emit light according to the coding sequence when the recording equipment is provided with the light emitting component, and controlling the optical signal emitter to emit light according to the coding sequence when the recording equipment is not provided with the light emitting component.
Specifically, each of the recording devices transmits a coding sequence corresponding to data to be recorded to at least one target device, that is, one of the recording devices controls the light signal emitter or the light emitting component of the recording device to emit light, which irradiates the light sensors of a plurality of target devices.
Firstly, after the recording equipment is ready for recording data (namely data to be recorded), and all target equipment to be recorded is electrified, the light sensors of all target equipment face to the light emitting parts or the light signal emitters of the recording equipment, then the recording equipment is controlled to start recording work, at the moment, the recording equipment adopts a preset coding method to code the data to be recorded, the coded data is used as a coding sequence, after the coding is finished, when the recording equipment is provided with the light emitting parts, the light emitting parts are controlled to emit light according to the coding sequence, and when the recording equipment is not provided with the light emitting parts, the light signal emitters are controlled to emit light according to the coding sequence. Therefore, the coding sequence corresponding to the data to be burnt is transmitted to the target equipment, and the data to be burnt is transmitted to the target equipment.
It can be understood that the values in the data to be burned correspond to the values in the code sequence one by one, and the arrangement order is the same.
For example, the coding sequence is hexadecimal, the coding sequence describes the brightness level, the coding sequence is 5A6B, and the light emitting component or the light signal emitter of the burning device sequentially sends light with the brightness level B, light with the brightness level 6, light with the brightness level A and light with the brightness level 5.
Optionally, after the step of burning according to the decoding sequence to obtain a burning result, the method further includes: and controlling the working of the indicator lamp of the target equipment according to the burning result so as to remind a user of the final burning result.
For example, the ok indicator (LED lamp) of the target device with the successful burning result is turned on, and the NG indicator (LED lamp) of the target device with the failed burning result is turned on.
It can be understood that when the target equipment leaves the factory, the user can burn the target equipment by himself only by additionally providing the burning equipment, so that the problem of customizing personalized products by the user is solved, and the modification cost when data errors occur after leaving the factory is reduced; the transmission line for connecting the burning device and the target device is not required to be additionally arranged, so that the cost of factory delivery is reduced, and the situation that the target device cannot be burned by itself due to the loss or damage of the transmission line is avoided; and the transmission line is not required to be connected, so that the operation steps are simplified, and the user experience is improved.
According to the embodiment, the target equipment can be burnt without disassembling the shell of the target equipment, so that the burning operation is simplified, and the burning efficiency is improved; and one burning device transmits the coding sequence corresponding to the data to be burned to at least one target device, so that a plurality of target devices are burned at one time, and the burning efficiency is further improved; in addition, the single received light information includes: the brightness value and/or the color value, so that information is transmitted through the brightness value and/or the color value of the light, the richness of the transmitted information is increased, and the cost of a brightness sensing component and a color sensing component is lower; the target equipment decodes by adopting a decoding method corresponding to the preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved; the whole burning process does not need a transmission line for connecting the burning device and the target device, so that the cost of the transmission line is reduced, and the condition that the burning cannot be performed due to the loss of the transmission line is avoided.
In one embodiment, the step of decoding each piece of the single received light information by using a decoding method corresponding to a preset encoding method to obtain a decoding sequence, and performing burning according to the decoding sequence to obtain a burning result includes:
S1211: constructing a null sequence as a decoding sequence;
s1212: if the learning code does not exist in the coding sequence, decoding the single received light information by adopting a decoding method corresponding to a preset coding method to obtain a single decoding result, and adding the single decoding result to the tail of the decoding sequence;
the learning code is preset and is used for learning the corresponding relation between the emitted light and the value in the coding sequence, and provides a basis for decoding compensation. The learning code may be one code or a plurality of codes (i.e., a plurality of bits).
Specifically, if the learning code does not exist in the coding sequence, that is, the coding sequence does not carry the learning code, a decoding method corresponding to a preset coding method is adopted to decode the single received light information, a single decoding result is obtained, and the single decoding result is added to the end of the decoding sequence.
It can be understood that whether the coding sequence carries one or more of a learning code, a command code for starting recording and a command for ending recording is that the target device sets a corresponding recording mode during production. The target device does not need to judge whether the coding sequence learns one or more of the code, the command code for starting the recording and the command for ending the recording, and only needs to perform the recording related work according to the set recording mode.
Optionally, the recording device does not need to determine whether one or more of a learning code, a recording start command code and a recording end command are required to be set in the coding sequence, and only needs to transmit the recording information according to a set mode.
Optionally, the recording device determines whether to set one or more of a learning code, a recording start command code, and a recording end command in the code sequence according to a user selection or a configuration file. The configuration file can come from an upper computer or a third party application.
S1213: if the learning code exists in the coding sequence, taking the single received light information which is acquired at the beginning and has the number of bits corresponding to the learning code as a light information set, adopting a decoding method corresponding to a preset coding method, the learning code and the light information set, decoding the single received light information except the light information set to obtain a single decoding result, and adding the single decoding result to the end of the decoding sequence;
specifically, if the learning code exists in the code sequence, that is, the code sequence carries the learning code, compensation is required based on the learning code, so that the light of one or more times is the light corresponding to the learning code, and each piece of single received light information which is acquired at the beginning and has the number of bits corresponding to the learning code is taken as a light information set; calculating a compensation value according to the learning code and the light information set, wherein if the learning code is multi-bit, calculating the average difference value of the standard light information corresponding to the learning code and the light information set, and taking the calculated average difference value as the compensation value; and carrying out compensation processing on the single received light information except the light information set according to the compensation value, decoding the single received light information after the compensation processing by adopting a decoding method corresponding to a preset encoding method to obtain a single decoding result, and adding the single decoding result to the tail end of the decoding sequence.
For example, if the single received light information is a luminance value, subtracting the single received light information corresponding to each code in the learning codes from the standard light information corresponding to the code to obtain a single code difference value, calculating an average value of all single code difference values corresponding to the learning codes, and taking the calculated average difference value as a compensation value, wherein the compensation value is added with the single received light information except for the light information set to obtain the single received light information after compensation processing, thereby realizing compensation processing.
S1311: and recording according to each single decoding result corresponding to the data to be recorded in the decoding sequence, so as to obtain the recording result.
It can be understood that each of the single decoding results corresponding to the data to be recorded in the decoding sequence, that is, the data to be recorded.
The embodiment provides a foundation for decoding compensation by setting the learning code, thereby improving the self-adaptability of the application, reducing the influence of ambient light and improving the accuracy of the learning code sequence; and decoding the single received light information by adopting a decoding method corresponding to a preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved.
In one embodiment, the step of decoding each piece of the single received light information by using a decoding method corresponding to a preset encoding method to obtain a decoding sequence includes:
s1221: and decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method and a rule of decoding the single received light information at the same time to obtain a decoding sequence.
And decoding the single received light information by adopting a decoding method corresponding to a preset encoding method immediately after receiving the single received light information.
According to the embodiment, the decoding efficiency is improved through the rule of decoding while receiving the optical information for a single time, so that the burning duration is shortened, and the burning efficiency is further improved.
In one embodiment, the step of recording according to the decoding sequence to obtain a recording result includes:
s1321: performing check data calculation on data corresponding to the data to be burned in the decoding sequence to obtain first check data;
specifically, a preset check data calculation method is adopted to calculate check data of the data corresponding to the data to be burnt in the decoding sequence, and the calculated check data is used as first check data.
It can be understood that the verification data calculation may be performed on all the data corresponding to the data to be burned in the decoding sequence, or may be performed on a portion of the data corresponding to the data to be burned in the decoding sequence.
Optionally, the preset check data calculation method adopts a checksum calculation method. Checksum, in the field of data processing and data communication, is used to check the sum of a set of data items at a destination. It should be understood that other methods may be used for calculating the preset verification data, for example, a method for calculating the abstract of the information, which is not limited herein.
S1322: if the first check data is the same as the check data in the decoding sequence, burning according to the decoding sequence to obtain the burning result;
specifically, if the first check data is the same as the check data in the decoding sequence, the check is passed, and the recording can be continued, so that the recording result is obtained by recording according to the decoding sequence.
S1323: if the first check data is different from the check data in the decoding sequence, determining that the burning result is failure.
Specifically, if the first check data and the check data in the decoding sequence are different, the check is failed, and the writing cannot be continued, and only one error/failure result is obtained after forced continuous writing, so that the writing result is determined to be failed.
The embodiment realizes the verification before the burning, namely the verification of the decoding sequence before the burning, is favorable for finding the problem as early as possible, provides a basis for correcting the problem as early as possible for a user, and further improves the burning efficiency.
In one embodiment, the step of recording according to the decoding sequence to obtain a recording result includes:
s1331: burning according to the decoding sequence;
specifically, the data is written into the flash memory of the target device in the process of the writing according to the decoding sequence.
S1332: when the burning is completed, checking data calculation is carried out on the data written into the flash memory of the target equipment in the burning process, so as to obtain second checking data;
specifically, when the writing is completed, a preset check data calculation method is adopted to calculate the check data of part of the data (the data written in this time) or all the data (the data written in this time) written in the flash memory of the target device in the writing process, and the calculated check data is used as second check data.
S1333: if the second check data is the same as the check data in the decoding sequence, determining that the burning result is successful;
specifically, if the second check data is the same as the check data in the decoding sequence, this means that the writing is successful, and therefore, the writing result is determined to be successful.
S1334: if the second check data is different from the check data in the decoding sequence, determining that the burning result is failure.
Specifically, if the second check data is different from the check data in the decoding sequence, this means that the recording fails, and therefore, the recording result is determined to be failed.
The embodiment realizes verification after the burning, namely, when the burning is completed, the data written into the flash memory of the target equipment in the burning process is verified, thereby realizing automatic verification of the burning and providing a basis for distinguishing whether the burning is correct or not by a user.
In one embodiment, the step of recording according to the decoding sequence to obtain a recording result includes:
s134: burning according to the decoding sequence;
in the recording process, checking data calculation is carried out on data written into the flash memory of the target device in the recording process according to a preset recording length interval to obtain third checking data, whether the third checking data are identical to the checking data corresponding to the third checking data in the decoding sequence is judged, if so, a single-period result is determined to be successful and recording is continued, and if not, recording is stopped and the recording result is determined to be failed;
And if each single-period result is successful, determining that the burning result is successful.
And presetting a recording length interval, namely taking out data with fixed length from the decoding sequence each time for recording, and checking immediately after recording is completed.
Specifically, in the burning process, a preset check data calculation method is adopted, and check data calculation is carried out on the data written into the flash memory of the target device in the burning process according to a preset burning length interval, so that third check data is obtained, and therefore segmented check is realized; if the third check data is the same as the check data corresponding to the third check data in the decoding sequence, the section is correctly burnt, so that a single period result is determined to be successful, and the data with fixed length is continuously taken out from the decoding sequence for burning; if the third check data is different from the check data corresponding to the third check data in the decoding sequence, the recording error of the section is meant, and the recording needs to be stopped as soon as possible, so that the recording is stopped and the recording result is determined to be failed; after all the writing of the decoding sequence is completed, each single-cycle result is successful, which means that the whole writing process is correct, and therefore, the writing result is determined to be successful.
The embodiment realizes the verification while writing, namely the verification of the data written into the flash memory of the target device in the writing process according to the preset writing length interval, is beneficial to finding problems as early as possible, provides a basis for users to correct as early as possible, and further improves the writing efficiency.
In a second aspect, referring to fig. 3, fig. 3 is a schematic flow chart of a recording information transmission method according to an embodiment of the present invention, where the method is applied to a recording device, and the method includes:
s21: coding the data to be burnt by adopting a preset coding method to obtain a coding sequence;
s22: when the burning equipment is provided with a light-emitting component, controlling the light-emitting component to emit light according to the coding sequence;
s23: when the burning equipment is not provided with the light-emitting component, controlling the light signal emitter to emit light according to the coding sequence;
each burning device transmits a coding sequence corresponding to data to be burned to at least one target device;
the target device is configured to: information corresponding to light emitted by a light signal emitter or a light emitting component of a burning device is obtained as single-time received light information, wherein the single-time received light information comprises: and decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method to obtain a decoding sequence, and burning according to the decoding sequence to obtain a burning result.
According to the embodiment, the target equipment can be burnt without disassembling the shell of the target equipment, so that the burning operation is simplified, and the burning efficiency is improved; and one burning device transmits the coding sequence corresponding to the data to be burned to at least one target device, so that a plurality of target devices are burned at one time, and the burning efficiency is further improved; in addition, the single received light information includes: the brightness value and/or the color value, so that information is transmitted through the brightness value and/or the color value of the light, the richness of the transmitted information is increased, and the cost of a brightness sensing component and a color sensing component is lower; the target equipment decodes by adopting a decoding method corresponding to the preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved; the whole burning process does not need a transmission line for connecting the burning device and the target device, so that the cost of the transmission line is reduced, and the condition that the burning cannot be performed due to the loss of the transmission line is avoided.
In one embodiment, the step of encoding the data to be burned by using a preset encoding method to obtain a coding sequence includes:
S211: the data to be coded is taken as the data to be coded, or a preset starting command code and the data to be coded are spliced in sequence to obtain the data to be coded, or the data to be coded and a preset ending command code are spliced in sequence to obtain the data to be coded, or a preset starting command code, the data to be coded and a preset ending command code are spliced in sequence to obtain the data to be coded, or a preset learning code and the data to be coded are spliced in sequence to obtain the data to be coded, or a preset learning code, a preset starting command code and the data to be coded are spliced in sequence to obtain the data to be coded, or a preset learning code, the data to be coded and a preset ending command code are spliced in sequence to obtain the data to be coded, or a preset learning code, a preset starting command code, the data to be coded and a preset ending command are spliced in sequence to obtain the data to be coded;
specifically, it is understood that in the present embodiment, the splice may use a splice symbol as a connector, or may use a splice symbol as a connector.
For example, the preset learning code a, the preset starting writing command code B, the data to be written C and the preset ending writing command code D are spliced in sequence, so as to obtain the data to be coded as ABCD.
For example, a preset learning code a, a preset starting writing command code B, the data to be written C and a preset ending writing command code D are spliced in sequence by using a splice symbol 9, so as to obtain data to be coded as A9B9C9D.
The command code for starting the burning is preset and is used for informing the target equipment to start emitting the light corresponding to the code corresponding to the data to be burned. The command code for starting the recording may be one code or a plurality of codes (i.e., a plurality of bits).
The end burning command code is preset and is used for informing the target equipment to end emitting the light corresponding to the code corresponding to the data to be burned. The end-of-burn command code may be one code or a plurality of codes (i.e., a plurality of bits).
S212: and coding the data to be coded by adopting a preset coding method to obtain the coding sequence.
The embodiment provides a foundation for decoding compensation by setting the learning code, thereby improving the self-adaptability of the application, reducing the influence of ambient light and improving the accuracy of the learning code sequence; by adopting a preset encoding method to encode the data to be encoded, normalized information transmission is realized, and the accuracy of the transmitted information is improved; by starting the burning command code, the target equipment can be accurately informed to enter the information corresponding to the data to be burned; by ending the burning command code, the target device can be accurately informed of ending the receiving of the information corresponding to the data to be burned, and the burning work can be started; the command codes for starting and ending the recording can avoid the target equipment from missing information, thereby improving the accuracy of recording information transmission and further improving the recording efficiency.
In one embodiment, the step of encoding the data to be burned by using a preset encoding method to obtain the encoding sequence includes:
s201: acquiring initial burning data;
specifically, the initial burning data input by the user may be obtained, the initial burning data may be obtained from an upper computer, and the initial burning data may be obtained from a third party application.
The initial burning data is the data which needs to be burnt to the target equipment.
S202: performing verification data calculation on the initial burning data to obtain fourth verification data;
specifically, a preset check data calculation method is adopted to calculate the check data of the initial burning data, and the calculated check data is used as fourth check data.
S203: and if the fourth check data is the same as the check data in the initial burning data, taking the initial burning data as the data to be burnt.
Specifically, if the fourth verification data is the same as the verification data in the initial writing data, it means that the initial writing data imported into the writing device is correct, that is, the verification result of the initial writing data is correct, so that the initial writing data is taken as the data to be written.
If the fourth check data is different from the check data in the initial writing data, it means that the initial writing data imported into the writing device is wrong, that is, the check result of the initial writing data is wrong, so that the initial writing data cannot be used as the data to be written.
It can be understood that the user is reminded of the verification result (correct or error) of the initial recorded data by information feedback or controlling the indicator light or display of the recording device.
According to the embodiment, by checking before transmission, namely checking whether the initial recorded data imported into the recording device is correct in the recording device, the correct initial recorded data is used as the data to be recorded, so that the problem can be found as early as possible, a foundation is provided for users to correct as early as possible, and further the recording efficiency is improved.
It can be appreciated that in another embodiment of the present application, at least two of the verification methods of pre-transfer verification, pre-writing verification, verification while writing, and verification after writing are adopted.
In one embodiment, when the recording device is provided with a light emitting component, the step of controlling the light emitting component to emit light according to the coding sequence, and when the recording device is not provided with the light emitting component, the step of controlling the light signal emitter to emit light according to the coding sequence further includes:
S2211: when the burning device is provided with a light-emitting component, the burning device and the target device are placed in a target space with a light source turned off;
s2311: and when the burning device is not provided with the light emitting component, placing the optical signal emitter, the burning device and the target device in the target space with the light source turned off.
According to the embodiment, the burning information is transmitted in the target space where the light source is turned off, so that the influence of the ambient light on the transmission of the burning information is reduced, the accuracy of the transmission of the burning information is improved, and the burning efficiency is further improved.
In one embodiment, when the recording device is provided with a light emitting component, the light emitting component is controlled to emit light according to the coding sequence, and when the recording device is not provided with the light emitting component, the step of controlling the optical signal emitter to emit light according to the coding sequence includes:
s2221: when the burning equipment is provided with a light-emitting component, controlling the light-emitting component to emit light according to the coding sequence and a preset emission period;
s2321: when the burning equipment is not provided with the light-emitting component, controlling the light signal emitter to emit light according to the preset emission period according to the coding sequence;
The coding sequence is a sequence of coding values, and the number of the coding values sent by each preset transmitting period is a preset number.
Specifically, the preset emission period, that is, the number of times light is transmitted in each period is the same.
For example, if the code sequence is 79DC5A6B and the preset emission period is 4, then 5A6B is sent in the first period, 79DC is sent in the second period, and the light emitting component or the optical signal emitter of the recording device sequentially sends light with brightness of B level, light with brightness of 6 level, light with brightness of a level of a, light with brightness of 5 level, and non-light to complete the sending of the first period, and the light emitting component or the optical signal emitter of the recording device sequentially sends light with brightness of C level, light with brightness of D level, light with brightness of 9 level, light with brightness of 7 level, and non-light to complete the sending of the first period.
The embodiment emits light according to the preset emission period, is beneficial to controlling the sending rhythm, is beneficial to sensing light by target equipment, and further improves the accuracy of burning information transmission.
In a third aspect, referring to fig. 4, in one embodiment, a product burning apparatus is provided, where the apparatus is applied to a target device, and the apparatus is configured to implement the steps of the product burning method according to any of the first aspects.
The product burning device at least comprises:
a single received light information determining module 801, configured to obtain information corresponding to light emitted by a light signal emitter or a light emitting component of a burning device, as single received light information, where the single received light information includes: a luminance value and/or a color value;
a decoding module 802, configured to decode each piece of the single received light information by using a decoding method corresponding to a preset encoding method, to obtain a decoding sequence;
the recording module 803 is configured to record according to the decoding sequence, so as to obtain a recording result;
each burning device transmits a coding sequence corresponding to data to be burned to at least one target device, and the burning device is used for: and adopting a preset coding method to code data to be recorded to obtain a coding sequence, controlling the light emitting component to emit light according to the coding sequence when the recording equipment is provided with the light emitting component, and controlling the optical signal emitter to emit light according to the coding sequence when the recording equipment is not provided with the light emitting component.
According to the embodiment, the target equipment can be burnt without disassembling the shell of the target equipment, so that the burning operation is simplified, and the burning efficiency is improved; and one burning device transmits the coding sequence corresponding to the data to be burned to at least one target device, so that a plurality of target devices are burned at one time, and the burning efficiency is further improved; in addition, the single received light information includes: the brightness value and/or the color value, so that information is transmitted through the brightness value and/or the color value of the light, the richness of the transmitted information is increased, and the cost of a brightness sensing component and a color sensing component is lower; the target equipment decodes by adopting a decoding method corresponding to the preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved; the whole burning process does not need a transmission line for connecting the burning device and the target device, so that the cost of the transmission line is reduced, and the condition that the burning cannot be performed due to the loss of the transmission line is avoided.
In a fourth aspect, referring to fig. 5, in one embodiment, a recording information transmitting apparatus is provided, where the apparatus is applied to a recording device, and the apparatus is configured to implement the steps of the recording information transmitting method according to any one of the second aspects.
The burning information transfer device at least comprises:
the encoding module 901 is configured to encode data to be burned by adopting a preset encoding method to obtain a coding sequence;
the transmitting module 902 is configured to control, when the recording device is provided with a light emitting component, the light emitting component to emit light according to the coding sequence, and control, when the recording device is not provided with the light emitting component, the optical signal transmitter to emit light according to the coding sequence;
each burning device transmits a coding sequence corresponding to data to be burned to at least one target device;
the target device is configured to: information corresponding to light emitted by a light signal emitter or a light emitting component of a burning device is obtained as single-time received light information, wherein the single-time received light information comprises: and decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method to obtain a decoding sequence, and burning according to the decoding sequence to obtain a burning result.
According to the embodiment, the target equipment can be burnt without disassembling the shell of the target equipment, so that the burning operation is simplified, and the burning efficiency is improved; and one burning device transmits the coding sequence corresponding to the data to be burned to at least one target device, so that a plurality of target devices are burned at one time, and the burning efficiency is further improved; in addition, the single received light information includes: the brightness value and/or the color value, so that information is transmitted through the brightness value and/or the color value of the light, the richness of the transmitted information is increased, and the cost of a brightness sensing component and a color sensing component is lower; the target equipment decodes by adopting a decoding method corresponding to the preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved; the whole burning process does not need a transmission line for connecting the burning device and the target device, so that the cost of the transmission line is reduced, and the condition that the burning cannot be performed due to the loss of the transmission line is avoided.
In a fifth aspect, in one embodiment, there is provided a target device comprising a light sensor, a memory, a processor and a computer program stored in the memory and executable on the processor, the light sensor being connected to the processor, the light sensor being for sensing light emitted by a light signal emitter or a light emitting part of a burning device, the processor executing the computer program to perform the steps of the product burning method according to any of the first aspects.
The target device is at least used for acquiring information corresponding to light emitted by the light signal emitter or the light emitting component of the burning device, so as to be single received light information, wherein the single received light information comprises: the brightness value and/or the color value are/is decoded by adopting a decoding method corresponding to a preset encoding method, so as to obtain a decoding sequence, and the burning is carried out according to the decoding sequence, so as to obtain a burning result;
each burning device transmits a coding sequence corresponding to data to be burned to at least one target device, and the burning device is at least used for: and adopting a preset coding method to code data to be recorded to obtain a coding sequence, controlling the light emitting component to emit light according to the coding sequence when the recording equipment is provided with the light emitting component, and controlling the optical signal emitter to emit light according to the coding sequence when the recording equipment is not provided with the light emitting component.
According to the embodiment, the target equipment can be burnt without disassembling the shell of the target equipment, so that the burning operation is simplified, and the burning efficiency is improved; and one burning device transmits the coding sequence corresponding to the data to be burned to at least one target device, so that a plurality of target devices are burned at one time, and the burning efficiency is further improved; in addition, the single received light information includes: the brightness value and/or the color value, so that information is transmitted through the brightness value and/or the color value of the light, the richness of the transmitted information is increased, and the cost of a brightness sensing component and a color sensing component is lower; the target equipment decodes by adopting a decoding method corresponding to the preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved; the whole burning process does not need a transmission line for connecting the burning device and the target device, so that the cost of the transmission line is reduced, and the condition that the burning cannot be performed due to the loss of the transmission line is avoided.
In a sixth aspect, in one embodiment, there is provided a burning apparatus including: comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the burn information transfer method according to any of the second aspects when executing the computer program.
The target device is at least used for acquiring information corresponding to light emitted by the light signal emitter or the light emitting component of the burning device, so as to be single received light information, wherein the single received light information comprises: the brightness value and/or the color value are/is decoded by adopting a decoding method corresponding to a preset encoding method, so as to obtain a decoding sequence, and the burning is carried out according to the decoding sequence, so as to obtain a burning result;
each burning device transmits a coding sequence corresponding to data to be burned to at least one target device, and the burning device is at least used for: and adopting a preset coding method to code data to be recorded to obtain a coding sequence, controlling the light emitting component to emit light according to the coding sequence when the recording equipment is provided with the light emitting component, and controlling the optical signal emitter to emit light according to the coding sequence when the recording equipment is not provided with the light emitting component.
According to the embodiment, the target equipment can be burnt without disassembling the shell of the target equipment, so that the burning operation is simplified, and the burning efficiency is improved; and one burning device transmits the coding sequence corresponding to the data to be burned to at least one target device, so that a plurality of target devices are burned at one time, and the burning efficiency is further improved; in addition, the single received light information includes: the brightness value and/or the color value, so that information is transmitted through the brightness value and/or the color value of the light, the richness of the transmitted information is increased, and the cost of a brightness sensing component and a color sensing component is lower; the target equipment decodes by adopting a decoding method corresponding to the preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved; the whole burning process does not need a transmission line for connecting the burning device and the target device, so that the cost of the transmission line is reduced, and the condition that the burning cannot be performed due to the loss of the transmission line is avoided.
In a seventh aspect, in one embodiment, a computer readable storage medium is provided, the computer readable storage medium storing a computer program, which when executed by a processor, implements the steps of the product burn method according to any one of the first aspects or the burn information transfer method according to any one of the second aspects.
The target device is at least used for acquiring information corresponding to light emitted by the light signal emitter or the light emitting component of the burning device, so as to be single received light information, wherein the single received light information comprises: the brightness value and/or the color value are/is decoded by adopting a decoding method corresponding to a preset encoding method, so as to obtain a decoding sequence, and the burning is carried out according to the decoding sequence, so as to obtain a burning result;
each burning device transmits a coding sequence corresponding to data to be burned to at least one target device, and the burning device is at least used for: and adopting a preset coding method to code data to be recorded to obtain a coding sequence, controlling the light emitting component to emit light according to the coding sequence when the recording equipment is provided with the light emitting component, and controlling the optical signal emitter to emit light according to the coding sequence when the recording equipment is not provided with the light emitting component.
According to the embodiment, the target equipment can be burnt without disassembling the shell of the target equipment, so that the burning operation is simplified, and the burning efficiency is improved; and one burning device transmits the coding sequence corresponding to the data to be burned to at least one target device, so that a plurality of target devices are burned at one time, and the burning efficiency is further improved; in addition, the single received light information includes: the brightness value and/or the color value, so that information is transmitted through the brightness value and/or the color value of the light, the richness of the transmitted information is increased, and the cost of a brightness sensing component and a color sensing component is lower; the target equipment decodes by adopting a decoding method corresponding to the preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved; the whole burning process does not need a transmission line for connecting the burning device and the target device, so that the cost of the transmission line is reduced, and the condition that the burning cannot be performed due to the loss of the transmission line is avoided.
In an eighth aspect, referring to FIG. 6, in one embodiment, a product system is provided, the product system comprising: the recording device 2 according to the sixth aspect and the target device 1 according to the fifth aspect, where the recording device 2 is configured to transmit, to at least one of the target devices 1, a coding sequence corresponding to data to be recorded.
The target device 1 is at least configured to obtain information corresponding to light emitted by a light signal emitter or a light emitting component of a burning device, as single received light information, where the single received light information includes: the brightness value and/or the color value are/is decoded by adopting a decoding method corresponding to a preset encoding method, so as to obtain a decoding sequence, and the burning is carried out according to the decoding sequence, so as to obtain a burning result;
each recording device 2 transmits the coding sequence corresponding to the data to be recorded to at least one target device 1, where the recording device is at least configured to: and adopting a preset coding method to code data to be recorded to obtain a coding sequence, controlling the light emitting component to emit light according to the coding sequence when the recording equipment is provided with the light emitting component, and controlling the optical signal emitter to emit light according to the coding sequence when the recording equipment is not provided with the light emitting component.
According to the embodiment, the target equipment can be burnt without disassembling the shell of the target equipment, so that the burning operation is simplified, and the burning efficiency is improved; and one burning device transmits the coding sequence corresponding to the data to be burned to at least one target device, so that a plurality of target devices are burned at one time, and the burning efficiency is further improved; in addition, the single received light information includes: the brightness value and/or the color value, so that information is transmitted through the brightness value and/or the color value of the light, the richness of the transmitted information is increased, and the cost of a brightness sensing component and a color sensing component is lower; the target equipment decodes by adopting a decoding method corresponding to the preset encoding method, so that normalized information transmission is realized, and the accuracy of the transmitted information is improved; the whole burning process does not need a transmission line for connecting the burning device and the target device, so that the cost of the transmission line is reduced, and the condition that the burning cannot be performed due to the loss of the transmission line is avoided.
It should be noted that, the functions or steps implemented by the computer readable storage medium or the computer device may correspond to the relevant descriptions of the server side and the client side in the foregoing method embodiments, and are not described herein for avoiding repetition.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (17)

1. A method of product burn-in, the method being applied to a target device, the method comprising:
information corresponding to light emitted by a light signal emitter or a light emitting component of a burning device is obtained as single-time received light information, wherein the single-time received light information comprises: a luminance value and/or a color value;
Decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method to obtain a decoding sequence;
burning is carried out according to the decoding sequence, and a burning result is obtained;
each burning device transmits a coding sequence corresponding to data to be burned to at least one target device, and the burning device is used for: and adopting a preset coding method to code data to be recorded to obtain a coding sequence, controlling the light emitting component to emit light according to the coding sequence when the recording equipment is provided with the light emitting component, and controlling the optical signal emitter to emit light according to the coding sequence when the recording equipment is not provided with the light emitting component.
2. The method for burning a product according to claim 1, wherein the step of decoding each piece of the single received light information by using a decoding method corresponding to a preset encoding method to obtain a decoding sequence, and burning according to the decoding sequence to obtain a burning result comprises the steps of:
constructing a null sequence as a decoding sequence;
if the learning code does not exist in the coding sequence, decoding the single received light information by adopting a decoding method corresponding to a preset coding method to obtain a single decoding result, and adding the single decoding result to the tail of the decoding sequence;
If the learning code exists in the coding sequence, taking the single received light information which is acquired at the beginning and has the number of bits corresponding to the learning code as a light information set, adopting a decoding method corresponding to a preset coding method, the learning code and the light information set, decoding the single received light information except the light information set to obtain a single decoding result, and adding the single decoding result to the end of the decoding sequence;
and recording according to each single decoding result corresponding to the data to be recorded in the decoding sequence, so as to obtain the recording result.
3. The method for burning a product according to claim 1, wherein the step of decoding each piece of the single received light information by using a decoding method corresponding to a preset encoding method to obtain a decoding sequence includes:
and decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method and a rule of decoding the single received light information at the same time to obtain a decoding sequence.
4. The method for burning a product according to claim 1, wherein the step of burning according to the decoding sequence to obtain a burning result comprises:
Performing check data calculation on data corresponding to the data to be burned in the decoding sequence to obtain first check data;
if the first check data is the same as the check data in the decoding sequence, burning according to the decoding sequence to obtain the burning result;
if the first check data is different from the check data in the decoding sequence, determining that the burning result is failure.
5. The method for burning a product according to claim 1, wherein the step of burning according to the decoding sequence to obtain a burning result comprises:
burning according to the decoding sequence;
when the burning is completed, checking data calculation is carried out on the data written into the flash memory of the target equipment in the burning process, so as to obtain second checking data;
if the second check data is the same as the check data in the decoding sequence, determining that the burning result is successful;
if the second check data is different from the check data in the decoding sequence, determining that the burning result is failure.
6. The method for burning a product according to claim 1, wherein the step of burning according to the decoding sequence to obtain a burning result comprises:
Burning according to the decoding sequence;
in the recording process, checking data calculation is carried out on data written into the flash memory of the target device in the recording process according to a preset recording length interval to obtain third checking data, whether the third checking data are identical to the checking data corresponding to the third checking data in the decoding sequence is judged, if so, a single-period result is determined to be successful and recording is continued, and if not, recording is stopped and the recording result is determined to be failed;
and if each single-period result is successful, determining that the burning result is successful.
7. A burning information transfer method, the method being applied to a burning apparatus, the method comprising:
coding the data to be burnt by adopting a preset coding method to obtain a coding sequence;
when the burning equipment is provided with a light-emitting component, controlling the light-emitting component to emit light according to the coding sequence;
when the burning equipment is not provided with the light-emitting component, controlling the light signal emitter to emit light according to the coding sequence;
each burning device transmits a coding sequence corresponding to data to be burned to at least one target device;
The target device is configured to: information corresponding to light emitted by a light signal emitter or a light emitting component of a burning device is obtained as single-time received light information, wherein the single-time received light information comprises: and decoding each piece of single received light information by adopting a decoding method corresponding to a preset encoding method to obtain a decoding sequence, and burning according to the decoding sequence to obtain a burning result.
8. The method for transmitting information to be burned as set forth in claim 7, wherein the step of encoding the data to be burned by using a preset encoding method to obtain a code sequence comprises:
the data to be coded is taken as the data to be coded, or a preset starting command code and the data to be coded are spliced in sequence to obtain the data to be coded, or the data to be coded and a preset ending command code are spliced in sequence to obtain the data to be coded, or a preset starting command code, the data to be coded and a preset ending command code are spliced in sequence to obtain the data to be coded, or a preset learning code and the data to be coded are spliced in sequence to obtain the data to be coded, or a preset learning code, a preset starting command code and the data to be coded are spliced in sequence to obtain the data to be coded, or a preset learning code, the data to be coded and a preset ending command code are spliced in sequence to obtain the data to be coded, or a preset learning code, a preset starting command code, the data to be coded and a preset ending command are spliced in sequence to obtain the data to be coded;
And coding the data to be coded by adopting a preset coding method to obtain the coding sequence.
9. The method for transmitting information to be burned as set forth in claim 7, wherein the step of encoding the data to be burned by a preset encoding method to obtain the encoding sequence comprises:
acquiring initial burning data;
performing verification data calculation on the initial burning data to obtain fourth verification data;
and if the fourth check data is the same as the check data in the initial burning data, taking the initial burning data as the data to be burnt.
10. The method for transmitting information according to claim 7, wherein when the recording device is provided with a light emitting element, the light emitting element is controlled to emit light according to the coding sequence, and when the recording device is not provided with the light emitting element, the method further comprises, before the step of controlling the optical signal emitter to emit light according to the coding sequence:
when the burning device is provided with a light-emitting component, the burning device and the target device are placed in a target space with a light source turned off;
and when the burning device is not provided with the light emitting component, placing the optical signal emitter, the burning device and the target device in the target space with the light source turned off.
11. The method of claim 7, wherein when the recording device is provided with a light emitting element, the light emitting element is controlled to emit light according to the coding sequence, and when the recording device is not provided with the light emitting element, the step of controlling the optical signal emitter to emit light according to the coding sequence comprises:
when the burning equipment is provided with a light-emitting component, controlling the light-emitting component to emit light according to the coding sequence and a preset emission period;
when the burning equipment is not provided with the light-emitting component, controlling the light signal emitter to emit light according to the preset emission period according to the coding sequence;
the coding sequence is a sequence of coding values, and the number of the coding values sent by each preset transmitting period is a preset number.
12. A product burning apparatus for application to a target device, characterized in that the apparatus is adapted to carry out the steps of the product burning method according to any of claims 1-6.
13. A recording information transfer apparatus applied to a recording device, characterized in that the apparatus is for realizing the steps of the recording information transfer method according to any one of claims 7 to 11.
14. A target device comprising a light sensor, a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the light sensor is connected to the processor for sensing light emitted by a light signal emitter or by a light emitting part of a burning device, the processor executing the computer program to carry out the steps of the product burning method according to any of claims 1 to 6.
15. A burning apparatus, characterized in that the burning apparatus comprises: comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the burn information transfer method according to any one of claims 7 to 11 when the computer program is executed.
16. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the product burning method according to any one of claims 1 to 6 or the burning information transfer method according to any one of claims 7 to 11.
17. A product system, the product system comprising: the recording device according to claim 15 and the target device according to claim 14, wherein the recording device is configured to transmit, to at least one of the target devices, a coding sequence corresponding to data to be recorded.
CN202311379803.8A 2023-10-24 2023-10-24 Product burning method, burning information transmission method and related equipment Active CN117111970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311379803.8A CN117111970B (en) 2023-10-24 2023-10-24 Product burning method, burning information transmission method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311379803.8A CN117111970B (en) 2023-10-24 2023-10-24 Product burning method, burning information transmission method and related equipment

Publications (2)

Publication Number Publication Date
CN117111970A true CN117111970A (en) 2023-11-24
CN117111970B CN117111970B (en) 2024-01-30

Family

ID=88809580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311379803.8A Active CN117111970B (en) 2023-10-24 2023-10-24 Product burning method, burning information transmission method and related equipment

Country Status (1)

Country Link
CN (1) CN117111970B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202353863U (en) * 2011-11-03 2012-07-25 陈源波 Wireless flash light trigger and shutter remote controller with learning codes
CN102904640A (en) * 2012-11-05 2013-01-30 北京半导体照明科技促进中心 Address code updating method and device
US20130293361A1 (en) * 2012-05-01 2013-11-07 John G. Posa Wireless remote with control code learning
CN105893069A (en) * 2015-11-10 2016-08-24 乐视致新电子科技(天津)有限公司 Software burning method and device
CN110990031A (en) * 2019-12-06 2020-04-10 吴苑 Burning method and device for address codes of LED lamp beads
CN110996443A (en) * 2019-12-06 2020-04-10 吴苑 Burning method and device for address codes of LED lamp beads
US20210136892A1 (en) * 2018-09-10 2021-05-06 Semisilicon Technology Corp. Light emitting diode lamp

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202353863U (en) * 2011-11-03 2012-07-25 陈源波 Wireless flash light trigger and shutter remote controller with learning codes
US20130293361A1 (en) * 2012-05-01 2013-11-07 John G. Posa Wireless remote with control code learning
CN102904640A (en) * 2012-11-05 2013-01-30 北京半导体照明科技促进中心 Address code updating method and device
CN105893069A (en) * 2015-11-10 2016-08-24 乐视致新电子科技(天津)有限公司 Software burning method and device
US20210136892A1 (en) * 2018-09-10 2021-05-06 Semisilicon Technology Corp. Light emitting diode lamp
CN110990031A (en) * 2019-12-06 2020-04-10 吴苑 Burning method and device for address codes of LED lamp beads
CN110996443A (en) * 2019-12-06 2020-04-10 吴苑 Burning method and device for address codes of LED lamp beads

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄玉琴: "多接口显示器EDID快速烧录方法", 福建电脑, no. 04 *

Also Published As

Publication number Publication date
CN117111970B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
US11270627B2 (en) Method for acquiring and transmitting compensation data, and intelligent terminal
CN109027736B (en) Two-stage addressing method of LED program-controlled lamp string with power line transmitting signal
US7612736B2 (en) Light emitting unit
CN111562933B (en) Air conditioner upgrading method and air conditioner system
CN107342065B (en) Display device driving method, driving device and display device
CN117111970B (en) Product burning method, burning information transmission method and related equipment
CN109522229A (en) A kind of high-efficient automatic test macro and its test method
CN110399306B (en) Automatic testing method and device for software module
US20120182018A1 (en) Apparatus and method for sensing failure
TWI536866B (en) Light emitting diode lamp with burnable function and lamp string and system for the same
CN108401313B (en) Light emitting diode driving system and burning method thereof
CN102904640A (en) Address code updating method and device
CN108255346A (en) The dynamic regulating method and device of pressure touch threshold value
US10943168B2 (en) System and method for determining an artificial intelligence model in a decentralized network
CN116679818A (en) Encoding method of battery management system, electronic device and storage medium
US10902313B2 (en) System and method for determining an artificial intelligence model in a decentralized network
CN108268270B (en) Application program updating method, device and system for medical device
CN105373442A (en) Method and device for monitoring data error status in a memory
JP4070981B2 (en) communication cable
US20210209977A1 (en) Led module, display and calibration system with traceability
CN110032537B (en) Address writing method, address writing device and computer readable storage medium
KR20200144038A (en) System for controlling industrial stacking robot
JP4670364B2 (en) Optical communication device
CN104123900A (en) LED (light-emitting diode) lamp panel calibration system and method
CN111246382B (en) Method for detecting whether smart phone is controlled equipment or not through hardware fingerprint

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant