CN112540724A - Data sending method, device and equipment - Google Patents

Data sending method, device and equipment Download PDF

Info

Publication number
CN112540724A
CN112540724A CN202011308723.XA CN202011308723A CN112540724A CN 112540724 A CN112540724 A CN 112540724A CN 202011308723 A CN202011308723 A CN 202011308723A CN 112540724 A CN112540724 A CN 112540724A
Authority
CN
China
Prior art keywords
data
reading
read
period
sleep
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011308723.XA
Other languages
Chinese (zh)
Inventor
沙启迪
朱安国
吴昌强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN202011308723.XA priority Critical patent/CN112540724A/en
Publication of CN112540724A publication Critical patent/CN112540724A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/27Design 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/272Design 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)
  • 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 obtained; stopping reading 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 duration; 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-sleep period of the first reading period, and entering a sleep period of the next first reading period; and converting the first data into an analog signal, and transmitting the analog signal. According to the method, during the period of the sleep period, the filled data does not need to be generated, the storage resources do not need to be occupied, when the data volume is large, the data sending mode can save a lot of storage resources, the hardware implementation of the transmitter is easy, and the cost of the transmitter is reduced.

Description

Data sending method, device and equipment
Technical Field
The present application belongs to the field of data transmission technologies, and in particular, to a data transmission method, apparatus, and device.
Background
When an existing communication system transmitter transmits data, bit streams corresponding to the data to be transmitted are generated through software, and then the bit streams are modulated to generate digital signals in a baseband part and stored; when the data needs to be sent, the stored data is read, and an analog signal is generated and sent out after digital-to-analog conversion and radio frequency processing. However, when data is transmitted, when some identical repeated signals are transmitted, the situation that the identical digital signals are stored in multiple copies occurs in a baseband, and memory resources of the baseband are wasted; and if all signals are generated by the transmitter and transmitted, 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 sending method, a data sending device and data sending equipment, and can solve the problems that when the size of data is large, the existing data sending mode consumes very large memory resources, or when all signals are generated and sent 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 duration and a first reading data length of a non-sleep period corresponding to each first reading period, and the first reading period comprises the sleep period and the non-sleep period;
stopping reading 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 duration;
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-sleep period of the first reading period, and entering a sleep period of the 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 read cycle and entering the non-sleep period of the first read cycle after waiting for the sleep duration includes:
stopping reading data to be read in the sleep period of the first reading period, starting a first counter, and entering the non-sleep period of the first reading period after the first counter finishes timing; and the timing duration of the first counter is the dormancy duration.
Further, the reading, in the non-sleep period of the first read cycle, the first data corresponding to the first read cycle from the data to be read according to the first read data length includes:
and reading the data with the first read data length from a first preset starting position of a buffer area in the non-sleep period of the first read period to obtain first data corresponding to the first read period.
Further, the acquiring a first reading period parameter corresponding to data to be sent includes:
and acquiring a first reading signal, and determining a first reading period parameter corresponding to data to be sent according to the first reading signal.
Further, before the obtaining the first reading period parameter, the method further includes:
acquiring a second reading period parameter; the second read cycle parameters comprise a second read data length for 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 to the cache area.
Further, the first reading period parameter further comprises a repetition time threshold;
after the obtaining the first reading period parameter, further comprising:
acquiring accumulated repetition times before a non-sleep period of the first reading period;
if the accumulated repetition times is smaller than the repetition time threshold, reading second data in the cache region to obtain first data, and adding 1 to the accumulated repetition times;
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 cycle parameter and storing the data to be read into the cache area includes:
reading data to be read with the length of the second read data from a second preset initial position of the storage area to obtain second data;
and starting to store the second data from the first preset starting position of the cache region.
Further, before the reading the data to be read with the length of the second read data 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 storing the data to be transmitted from the initial position of the second preset initial position of the storage area.
Further, the first read cycle parameter further includes a queue parameter of a first read queue composed of the first read cycles, where the queue parameter includes the number of the first read queues, and the type and 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 sent into an analog signal, and sending the analog signal.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, including:
a first obtaining unit configured to obtain a first reading period parameter; the first reading period parameters comprise a sleep duration and a first reading data length of a non-sleep period corresponding to each first reading period, and the first reading period comprises the sleep period and the 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 duration;
the second processing unit is used for reading 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 and entering the sleep period of the next first reading period;
and the sending unit is used for converting the first data into an analog signal and sending the analog signal.
Further, the first processing unit is specifically configured to:
stopping reading data to be read in the sleep period of the first reading period, starting a first counter, and entering the non-sleep period of the first reading period after the first counter finishes timing; and the timing duration of the first counter is the dormancy duration.
Further, the second processing unit is specifically configured to:
and reading the data with the first read data length from a first preset starting position of a buffer area in the non-sleep period of the first read period to obtain first data corresponding to the first read 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 data to be sent according to the first reading signal.
Further, the data transmission apparatus further includes:
a second acquisition unit configured to acquire a second reading cycle parameter; the second read cycle parameters comprise a second read data length for 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 reading period parameter further comprises a repetition time threshold;
the data transmission device further includes:
a third obtaining unit, configured to obtain an accumulated number of repetitions before a non-sleep period of the first read cycle;
the fourth processing unit is used for reading the second data in the cache region to obtain the first data if the accumulated repetition times is smaller than the repetition time threshold, and adding 1 to the accumulated repetition times;
and the fifth processing unit is used for resetting the accumulated repetition number to the initial value and waiting for the 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:
reading data to be read with the length of the second read data from a second preset initial position of the storage area to obtain second data;
and starting to store the second data from the first preset starting position of the cache region.
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 sent from the initial position of the second preset initial position of the storage area.
Further, the first read cycle parameter further includes a queue parameter of a first read queue composed of the first read cycles, where the queue parameter includes the number of the first read queues, and the type and number of the first read cycles included in the first read queue;
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 sent into an analog signal, and sending the analog signal.
In a third aspect, an embodiment of the present application provides a data transmission device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and 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, where a computer program is stored, and the computer program, 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 obtained; stopping reading 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 duration; 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-sleep period of the first reading period, and entering a sleep period of the next first reading period; and converting the first data into an analog signal, and transmitting the analog signal. According to the method, during the period of the sleep period, the filled data does not need to be generated, the storage resources do not need to be occupied, when the size of the data is large, the data sending mode can save a lot of storage resources, the hardware implementation of the transmitter is easy, and the cost of the transmitter is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
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 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 a first embodiment of the present application;
fig. 4 is a schematic flowchart of a refinement of S106 in a data transmission method according to a first embodiment of the present application;
fig. 5 is a detailed schematic flowchart 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 a first embodiment of the present application;
fig. 7 is a schematic diagram of a data waveform of a second read 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 read cycle 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 device according to 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 particular system structures, 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 will 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 this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this 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 present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
A data transmission device of an existing communication system is generally a transmitter, and a main task of the transmitter (a transmitter circuit) is to modulate a high-frequency carrier wave with a useful low-frequency signal, so as to convert the high-frequency carrier wave into an electromagnetic wave which has a certain bandwidth at a certain center frequency and is suitable for being transmitted through an antenna. The transmitter general workflow can be summarized as: generating a bit stream corresponding to data to be sent by software; in a baseband part, a bit stream is subjected to modulation and other operations to generate a digital signal and is stored; when the data needs to be sent, the stored data is read, and an analog signal is generated and sent out after digital-to-analog conversion and radio frequency processing. When a general transmitter transmits some signals, the following problems exist: when sending a long pulse signal, the long pulse signal has a transmission time as long as a second, and if such a long signal is generated by software, is stored in a baseband memory after being modulated by a baseband, and is sent out by hardware, then very large memory resources are consumed, for example, if the sampling rate is 240Msps, the signal bit width is 32bit, and the storage space required for a signal with a transmission time of 12 seconds is 240 × 32 × 12 ^ 10^6 ^ 92.16Gbit, which is difficult for a transmitter to accept, if all the long pulse signals are sent out while being generated by hardware, the design difficulty of the transmitter is greatly increased, and the cost of the transmitter is also increased. Moreover, when some identical repeated signals are transmitted, the situation that the identical digital signals are stored in multiple copies occurs in the baseband, and the memory resources of the baseband are wasted. In order to solve the above problem, an embodiment of the present application provides a data transmission method.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data transmission method according to a first embodiment of the present application. In this embodiment, a main body of the data transmission method is a device having a data transmission function, for example, a transmitter. The data transmission method as shown in fig. 1 may include:
s101: acquiring a first reading period parameter; the first reading period parameters include a sleep duration and a first reading data length of a non-sleep period corresponding to each first reading period, and the first reading period includes a sleep period and a non-sleep period.
In this embodiment, the device may include a buffer area and a storage area, where the data to be sent may be stored in the buffer area, and the buffer area reads the data to be sent from the storage area. When the device detects a data transmission instruction, data is read from the buffer area. In this embodiment, when reading data from the buffer area, the reading cycle is divided into a sleep period and a non-sleep period to meet the requirements 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 read signal may be generated by a first read parameter and a first preset counting rule, and the first read parameter may include a sleep duration and a first read data length in each first read cycle, and the number of the first read cycles. The device may further obtain relevant parameters of the first read queue, for example, the first read cycle parameters may further include the number N _ sequence _ rep of the first read queue sequence, the number N _ frame (N) _ rep of different first read cycles included in the first read queue, and the like, in addition to the sleep time and the first read data length in each first read cycle frame, and the number of first read cycles. The parameters can be preset and stored in the first parameter storage area. The queue parameter control unit in the device may generate a first read signal to read the first data from the storage area according to the first read parameter and a first preset count rule.
All parameters required to be obtained in this embodiment are described below by taking fig. 2 as an example. Defining all data to be transmitted as a data queue, called sequence, configuring the repeated transmission times (N _ sequence _ rep) of the data queue sequence, wherein the data queue sequence is composed of a plurality of first reading period frames, the number (N _ frame) of the first reading period 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 indicates that the number of first read cycles of frame (1) is 2, and 3_ frame (2) _ rep indicates that the number of first read cycles of frame (2) is 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 of each first read cycle frame and the first read data length pulse _ len of the non-sleep period pulse can be individually configured. The pulse _ len represents the length of data required to be sent in the non-sleep period pulse part of the current first read cycle frame, and specific data in the pulse can be preset and stored in the non-buffer area. As shown in fig. 2, N _ sequence _ rep is configured to be 2, which means that the entire data queue is repeatedly transmitted 2 times; n _ Frames are configured as 3, meaning that sequence contains 3 frames, frame1, frame2, and frame 3; n _ frame (1) _ rep, N _ frame (2) _ rep, and N _ frame (3) _ rep are software configured such that N _ frame (1) _ rep is 2, N _ frame (2) _ rep is 1, and N _ frame (3) _ rep is 1, indicating 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 duration 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. And only in the non-sleep period, reading corresponding data from the buffer area. In the dormancy period, the reading of the data is stopped, and in the duration of the dormancy period, the filled data does not need to be generated, the storage resource does not need to be occupied, 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. Therefore, data corresponding to multiple groups of first reading periods can be 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 duration.
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, and the filled data does not need to be generated in the dormant period, and the storage resource does not need to be occupied.
In order to accurately read 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 data to be read in the sleep period of the first reading period, starting a first counter, and entering the non-sleep period of the first reading period after the first counter finishes timing; and the timing duration of the first counter is the dormancy duration. For example, the first counter is set to be 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 to wait for the next counting.
S103: and reading 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, and entering the sleep period of the next first reading period.
The device reads first data corresponding to a first reading period from the data to be read according to the first reading data length in a non-sleep period of the first reading period, and enters a sleep 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 also be read in a counter manner. And when the non-sleep period is entered, starting a second counter, wherein the second counter starts to work, and the counting range of the second counter is the first reading data length. For example, the second counter is set to be a pulse1 counter, the first read data length is pulse _ len (1), a read data signal is generated in the non-sleep period of the first read cycle, 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 counting is waited, the read data signal is turned off, and then the next first read cycle is started.
And reading the data with the first read data length from a first preset starting position of the buffer area in the non-sleep period of the first read period to obtain first data corresponding to the first read period. The cache area stores data to be read in different ways, and the first preset starting position is 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, and the buffer area includes all the data to be sent. In each non-sleep period, the device acquires the storage position of the data corresponding to the first reading period in the cache region, and reads the first data according to the storage position. In another embodiment, the buffer area stores only data corresponding to the first read data length of the non-sleep period from the first preset starting position each time, and deletes old data and stores new data from the first preset starting position each time data corresponding to the first read data length of the new non-sleep period is detected. The device starts reading from the first preset starting position each time the device reads data from the buffer area. For example, when the first data is read, the first data may be read by using a counter, the second counter starts to operate, when the count value of the second counter reaches pulse _ len (1), the pulse repetition number counter increments by 1, but does not reach a set value of 2, the second counter returns to 1 to count again, and the count range is still 1 to pulse _ len (1); in the above example, the second counter returns to 1 to count each time, where 1 is the first preset starting position, and when reading each time, the first data is read from the same first preset starting position, so that an excessive storage space is not required, and resources are further saved.
Since the read parameter and the parameter of the buffer area are preset, when the device finishes reading the first data corresponding to one first read cycle from the buffer area, the buffer area updates the data corresponding to the first read data length of the non-sleep period of the next first read cycle. This requires the storage area to store new data to the first predetermined starting position of the buffer area. In this embodiment, a buffer area is set, and a storage area is set, where initial data of data to be transmitted is stored.
Further, before S101, S105 to S106 may be further included, as shown in fig. 3, S105 to S106 are specifically as follows:
s105: acquiring a second reading period parameter; the second read cycle parameters include a second read data length for each second read cycle.
And the device acquires a second reading period parameter, wherein the second reading period parameter comprises the length of second reading data in each second reading period, reads the data to be read from the storage area according to the second reading period parameter, and stores the data to be read into the cache area. The second read parameters may include a second read data length and the number of second read cycles in each second read cycle. The device may further acquire relevant parameters of the second read queue, for example, the second read cycle parameter may further include, in addition to the length of the second read data in each second read cycle frame and the number of second read cycles, the number N _ sequence _ rep of second read queues, the number N _ frame (N) _ rep of different second read cycles included in the second read queues, and so on. The parameters can 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 to the cache area.
Specifically, the apparatus reads the second data from the storage area by generating the second read signal, and stores the second data into the buffer area. The second read signal may be generated by the second read parameter and a second preset counting 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 counting rule to read the second data from the storage area.
Further, S106 may include S1061 to S1062, as shown in fig. 4, S1061 to S1062 are specifically as follows:
s1061: and reading the data to be read with the length of the second read data from a second preset initial position of the storage area to obtain second data.
And the device reads the data to be sent with the second read data length from the second preset initial position of the storage area to obtain second data. It can be understood that, before the device reads data from the buffer area and transmits the data, the data is read from the memory area and stored in the buffer area according to the configuration of the second reading parameter, and waits to be read. And after the data in the cache region is read out, so that the number of the data in the cache region is reduced, the cache region requests new data from the storage region, and the new data is still read out according to the configuration of the second reading parameter and is stored in the cache region. It is understood that the buffer is data regardless of whether data is sent or not. That is, the second data is read from the storage area and stored in the buffer area as configured by the second read parameter.
S1062: and starting to store the second data from the first preset starting position of the cache region.
The device starts to store the second data from a first preset starting position of the buffer area. For example, the first preset starting position is address 1, and the device starts to store the second data from address 1, overwriting the old second data stored before.
When the number of the data in the buffer area is less than the threshold, in order to avoid the buffer area being read empty when the data is transmitted, before the data is read from the buffer area and transmitted, the second data is already read from the memory area and stored in the buffer area according to the configuration of the second reading parameter, and the second data is waited to be read. After the second data in the cache area is read out, and the number of the data in the cache area is reduced and is smaller than the threshold value, the cache area requests the new second data from the storage area, and the new second data is still read out and stored in the cache area according to the configuration of the second reading parameters.
Further, before S1061, 10611 to 10612 may be further included, as shown in fig. 5, 10611 to 10612 are specifically as follows:
10611: and acquiring the data to be transmitted and acquiring an initial position of a second preset initial position.
The device obtains data to be sent and obtains the initial position of the second starting position. For example, address 1 in the storage area may be the initial position of the second start position.
10612: and storing the data to be transmitted from the initial position of the second preset initial position of the storage area.
And the equipment starts to store the data to be sent from the initial position of the second initial position of the storage area and stores the data to be sent to the corresponding address of the storage area.
On the basis of S105 to S106, S107 to S109 may be further included after S101, and as shown in fig. 6, S107 to S109 are specifically as follows:
s107: acquiring a cumulative number of repetitions before a non-sleep period of the first read cycle.
The device obtains the accumulated number of repetitions before the non-sleep period of the first read cycle. In this embodiment, the accumulated number of repetitions is for the first read cycle, and 1 is added to the accumulated number of repetitions each time the first read cycle completes reading. Each first read period 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 indicates that the number of first read cycles of frame (1) is 2, and 3_ frame (2) _ rep indicates that the number of first read cycles of frame (2) is 3.
S108: and if the accumulated repetition times is smaller than the repetition time threshold, reading the second data in the cache region to obtain first data, and adding 1 to the accumulated repetition times.
After the device reads the first data from the buffer area each time, whether the accumulated repetition number is less than the repetition number threshold value or not is judged. And if the accumulated repetition number is smaller than the repetition number threshold, indicating that the first data still needs to be continuously read from the buffer area again at present, reading the first data from the buffer area, and adding 1 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 each time, the size of the accumulated repetition number and the size of the repetition number threshold are judged. If the accumulated repetition number is equal to the repetition number threshold, it indicates that another first reading period needs to be started currently. The device resets the accumulated number of repetitions to an initial value, recalculates the number of repetitions for a new first read cycle, and waits for the next first read cycle.
S104: and converting the first data into an analog signal, and transmitting the analog signal.
The first data read by the equipment are digital signals, and the equipment sends the analog signals after converting the digital signals into the analog signals.
The following describes the data transmission method provided in this embodiment with reference to specific applications:
the sending equipment 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 sending control logic unit, and the memory control unit comprises a second parameter storage area, a buffer area and a memory read address control logic unit.
After the device obtains the data to be sent, the device stores all the data to be sent in the storage region, and the memory control unit in the device may generate a second read signal according to a second read cycle parameter of the second parameter storage region and a second preset count rule, so as to read the second data from the storage region and store the second data in the cache region. When the data sending instruction is detected, the queue parameter control unit in the device may generate a first read signal according to the first read cycle parameter and a first preset counting rule, and read the first data from the buffer 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) of the second read cycles, and a number N _ sequence _ rep in the second read cycle, where the second read cycle parameter may include, in addition to the second read data length in each second read cycle frame and the number of the second read cycles, a number N _ sequence _ rep of second read queues, a number N _ frame (N) rep of different second read cycles included in the second read queues, and so on. When the device reads the second data from the storage area, a counter mode may be adopted, a data waveform of the second read cycle parameter is as shown in fig. 7, in this embodiment, a counter is set for each parameter, pulse _ len (1) means that the length of the second read data in the second read cycle is pulse _ len (1), the number of second read queues is N _ sequence _ rep is 2, the number of second read cycles with length of pulse _ len (1) is N _ pulse (1) _ rep is 2, and the number of second read cycles with length of pulse _ len (2) is N _ pulse (2) _ rep is 1. When the count value of the read address counter reaches pulse _ len (1), that is, data of the length of pulse _ len (1) has been read in the second read cycle, it needs to be determined whether the number of pulse repetitions reaches the number of the second read cycle:
adding 1 to a pulse repetition number counter, but not reaching the number 2 of the second reading period;
b. the read address counter returns to address 1 to count again, and the counting range is still 1-pulse _ len (1);
thereafter, the read address counter continues to operate until the read address counter reaches pulse _ len (1) for the 2 nd time:
adding 1 to a pulse repetition number counter, and changing the counting range of the pulse repetition number counter into 1-N _ pulse (2) _ rep when the set value is 2;
b. the counting range of the reading address counter is changed into pulse _ len (1) + 1-pulse _ len (2);
and c, adding 1 to the pulse number counter.
Thereafter, the read address counter continues to operate, and when the read address counter reaches the pulse _ len (2):
adding 1 to the count value of a pulse repetition number counter, and changing the counting range of the pulse repetition number counter into 1-N _ pulse (1) _ rep when the count value reaches a set value of 1;
b. the counting range of the reading address counter is changed by 1 to pulse _ len (1);
adding 1 to a pulse number counter, and reaching a set value of 2;
the sequence repetition counter is incremented by 1, and since the set value of 2 is not reached, the data is repeatedly read once thereafter.
Similar subsequent processes are not repeated, and the device stores the read second data in the cache area.
The first read cycle parameters may include a sleep duration and a first read data length in each first read cycle, and the number of first read cycles. The parameters related to the first read queue may be further included, for example, as shown in fig. 8, fig. 8 is a data waveform diagram of the parameters of the first read cycle. The first read cycle parameters may include the number of first read queue sequences N _ sequence _ rep, the number of different first read cycles included in the first read queue N _ frame (N) _ rep, and so on, in addition to the sleep duration and the first read data length in each first read cycle frame, and the number of first read cycles. When the device detects a data transmission instruction, first data is read from the buffer area. In this embodiment, the parameters are set to be the number of the first read queues N _ sequence _ rep is 2, the number of the first read cycles frame (2) is N _ frame (2) _ rep is 1, the number of the first read cycles frame (1) is N _ frame (1) _ rep is 2, and N _ frame is 2, when the device reads the first data from the buffer area, a counter mode may be adopted, in this process, one counter is set for each parameter, and when starting, the sleep period timer delay counter starts to operate, and when the count value of the delay counter reaches delay _ len (1):
resetting the count value of the delay counter and waiting for counting next time;
b. and generating a read data signal;
the pulse counter starts to operate, counting in the range 1 to pulse _ len (1).
When the count value of the pulse counter reaches pulse _ len (1):
resetting a pulse counter and waiting for counting next time;
b. turning off the read data signal;
and c, adding 1 to a frame repetition counter.
Since the number of frame repetitions does not reach the set value of 2, frame1 is sent repeatedly 1 time thereafter, and the process is not repeated. When the number of frame repetition reaches the set value 2, it is considered that the frame1 is sent completely, and the following operations are completed:
resetting a frame repetition number counter;
adding 1 to the frame number counter, but not reaching a set value of 2;
c. the frame2 transmission is started, in which case, the counting range of the delay counter is changed from 1 to delay _ len (1) to 1 to delay _ len (2), the counting range of the pulse counter is changed from 1 to pulse _ len (1) to 1 to pulse _ len (2), and the counting range of the frame repetition counter is changed from 1 to N _ frame (1) _ rep to 1 to N _ frame (2) _ rep.
The process of transmitting frame2 is similar to frame1 and will not be described in detail. When the frame2 is sent out, the controller completes the following operations:
adding 1 to the frame number counter, and reaching a set value of 2, and resetting the frame number counter and the frame repetition frequency counter;
adding 1 to the count value of the sequence repetition number counter;
however, the count value of the sequence counter does not reach the set value 2, so the sequence is repeatedly sent for 1 time, the sending process is similar to that of the 1 st time, and the description is omitted.
In addition, the first reading period parameter and the second reading period parameter in this embodiment may be configured according to different sending modes, that is, the data sending method of the present application may support multiple sending modes.
In the embodiment of the application, a first reading period parameter corresponding to data to be sent is obtained; stopping reading 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 duration; 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-sleep period of the first reading period, and entering a sleep period of the next first reading period; and converting the first data into an analog signal, and transmitting the analog signal. According to the method, during the period of the sleep period, the filled data does not need to be generated, the storage resources do not need to be occupied, when the data volume is large, the data sending mode can save a lot of storage resources, the hardware implementation of the transmitter is easy, and the cost of the transmitter is reduced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments 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 for executing the steps in the embodiments corresponding to fig. 1, 3 to 6. Please refer to fig. 1, 3-6 for the corresponding embodiments. 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 obtaining unit 910, configured to obtain a first reading period parameter; the first reading period parameters comprise a sleep duration and a first reading data length of a non-sleep period corresponding to each first reading period, and the first reading period comprises the sleep period and the non-sleep period;
a first processing unit 920, configured to stop reading data to be read in a sleep period of the first read cycle, and enter a non-sleep period of the first read cycle after waiting for the sleep duration;
a second processing unit 930, configured to read, in a non-sleep period of the first read cycle, first data corresponding to the first read cycle from the data to be read according to the first read data length, and enter a sleep period of a next first read cycle;
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 data to be read in the sleep period of the first reading period, starting a first counter, and entering the non-sleep period of the first reading period after the first counter finishes timing; and the timing duration of the first counter is the dormancy duration.
Further, the second processing unit 930 is specifically configured to:
and reading the data with the first read data length from a first preset starting position of a buffer area in the non-sleep period of the first read period to obtain first data corresponding to the first read 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 data to be sent according to the first reading signal.
Further, the data transmission device 9 further includes:
a second acquisition unit configured to acquire a second reading cycle parameter; the second read cycle parameters comprise a second read data length for 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 reading period parameter further comprises a repetition time threshold;
the data transmission device further includes:
a third obtaining unit, configured to obtain an accumulated number of repetitions before a non-sleep period of the first read cycle;
the fourth processing unit is used for reading the second data in the cache region to obtain the first data if the accumulated repetition times is smaller than the repetition time threshold, and adding 1 to the accumulated repetition times;
and the fifth processing unit is used for resetting the accumulated repetition number to the initial value and waiting for the 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:
reading data to be read with the length of the second read data from a second preset initial position of the storage area to obtain second data;
and starting to store the second data from the first preset starting position of the cache region.
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 sent from the initial position of the second preset initial position of the storage area.
Further, the first read cycle parameter further includes a queue parameter of a first read queue composed of the first read cycles, where the queue parameter includes the number of the first read queues, and the type and number of the first read cycles included in the first read queue;
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 sent into an analog signal, and sending the analog signal.
Fig. 10 is a schematic diagram of a data transmission device according to a third embodiment of the present application. As shown in fig. 10, the data transmission device 10 of this embodiment includes: a processor 100, a memory 101 and a computer program 102, such as a data transmission program, stored in said memory 101 and operable on said processor 100. The processor 100 executes the computer program 102 to implement the steps in the above-described embodiments of the data transmission method, such as the steps 101 to 104 shown in fig. 1. Alternatively, the processor 100, when executing the computer program 102, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 910 to 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, which are used to describe the execution process of the computer program 102 in the data transmission device 10. For example, the computer program 102 may be divided into a first acquiring unit, a first processing unit, a second processing unit, and a sending unit, and the specific functions of each unit are as follows:
a first obtaining unit configured to obtain a first reading period parameter; the first reading period parameters comprise a sleep duration and a first reading data length of a non-sleep period corresponding to each first reading period, and the first reading period comprises the sleep period and the 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 duration;
the second processing unit is used for reading 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 and entering the sleep period of the next first reading period;
and the sending unit is used for converting the first data into an analog signal and sending the analog signal.
The data transmission device may include, but is not limited to, a processor 100, a memory 101. Those skilled in the art will appreciate 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 those shown, or combine some components, or different components, for example, 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 (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. 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, such as 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 Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the data transmission device 10. Further, the data transmission device 10 may also include both an internal storage unit and an external storage device of the data transmission device 10. The memory 101 is used to store 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, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an 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 apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
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 implementation. 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 ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (11)

1. A data transmission method, comprising:
acquiring a first reading period parameter; the first reading period parameters comprise a sleep duration and a first reading data length of a non-sleep period corresponding to each first reading period, and the first reading period comprises the sleep period and the non-sleep period;
stopping reading 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 duration;
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-sleep period of the first reading period, and entering a sleep period of the next first reading period;
and converting the first data into an analog signal, and transmitting the analog signal.
2. The data transmission method according to claim 1, wherein the stopping of reading the data to be read in the sleep period of the first read cycle and entering the non-sleep period of the first read cycle after waiting for the sleep duration comprises:
stopping reading data to be read in the sleep period of the first reading period, starting a first counter, and entering the non-sleep period of the first reading period after the first counter finishes timing; and the timing duration of the first counter is the dormancy duration.
3. The data sending method according to claim 1, wherein the reading, in the non-sleep period of the first read cycle, first data corresponding to the first read cycle from the data to be read according to the first read data length includes:
and reading the data with the first read data length from a first preset starting position of a buffer area in the non-sleep period of the first read period to obtain first data corresponding to the first read period.
4. The data sending method of claim 1, wherein the obtaining the first reading period parameter corresponding to the data to be sent comprises:
and acquiring a first reading signal, and determining a first reading period parameter corresponding to data to be sent according to the first reading signal.
5. The data transmission method according to claim 1, wherein before the obtaining the first reading period parameter, further comprising:
acquiring a second reading period parameter; the second read cycle parameters comprise a second read data length for 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 to the cache area.
6. The data transmission method of claim 5, wherein the first read cycle parameter further comprises a repetition number threshold;
after the obtaining the first reading period parameter, further comprising:
acquiring accumulated repetition times before a non-sleep period of the first reading period;
if the accumulated repetition times is smaller than the repetition time threshold, reading second data in the cache region to obtain first data, and adding 1 to the accumulated repetition times;
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.
7. The data sending method according to claim 5, wherein the reading the data to be read from the storage area according to the second reading cycle parameter and storing the data to be read into the cache area comprises:
reading data to be read with the length of the second read data from a second preset initial position of the storage area to obtain second data;
and starting to store the second data from the first preset starting position of the cache region.
8. The data sending method according to claim 7, wherein before the reading of the data to be read with the second read data length from the second preset starting position of the storage area to obtain the second data, the method further comprises:
acquiring the data to be transmitted and acquiring an initial position of a second preset initial position;
and storing the data to be transmitted from the initial position of the second preset initial position of the storage area.
9. 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 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 sent into an analog signal, and sending the analog signal.
10. A data transmission apparatus, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a first reading period parameter corresponding to data to be sent; the first reading period parameters comprise a sleep duration 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 duration;
the second processing unit is used for reading 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 and entering the sleep period of the next first reading period;
and the sending unit is used for converting the first data into an analog signal and sending the analog signal.
11. A data transmission apparatus 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 9 when executing the computer program.
CN202011308723.XA 2020-11-20 2020-11-20 Data sending method, device and equipment Pending CN112540724A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011308723.XA CN112540724A (en) 2020-11-20 2020-11-20 Data sending method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011308723.XA CN112540724A (en) 2020-11-20 2020-11-20 Data sending method, device and equipment

Publications (1)

Publication Number Publication Date
CN112540724A true CN112540724A (en) 2021-03-23

Family

ID=75014394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011308723.XA Pending CN112540724A (en) 2020-11-20 2020-11-20 Data sending method, device and equipment

Country Status (1)

Country Link
CN (1) CN112540724A (en)

Citations (8)

* Cited by examiner, † Cited by third party
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
CN101416551A (en) * 2006-03-28 2009-04-22 摩托罗拉公司 Method for data transfer with a mobile station while in discontinuous reception state
US20090303009A1 (en) * 2008-06-06 2009-12-10 Fujitsu Limited Information processing apparatus for transmitting and receiving RF signals
US20100321168A1 (en) * 2006-12-28 2010-12-23 Sugawara Hiroki Power line communication device and its communication control method
CN103077123A (en) * 2013-01-15 2013-05-01 华为技术有限公司 Data writing and reading methods and devices
CN109314673A (en) * 2017-04-24 2019-02-05 华为技术有限公司 A kind of client traffic transmission method and device
CN110650206A (en) * 2019-09-29 2020-01-03 北京天融信网络安全技术有限公司 IO flow control method and device in distributed storage system and storage medium
CN111416682A (en) * 2019-01-07 2020-07-14 华为技术有限公司 Data transmission method and communication equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
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
CN101416551A (en) * 2006-03-28 2009-04-22 摩托罗拉公司 Method for data transfer with a mobile station while in discontinuous reception state
US20100321168A1 (en) * 2006-12-28 2010-12-23 Sugawara Hiroki Power line communication device and its communication control method
US20090303009A1 (en) * 2008-06-06 2009-12-10 Fujitsu Limited Information processing apparatus for transmitting and receiving RF signals
CN103077123A (en) * 2013-01-15 2013-05-01 华为技术有限公司 Data writing and reading methods and devices
CN109314673A (en) * 2017-04-24 2019-02-05 华为技术有限公司 A kind of client traffic transmission method and device
CN111416682A (en) * 2019-01-07 2020-07-14 华为技术有限公司 Data transmission method and communication equipment
CN110650206A (en) * 2019-09-29 2020-01-03 北京天融信网络安全技术有限公司 IO flow control method and device in distributed storage system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张昕源 等: "基于G.726的语音无线采集芯片发射机基带电路设计", 《微电子学与计算机》, vol. 35, no. 1, pages 31 - 40 *

Similar Documents

Publication Publication Date Title
US8112646B2 (en) Buffering techniques for power management
US20170329632A1 (en) Device scheduling method, task manager and storage medium
US20170104607A1 (en) Methods to avoid i2c void message in i3c
US11023409B2 (en) MIPI D-PHY receiver auto rate detection and high-speed settle time control
WO2018144163A1 (en) Apparatus and method for asynchronous event timestamping
US7453833B2 (en) Hybrid-type data transmission apparatus and method suitable for high-performance wireless LAN
BR112016013935B1 (en) ENERGY SAVING TECHNIQUES IN COMPUTER DEVICES
US9921981B2 (en) Method to minimize the number of IRQ lines from peripherals to one wire
US20090141737A1 (en) Systems and methods for prioritized channel access hardware assistance design
CN115988614A (en) Mode determination method, equipment and storage medium
WO2019127230A1 (en) Network node wake-up method and device
WO2022027592A1 (en) Partial sensing enhancement for sl resource allocation
CN112540724A (en) Data sending method, device and equipment
CN113312284A (en) Data transmission method, device, system, storage medium and electronic device
CN116955242A (en) Single-bus communication method, storage medium and intelligent terminal
CN111132279A (en) Communication method and device
CN104335552A (en) Data interface sleep mode logic
CN115515168A (en) Radio frequency parameter adaptation method, device, equipment and computer readable storage medium
JP7250037B2 (en) COMMUNICATION METHOD, NETWORK DEVICE AND TERMINAL DEVICE
CN108650049B (en) Channel detection method, device and base station
US20190369698A1 (en) Methods and Apparatus for Adaptive Power Profiling in A Baseband Processing System
CN112469111B (en) Wireless communication method and device based on LoRa and gateway equipment
CN113099536B (en) Data communication method and device
RU2786001C1 (en) Wake-up signal monitoring indication
CN116361095B (en) Power consumption verification method, system, equipment and storage medium

Legal Events

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