CN112540724B - Data transmission method, device and equipment - Google Patents
Data transmission method, device and equipment Download PDFInfo
- Publication number
- CN112540724B CN112540724B CN202011308723.XA CN202011308723A CN112540724B CN 112540724 B CN112540724 B CN 112540724B CN 202011308723 A CN202011308723 A CN 202011308723A CN 112540724 B CN112540724 B CN 112540724B
- Authority
- CN
- China
- Prior art keywords
- data
- reading
- period
- read
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 67
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000007958 sleep Effects 0.000 claims abstract description 74
- 238000012545 processing Methods 0.000 claims description 33
- 238000004590 computer program Methods 0.000 claims description 23
- 230000004617 sleep duration Effects 0.000 claims description 8
- 230000004622 sleep time Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000001186 cumulative effect Effects 0.000 description 2
- 230000005059 dormancy Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0659—Command handling arrangements, e.g. command buffers, queues, command scheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06M—COUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
- G06M1/00—Design features of general application
- G06M1/27—Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum
- G06M1/272—Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum using photoelectric means
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Communication Control (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application is applicable to the technical field of data transmission, and provides a data transmission method, which comprises the following steps: in the embodiment of the application, a first reading period parameter is acquired; stopping reading the data to be read in the dormant period of the first reading period, and entering the non-dormant period of the first reading period after waiting for the dormant period; reading first data corresponding to the first reading period from the data to be read according to the first reading data length in a non-dormant period of the first reading period, and entering a dormant period of a next first reading period; and converting the first data into an analog signal and transmitting the analog signal. According to the method, the filled data does not need to be generated in the period of the sleep period, the storage resources do not need to be occupied, when the data volume is relatively large, a plurality of memory resources can be saved by the data sending mode, the hardware implementation of the transmitter is easy, and the cost of the transmitter is reduced.
Description
Technical Field
The present application belongs to the technical field of data transmission, and in particular, relates to a data transmission method, device and equipment.
Background
When the transmitter of the existing communication system transmits data, a bit stream corresponding to the data to be transmitted is generated through software, and then in a baseband part, the bit stream generates a digital signal through operations such as modulation and the like and is stored; when the data is required to be transmitted, the stored data is read, and analog signals are generated and transmitted after digital-to-analog conversion and radio frequency processing. However, when transmitting data, when transmitting some identical repeated signals, the situation that the same digital signals are stored in multiple parts occurs in the baseband, so that the memory resources of the baseband are wasted; and if all signals are generated and transmitted by the transmitter, the design difficulty of the transmitter is greatly improved, the hardware implementation of the transmitter is not easy, and the cost of the transmitter is improved.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a device and equipment, which can solve the problems that when the size of data is larger, the existing data transmission mode consumes very large memory resources, or when all signals are generated and transmitted by hardware, the hardware implementation of a transmitter is not easy, and the cost of the transmitter is high.
In a first aspect, an embodiment of the present application provides a data sending method, including:
Acquiring a first reading period parameter; the first reading period parameters comprise a sleep period and a non-sleep period corresponding to each first reading period, and the first reading period comprises a sleep period and a non-sleep period;
stopping reading the data to be read in the dormant period of the first reading period, and entering the non-dormant period of the first reading period after waiting for the dormant period;
Reading first data corresponding to the first reading period from the data to be read according to the first reading data length in a non-dormant period of the first reading period, and entering a dormant period of a next first reading period;
and converting the first data into an analog signal and transmitting the analog signal.
Further, the stopping reading the data to be read in the sleep period of the first reading period, and entering the non-sleep period of the first reading period after waiting for the sleep period includes:
Stopping reading the data to be read in the dormant period of the first reading period, starting a first counter, and entering the non-dormant period of the first reading period after the first counter is timed out; and the timing duration of the first counter is the sleep duration.
Further, the reading the first data corresponding to the first reading period from the data to be read according to the first reading data length in the non-sleep period of the first reading period includes:
And in the non-dormant period of the first reading period, reading the data with the first reading data length from a first preset starting position of the cache area to obtain first data corresponding to the first reading period.
Further, the acquiring the first read cycle parameter corresponding to the data to be sent includes:
and acquiring a first reading signal, and determining a first reading period parameter corresponding to the data to be transmitted according to the first reading signal.
Further, before the acquiring the first reading period parameter, the method further includes:
acquiring a second reading period parameter; the second read cycle parameter includes a second read data length of each second read cycle;
And reading the data to be read from the storage area according to the second reading period parameter, and storing the data to be read into the cache area.
Further, the first read cycle parameter further includes a repetition number threshold;
after the acquiring the first reading period parameter, further comprising:
Acquiring an accumulated repetition number before a non-sleep period of the first reading period;
If the accumulated repetition number is smaller than a repetition number threshold, reading second data in the cache area to obtain first data, and adding 1 to the accumulated repetition number;
and if the accumulated repetition number is equal to the repetition number threshold, resetting the accumulated repetition number to the initial value and waiting for the next first reading period.
Further, the reading the data to be read from the storage area according to the second reading period parameter, and storing the data to be read into the cache area includes:
starting from a second preset starting position of the storage area, reading the data to be read of the second read data length to obtain second data;
And storing the second data from the first preset starting position of the cache area.
Further, before the reading the data to be read of the second read data length from the second preset starting position of the storage area to obtain the second data, the method further includes:
Acquiring the data to be transmitted and acquiring an initial position of a second preset initial position;
and starting to store the data to be transmitted from the initial position of the second preset initial position of the storage area.
Further, the first reading period parameter further comprises a queue parameter of a first reading queue consisting of the first reading periods, wherein the queue parameter comprises the number of the first reading queues, the type and the number of the first reading periods included in the first reading queues;
The converting the first data into an analog signal, and transmitting the analog signal includes:
Obtaining queue data to be sent according to the first reading period parameter and the first data;
and converting the queue data to be transmitted into an analog signal, and transmitting the analog signal.
In a second aspect, an embodiment of the present application provides a data transmitting apparatus, including:
A first acquisition unit configured to acquire a first reading cycle parameter; the first reading period parameters comprise a sleep period and a non-sleep period corresponding to each first reading period, and the first reading period comprises a sleep period and a non-sleep period;
the first processing unit is used for stopping reading the data to be read in the dormant period of the first reading period and entering the non-dormant period of the first reading period after waiting for the dormant period;
The second processing unit is used for reading the first data corresponding to the first reading period from the data to be read according to the first reading data length in the non-dormant period of the first reading period, and entering the dormant period of the next first reading period;
and the transmitting unit is used for converting the first data into an analog signal and transmitting the analog signal.
Further, the first processing unit is specifically configured to:
Stopping reading the data to be read in the dormant period of the first reading period, starting a first counter, and entering the non-dormant period of the first reading period after the first counter is timed out; and the timing duration of the first counter is the sleep duration.
Further, the second processing unit is specifically configured to:
And in the non-dormant period of the first reading period, reading the data with the first reading data length from a first preset starting position of the cache area to obtain first data corresponding to the first reading period.
Further, the first obtaining unit is specifically configured to:
and acquiring a first reading signal, and determining a first reading period parameter corresponding to the data to be transmitted according to the first reading signal.
Further, the data transmitting apparatus further includes:
a second acquisition unit configured to acquire a second reading cycle parameter; the second read cycle parameter includes a second read data length of each second read cycle;
And the third processing unit is used for reading the data to be read from the storage area according to the second reading period parameter and storing the data to be read into the cache area.
Further, the first read cycle parameter further includes a repetition number threshold;
The data transmitting apparatus further includes:
A third acquisition unit configured to acquire an accumulated number of repetitions before a non-sleep period of the first reading period;
the fourth processing unit is used for reading the second data in the buffer area to obtain the first data if the accumulated repetition number is smaller than a repetition number threshold value, and adding 1 to the accumulated repetition number;
And a fifth processing unit, configured to reset the accumulated repetition number to the initial value and wait for a next first reading period if the accumulated repetition number is equal to the repetition number threshold.
Further, the third processing unit is specifically configured to:
starting from a second preset starting position of the storage area, reading the data to be read of the second read data length to obtain second data;
And storing the second data from the first preset starting position of the cache area.
Further, the third processing unit is specifically further configured to:
A sixth processing unit, configured to obtain the data to be sent, and obtain an initial position of a second preset initial position;
and the storage unit is used for storing the data to be transmitted from the initial position of the second preset initial position of the storage area.
Further, the first reading period parameter further comprises a queue parameter of a first reading queue consisting of the first reading periods, wherein the queue parameter comprises the number of the first reading queues, the type and the number of the first reading periods included in the first reading queues;
the sending unit is specifically configured to:
Obtaining queue data to be sent according to the first reading period parameter and the first data;
and converting the queue data to be transmitted into an analog signal, and transmitting the analog signal.
In a third aspect, an embodiment of the present application provides a data transmission device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the data transmission method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program, which when executed by a processor implements the data transmission method according to the first aspect.
In the embodiment of the application, a first reading period parameter is acquired; stopping reading the data to be read in the dormant period of the first reading period, and entering the non-dormant period of the first reading period after waiting for the dormant period; reading first data corresponding to the first reading period from the data to be read according to the first reading data length in a non-dormant period of the first reading period, and entering a dormant period of a next first reading period; and converting the first data into an analog signal and transmitting the analog signal. According to the method, the filled data does not need to be generated in the period of the dormancy period, storage resources do not need to be occupied, when the size of the data is large, a plurality of memory resources can be saved by the data sending mode, the hardware implementation of a transmitter is easy, and the cost of the transmitter is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a data transmission method according to a first embodiment of the present application;
fig. 2 is a schematic diagram illustrating descriptions of parameters in a data transmission method according to a first embodiment of the present application;
Fig. 3 is a schematic flowchart of S105 to S106 in a data transmission method according to the first embodiment of the present application;
fig. 4 is a schematic flowchart of refinement of S106 in a data transmission method according to the first embodiment of the present application;
fig. 5 is a schematic flowchart of refinement of S1061 in a data transmission method according to a first embodiment of the present application;
Fig. 6 is a schematic flowchart of S107 to S109 in a data transmission method according to the first embodiment of the present application;
FIG. 7 is a schematic diagram of a data waveform of a second reading cycle parameter in a data transmission method according to a first embodiment of the present application;
FIG. 8 is a schematic diagram of a data waveform of a first reading period parameter in a data transmission method according to a first embodiment of the present application;
fig. 9 is a schematic diagram of a data transmission apparatus according to a second embodiment of the present application;
fig. 10 is a schematic diagram of a data transmission apparatus provided in a third embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The data transmission device of the existing communication system is generally a transmitter, and the main task of the transmitter (A TRANSMITTER circuit) is to perform modulation of a useful low-frequency signal to a high-frequency carrier wave, and to change the modulation into an electromagnetic wave with a certain bandwidth at a certain center frequency and suitable for being transmitted through an antenna. The transmitter general workflow can be summarized as: generating a bit stream corresponding to data to be transmitted by software; in the baseband part, the bit stream generates a digital signal through operations such as modulation and the like and stores the digital signal; when the data is required to be transmitted, the stored data is read, subjected to digital-to-analog conversion and radio frequency processing, and then an analog signal is generated and transmitted. A general transmitter has the following problems when transmitting some signals: when a long pulse signal is transmitted, the long pulse signal is up to the second level due to the long transmission time, if the long pulse signal is generated by software, is stored in a baseband memory after being modulated by a baseband and is transmitted by hardware, very large memory resources are required to be consumed, for example, if the sampling rate is 240Msps, the signal bit width is 32 bits, the storage space required for transmitting a signal with the time length of 12 seconds is 240 x 32 x 12 x10 x 35 gbit= 92.16Gbit, which is unacceptable for a transmitter, and if all the long pulse signal is generated by the hardware and is transmitted, the design difficulty of the transmitter is greatly increased, and the cost of the transmitter is also increased. And, when transmitting some identical repeated signals, the situation that the same digital signal is stored in multiple parts occurs in the baseband, which wastes the memory resources of the baseband. In view of the above problems, the embodiment of the application provides a data transmission method.
Referring to fig. 1, fig. 1 is a schematic flowchart of a data transmission method according to a first embodiment of the present application. The execution body of a data transmission method in this embodiment is a device having a data transmission function, for example, a transmitter or the like. The data transmission method as shown in fig. 1 may include:
S101: acquiring a first reading period parameter; the first reading period parameters comprise a sleep period and a non-sleep period corresponding to each first reading period, and the first reading period comprises a sleep period and a non-sleep period.
In this embodiment, the device may include a buffer area and a storage area, where data to be sent may be stored, and the buffer area reads the data to be sent from the storage area. When the device detects a data transmission instruction, the data is read from the cache area. In this embodiment, when data is read from the buffer area, the reading period is divided into a sleep period and a non-sleep period to adapt to the needs of various data waveforms.
The device obtains a first read cycle parameter. The first reading period parameter may be preset, and the first reading period parameter is determined according to the first reading signal. The first reading signal may be generated by a first reading parameter and a first preset counting rule, and the first reading parameter may include a sleep time length and a first reading data length in each first reading period, and the number of first reading periods. The device may further obtain parameters related to the first read queue, for example, the first read cycle parameters may include, in addition to the sleep duration and the first read data length in each first read cycle frame, the number of first read cycles, the number of first read queue sequences n_sequence_rep, the number of different first read cycles n_frames (N) _rep included in the first read queue, and so on. The parameters may be preset and stored in the first parameter storage area. The queue parameter control unit in the device may generate a first read signal according to the first read parameter and a first preset count rule, and read the first data from the storage area.
In the following, taking fig. 2 as an example, all parameters to be acquired in the present embodiment will be described. Defining all data to be transmitted as a data queue, called sequence, the repeated transmission times (n_sequence_rep) of the data queue sequence can be configured, the data queue sequence is composed of a plurality of first reading periods frames, the number (n_frames) of the first reading periods frames can be configured in advance, and each first reading period frame can be configured with different repeated transmission times: n_frame (1) _rep, N_frame (2) _rep, N_frame (N) _rep. For example, 2_frame (1) _rep represents frame (1) as a number of first read cycles of 2, and 3_frame (2) _rep represents frame (2) as a number of first read cycles of 3. Each first read cycle frame is composed of 1 sleep period delay and 1 non-sleep period pulse, and the duration delay_len of the sleep period delay and the first read data length pulse_len of the non-sleep period pulse of each first read cycle frame can be independently configured. pulse_len represents the data length that needs to be transmitted for the non-sleep period pulse portion of the current first read cycle frame, and specific data in pulse may be preset and stored in the non-cache area. As shown in fig. 2, n_sequence_rep is configured to be 2, indicating that the entire data queue will be repeatedly transmitted 2 times; n_frame is configured to be 3, meaning that 3 frames are included in the sequence, frame1, frame2, and frame3, respectively; n_frame (1) _rep, n_frame (2) _rep, and n_frame (3) _rep are software configured to n_frame (1) _rep=2, n_frame (2) _rep=1, n_frame (3) _rep=1, meaning that frame1 needs to be repeatedly transmitted 2 times, frame2 needs to be repeatedly transmitted 1 time, and frame3 needs to be repeatedly transmitted 1 time.
The first reading period parameters comprise a sleep period and a first reading data length corresponding to each first reading period, the first reading period comprises a sleep period and a non-sleep period, and each reading period comprises a sleep period and a non-sleep period. Only during the non-sleep period, the corresponding data is read from the cache region. And in the dormant period, reading of the data is stopped, and the filled data does not need to be generated in the dormant period, so that the occupied storage resource is not needed, and the cost is reduced.
The first read cycle parameter may include a sleep duration and a first read data length corresponding to a plurality of different first read cycles. Thus, the data corresponding to the plurality of groups of first reading periods are read according to the parameters of each first reading period.
S102: and stopping reading the data to be read in the dormant period of the first reading period, and entering the non-dormant period of the first reading period after waiting for the dormant period.
The device stops reading the data to be read in the dormant period of the first reading period, and enters the non-dormant period of the first reading period after waiting for the dormant period, so that the filled data does not need to be generated in the dormant period, and storage resources do not need to be occupied.
In order to accurately read the data to be read after the sleep period has elapsed, a counter may be set for the sleep period, and S102 may include: stopping reading the data to be read in the dormant period of the first reading period, starting a first counter, and entering the non-dormant period of the first reading period after the first counter is timed out; and the timing duration of the first counter is the sleep duration. For example, the first counter is set as a delay1 counter, the duration of the sleep period is delay_len (1), reading of data to be read is stopped in the sleep period of the first reading period, the delay1 counter is started, and when the count value of the delay1 counter reaches delay_len (1), the count value of the delay1 counter is reset and the next counting is waited.
S103: and in the non-dormant period of the first reading period, reading the first data corresponding to the first reading period from the data to be read according to the first reading data length, and entering the dormant period of the next first reading period.
The device reads the first data corresponding to the first reading period from the data to be read according to the first reading data length in the non-dormant period of the first reading period, and enters the dormant period of the next first reading period.
In this embodiment, when the first data is read in the non-sleep period, the first data may be read by using a counter. When the non-sleep period is entered, a second counter is started, the second counter starts to work, and the counting range of the second counter is the length of the first read data. For example, the second counter is set as a pulse1 counter, the first read data length is pulse_len (1), during the non-sleep period of the first read cycle, a read data signal is generated, the first data corresponding to the first read cycle is read from the data to be read according to the first read data length, the pulse1 counter is started, when the count value of the pulse1 counter reaches the pulse_len (1), the count value of the pulse1 counter is reset, the next count is waited, the read data signal is closed, and then the next first read cycle is entered.
And in the non-dormant period of the first reading period, reading the data with the first reading data length from a first preset starting position of the cache area to obtain first data corresponding to the first reading period. The mode of storing the data to be read in the buffer area is different, and the first preset starting position is also different. In one embodiment, the data to be read may be stored according to the duration of the sleep period and the first read data length of the non-sleep period in the first read cycle parameter, where the buffer area includes all the data to be sent. And in each non-dormancy period, the device acquires the storage position of the data corresponding to the first reading period in the cache area, and reads the first data according to the storage position. In another embodiment, the buffer area stores only the data corresponding to the first read data length of the non-sleep period from the first preset starting position at a time, deletes the old data whenever the data corresponding to the first read data length of the new non-sleep period is detected, and stores the new data from the first preset starting position. The device starts reading from a first preset starting position every time it reads data from the cache area. For example, when the first data is read, the first data may be read by adopting a counter mode, the second counter starts to work, when the count value of the second counter reaches pulse_len (1), the pulse repetition count is increased by 1, but the set value of 2 is not reached, the second counter returns to 1 to count again, and the count range is still 1-pulse_len (1); in the above example, the second counter returns to 1 again for counting every time, 1 is the first preset starting position, and the first data is read from the same first preset starting position every time when the first data is read, so that an excessive storage space is not needed, and resources are further saved.
Because the reading parameters and the parameters of the buffer area are all preset, when the device reads the first data corresponding to one first reading period from the buffer area, the data corresponding to the first reading data length of the non-sleep period of the next first reading period is updated in the buffer area. This requires the storage area to constantly store new data to the first preset starting position of the cache area. In this embodiment, a buffer area is set, and a storage area is set at the same time, in which initial data of data to be transmitted is stored.
Further, before S101, S105 to S106 may be further included, and as shown in fig. 3, S105 to S106 are specifically as follows:
S105: acquiring a second reading period parameter; the second read cycle parameter includes a second read data length of each second read cycle.
The device acquires second reading period parameters, wherein the second reading period parameters comprise second reading data length of each second reading period, and the data to be read is read from the storage area according to the second reading period parameters and is stored into the cache area. The second reading parameter may include a second reading data length and the number of second reading cycles in each second reading cycle. The device may further obtain relevant parameters of the second read queue, for example, the second read cycle parameter may include, in addition to the second read data length in each second read cycle frame, the number of second read cycles, the number n_sequence_rep of the second read queue sequences, the number n_frame (N) _rep of different second read cycles included in the second read queue, and so on. The parameters may be preset and stored in the second parameter storage area.
S106: and reading the data to be read from the storage area according to the second reading period parameter, and storing the data to be read into the cache area.
Specifically, the apparatus reads the second data from the storage area by generating a second read signal, and stores the second data into the cache area. The second read signal may be generated by a second read parameter and a second preset count rule, and the memory control unit in the device may generate the second read signal according to the second read parameter and the second preset count rule to read the second data from the storage area.
Further, S106 may include S1061 to S1062, and as shown in fig. 4, S1061 to S1062 are specifically as follows:
s1061: and reading the data to be read of the second read data length from a second preset starting position of the storage area to obtain second data.
And the equipment starts from a second preset starting position of the storage area, reads the data to be sent of a second read data length, and obtains second data. It will be appreciated that the device has data read from the storage area and stored in the buffer area in accordance with the configuration of the second read parameter, awaiting reading, before reading the data from the buffer area and transmitting. After waiting for the data in the buffer area to be read out, the buffer area requests new data from the storage area after the number of the data in the buffer area is reduced, and the new data is still read out and stored in the buffer area according to the configuration of the second reading parameter. It is understood that the buffer is data whether or not data is transmitted. That is, the second data is read out from the storage area as configured according to the second read parameter and stored in the buffer area.
S1062: and storing the second data from the first preset starting position of the cache area.
The device stores the second data from a first preset starting position of the cache area. For example, the first preset starting position is address 1, and the device stores the second data from address 1, and overwrites the old second data stored previously.
When the number of data in the buffer area is smaller than the threshold value, the buffer area is read out to avoid the condition that the buffer area is empty when the data is transmitted, and before the data is read from the buffer area and transmitted, the second data is read out from the storage area and stored in the buffer area to wait for being read according to the configuration of the second reading parameter. After the second data in the buffer area is read out, the buffer area requests new second data from the storage area after the number of the data in the buffer area is reduced and is smaller than the threshold value, and the new second data is still read out and stored in the buffer area according to the configuration of the second reading parameter.
Further, before S1061, it may further include 10611 to 10612, as shown in fig. 5, where 10611 to 10612 are specifically as follows:
10611: acquiring the data to be transmitted and acquiring an initial position of a second preset initial position.
The device acquires data to be transmitted and acquires an initial position of the second initial position. For example, address 1 in the memory area may be an initial position of the second start position.
10612: And starting to store the data to be transmitted from the initial position of the second preset initial position of the storage area.
The device starts to store the data to be transmitted from the initial position of the second initial position of the storage area, and stores the data to be transmitted to the corresponding address of the storage area.
S107 to S109 may be further included after S101 in addition to S105 to S106, and as shown in fig. 6, S107 to S109 are specifically as follows:
S107: the accumulated number of repetitions is acquired before a non-sleep period of the first read cycle.
The device obtains a cumulative number of repetitions prior to a non-sleep period of the first read cycle. In this embodiment, the cumulative repeat count is increased by 1 for the first reading period after the first reading period finishes reading. Each first read cycle frame may be configured with a different number of repeated transmissions: n_frame (1) _rep, N_frame (2) _rep, N_frame (N) _rep. For example, 2_frame (1) _rep represents frame (1) as a number of first read cycles of 2, and 3_frame (2) _rep represents frame (2) as a number of first read cycles of 3.
S108: and if the accumulated repetition number is smaller than the repetition number threshold, reading the second data in the buffer area to obtain the first data, and adding 1 to the accumulated repetition number.
After the device reads the first data from the buffer area, it is determined whether the accumulated repetition number is smaller than a repetition number threshold. If the accumulated repetition number is smaller than the repetition number threshold, the first data is read from the cache area if the accumulated repetition number is still needed to be read again, and 1 is added to the accumulated repetition number.
S109: and if the accumulated repetition number is equal to the repetition number threshold, resetting the accumulated repetition number to the initial value and waiting for the next first reading period.
After the device reads the first data from the buffer area, the device determines the accumulated repetition number and the threshold value of the repetition number. If the accumulated number of repetitions is equal to the repetition threshold, it is indicated that another first read cycle is currently required to begin. The device resets the accumulated repetition number to an initial value, recalculates the repetition number of the new first reading period, and waits for the next first reading period.
S104: and converting the first data into an analog signal and transmitting the analog signal.
The first data read by the device are digital signals, and the device converts the digital signals into analog signals and then sends the analog signals.
The data transmission method provided in this embodiment is described below with reference to a specific application:
The transmitting device comprises a queue parameter control unit, a memory control unit and a storage area, wherein the queue parameter control unit comprises a first parameter storage area and a data transmission control logic unit, and the memory control unit comprises a second parameter storage area, a cache area and a memory read address control logic unit.
After the data to be sent is obtained from the device, the data to be sent is stored in the storage area, and the memory control unit in the device can generate a second reading signal according to the second reading period parameter of the second parameter storage area and a second preset counting rule so as to read the second data from the storage area and store the second data in the cache area. When a data transmission instruction is detected, a queue parameter control unit in the device can generate a first reading signal according to a first reading period parameter and a first preset counting rule, and read first data from a cache area. The device converts the first data into an analog signal and transmits the analog signal.
The second read cycle parameter may include a second read data length pulse_len (N) in the second read cycle, a number n_pulse (N) _rep of the second read cycle, a number n_sequence_rep of the second read queue sequence in addition to the second read data length in each second read cycle frame, the number of second read cycles, a number n_frame (N) _rep of different second read cycles included in the second read queue, and the like. When the apparatus reads the second data from the storage area, a counter manner may be adopted, and the data waveform of the second read cycle parameter is shown in fig. 7, in this embodiment, one counter is set for each parameter, and in this process, pulse_len (1) means that the second read data length is pulse_len (1) in the second read cycle, the number n_sequence_rep=2 of the second read queues, the number n_pulse (1) _rep=2 of the second read cycle with the length of pulse_len (1), and the number n_pulse (2) _rep=1 of the second read cycle with the length of pulse_len (2). When the count value of the read address counter reaches pulse_len (1), that is, the data with the length of pulse_len (1) has been read in the second reading period, it is necessary to determine whether the number of pulse repetition times reaches the number of second reading periods:
a, adding 1 to the pulse repetition counter, but not reaching the number 2 of the second reading period;
b. the read address counter returns to address 1 to recount, and the counting range is still 1-pulse_len (1);
The read address counter then continues to operate until the count value of the read address counter reaches pulse_len (1) 2 nd time:
adding 1 to the pulse repetition counter and reaching a set value of 2, and changing the counting range of the pulse repetition counter to 1-N_pulse (2) _rep;
b. The count range of the read address counter is changed to pulse_len (1) +1 to pulse_len (2);
and c, adding 1 to the pulse number counter.
The read address counter then continues to operate until the read address counter count reaches pulse_len (2):
a, adding 1 to the count value of the pulse repetition counter, and reaching a set value of 1, wherein the count range of the pulse repetition counter is changed to 1-N_pulse (1) _rep;
b. the count range of the read address counter is changed by 1 to pulselen (1);
adding 1 to the pulse number counter and reaching a set value of 2;
The sequence repetition counter is incremented by 1, and since the set value 2 is not reached, the data is read again thereafter.
The subsequent process is similar and will not be repeated, and the device stores the read second data in the cache area.
The first read cycle parameters may include a sleep time length and a first read data length in each first read cycle, and the number of first read cycles. The method may further include the related parameters of the first read queue, for example, as shown in fig. 8, and fig. 8 is a data waveform diagram of the parameters of the first read cycle. The first read cycle parameter may include, in addition to the sleep duration and the first read data length in each first read cycle frame, the number of first read cycles, the number of first read queue sequences n_sequence_rep, the number of different first read cycles n_frames (N) _rep included in the first read queue, and so on. When the device detects a data transmission instruction, the first data is read from the cache area. In this embodiment, the parameter is set to n_sequence_rep=2, the number of first read cycles frame (2) is n_frame (2) _rep=1, the number of first read cycles frame (1) is n_frame (1) _rep=2, and n_frame=2, when the device reads the first data from the buffer area, a counter may be set for each parameter, and in this process, a timer is set, and at the beginning, the sleep timer delay counter starts to work, and when the count value of the delay counter reaches delay_len (1):
Resetting the count value of the delay counter, and waiting for the next counting;
b. and generating a read data signal;
the pulse counter starts to work, and the counting range is 1 to pulse_len (1).
When the count value of the pulse counter reaches pulse_len (1):
resetting a pulse counter, and waiting for the next counting;
b. Closing the read data signal;
frame repetition counter is incremented by 1.
Since the repetition number of frames does not reach the set value of 2, frame1 is repeatedly transmitted 1 time thereafter, and the procedure is similar and will not be repeated. When the repetition number of the frame reaches the set value of 2, the frame1 is considered to be sent completely, and the following operations are completed simultaneously:
Resetting a frame repetition counter;
the frame number counter is incremented by 1, but does not reach the set point 2;
c. At this time, the count range of the delay counter is changed from 1 to delay_len (1) to 1 to delay_len (2), the count range of the pulse counter is changed from 1 to pulse_len (1) to 1 to pulse_len (2), and the count range of the frame repetition counter is changed from 1 to N_frame (1) _rep to 1 to N_frame (2) _rep.
The transmission process of frame2 is similar to that of frame1 and will not be described again. When frame2 is sent, the controller simultaneously completes the following operations:
adding 1 to the frame number counter, and reaching a set value of 2, wherein the frame number counter and the frame repetition number counter are reset;
The count value of the sequence repetition number counter is increased by 1;
however, the count value of the sequence counter does not reach the set value 2, so the sequence is repeatedly sent for 1 time, and the sending process is similar to the 1 st time and is not repeated.
In addition, the first reading period parameter and the second reading period parameter in the present embodiment may be configured according to different transmission modes, that is, the data transmission method of the present application may support multiple transmission modes.
In the embodiment of the application, a first reading period parameter corresponding to data to be sent is obtained; stopping reading the data to be read in the dormant period of the first reading period, and entering the non-dormant period of the first reading period after waiting for the dormant period; reading first data corresponding to the first reading period from the data to be read according to the first reading data length in a non-dormant period of the first reading period, and entering a dormant period of a next first reading period; and converting the first data into an analog signal and transmitting the analog signal. According to the method, the filled data does not need to be generated in the period of the sleep period, the storage resources do not need to be occupied, when the data volume is relatively large, a plurality of memory resources can be saved by the data sending mode, the hardware implementation of the transmitter is easy, and the cost of the transmitter is reduced.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Referring to fig. 9, fig. 9 is a schematic diagram of a data transmitting apparatus according to a second embodiment of the present application. The units included are used to perform the steps in the embodiments corresponding to fig. 1, 3-6. Refer specifically to the related descriptions in the embodiments corresponding to fig. 1, 3-6. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 9, the data transmission apparatus 9 includes:
a first acquisition unit 910 for acquiring a first read cycle parameter; the first reading period parameters comprise a sleep period and a non-sleep period corresponding to each first reading period, and the first reading period comprises a sleep period and a non-sleep period;
A first processing unit 920, configured to stop reading data to be read during a sleep period of the first reading period, and enter a non-sleep period of the first reading period after waiting for the sleep period;
A second processing unit 930, configured to read, during a non-sleep period of the first reading period, first data corresponding to the first reading period from the data to be read according to the first reading data length, and enter a sleep period of a next first reading period;
and a transmitting unit 940, configured to convert the first data into an analog signal and transmit the analog signal.
Further, the first processing unit 920 is specifically configured to:
Stopping reading the data to be read in the dormant period of the first reading period, starting a first counter, and entering the non-dormant period of the first reading period after the first counter is timed out; and the timing duration of the first counter is the sleep duration.
Further, the second processing unit 930 is specifically configured to:
And in the non-dormant period of the first reading period, reading the data with the first reading data length from a first preset starting position of the cache area to obtain first data corresponding to the first reading period.
Further, the first obtaining unit 910 is specifically configured to:
and acquiring a first reading signal, and determining a first reading period parameter corresponding to the data to be transmitted according to the first reading signal.
Further, the data transmitting apparatus 9 further includes:
a second acquisition unit configured to acquire a second reading cycle parameter; the second read cycle parameter includes a second read data length of each second read cycle;
And the third processing unit is used for reading the data to be read from the storage area according to the second reading period parameter and storing the data to be read into the cache area.
Further, the first read cycle parameter further includes a repetition number threshold;
The data transmitting apparatus further includes:
A third acquisition unit configured to acquire an accumulated number of repetitions before a non-sleep period of the first reading period;
the fourth processing unit is used for reading the second data in the buffer area to obtain the first data if the accumulated repetition number is smaller than a repetition number threshold value, and adding 1 to the accumulated repetition number;
And a fifth processing unit, configured to reset the accumulated repetition number to the initial value and wait for a next first reading period if the accumulated repetition number is equal to the repetition number threshold.
Further, the third processing unit is specifically configured to:
starting from a second preset starting position of the storage area, reading the data to be read of the second read data length to obtain second data;
And storing the second data from the first preset starting position of the cache area.
Further, the third processing unit is specifically further configured to:
A sixth processing unit, configured to obtain the data to be sent, and obtain an initial position of a second preset initial position;
and the storage unit is used for storing the data to be transmitted from the initial position of the second preset initial position of the storage area.
Further, the first reading period parameter further comprises a queue parameter of a first reading queue consisting of the first reading periods, wherein the queue parameter comprises the number of the first reading queues, the type and the number of the first reading periods included in the first reading queues;
the sending unit is specifically configured to:
Obtaining queue data to be sent according to the first reading period parameter and the first data;
and converting the queue data to be transmitted into an analog signal, and transmitting the analog signal.
Fig. 10 is a schematic diagram of a data transmission apparatus provided in a third embodiment of the present application. As shown in fig. 10, the data transmission apparatus 10 of this embodiment includes: a processor 100, a memory 101 and a computer program 102, such as a data transmission program, stored in the memory 101 and executable on the processor 100. The processor 100, when executing the computer program 102, implements the steps of the various data transmission method embodiments described above, such as steps 101 to 104 shown in fig. 1. Or the processor 100, when executing the computer program 102, performs the functions of the modules/units of the apparatus embodiments described above, e.g., the functions of the modules 910 through 940 shown in fig. 9.
Illustratively, the computer program 102 may be partitioned into one or more modules/units that are stored in the memory 101 and executed by the processor 100 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 102 in the data transmission device 10. For example, the computer program 102 may be divided into a first acquisition unit, a first processing unit, a second processing unit, and a transmitting unit, where each unit specifically functions as follows:
A first acquisition unit configured to acquire a first reading cycle parameter; the first reading period parameters comprise a sleep period and a non-sleep period corresponding to each first reading period, and the first reading period comprises a sleep period and a non-sleep period;
the first processing unit is used for stopping reading the data to be read in the dormant period of the first reading period and entering the non-dormant period of the first reading period after waiting for the dormant period;
The second processing unit is used for reading the first data corresponding to the first reading period from the data to be read according to the first reading data length in the non-dormant period of the first reading period, and entering the dormant period of the next first reading period;
and the transmitting unit is used for converting the first data into an analog signal and transmitting the analog signal.
The data transmission device may include, but is not limited to, a processor 100, a memory 101. It will be appreciated by those skilled in the art that fig. 10 is merely an example of the data transmission device 10 and does not constitute a limitation of the data transmission device 10, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the data transmission device may further include an input-output device, a network access device, a bus, etc.
The Processor 100 may be a central processing unit (Central Processing Unit, CPU), other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 101 may be an internal storage unit of the data transmission device 10, for example, a hard disk or a memory of the data transmission device 10. The memory 101 may also be an external storage device of the data transmission device 10, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the data transmission device 10. Further, the data transmission device 10 may further include both an internal storage unit and an external storage device of the data transmission device 10. The memory 101 is used for storing the computer program and other programs and data required by the data transmission apparatus. The memory 101 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
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 functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a network device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that enable the implementation of the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application 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 application, and are intended to be included in the scope of the present application.
Claims (10)
1. A data transmission method, comprising:
Acquiring a first reading period parameter; the first reading period parameters comprise a sleep period and a non-sleep period corresponding to each first reading period, and the first reading period comprises a sleep period and a non-sleep period;
stopping reading the data to be read in the dormant period of the first reading period, and entering the non-dormant period of the first reading period after waiting for the dormant period;
Reading first data corresponding to the first reading period from the data to be read according to the first reading data length in a non-dormant period of the first reading period, and entering a dormant period of a next first reading period;
Converting the first data into an analog signal and transmitting the analog signal;
The first read cycle parameter further includes a repetition number threshold;
after the acquiring the first reading period parameter, further comprising:
Acquiring an accumulated repetition number before a non-sleep period of the first reading period;
If the accumulated repetition number is smaller than the repetition number threshold, reading the second data in the buffer area to obtain the first data, and adding 1 to the accumulated repetition number;
And if the accumulated repetition number is equal to the repetition number threshold, resetting the accumulated repetition number to an initial value and waiting for the next first reading period.
2. The data transmission method as claimed in claim 1, wherein the stopping reading the data to be read during the sleep period of the first reading period and entering the non-sleep period of the first reading period after waiting for the sleep period includes:
Stopping reading the data to be read in the dormant period of the first reading period, starting a first counter, and entering the non-dormant period of the first reading period after the first counter is timed out; and the timing duration of the first counter is the sleep duration.
3. The data transmission method as claimed in claim 1, wherein the reading the first data corresponding to the first reading period from the data to be read according to the first reading data length during the non-sleep period of the first reading period includes:
And in the non-dormant period of the first reading period, reading the data with the first reading data length from a first preset starting position of the cache area to obtain first data corresponding to the first reading period.
4. The data transmission method as claimed in claim 1, wherein the acquiring the first read cycle parameter includes:
and acquiring a first reading signal, and determining a first reading period parameter corresponding to the data to be transmitted according to the first reading signal.
5. The data transmission method according to claim 1, further comprising, before the acquiring the first reading period parameter:
acquiring a second reading period parameter; the second read cycle parameter includes a second read data length of each second read cycle;
And reading the data to be read from the storage area according to the second reading period parameter, and storing the data to be read into the cache area.
6. The data transmission method as claimed in claim 5, wherein the reading data to be read from a storage area according to the second read cycle parameter, storing the data to be read to a cache area, includes:
starting from a second preset starting position of the storage area, reading the data to be read of the second read data length to obtain second data;
and storing the second data from a first preset starting position of the cache area.
7. The data transmission method as claimed in claim 6, wherein, before the reading the data to be read of the second read data length from the second preset starting position of the storage area, obtaining the second data, further comprises:
Acquiring data to be transmitted and acquiring an initial position of a second preset initial position;
and starting to store the data to be transmitted from the initial position of the second preset initial position of the storage area.
8. The data transmission method according to claim 1, wherein the first read cycle parameter further includes a queue parameter of a first read queue composed of the first read cycles, the queue parameter including the number of the first read queues, the type and the number of the first read cycles included in the first read queue;
The converting the first data into an analog signal, and transmitting the analog signal includes:
Obtaining queue data to be sent according to the first reading period parameter and the first data;
and converting the queue data to be transmitted into an analog signal, and transmitting the analog signal.
9. A data transmission apparatus, comprising:
The first acquisition unit is used for acquiring a first reading period parameter corresponding to the data to be transmitted; the first reading period parameters comprise a sleep time length and a first reading data length corresponding to each first reading period, and the first reading period comprises a sleep period and a non-sleep period;
the first processing unit is used for stopping reading the data to be read in the dormant period of the first reading period and entering the non-dormant period of the first reading period after waiting for the dormant period;
The second processing unit is used for reading the first data corresponding to the first reading period from the data to be read according to the first reading data length in the non-dormant period of the first reading period, and entering the dormant period of the next first reading period;
A transmitting unit for converting the first data into an analog signal and transmitting the analog signal;
The first read cycle parameter further includes a repetition number threshold;
The data transmitting apparatus further includes:
A third acquisition unit configured to acquire an accumulated number of repetitions before a non-sleep period of the first reading period;
the fourth processing unit is used for reading the second data in the cache area to obtain the first data if the accumulated repetition number is smaller than a repetition number threshold value, and adding 1 to the accumulated repetition number;
and a fifth processing unit, configured to reset the accumulated repetition number to an initial value and wait for a next first reading period if the accumulated repetition number is equal to the repetition number threshold.
10. A data transmission device 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 method according to any of claims 1 to 8 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011308723.XA CN112540724B (en) | 2020-11-20 | 2020-11-20 | Data transmission method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011308723.XA CN112540724B (en) | 2020-11-20 | 2020-11-20 | Data transmission method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112540724A CN112540724A (en) | 2021-03-23 |
CN112540724B true CN112540724B (en) | 2024-07-19 |
Family
ID=75014394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011308723.XA Active CN112540724B (en) | 2020-11-20 | 2020-11-20 | Data transmission method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112540724B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101151599A (en) * | 2005-03-31 | 2008-03-26 | 株式会社半导体能源研究所 | Arithmetic processing unit and electronic device using arithmetic processing unit |
CN110650206A (en) * | 2019-09-29 | 2020-01-03 | 北京天融信网络安全技术有限公司 | IO flow control method and device in distributed storage system and storage medium |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7684799B2 (en) * | 2006-03-28 | 2010-03-23 | Motorola, Inc. | Method for data transfer with a mobile station while in discontinuous reception state |
JP4295313B2 (en) * | 2006-12-28 | 2009-07-15 | ソフトバンクBb株式会社 | Power line communication apparatus and communication control method thereof |
US8824378B2 (en) * | 2008-02-01 | 2014-09-02 | Maarten Menzo Wentink | Unscheduled peer power save mode |
JP5167961B2 (en) * | 2008-06-06 | 2013-03-21 | 富士通株式会社 | Information processing apparatus, program, and wireless transmission / reception circuit |
US8904206B2 (en) * | 2010-01-26 | 2014-12-02 | Motorola Mobility Llc | Mobile computing device and method for maintaining application continuity |
CN103077123A (en) * | 2013-01-15 | 2013-05-01 | 华为技术有限公司 | Data writing and reading methods and devices |
JP6962599B2 (en) * | 2017-04-24 | 2021-11-05 | ホアウェイ・テクノロジーズ・カンパニー・リミテッド | Client service transmission method and device |
CN107318156B (en) * | 2017-07-20 | 2020-06-02 | 深圳先进技术研究院 | Data retransmission method and device in wireless sensor network |
CN111416682B (en) * | 2019-01-07 | 2021-10-26 | 华为技术有限公司 | Data transmission method and communication equipment |
-
2020
- 2020-11-20 CN CN202011308723.XA patent/CN112540724B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101151599A (en) * | 2005-03-31 | 2008-03-26 | 株式会社半导体能源研究所 | Arithmetic processing unit and electronic device using arithmetic processing unit |
CN110650206A (en) * | 2019-09-29 | 2020-01-03 | 北京天融信网络安全技术有限公司 | IO flow control method and device in distributed storage system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112540724A (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11023409B2 (en) | MIPI D-PHY receiver auto rate detection and high-speed settle time control | |
WO2020119322A1 (en) | Asynchronous wireless wake-up method and device | |
US8675742B2 (en) | Method and system for synchronously transmitting asynchronous data | |
US20170104607A1 (en) | Methods to avoid i2c void message in i3c | |
CN106973427B (en) | A method and apparatus for adaptively adjusting discontinuous reception mode | |
US20120182890A1 (en) | Adaptive peer discovery based on non peer discovery transmissions and device density for wi-fi | |
US11172442B2 (en) | Method and apparatus for indicating a system information block change | |
CN107318156B (en) | Data retransmission method and device in wireless sensor network | |
CN110635854B (en) | Transmission protocol self-adaptive decoding system and method | |
CN112448732A (en) | Radio frequency exposure control method and device of wireless equipment and wireless equipment | |
CN112540724B (en) | Data transmission method, device and equipment | |
WO2019127230A1 (en) | Network node wake-up method and device | |
WO2023169571A1 (en) | Wake-up signal receiving method and apparatus, terminal, and network side device | |
US9319341B2 (en) | Limitation of serial link interference | |
CA2981712C (en) | Techniques for optimizing network event timers | |
CN111315004A (en) | Communication method and system, data sending device and data receiving device | |
US20240188136A1 (en) | Partial sensing method and partial sensing device for sidelink resource | |
JP7250037B2 (en) | COMMUNICATION METHOD, NETWORK DEVICE AND TERMINAL DEVICE | |
US20210266832A1 (en) | Wireless communication system, first wireless apparatus, second wireless apparatus and wireless communication method | |
WO2022156801A1 (en) | Method for determining validity of reference signal transmission occasion, and user equipment | |
CN111132279A (en) | Communication method and device | |
CN210201839U (en) | Transmission protocol self-adaptive decoding system | |
CN104335552A (en) | Data interface sleep mode logic | |
CN115915496A (en) | DRX communication method, terminal and computer readable storage medium | |
CN109671134B (en) | Waveform drawing method and device based on dynamic delay technology |
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 |