WO2024007907A1 - 消息收发方法及设备 - Google Patents

消息收发方法及设备 Download PDF

Info

Publication number
WO2024007907A1
WO2024007907A1 PCT/CN2023/103051 CN2023103051W WO2024007907A1 WO 2024007907 A1 WO2024007907 A1 WO 2024007907A1 CN 2023103051 W CN2023103051 W CN 2023103051W WO 2024007907 A1 WO2024007907 A1 WO 2024007907A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
sending
information
time
receiving
Prior art date
Application number
PCT/CN2023/103051
Other languages
English (en)
French (fr)
Inventor
沈晓冬
吴凯
刘选兵
潘学明
纪子超
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2024007907A1 publication Critical patent/WO2024007907A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles

Definitions

  • This application belongs to the field of information processing technology, and specifically relates to a message sending and receiving method and device.
  • the passive equipment at the receiving end requires sufficient receiving signal power.
  • the receiving level of the signal is small, it takes a long time to store energy. Insufficient energy storage will cause the signal to be unable to be received or the signal receiving effect to be poor. Difference.
  • the circuit design of the label machine requires sufficient receiving signal power.
  • the label machine receives the message sent by the reader, it passes through the rectifier and The voltage regulator is then output to the digital signal processing unit. At this stage, the output current of the voltage regulator must always be supplied to the digital signal processing unit, which has certain requirements for the power supply of the label machine.
  • the label machine When the reception level of the signal is small, the label machine can reach a certain output voltage and output current through energy accumulation for a certain period of time to drive the digital signal unit to perform switching modulation of the signal. However, if the label machine lasts for a long time in the message sending phase, the accumulated energy requirements in the early stage will be relatively high, thus affecting the signal sending and receiving effect.
  • Embodiments of the present application provide a message sending and receiving method and device, which can solve the problem of poor message sending and receiving effects when passive devices have insufficient energy storage.
  • a message sending and receiving method is provided, which is applied to a first device.
  • the method includes: receiving a first message sent by a second device; the first message includes a request for obtaining target data; and sending a message to the second device.
  • the device sends a second message in response to the first message; sends a fourth message to the second device; the fourth message includes the target data.
  • a message sending and receiving device includes: a first receiving module for receiving a second device. A first message to be sent; the first message includes a request for obtaining target data; a first sending module for sending a second message in response to the first message to the second device; a second sending module Module configured to send a fourth message to the second device; the fourth message includes the target data.
  • a message sending and receiving method is provided, which is applied to a second device.
  • the method includes: sending a first message to the first device; the first message includes a request for obtaining target data; receiving a message from the first device. a second message of the device in response to the first message; receiving a fourth message from the second device; the fourth message includes the target data.
  • a message transceiving device which device includes: a third sending module, configured to send a first message to the first device; the first message includes a request for obtaining target data; a third receiving module, for receiving a second message from the first device in response to the first message; a fourth receiving module for receiving a fourth message from the second device; the fourth message includes the Describe the target data.
  • a terminal in a fifth aspect, includes a processor and a memory.
  • the memory stores programs or instructions that can be run on the processor.
  • the program or instructions are executed by the processor, the following implementations are implemented: The steps of the message sending and receiving method described in one aspect, or the steps of implementing the message sending and receiving method described in the third aspect when the program or instruction is executed by the processor.
  • a network side device in a sixth aspect, includes a processor and a memory.
  • the memory stores programs or instructions that can be run on the processor.
  • the program or instructions are executed by the processor.
  • a seventh aspect provides a message sending and receiving system, including: a terminal and a network side device.
  • the terminal can be used to perform the steps of the message sending and receiving method described in the first aspect.
  • the network side device can be used to perform the third step. The steps of the message sending and receiving method described in the aspect.
  • An eighth aspect provides a message sending and receiving system, including: a terminal and a network side device.
  • the terminal can be used to perform the steps of the message sending and receiving method described in the third aspect.
  • the network side device can be used to perform the steps of the first message sending and receiving method. The steps of the message sending and receiving method described in the aspect.
  • a readable storage medium is provided. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method are implemented as described in the first aspect. The steps of the method described in the third aspect.
  • a chip in a tenth aspect, includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the method described in the first aspect. , or implement the method as described in the third aspect.
  • a computer program/program product is provided, the computer program/program product is stored in a storage medium, and the computer program/program product is executed by at least one processor to implement the first aspect method, or implement the method described in the third aspect.
  • the first device receives a first message sent by the second device, where the first message includes a request for obtaining target data, and sends a second message in response to the first message to the second device. Thereafter, a fourth message is sent to the second device, the fourth message including the target data. It can be seen that after the second device needs to obtain the target data in the first device and sends the first message, the first device does not immediately send the target data to the second device, but first generates a response message to the first message (i.e., the first message Second message), send the response information to the second device, and then send the target data to the second device.
  • the first message i.e., the first message Second message
  • the interaction between the two devices through the second message can avoid the first device sending the target data to other devices (not the second device), thus ensuring improve the accuracy of message sending and receiving.
  • the message sending and receiving process provided by this application is more complete. .
  • the interaction between the two devices through intermediate response messages not only ensures the accuracy of data transmission, but also enables the first device (such as no The source device) has more time to store energy, so that it can send and receive messages when the energy storage is sufficient, ensuring the message sending and receiving effect and the success rate of target data transmission.
  • Figure 1 is a block diagram of a wireless communication system applicable to the embodiment of the present application.
  • Figure 2 is a schematic flow chart of a message sending and receiving method according to an embodiment of the present application
  • Figure 3 is a schematic sequence diagram of a message sending and receiving method according to an embodiment of the present application.
  • Figure 4 is a schematic flow chart of a message sending and receiving method according to another embodiment of the present application.
  • Figure 5 is a schematic sequence diagram of a message sending and receiving method according to another embodiment of the present application.
  • Figure 6 is a schematic sequence diagram of a message sending and receiving method according to yet another embodiment of the present application.
  • Figure 7 is a schematic block diagram of a message sending and receiving device according to an embodiment of the present application.
  • Figure 8 is a schematic block diagram of a message sending and receiving device according to another embodiment of the present application.
  • Figure 9 is a schematic block diagram of a communication device according to an embodiment of the present application.
  • Figure 10 is a schematic block diagram of a terminal according to an embodiment of the present application.
  • Figure 11 is a schematic block diagram of a network side device according to an embodiment of the present application.
  • first, second, etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and that "first" and “second” are distinguished objects It is usually one type, and the number of objects is not limited.
  • the first object can be one or multiple.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the related objects are in an "or” relationship.
  • LTE Long Term Evolution
  • LTE-Advanced, LTE-A Long Term Evolution
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • FDMA Frequency Division Multiple Access
  • OFDMA Orthogonal Frequency Division Multiple Access
  • SC-FDMA Single-carrier Frequency-Division Multiple Access
  • system and “network” in the embodiments of this application are often used interchangeably, and the described technology can be used not only for the above-mentioned systems and radio technologies, but also for other systems and radio technologies.
  • FIG. 1 shows a block diagram of a wireless communication system to which embodiments of the present application are applicable.
  • the wireless communication system includes a terminal 11 and a network side device 12.
  • the terminal 11 may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), or a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a palmtop computer, a netbook, or a super mobile personal computer.
  • Tablet Personal Computer Tablet Personal Computer
  • laptop computer laptop computer
  • PDA Personal Digital Assistant
  • PDA Personal Digital Assistant
  • UMPC ultra-mobile personal computer
  • UMPC mobile Internet device
  • MID mobile Internet Device
  • AR augmented reality
  • VR virtual reality
  • robots wearable devices
  • WUE Vehicle User Equipment
  • PUE Pedestrian User Equipment
  • smart home home equipment with wireless communication functions, such as refrigerators, TVs, washing machines or furniture, etc.
  • game consoles personal computers (personal computer, PC), teller machine or self-service machine and other terminal-side devices.
  • Wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets) bracelets, smart anklets, etc.), smart wristbands, smart clothing, etc.
  • Network side equipment 12 may include access network equipment or core Network equipment, where the access network equipment 12 may also be called a radio access network equipment, a radio access network (Radio Access Network, RAN), a radio access network function or a radio access network unit.
  • the access network device 12 may include a base station, a WLAN access point or a WiFi node, etc.
  • the base station may be called a Node B, an Evolved Node B (Evolved Node B, eNB), a next-generation base station (gNB), an access point, or a base transceiver.
  • BTS Base Transceiver Station
  • BSS Basic Service Set
  • ESS Extended Service Set
  • TRP transmitter Transmitting Receiving Point
  • the base station is not limited to specific technical terms. It should be noted that in the embodiment of this application, it is only referred to as The base station in the NR system is introduced as an example, and the specific type of base station is not limited.
  • Figure 2 is a schematic flow chart of a message sending and receiving method according to an embodiment of the present application.
  • the message sending and receiving method is applied to a first device.
  • the first device can be the terminal 11 as shown in Figure 1 or a network.
  • the method includes:
  • the target data may be stored in the first device or in other devices or memories associated with the first device.
  • the first device obtains the target data locally and carries it in the fourth message and sends it to the second device. If the target data is stored in other devices or memories associated with the first device, the first device obtains the target data from the other devices or memories, and then carries the target data in the fourth message and sends it to the second device.
  • the first device receives a first message sent by the second device, where the first message includes a request for obtaining target data, and sends a second message in response to the first message to the second device. Thereafter, a fourth message is sent to the second device, the fourth message including the target data.
  • the first device does not immediately send the target data to the second device, but first generates a response message to the first message (i.e., the first message (Second message), the response information is sent to the second device, and only after the second device responds again, the first device sends the target data to the second device.
  • the interaction between the two devices through the second message can avoid the first device sending the target data to other devices (not the second device), thus ensuring improve the accuracy of message sending and receiving.
  • the first device directly sends the target data to the second device.
  • the message sending and receiving process provided by this application is more complete.
  • the interaction between the two devices through intermediate response messages not only ensures the accuracy of data transmission, but also enables the first device (such as no The source device) has more time to store energy, so that it can send and receive messages when the energy storage is sufficient, ensuring the message sending and receiving effect and the success rate of target data transmission.
  • the first device may receive a third message from the second device in response to the second message, and after successfully receiving the third message, send the third message to the second device.
  • the second device sends a fourth message. Since the third message is an intermediate response message, that is, it does not carry real target data, the interaction between the two devices through the third message can make the message sending and receiving effect better. This is more prominent in scenarios where multiple devices interact at the same time. . For example, if multiple second devices send first messages to the first device at the same time to obtain target data.
  • the first device sends a second message to each second device and then sends a fourth message to each second device, it will cause the first device to send data to multiple second devices at the same time, resulting in data transmission. Congestion affects the success rate of data transmission. If the first device first waits for the second device to send the third message, and after successfully receiving the third message, then sends the fourth message to the second device that sent the third message, it can avoid sending messages to multiple second devices at the same time. The device sends data to avoid data transmission congestion and improve the success rate of data transmission.
  • Figure 3 is a schematic sequence diagram of a message sending and receiving method according to an embodiment of the present application.
  • the sequence of vertical lines in the figure represents the time axis, and the time axis represents the order of time from left to right.
  • the time axis is represented by a sequence of vertical lines.
  • the second device first sends a first message to the first device, and the first device sends a second message to the first device after time t when it receives the first message, where time t represents the processing of the first message by the first device. time, including parsing the first message.
  • the first device receives the third message from the second device, and T1 represents the time interval between the first device sending the second message and receiving the third message, and T1 may be greater than or equal to 0. Then, the first device sends a fourth message including the target data to the second device, and T2 represents a time interval between the first device receiving the third message and sending the fourth message, and T2 may be greater than or equal to 0.
  • the second message may be generated by the first device, for example, a 16-bit random character may be generated and sent to the second device as the second message. Since the third message is in response to the second message, the third message at least includes 16-bit random characters sent by the first device. For example, if the third message is in the form of an ACK (Acknowledgement, confirmation character) command, then the second device The 16-bit random character is fed back to the first device through the ACK command to trigger the first device to send the target data to the second device.
  • ACK Acknowledgement, confirmation character
  • the reader needs to query the target data from the label machine, the reader first sends a query command (Query) to the label machine.
  • the query command is the first information.
  • the tag machine After receiving the query command, the tag machine generates a 16-bit random character (that is, RN16) and sends RN16 to the reader. Then, the reader feeds back RN16 to the tag machine in the form of an ACK command to trigger the tag machine to send target data to the reader.
  • RN16 16-bit random character
  • the first device when the first device receives the third message from the second device, it may receive the third message immediately after sending the second message. At this time, T1 shown in Figure 3 is 0. You can also wait for a period of time after sending the second message and then receive the third message, that is, delay receiving the third message. In this case, T1 shown in Figure 3 is greater than 0.
  • the third message is received at a first moment, wherein the first moment is determined based on at least one of the following: first time information, device status information of the first device, information length of the third message, and the ability of the first device to receive The length of the message.
  • the first time information may include at least one of the following: a first moment, a first time interval between the first device sending the second message and receiving the third message.
  • the first time is a time after the first device sends the second message. If the first time information includes the first time, that is, the first device can directly know at which time the third message is received. For example, if the first device sends the second message at 10:00:00 (that is, 10 o'clock sharp), and the first time is 10:00:10 (that is, 10:00 minutes and 10 seconds), then the first device sends the second message at 10:00:00 (that is, 10 o'clock sharp). :00:Receive the third message at 10 o'clock.
  • the first device can learn the time interval to wait after sending the second message. For example, the first device sends the second message at 10:00:00 (that is, 10 o'clock sharp), and the first time interval is 1 second. After sending the second message, the first device waits for 1 second and then receives the third message. information.
  • the device status information of the first device may include at least one of the following: first status information for sending and receiving messages without delay, second status information for sending and receiving messages with delay, and energy storage information of the first device.
  • the energy storage information is used to represent that the first device does not delay sending and receiving messages, or delays sending and receiving messages.
  • energy storage information includes specific reserve energy, or whether the reserve energy requires a delay in sending and receiving messages.
  • the first time information There are many ways to carry the first time information, the device status information of the first device, the information length of the third message, and the length of the message that the first device can receive, which will be described in detail below.
  • the first message or the second message includes first time information.
  • the first time information is determined by the second device and sent to the first device. After receiving the first message, the first device can determine the first time based on the first time information carried in the first message, and then receive the third message from the second device at the first time.
  • the second device determines the first time information, it may be determined based on information pre-agreed or configured by the first device and the second device. For example, the first device and the second device have pre-agreed or configured the first time information. . Alternatively, the second device may determine the first time information based on device status information of the first device. Based on this, the first device can send device status information to the second device in advance, so that before sending the first message, the second device can determine the first time information based on the device status information sent by the first device, and then set the first time information to the second device. The time information is carried in the first message and sent to First device.
  • the first time information is determined by the first device and sent to the second device.
  • the second device can determine the first time based on the first time information carried in the second message, and then send the third message to the first device at the first time.
  • the first device determines the first time information, it may be determined based on information pre-agreed or configured by the first device and the second device. For example, the first device and the second device have pre-agreed or configured the first time information. . Alternatively, the first device may determine the first time information according to its own device status information. Before receiving the third message (for example, after receiving the first message or after sending the second message), the first device first determines the first time information based on its own device status information, and then carries the first time information in the second message. The message is also sent to the second device, so that the second device determines the first time based on the first time information, and sends the third message to the first device at the first time.
  • the first message includes the information length of the third message.
  • the information length of the third message is determined by the second device and sent to the first device. After receiving the first message, the first device can determine the first time based on the information length of the third message carried in the first message, and then receive the third message from the second device at the first time.
  • the first device and the second device may pre-agree or configure the information length of each message during the message sending and receiving process, including the information length of the third message.
  • the second device can determine the information length of the third message based on pre-agreed or configured information, and then carry the information length of the third message in the first message and send it to the first device.
  • the second message includes an information length of the message that the first device can receive, and the information length of the message that the first device can receive is determined by the first device and sent to the second device.
  • the first device may determine the information length of the message that can be received based on its own device status information, for example, determine the information length of the message that can be sent and received based on the current energy storage information.
  • the second device can determine the first time based on the length of the message carried by the second message that the first device can receive, and then send the third message to the first device at the first time.
  • the length of the third message sent by the second device should match the information length of the message that the first device can receive.
  • the length of the third message is less than or equal to the information length of the message that the first device can receive.
  • the first device can determine the information of the third message based on the generated second message. length, and then determine the information length of the third message as the information length of the message that the first device can receive. For example, if the information length of the second message generated by the first device is 16 bits, then the information length of the third message may be 16 bits, or if other information needs to be carried in the third message, the information length of the third message may be 16 bits. Can be larger than 16 bits, such as 32 bits.
  • the first device may also determine that the first device can The information length of the received message, and then the information length of the message that the first device can receive, is carried in the second message and sent to the second device.
  • the second message includes device status information, that is, the device status information of the first device is sent by the first device to the second device through the second message.
  • the device status information includes one of the following: first status information for sending and receiving messages without delay, second status information for sending and receiving messages with delay, and energy storage information of the first device, where the energy storage information is used to indicate that the first device does not Delay sending and receiving messages, or delay sending and receiving messages.
  • the first device may determine whether the device status information is the first status information or the second status information based on its own energy storage information. After receiving the second message, the second device determines the first time based on the device status information carried in the second message, and then sends the third message to the first device at the first time.
  • the fourth message when performing S206, that is, when sending the fourth message, may be sent immediately after receiving the third message, and at this time, T2 shown in Figure 3 is 0.
  • the fourth message can also be sent after waiting for a period of time after receiving the third message, that is, sending the fourth message with a delay. In this case, T2 shown in Figure 3 is greater than 0.
  • the first device sends a fourth message to the second device at a second time, where the second time is determined based on at least one of the following: second time information, device status information of the first device, and information of the fourth message. Length, the length of the message that the second device can receive.
  • the second time information may include at least one of the following: a second time, a second time interval between the first device sending the second message and sending the fourth message, and a time interval between the first device receiving the third message and sending the fourth message. the third time interval between, and the fourth time interval between receiving the first message and sending the fourth message.
  • the second time is a time after the first device receives the third message. If the second time information includes the second time, that is, the second device can directly learn at which time the fourth message is sent.
  • the first device receives the third message at 10:00:00 (that is, 10 o'clock sharp), and the second time is 10:00:10 (that is, 10:00 minutes and 10 seconds), then the first device receives the third message at 10:00:00 (that is, 10 o'clock sharp). :00:The fourth message is sent at 10 o'clock.
  • the second time information includes the second time interval, the first device can learn the time interval to wait after sending the second message. For example, the first device sends the second message at 10:00:00 (that is, 10 o'clock sharp), and the second time interval is 1 second. After sending the second message, the first device waits for 1 second and then sends the fourth message. information.
  • the second time interval should be greater than the time interval between sending the second message and receiving the third message. If the second time information includes the third time interval, the first device can learn the time interval to wait after receiving the third message. For example, the first device receives the third message at 10:00:00 (that is, 10 o'clock sharp), and the third time interval is 1 second. After receiving the third message, the first device waits for 1 second and then sends the fourth message. information.
  • the device status information of the first device may include at least one of the following: first status information for sending and receiving messages without delay, second status information for sending and receiving messages with delay, and energy storage information of the first device.
  • the energy storage information is used to represent that the first device does not delay sending and receiving messages, or delays sending and receiving messages.
  • the second time information, the device status information of the first device, the information length of the fourth message, and the ability of the second device to receive The length of the received message.
  • the second message or the third message includes second time information.
  • the second time information is determined by the first device and sent to the second device. After receiving the second message, the second device can determine the second time based on the second time information carried in the second message, and then receive the fourth message sent by the first device at the second time.
  • the first device determines the second time information, it may be determined based on information pre-agreed or configured by the first device and the second device. For example, the first device and the second device have pre-agreed or configured the second time information. . Alternatively, the first device may determine the second time information based on its own device status information. Before sending the fourth message, the first device first determines the second time information based on its own device status information, and then carries the second time information in the second message and sends it to the second device. The first device sends a fourth message to the second device at the second time. At the same time, the second device determines the second time based on the second time information carried in the second message, and receives the fourth message sent by the first device at the second time. information.
  • the second time information is determined by the second device and sent to the first device.
  • the first device can determine the second time based on the second time information carried in the third message, and then send the fourth message to the second device at the second time.
  • the second device determines the second time information, it may be determined based on information pre-agreed or configured by the first device and the second device. For example, the first device and the second device have pre-agreed or configured the second time information. . Alternatively, the second device may determine the second time information based on the device status information of the first device. Based on this, the first device can send device status information to the second device in advance, so that the second device can determine the second time information based on the device status information sent by the first device before the first device sends the fourth message, and then The second time information is carried in the third message and sent to the first device.
  • the second message includes the information length of the fourth message.
  • the information length of the fourth message is determined by the first device and sent to the second device. After receiving the second message, the second device can determine the second time based on the information length of the fourth message carried in the second message, and then receive the fourth message sent by the first device at the second time.
  • the first device and the second device may pre-agree or configure the information length of each message during the message sending and receiving process, including the information length of the fourth message. In this way, the first device can determine the information length of the fourth message based on pre-agreed or configured information, and then carry the information length of the fourth message in the second message and send it to the second device.
  • the first device can determine the information length of the fourth message according to the target data. For example, if the data length of the target data is 32 bits, then the information length of the fourth message may be 32 bits, which is the data length of the target data, or if the fourth message needs to carry other information, The information length of the fourth message may be greater than 32 bits, such as 48 bits.
  • the third message includes an information length of the message that the second device is capable of receiving.
  • the information length of the message that the second device can receive is determined by the second device and sent to the first device.
  • the first device can determine the second time based on the information length of the message that the second device can receive carried in the third message, and then send the fourth message to the second device at the second time.
  • the second device can determine the information length of the message that the second device can receive based on the information pre-agreed or configured with the first device, and then carry the information length of the message that the second device can receive in the third message. and sent to the first device.
  • the second device may estimate the information length of the message that the second device can receive based on the target data to be obtained.
  • the second message includes device status information, that is, the device status information of the first device is sent by the first device to the second device through the second message.
  • the device status information includes one of the following: first status information for sending and receiving messages without delay, second status information for sending and receiving messages with delay, and energy storage information of the first device, where the energy storage information is used to indicate that the first device does not Delay sending and receiving messages, or delay sending and receiving messages.
  • the first device may determine whether the device status information is the first status information or the second status information based on its own energy storage information. After receiving the second message, the second device determines the second time based on the device status information carried in the second message, and then receives the fourth message sent by the first device at the second time.
  • the first device does not immediately send the target data to the second device, but can based on the time information ( Including first time information and/or second time information), device status information of the first device and/or the information length of the message to be sent and received to determine the moment of sending and receiving the message, including the first moment of receiving the third message, and sending the third message.
  • time information Including first time information and/or second time information
  • device status information of the first device and/or the information length of the message to be sent and received to determine the moment of sending and receiving the message, including the first moment of receiving the third message, and sending the third message.
  • the first device can have more time to accumulate energy during the message sending and receiving process, so that the first device can send and receive messages when the energy is sufficient (such as having sufficient signal power for sending and receiving signals), Avoid the situation where the message sending and receiving effect is affected or the message cannot be sent or received due to insufficient device energy. Therefore, the first device can have more time to accumulate energy during the message sending and receiving process, so that the first device can send and receive messages when the energy of the first device is sufficient (for example, it has sufficient transmitting and receiving signal power), and avoids the impact caused by insufficient device energy. The effect of sending and receiving messages or the inability to send and receive messages.
  • the first device may determine whether its own energy storage information matches the first time and/or the second time. If there is no match, the power supply time factor is sent to the second device, and the power supply time factor is used by the second device to adjust the first time and/or the second time. Among them, the energy storage information of the first device matches the first time and/or the second time, indicating that the energy storage information of the first device is sufficient to send and receive messages according to the first time and/or the second time. At this time, there is no need to send messages to the second time. The device sends the energy supply time factor.
  • the energy storage information of the first device does not match the first time and/or the second time, indicating that the energy storage information of the first device is insufficient to send and receive messages according to the first time and/or the second time. At this time, it is necessary to increase the first moment and/or the second moment, so that the first device has more time to reserve energy, and ensure that the energy storage information of the first device is sufficient to send and receive according to the first moment and/or the second moment. information.
  • the energy storage information may include specific reserve energy and/or whether the reserve energy meets current dispatch time requirements. If the energy storage information includes reserve energy, the first device can determine whether the current reserve energy meets the scheduling time requirement based on the value of the reserve energy. If the reserve energy meets the dispatch time requirement, it means that the energy storage information of the first device matches the first moment and/or the second moment; if the reserve energy does not meet the dispatch time requirement, it means that the energy storage information of the first device matches the first moment. moment and/or second moment do not match.
  • the second message includes the energy supply time factor, that is, the energy supply time factor can be carried in the second message and sent to the second device, and the second device adjusts the first moment and/or the second moment according to the energy supply time factor.
  • the first device may determine the energy supply time factor based on device status information of the first device.
  • the device status information may include at least one of the following: first status information for sending and receiving messages without delay, second status information for sending and receiving messages with delay, and energy storage information of the first device.
  • the device status information is the first status information, it means that the first device has more reserve energy, and it can be determined that the energy storage information of the first device matches the first time and/or the second time. If the device status information is the second status information, it means that the reserve energy of the first device is less. At this time, it can be further determined that the energy storage information matches the first moment and/or the second moment according to the value of the reserve energy.
  • the first device can determine the power supply time factor according to its own device status information. Since the power supply time factor can act on the first moment and/or the second moment, the delay time of message sending and receiving is dynamic. Adjustable, so that the time of sending and receiving messages between the first device and the second device can be flexibly and dynamically adjusted according to the device status information of the first device, so as to avoid the situation that the message sending and receiving effect is affected or the message cannot be sent and received due to insufficient device energy.
  • Figure 4 is a schematic flow chart of a message sending and receiving method according to another embodiment of the present application.
  • the message sending and receiving method is applied to a second device.
  • the second device can be the terminal 11 as shown in Figure 1 or Network side device 12.
  • the method includes:
  • the target data may be stored in the first device or in other devices or memories associated with the first device.
  • the second message may be generated by the first device, for example, a 16-bit random character may be generated and sent to the second device as the second message. Since the third message is in response to the second message, the third message at least includes 16-bit random characters sent by the first device. For example, if the third message is in the form of an ACK (Acknowledgement, confirmation character) command, then the second device Feed back 16-bit random characters to the first device through the ACK command, to trigger the first device to send target data to the second device.
  • ACK Acknowledgement, confirmation character
  • the second device sends a first message to the first device, where the first message includes a request for obtaining target data, and receives a second message sent by the first device in response to the first message. Afterwards, a fourth message is received from the first device, the fourth message including the target data.
  • the first device does not immediately send the target data to the second device, but first generates a response message to the first message (i.e., the first message (Second message), the response information is sent to the second device, and only after the second device responds again, the first device sends the target data to the second device.
  • the interaction between the two devices through the second message can avoid the first device sending the target data to other devices (not the second device), thus ensuring improve the accuracy of message sending and receiving.
  • the message sending and receiving process provided by this application is more complete. .
  • the interaction between the two devices through intermediate response messages not only ensures the accuracy of data transmission, but also enables the first device (such as no The source device) has more time to store energy, so that it can send and receive messages when the energy storage is sufficient, ensuring the message sending and receiving effect and the success rate of target data transmission.
  • the second device may first send a third message in response to the second message to the first device, and then receive the fourth message from the first device. Since the third message is an intermediate response message, that is, it does not carry real target data, the interaction between the two devices through the third message can make the message sending and receiving effect better. This is more prominent in scenarios where multiple devices interact at the same time. . For example, if multiple second devices send first messages to the first device at the same time to obtain target data. If the first device sends a second message to each second device and then sends a fourth message to each second device, it will cause the first device to send data to multiple second devices at the same time, resulting in data transmission. Congestion affects the success rate of data transmission.
  • the first device first waits for the second device to send the third message, and after successfully receiving the third message, then sends the fourth message to the second device that sent the third message, it can avoid sending messages to multiple second devices at the same time.
  • the device sends data to avoid data transmission congestion and improve the success rate of data transmission.
  • the second device when the second device sends the third message to the first device, it may send the third message immediately after receiving the second message. At this time, T1 shown in Figure 3 is 0. You can also wait for a period of time after receiving the second message and then send the third message, that is, delay sending the third message. In this case, T1 shown in Figure 3 is greater than 0.
  • the third message is sent at a first moment, where the first moment is determined based on at least one of the following: first time information, device status information of the first device, information length of the third message, the first device The length of messages that can be received.
  • the first time information may include at least one of the following: the first time, the first device sending and receiving the second message The first time interval between third messages.
  • the first time is a time after the first device sends the second message.
  • the device status information of the first device may include at least one of the following: first status information for sending and receiving messages without delay, second status information for sending and receiving messages with delay, and energy storage information of the first device.
  • the energy storage information is used to represent that the first device does not delay sending and receiving messages, or delays sending and receiving messages.
  • energy storage information includes specific reserve energy, or whether the reserve energy requires a delay in sending and receiving messages.
  • the first time information, the device status information of the first device, the information length of the third message, and the length of the message that the first device can receive are carried in the same manner as in the above embodiment, and will not be described again here.
  • the fourth message when performing S406, that is, when receiving the fourth message, may be received immediately after sending the third message, and at this time, T2 shown in Figure 3 is 0. You can also wait for a period of time after sending the third message and then receive the fourth message, that is, delay receiving the fourth message. In this case, T2 shown in Figure 3 is greater than 0.
  • the second device receives the fourth message at a second time, where the second time is determined based on at least one of the following: second time information, device status information of the first device, and the information length of the fourth message.
  • the second time information may include at least one of the following: a second time, a second time interval between the first device sending the second message and sending the fourth message, and a time interval between the first device receiving the third message and sending the fourth message. a third time interval between, and a fourth time interval between the first device receiving the first message and sending the fourth message.
  • the second time is a time after the first device receives the third message.
  • the device status information of the first device may include at least one of the following: first status information for sending and receiving messages without delay, second status information for sending and receiving messages with delay, and energy storage information of the first device.
  • the energy storage information is used to represent that the first device does not delay sending and receiving messages, or delays sending and receiving messages.
  • the device status information includes the first status information, it means that the first device is ready to send and receive messages at subsequent moments.
  • the device status information includes the second status information, it means that the first device is not ready to send and receive messages at a subsequent time. Therefore, after the second device sends the third message in response to the second message to the first device, if it does not receive a response message from the first device to the third message within the preset time period, it can send the third message again according to the preset time interval. Send the third message to the first device until the third message meets the condition for stopping sending.
  • the conditions for stopping sending include: the first device receives a response message to the third message; and/or the number of times the third message is sent reaches a preset number.
  • the device status information of the first device is the second status information of delayed sending and receiving messages
  • the first device needs to delay sending and receiving subsequent messages, such as delaying receiving ACK.
  • the second device can try to send ACK multiple times. If it receives a response message to the ACK from the first device within a preset time period (such as 10 milliseconds), it will stop sending ACK. If no response message to the ACK from the first device is received within the preset time interval (for example, 10 milliseconds), ACK will be sent again after the preset time interval (for example, 20 milliseconds) until the response to the ACK from the first device is received. message, or The preset number of sending times is reached.
  • a preset time period such as 10 milliseconds
  • the second time information, the device status information of the first device, the information length of the fourth message, and the length of the message that the second device can receive are carried in the same manner as in the above embodiment, and will not be described again here.
  • the first device does not immediately send the target data to the second device, but can instead send the target data to the second device based on time information (including first time information and/or second time information), device status information of the first device and/or the information length of the message to be sent and received to determine the moment of sending and receiving the message, including the first moment of sending the third message, and receiving the fourth
  • time information including first time information and/or second time information
  • the first device can have more time to accumulate energy during the message sending and receiving process, so that the first device can send and receive messages when the energy is sufficient (such as having sufficient sending and receiving signal power), avoiding Insufficient energy of the device affects the message sending and receiving effect or fails to send and receive messages.
  • the first device can have more time to accumulate energy during the message sending and receiving process, so that the first device can send and receive messages when the energy of the first device is sufficient (for example, it has sufficient transmitting and receiving signal power), and avoids the impact caused by insufficient device energy.
  • the energy of the first device for example, it has sufficient transmitting and receiving signal power
  • the second device receives the energy supply time factor sent by the first device, and adjusts the first moment and/or the second moment according to the energy supply time factor.
  • the second message includes a power supply time factor, that is, the power supply time factor can be carried in the second message and sent by the first device to the second device, and the second device adjusts the first moment and/or the second time according to the power supply time factor. Or the second moment.
  • the power supply time factor can be carried in the second message and sent by the first device to the second device, and the second device adjusts the first moment and/or the second time according to the power supply time factor. Or the second moment.
  • the following takes the first device as a tag machine and the second device as a reader as an example to illustrate the message sending and receiving method provided by this application.
  • the reader first sends a query command (Query) to the label machine, and the query command is the first message. Then, after receiving the query command, the tag machine generates a 16-bit random character (that is, RN16) and sends RN16 to the reader. Then, the reader feeds back RN16 to the tag machine in the form of an ACK command to trigger the tag machine to send target data to the reader.
  • Query a query command
  • RN16 16-bit random character
  • the circuit design of the label machine requires sufficient receiving signal power.
  • the label machine receives the message sent by the reader, it passes through the rectifier and voltage regulator and outputs it to the digital signal processing unit. This stage requires a stable signal.
  • the output current of the voltage converter is supplied to the digital signal processing unit, which has certain requirements for the power supply of the label machine.
  • the label machine can reach a certain output voltage and output current through energy accumulation over a certain period of time to drive the digital signal unit to perform switching modulation of the signal.
  • the label machine if the label machine lasts for a long time in the message sending phase, the accumulated energy requirements in the early stage will be relatively high, thus affecting the signal reception effect. Therefore, a certain delay mechanism for sending and receiving messages is needed to ensure the effect of sending and receiving messages.
  • the first time information can be carried in RN16, such as T1 as shown in Figure 5.
  • This T1 represents the time between the tag machine sending RN16 and receiving the ACK command. the time interval between.
  • the label machine can determine whether the current energy storage information matches the first moment based on its own equipment status information (including whether to delay sending and receiving information, energy storage information, etc.). If it does not match, the T1 value can be adjusted to a newer value. A large value, such as adding 10 milliseconds, and receiving ACK instructions according to the adjusted T1.
  • the label machine can feed back the power supply time factor to the reader, so that the reader adjusts T1 to a larger value based on the power supply time factor. During this period of T1, the labeling machine can reserve more energy.
  • the RN16 can also carry at least one of the transceiver information length, such as the information length of the ACK command, the data length of the target data, etc.
  • the reader After the reader receives the RN16, it can determine the first moment to send the ACK command (corresponding to T1 in Figure 5) and/or the second moment to receive the target data (corresponding to T2 in Figure 5) based on the length of the information carried in the RN16. ), thus giving the label machine more time to store energy.
  • the tag machine when it sends RN16, it can also carry its own device status information in RN16.
  • the device status information includes whether to delay sending and receiving information, energy storage information, etc.
  • the reader After receiving the RN16, the reader can determine whether to send and receive messages according to T1 and T2 based on the device status information carried in the RN16. If the device status information indicates that the tag machine does not delay sending and receiving messages, then T1 and T2 are 0; if the device status information indicates that the first device delays sending and receiving messages, the reader can respond based on other information (such as the energy storage information reported by the tag machine). , pre-agreed or configured T1 and T2) determine the values of T1 and T2, and then send and receive messages with the label machine according to T1 and T2.
  • the reader first sends a query command (Query) to the label machine, and the query command is the first message. Then, after receiving the query command, the tag machine generates a 16-bit random character (that is, RN16) and sends RN16 to the reader. Then, the reader feeds back RN16 to the tag machine in the form of an ACK command to trigger the tag machine to send target data to the reader.
  • Query a query command
  • RN16 16-bit random character
  • the second time information can be carried in RN16, such as T3 as shown in Figure 6.
  • This T3 represents the time interval between the tag machine sending RN16 and sending the target data.
  • the RN16 can carry T4 as shown in Figure 6.
  • This T4 represents the time interval between the tag machine receiving the ACK and sending the target data.
  • the tag machine when it sends RN16 to the reader, it can carry the energy supply time factor in RN16, so that the reader can adjust the values of T3 and T4 according to the energy supply time factor. For example, if the current energy storage information of the tag machine does not match the scheduling time requirements (i.e., the values of T3 and T4), the energy supply time factor can be reported to the reader so that the reader can adjust the values of T3 and T4 to a larger value. Thereby delaying the time for the reader to send the ACK command and the time for the tag machine to send the target data.
  • the label machine does not immediately send the target data to the reader, but can instead send the target data to the reader based on time information (such as T1, T2, T3 and T4 shown in Figure 5-6), the device status information of the label machine and/or the information length of the message to be sent and received to determine the sending and receiving message moment, therefore, the label machine can have more time to accumulate energy during the message sending and receiving process, so that the label machine can send and receive messages when the energy of the label machine is sufficient (such as having sufficient transmit and receive signal power), to avoid being damaged by the energy of the label machine.
  • time information such as T1, T2, T3 and T4 shown in Figure 5-6
  • the label machine can have more time to accumulate energy during the message sending and receiving process, so that the label machine can send and receive messages when the energy of the label machine is sufficient (such as having sufficient transmit and receive signal power), to avoid being damaged by the energy of the label machine.
  • the label machine can have more time to accumulate energy during the message sending and receiving process, so that the label machine can send and receive messages when the energy of the label machine is sufficient (such as having sufficient transmit and receive signal power), and avoid affecting the message sending and receiving due to insufficient equipment energy. effects or the inability to send and receive messages.
  • the execution subject may be a message sending and receiving device.
  • a message transceiver device performing a message transceiver method is used as an example to illustrate the message transceiver device provided by the embodiment of the present application.
  • FIG. 7 is a schematic block diagram of a message sending and receiving device according to an embodiment of the present application.
  • messaging devices include:
  • the first receiving module 71 is configured to receive the first message sent by the second device; the first message includes a request for obtaining target data;
  • the first sending module 72 is configured to send a second message in response to the first message to the second device;
  • the second sending module 73 is configured to send a fourth message to the second device; the fourth message includes the target data.
  • the device further includes:
  • the second receiving module is configured to receive a third message from the second device in response to the second message before sending the fourth message to the second device.
  • the second receiving module includes:
  • a first receiving unit configured to receive the third message at a first time; the first time is determined based on at least one of the following: first time information, device status information of the first device, the third message The length of the message and the length of the message that the first device can receive;
  • the second sending module 73 includes:
  • a first sending unit configured to send the fourth message to the second device at a second time; the second time is determined based on at least one of the following: second time information, device status information of the first device , the information length of the fourth message, and the length of the message that the second device can receive.
  • the first message includes the first time information and/or the information length of the third message
  • the second message includes the first time information and/or the information length of the message that the first device can receive.
  • the first time information includes at least one of the following:
  • a first time interval between sending the second message and receiving the third message is
  • the second message includes the first time information
  • the equipment also includes:
  • a first determination module configured to determine the first time information based on the energy storage information of the first device before sending the second message in response to the first message to the second device.
  • the second message includes the second time information and/or the information length of the fourth message
  • the third message includes the second time information and/or the information length of the message that the second device can receive.
  • the second time information includes at least one of the following:
  • a fourth time interval between receiving the first message and sending the fourth message is
  • the second message includes the second time information
  • the equipment also includes:
  • the second determination module is configured to determine the second time information based on the energy storage information of the first device before sending the fourth message to the second device.
  • the device further includes:
  • the fifth sending module is configured to, before receiving the third message from the second device in response to the second message, if it is determined that the energy storage information of the first device is consistent with the first time and /or if the second moment does not match, then the energy supply time factor is sent to the second device; the energy supply time factor is used to adjust the first moment and/or the second moment.
  • said second message includes said powering time factor.
  • the device further includes:
  • a third determination module is configured to determine the energy supply time factor based on the device status information before sending the energy supply time factor to the second device.
  • the second message includes the device status information.
  • the device status information includes one of the following:
  • Energy storage information of the first device is used to indicate that the first device does not delay sending and receiving messages, or delays sending and receiving messages.
  • the first device receives a first message sent by the second device, where the first message includes a request for obtaining target data, and sends a second message in response to the first message to the second device. Thereafter, a fourth message is sent to the second device, the fourth message including the target data.
  • the first device does not immediately send the target data to the second device, but first generates a response message to the first message (i.e., the first message (Second message), the response information is sent to the second device, and only after the second device responds again, the first device sends the target data to the second device.
  • the interaction between the two devices through the second message can avoid the first device sending the target data to other devices (not the second device), thus ensuring improve the accuracy of message sending and receiving.
  • the message sending and receiving process provided by this application is more complete. .
  • the interaction between the two devices through intermediate response messages not only ensures the accuracy of data transmission, but also enables the first device (such as no The source device) has more time to store energy, so that it can send and receive messages when the energy storage is sufficient, ensuring the message sending and receiving effect and the success rate of target data transmission.
  • FIG. 8 is a schematic block diagram of a message sending and receiving device according to another embodiment of the present application. As shown in Figure 8, message sending and receiving devices include:
  • the third sending module 81 is used to send a first message to the first device; the first message includes a request for obtaining target data;
  • the third receiving module 82 is configured to receive a second message from the first device in response to the first message
  • the fourth receiving module 83 is configured to receive a fourth message from the first device; the fourth message includes the target data.
  • the device further includes:
  • a fourth sending module configured to send a third message in response to the second message to the first device before receiving the fourth message from the first device.
  • the fourth sending module includes:
  • the second sending unit is configured to send the third message to the first device at the first time; the first time is based on Determined based on at least one of the following: first time information, device status information of the first device, information length of the third message, and information length of messages that the first device can receive;
  • the fourth receiving module 83 includes:
  • a second receiving unit configured to receive the fourth message at a second time; the second time is determined based on at least one of the following: second time information, device status information of the first device, the fourth message The information length, the information length of the message that the second device can receive.
  • the first message includes the first time information and/or the information length of the third message
  • the second message includes the first time information and/or the information length of the message that the first device can receive.
  • the first time information includes at least one of the following:
  • a first time interval between sending the second message and receiving the third message by the first device is
  • the second message includes the second time information and/or the information length of the fourth message
  • the third message includes the second time information and/or the information length of the message that the second device can receive.
  • the second time information includes one of the following:
  • a fourth time interval between receiving the first message and sending the fourth message by the first device is a fourth time interval between receiving the first message and sending the fourth message by the first device.
  • the device further includes:
  • the fifth receiving module is used to receive the energy supply time factor sent by the first device
  • An adjustment module configured to adjust the first moment and/or the second moment according to the energy supply time factor.
  • said second message includes said powering time factor.
  • the second message includes the device status information of the first device
  • the equipment also includes:
  • a fourth determination module configured to determine the first moment and/or the second time according to the device status information before sending the third message in response to the second message to the first device. time.
  • the device status information includes one of the following:
  • the first device does not delay sending and receiving the first status information of the message
  • the first device delays sending and receiving the second status information of the message
  • Energy storage information of the first device is used to indicate that the first device does not delay sending and receiving messages, or delays sending and receiving messages.
  • the device status information includes the second status information
  • the equipment also includes:
  • a sixth sending module configured to send a third message to the first device in response to the second message, if the response to the third message from the first device is not received within a preset time period. response message, then send the third message to the first device again at a preset time interval until the third message meets the condition for stopping sending;
  • condition for stopping sending includes: receiving the response message; and/or the number of sending times reaches a preset number.
  • the second device sends a first message to the first device, where the first message includes a request for obtaining target data, and receives a second message sent by the first device in response to the first message.
  • a fourth message is received from the first device, the fourth message including target data.
  • the first device does not immediately send the target data to the second device, but first generates a response message to the first message (i.e., the first message (Second message), the response information is sent to the second device, and only after the second device responds again, the first device sends the target data to the second device.
  • the interaction between the two devices through the second message can avoid the first device sending the target data to other devices (not the second device), thus ensuring improve the accuracy of message sending and receiving.
  • the message sending and receiving process provided by this application is more complete. .
  • the interaction between the two devices through intermediate response messages not only ensures the accuracy of data transmission, but also enables the first device (such as no The source device) has more time to store energy, so that it can send and receive messages when the energy storage is sufficient, ensuring the message sending and receiving effect and the success rate of target data transmission.
  • the message transceiving device in the embodiment of the present application may be an electronic device, such as an electronic device with an operating system, or may be a component in the electronic device, such as an integrated circuit or chip.
  • the electronic device may be a terminal or other devices other than the terminal.
  • terminals may include but are not limited to the types of terminals 11 listed above, and other devices may be servers, network attached storage (Network Attached Storage, NAS), etc.
  • NAS Network Attached Storage
  • the message transceiving device provided by the embodiments of the present application can implement each process implemented by the above method embodiments and achieve the same technical effect. To avoid duplication, the details will not be described here.
  • this embodiment of the present application also provides a communication device 900, which includes a processor 901 and a memory 902.
  • the memory 902 stores programs or instructions that can be run on the processor 901, for example.
  • the communication device 900 is a terminal, when the program or instruction is executed by the processor 901, each step of the above message sending and receiving method embodiment is implemented, and the same technical effect can be achieved.
  • the communication device 900 is a network-side device, when the program or instruction is executed by the processor 901, each step of the above message sending and receiving method embodiment is implemented, and the same technical effect can be achieved. To avoid duplication, the details are not repeated here.
  • An embodiment of the present application also provides a terminal, including a processor and a communication interface.
  • the processor is configured to receive a first message sent by a second device; the first message includes acquisition of target data stored in the first device. Requesting; sending a second message to the second device in response to the first message; receiving a third message from the second device in response to the second message; sending to the second device A fourth message is sent; the fourth message includes the target data.
  • This terminal embodiment corresponds to the above-mentioned first device-side method embodiment. Each implementation process and implementation manner of the above-mentioned method embodiment can be applied to this terminal embodiment, and can achieve the same technical effect.
  • An embodiment of the present application also provides a terminal, including a processor and a communication interface.
  • the processor is configured to send a first message to a first device; the first message includes an acquisition request for target data stored in the first device. ; receiving a second message from the first device in response to the first message; sending a third message in response to the second message to the second device; receiving a third message from the second device the fourth message; the fourth message includes the target data.
  • This terminal embodiment corresponds to the above-mentioned second device-side method embodiment. Each implementation process and implementation manner of the above-mentioned method embodiment can be applied to this terminal embodiment, and can achieve the same technical effect.
  • FIG. 10 is a schematic diagram of the hardware structure of a terminal that implements an embodiment of the present application.
  • the terminal 1000 includes but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, processor 1010, etc. at least some parts of it.
  • the terminal 1000 may also include a power supply (such as a battery) that supplies power to various components.
  • the power supply may be logically connected to the processor 1010 through a power management system, thereby managing charging, discharging, and power consumption through the power management system. Management and other functions.
  • the terminal structure shown in FIG. 10 does not constitute a limitation on the terminal.
  • the terminal may include more or fewer components than shown in the figure, or some components may be combined or arranged differently, which will not be described again here.
  • the input unit 1004 may include a graphics processor (Graphics A Processing Unit (GPU) 10041 and a microphone 10042, the GPU 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode.
  • the display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072 .
  • Touch panel 10071 also known as touch screen.
  • the touch panel 10071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 10072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
  • the radio frequency unit 1001 after receiving downlink data from the network side device, can transmit it to the processor 1010 for processing; in addition, the radio frequency unit 1001 can send uplink data to the network side device.
  • the radio frequency unit 1001 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
  • Memory 1009 may be used to store software programs or instructions as well as various data.
  • the memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc.
  • memory 1009 may include volatile memory or nonvolatile memory, or memory 1009 may include both volatile and nonvolatile memory.
  • non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • synchronous dynamic random access memory Synchronous DRAM, SDRAM
  • Double data rate synchronous dynamic random access memory Double Data Rate SDRAM, DDRSDRAM
  • enhanced SDRAM synchronous dynamic random access memory
  • Synch link DRAM synchronous link dynamic random access memory
  • SLDRAM direct memory bus random access memory
  • Direct Rambus RAM Direct Rambus RAM
  • the processor 1010 may include one or more processing units; optionally, the processor 1010 may integrate an application processor and a modem processor, where the application processor mainly handles operations involving the operating system, user interface, application programs, etc. ,
  • the modem processor mainly processes wireless communication signals, such as the baseband processor. It can be understood that the above modem processor may not be integrated into the processor 1010.
  • the processor 1010 is configured to receive a first message sent by a second device; the first message includes a request for obtaining target data; and send a response to the first message to the second device. a second message; sending a fourth message to the second device; the fourth message includes the target data.
  • the processor 1010 is further configured to receive the third message at a first moment; the first moment is determined based on at least one of the following: first time information, device status information of the first device, the The information length of the third message and the length of the message that the first device can receive.
  • the processor 1010 is further configured to send the fourth message to the second device at a second time; the second time is determined based on at least one of the following: second time information, the first device The device status information, the information length of the fourth message, and the length of the message that the second device can receive.
  • the processor 1010 is further configured to determine, according to the energy storage information of the first device, the first message before sending the second message in response to the first message to the second device. time information.
  • the processor 1010 is further configured to determine the second time information based on the energy storage information of the first device before sending the fourth message to the second device.
  • the processor 1010 is further configured to, before receiving the third message from the second device in response to the second message, if it is determined that the energy storage information of the first device is consistent with the If the first moment and/or the second moment do not match, the energy supply time factor is sent to the second device; the energy supply time factor is used to adjust the first moment and/or the second moment.
  • the processor 1010 is further configured to determine the energy supply time factor based on the device status information before sending the energy supply time factor to the second device.
  • the first device receives a first message sent by the second device, where the first message includes a request for obtaining target data, and sends a second message in response to the first message to the second device. Thereafter, a fourth message is sent to the second device, the fourth message including the target data.
  • the first device does not immediately send the target data to the second device, but first generates a response message to the first message (i.e., the first message (Second message), the response information is sent to the second device, and only after the second device responds again, the first device sends the target data to the second device.
  • the interaction between the two devices through the second message can avoid the first device sending the target data to other devices (not the second device), thus ensuring improve the accuracy of message sending and receiving.
  • the message sending and receiving process provided by this application is more complete. .
  • the interaction between the two devices through intermediate response messages not only ensures the accuracy of data transmission, but also enables the first device (such as no The source device) has more time to store energy, so that it can send and receive messages when the energy storage is sufficient, ensuring the message sending and receiving effect and the success rate of target data transmission.
  • the processor 1010 is configured to send a first message to a first device; the first message includes a request for obtaining target data; and receive a request from the first device in response to the first second message of message; A fourth message is received from the first device; the fourth message includes the target data.
  • the processor 1010 is further configured to send the third message to the first device at a first time; the first time is determined based on at least one of the following: first time information, the first device The device status information, the information length of the third message, and the information length of the message that the first device can receive;
  • the processor 1010 is further configured to receive the fourth message at a second time; the second time is determined based on at least one of the following: second time information, device status information of the first device, the The information length of the fourth message and the information length of the message that the second device can receive.
  • the processor 1010 is further configured to receive the energy supply time factor sent by the first device; and adjust the first moment and/or the second moment according to the energy supply time factor.
  • the processor 1010 is further configured to determine the first moment and/or the first time according to the device status information before sending the third message in response to the second message to the first device. Said second moment.
  • the processor 1010 is further configured to: after sending the third message in response to the second message to the first device, if the first device does not receive the response to the second message within a preset time period, The response message of the third message is sent to the first device again according to the preset time interval until the third message meets the stop sending condition; wherein the stop sending condition includes: receiving The response message; and/or the number of sending times reaches a preset number.
  • the second device sends a first message to the first device, where the first message includes a request for obtaining target data, and receives a second message sent by the first device in response to the first message. Afterwards, a fourth message is received from the first device, the fourth message including the target data.
  • the first device does not immediately send the target data to the second device, but first generates a response message to the first message (i.e., the first message (Second message), the response information is sent to the second device, and only after the second device responds again, the first device sends the target data to the second device.
  • the interaction between the two devices through the second message can avoid the first device sending the target data to other devices (not the second device), thus ensuring improve the accuracy of message sending and receiving.
  • the message sending and receiving process provided by this application is more complete. .
  • the interaction between the two devices through intermediate response messages can not only ensure the accuracy of data transmission, but also enable the first device (such as no The source device) has more time to store energy, so that it can send and receive messages when the energy storage is sufficient, ensuring the message sending and receiving effect and the success rate of target data transmission.
  • An embodiment of the present application also provides a network side device, including a processor and a communication interface.
  • the processor is configured to receive a first message sent by a second device; the first message includes a response to target data stored in the first device. Please get request; send a second message to the second device in response to the first message; receive a third message from the second device in response to the second message; send a second message to the second device.
  • a fourth message is sent; the fourth message includes the target data.
  • This network-side device embodiment corresponds to the above-mentioned first device-side method embodiment.
  • Each implementation process and implementation manner of the above-mentioned method embodiment can be applied to this network-side device embodiment, and can achieve the same technical effect.
  • An embodiment of the present application also provides a network side device, including a processor and a communication interface.
  • the processor is configured to send a first message to the first device; the first message includes a response to the target data stored in the first device.
  • a fourth message from the second device; the fourth message includes the target data.
  • This network-side device embodiment corresponds to the above-mentioned second device-side method embodiment.
  • Each implementation process and implementation manner of the above-mentioned method embodiment can be applied to this network-side device embodiment, and can achieve the same technical effect.
  • the embodiment of the present application also provides a network side device.
  • the network side device 1100 includes: an antenna 111 , a radio frequency device 112 , a baseband device 113 , a processor 114 and a memory 115 .
  • the antenna 111 is connected to the radio frequency device 112 .
  • the radio frequency device 112 receives information through the antenna 111 and sends the received information to the baseband device 113 for processing.
  • the baseband device 113 processes the information to be sent and sends it to the radio frequency device 112.
  • the radio frequency device 112 processes the received information and then sends it out through the antenna 111.
  • the method performed by the network side device in the above embodiment can be implemented in the baseband device 113, which includes a baseband processor.
  • the baseband device 113 may include, for example, at least one baseband board on which multiple chips are disposed, as shown in FIG. Program to perform the network device operations shown in the above method embodiments.
  • the network side device 113 may also include a network interface 116, which is, for example, a common public radio interface (CPRI).
  • a network interface 116 which is, for example, a common public radio interface (CPRI).
  • CPRI common public radio interface
  • the network side device 1100 in this embodiment of the present invention also includes: instructions or programs stored in the memory 115 and executable on the processor 114.
  • the processor 114 calls the instructions or programs in the memory 115 to execute each of the steps shown in Figure 6. The method of module execution and achieving the same technical effect will not be described in detail here to avoid duplication.
  • Embodiments of the present application also provide a readable storage medium.
  • Programs or instructions are stored on the readable storage medium.
  • the program or instructions are executed by a processor, each process of the above message sending and receiving method embodiments is implemented, and the same can be achieved. The technical effects will not be repeated here to avoid repetition.
  • the processor is the processor in the terminal described in the above embodiment.
  • the readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.
  • An embodiment of the present application further provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the above message sending and receiving method embodiments. Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.
  • chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-chip or system-on-chip, etc.
  • Embodiments of the present application further provide a computer program/program product.
  • the computer program/program product is stored in a storage medium.
  • the computer program/program product is executed by at least one processor to implement the above message sending and receiving method embodiments.
  • Each process can achieve the same technical effect. To avoid repetition, we will not go into details here.
  • Embodiments of the present application also provide a message sending and receiving system, including: a terminal and a network side device.
  • the terminal can be used to perform the steps of the message sending and receiving method on the first device side as described above.
  • the network side device can be used to perform The steps of the message sending and receiving method on the second device side as described above.
  • the terminal may be configured to perform the steps of the message sending and receiving method on the second device side as described above
  • the network side device may be configured to perform the steps of the message sending and receiving method on the first device side as described above.
  • the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation.
  • the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk , CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of this application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请公开了一种消息收发方法及设备,属于信息处理技术领域,本申请实施例的消息收发方法包括:接收第二设备发送的第一消息;所述第一消息包括对存储于所述第一设备中的目标数据的获取请求;向所述第二设备发送用于响应所述第一消息的第二消息;接收来自所述第二设备的、用于响应所述第二消息的第三消息;向所述第二设备发送第四消息;所述第四消息包括所述目标数据。该技术方案确保了消息收发效果以及目标数据传输的成功率。

Description

消息收发方法及设备
交叉引用
本申请要求在2022年07月04日提交的申请号为202210780063.8的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本申请属于信息处理技术领域,具体涉及一种消息收发方法及设备。
背景技术
在消息收发过程中,接收端的无源设备要求有足够的接收信号功率,当信号的接收电平较小时,需要较长的时间进行储能,储能不足将导致无法接收信号或者信号接收效果较差。以无源设备为标签机为例,假设读取器需要从标签机内获取数据,标签机的电路设计要求有足够的接收信号功率,在标签机接收读取器发送的消息时,通过整流器和稳压器后输出给数字信号处理单元,该阶段需要一直有稳压器的输出电流供给数字信号处理单元,这对于标签机的供电有一定的要求。当信号的接收电平较小时,标签机通过一定时间的能量累计可以达到一定的输出电压和输出电流,以驱动数字信号单元进行信号的开关调制。但是,如果标签机在发送消息阶段时间持续较长,则会对前期能量的累计要求比较高,从而影响信号收发效果。
发明内容
本申请实施例提供一种消息收发方法及设备,能够解决无源设备在储能不足时消息收发效果较差的问题。
第一方面,提供了一种消息收发方法,应用于第一设备,该方法包括:接收第二设备发送的第一消息;所述第一消息包括对目标数据的获取请求;向所述第二设备发送用于响应所述第一消息的第二消息;向所述第二设备发送第四消息;所述第四消息包括所述目标数据。
第二方面,提供了一种消息收发设备,该设备包括:第一接收模块,用于接收第二设 备发送的第一消息;所述第一消息包括对目标数据的获取请求;第一发送模块,用于向所述第二设备发送用于响应所述第一消息的第二消息;第二发送模块,用于向所述第二设备发送第四消息;所述第四消息包括所述目标数据。
第三方面,提供了一种消息收发方法,应用于第二设备,该方法包括:向第一设备发送第一消息;所述第一消息包括对目标数据的获取请求;接收来自所述第一设备的、用于响应所述第一消息的第二消息;接收来自所述第二设备的第四消息;所述第四消息包括所述目标数据。
第四方面,提供了一种消息收发设备,该设备包括:第三发送模块,用于向第一设备发送第一消息;所述第一消息包括对目标数据的获取请求;第三接收模块,用于接收来自所述第一设备的、用于响应所述第一消息的第二消息;第四接收模块,用于接收来自所述第二设备的第四消息;所述第四消息包括所述目标数据。
第五方面,提供了一种终端,该终端包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的消息收发方法的步骤,或者,所述程序或指令被所述处理器执行时实现如第三方面所述的消息收发方法的步骤。
第六方面,提供了一种网络侧设备,该网络侧设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的消息收发方法的步骤,或者,所述程序或指令被所述处理器执行时实现如第三方面所述的消息收发方法的步骤。
第七方面,提供了一种消息收发系统,包括:终端及网络侧设备,所述终端可用于执行如第一方面所述的消息收发方法的步骤,所述网络侧设备可用于执行如第三方面所述的消息收发方法的步骤。
第八方面,提供了一种消息收发系统,包括:终端及网络侧设备,所述终端可用于执行如第三方面所述的消息收发方法的步骤,所述网络侧设备可用于执行如第一方面所述的消息收发方法的步骤。
第九方面,提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤,或者实现如第三方面所述的方法的步骤。
第十方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法,或者实现如第三方面所述的方法。
第十一方面,提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现如第一方面所述的方法,或者实现如第三方面所述的方法。
在本申请实施例中,第一设备接收第二设备发送的第一消息,该第一消息包括对目标数据的获取请求,向第二设备发送用于响应第一消息的第二消息。之后,向第二设备发送第四消息,第四消息包括目标数据。可见,在第二设备需要获取第一设备中的目标数据并发出第一消息后,第一设备并非是立即将目标数据发送至第二设备,而是先产生第一消息的响应消息(即第二消息),将该响应信息发送给第二设备,然后才会将目标数据发送给第二设备。由于第二消息属于中间响应消息,即不携带真实的目标数据,因此设备双方通过第二消息的交互,能够避免第一设备将目标数据发送至其他设备(非第二设备)的情况,从而确保了消息收发的准确性。并且,相较于现有技术的消息收发流程,比如第一设备接收到来自第二设备的第一消息后、直接将目标数据发送给第二设备而言,本申请提供的消息收发流程更加完善。此外,在设备盘点模式(如第二设备从第一设备中获取数据进行盘点)下,设备双方通过中间响应消息的交互,不仅能确保数据传输的准确性,还能使第一设备(如无源设备)有更多的时间进行储能,从而在储能充足的情况下收发消息,确保消息收发效果以及目标数据传输的成功率。
附图说明
图1是本申请实施例可应用的一种无线通信系统的框图;
图2是根据本申请一实施例的一种消息收发方法的示意性流程图;
图3是根据本申请一实施例的一种消息收发方法的示意性时序图;
图4是根据本申请另一实施例的一种消息收发方法的示意性流程图;
图5是根据本申请另一实施例的一种消息收发方法的示意性时序图;
图6是根据本申请再一实施例的一种消息收发方法的示意性时序图;
图7是根据本申请一实施例的一种消息收发设备的示意性框图;
图8是根据本申请另一实施例的一种消息收发设备的示意性框图;
图9是根据本申请一实施例的一种通信设备的示意性框图;
图10是根据本申请一实施例的一种终端的示意性框图;
图11是根据本申请一实施例的一种网络侧设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”所区别的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”一般表示前后关联对象是一种“或”的关系。
值得指出的是,本申请实施例所描述的技术不限于长期演进型(Long Term Evolution,LTE)/LTE的演进(LTE-Advanced,LTE-A)系统,还可用于其他无线通信系统,诸如码分多址(Code Division Multiple Access,CDMA)、时分多址(Time Division Multiple Access,TDMA)、频分多址(Frequency Division Multiple Access,FDMA)、正交频分多址(Orthogonal Frequency Division Multiple Access,OFDMA)、单载波频分多址(Single-carrier Frequency-Division Multiple Access,SC-FDMA)和其他系统。本申请实施例中的术语“系统”和“网络”常被可互换地使用,所描述的技术既可用于以上提及的系统和无线电技术,也可用于其他系统和无线电技术。
图1示出本申请实施例可应用的一种无线通信系统的框图。无线通信系统包括终端11和网络侧设备12。其中,终端11可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)或称为笔记本电脑、个人数字助理(Personal Digital Assistant,PDA)、掌上电脑、上网本、超级移动个人计算机(ultra-mobile personal computer,UMPC)、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴式设备(Wearable Device)、车载设备(Vehicle User Equipment,VUE)、行人终端(Pedestrian User Equipment,PUE)、智能家居(具有无线通信功能的家居设备,如冰箱、电视、洗衣机或者家具等)、游戏机、个人计算机(personal computer,PC)、柜员机或者自助机等终端侧设备,可穿戴式设备包括:智能手表、智能手环、智能耳机、智能眼镜、智能首饰(智能手镯、智能手链、智能戒指、智能项链、智能脚镯、智能脚链等)、智能腕带、智能服装等。需要说明的是,在本申请实施例并不限定终端11的具体类型。网络侧设备12可以包括接入网设备或核心 网设备,其中,接入网设备12也可以称为无线接入网设备、无线接入网(Radio Access Network,RAN)、无线接入网功能或无线接入网单元。接入网设备12可以包括基站、WLAN接入点或WiFi节点等,基站可被称为节点B、演进节点B(Evolved Node B,eNB)、下一代基站(gNB)、接入点、基收发机站(Base Transceiver Station,BTS)、无线电基站、无线电收发机、基本服务集(Basic Service Set,BSS)、扩展服务集(Extended Service Set,ESS)、家用B节点、家用演进型B节点、发送接收点(Transmitting Receiving Point,TRP)或所述领域中其他某个合适的术语,只要达到相同的技术效果,所述基站不限于特定技术词汇,需要说明的是,在本申请实施例中仅以NR系统中的基站为例进行介绍,并不限定基站的具体类型。
下面结合附图,通过一些实施例及其应用场景对本申请实施例提供的消息收发方法进行详细地说明。
图2是根据本申请一实施例的一种消息收发方法的示意性流程图,本实施例中,消息收发方法应用于第一设备,第一设备可以是如图1所示的终端11或者网络侧设备12。如图2所述,该方法包括:
S202,接收第二设备发送的第一消息;第一消息包括对目标数据的获取请求。
其中,目标数据可存储于第一设备中,也可存储于与第一设备相关联的其他设备或者存储器中。
S204,向第二设备发送用于响应第一消息的第二消息。
S206,向第二设备发送第四消息;第四消息包括目标数据。
其中,若目标数据存储于第一设备中,则第一设备从本地获取目标数据携带于第四消息中发送给第二设备。若目标数据存储于与第一设备相关联的其他设备或者存储器中,则第一设备从其他设备或者存储器中获取目标数据,然后再将目标数据携带于第四消息中发送至第二设备。
在本申请实施例中,第一设备接收第二设备发送的第一消息,该第一消息包括对目标数据的获取请求,向第二设备发送用于响应第一消息的第二消息。之后,向第二设备发送第四消息,第四消息包括目标数据。可见,在第二设备需要获取第一设备中的目标数据并发出第一消息后,第一设备并非是立即将目标数据发送至第二设备,而是先产生第一消息的响应消息(即第二消息),将该响应信息发送给第二设备,并在第二设备再次响应之后,第一设备才会将目标数据发送给第二设备。由于第二消息属于中间响应消息,即不携带真实的目标数据,因此设备双方通过第二消息的交互,能够避免第一设备将目标数据发送至其他设备(非第二设备)的情况,从而确保了消息收发的准确性。并且,相较于现有技术 的消息收发流程,比如第一设备接收到来自第二设备的第一消息后、直接将目标数据发送给第二设备而言,本申请提供的消息收发流程更加完善。此外,在设备盘点模式(如第二设备从第一设备中获取数据进行盘点)下,设备双方通过中间响应消息的交互,不仅能确保数据传输的准确性,还能使第一设备(如无源设备)有更多的时间进行储能,从而在储能充足的情况下收发消息,确保消息收发效果以及目标数据传输的成功率。
在一个实施例中,第一设备向第二设备发送第四消息之前,可接收来自第二设备的、用于响应第二消息的第三消息,并在成功接收到第三消息之后,再向第二设备发送第四消息。由于第三消息属于中间响应消息,即不携带真实的目标数据,因此设备双方通过第三消息的交互,能够使消息收发效果更佳,这在多个设备之间同时交互的场景中体现更加突出。例如,若多个第二设备同时向第一设备发送第一消息,以获取目标数据。如果第一设备向每个第二设备发送第二消息之后,接着向每个第二设备发送第四消息,就会导致第一设备同时向多个第二设备发送数据的情况,从而造成数据传输拥堵现象,影响数据传输的成功率。而如果第一设备先等待第二设备发送第三消息,并在成功接收到第三消息之后、再向发送该第三消息的第二设备发送第四消息,就能够避免同时向多个第二设备发送数据的情况,从而避免数据传输拥堵现象,提升数据传输的成功率。
图3是根据本申请一实施例的一种消息收发方法的示意性时序图。如图3所示,图中以竖线排列的序列表示时间轴线,时间轴线上从左到右依次表示时间先后顺序。若无特别说明,本申请其他实施例所对应的附图中,均以竖线排列的序列表示时间轴线。第二设备首先向第一设备发送第一消息,第一设备在接收到第一消息的时间t之后,向第一设备发送第二消息,其中,时间t表示第一设备对第一消息的处理时间,包括解析第一消息。然后,第一设备接收来自第二设备的第三消息,T1表示第一设备发送第二消息和接收第三消息之间的时间间隔,T1可大于或等于0。然后,第一设备向第二设备发送包括目标数据的第四消息,T2表示第一设备接收第三消息和发送第四消息之间的时间间隔,T2可大于或等于0。
本实施例中,第二消息可以由第一设备生成,比如生成一个16比特的随机字符,作为第二消息发送给第二设备。由于第三消息是为了响应第二消息,因此第三消息至少包括由第一设备发送的16比特的随机字符,例如,第三消息为ACK(Acknowledgement,确认字符)指令的形式,则第二设备通过ACK指令将16比特的随机字符反馈给第一设备,以触发第一设备向第二设备发送目标数据。
以第一设备为标签机、第二设备为读取器为例,假设在盘点模式下,读取器需从标签机中查询目标数据,则读取器首先向标签机发送查询指令(Query),该查询指令即为第一 消息。然后,标签机接收到查询指令后,生成一个16比特的随机字符(即RN16),将RN16发送给读取器。然后,读取器通过ACK指令的形式将RN16反馈给标签机,以触发标签机向读取器发送目标数据。
在一个实施例中,第一设备接收来自第二设备的第三消息时,可以在发送第二消息之后立即接收第三消息,此时图3中所示的T1为0。也可在发送第二消息之后等待一段时间后接收第三消息,即延时接收第三消息,此时图3中所示的T1大于0。可选地,在第一时刻接收第三消息,其中,第一时刻基于以下至少一项确定:第一时间信息、第一设备的设备状态信息、第三消息的信息长度、第一设备能够接收的消息的长度。
其中,第一时间信息可包括以下至少一项:第一时刻、第一设备发送第二消息与接收第三消息之间的第一时间间隔。第一时刻为第一设备发送第二消息之后的某个时刻。若第一时间信息包括第一时刻,即第一设备能够直接获知在哪个时刻接收第三消息。比如,第一设备在10:00:00点(即10点整)发送了第二消息,第一时刻为10:00:10点(即10点0分10秒),则第一设备在10:00:10点接收第三消息。若第一时间信息包括第一时间间隔,则第一设备能够获知发送第二消息之后需等待的时间间隔。比如,第一设备在10:00:00点(即10点整)发送了第二消息,第一时间间隔为1秒,则第一设备在发送第二消息之后,等待1秒后接收第三消息。
第一设备的设备状态信息可包括以下至少一项:不延时收发消息的第一状态信息、延时收发消息的第二状态信息、第一设备的储能信息。其中,储能信息用于表征第一设备不延时收发消息、或者延时收发消息。比如,储能信息包括具体的储备能量,或者储备能量是否需要延时收发消息。
第一时间信息、第一设备的设备状态信息、第三消息的信息长度以及第一设备能够接收的消息的长度,这几种信息的携带方式有多种,以下详细说明。
在一个实施例中,第一消息或者第二消息包括第一时间信息。在第一消息包括第一时间信息的情况下,第一时间信息由第二设备确定并发送给第一设备。第一设备接收到第一消息后,可根据第一消息携带的第一时间信息,确定第一时刻,进而在第一时刻接收来自第二设备的第三消息。
其中,第二设备在确定第一时间信息时,可以根据第一设备和第二设备预先约定或配置好的信息来确定,比如,第一设备和第二设备预先约定或配置了第一时间信息。或者,第二设备可根据第一设备的设备状态信息来确定第一时间信息。基于此,第一设备可预先向第二设备发送设备状态信息,以使第二设备在发送第一消息之前,即可根据第一设备发送的设备状态信息确定第一时间信息,进而将第一时间信息携带在第一消息中一并发送给 第一设备。
在第二消息包括第一时间信息的情况下,第一时间信息由第一设备确定并发送给第二设备。第二设备接收到第二消息后,可根据第二消息携带的第一时间信息,确定第一时刻,进而在第一时刻向第一设备发送第三消息。
其中,第一设备在确定第一时间信息时,可根据第一设备和第二设备预先约定或配置好的信息来确定,比如,第一设备和第二设备预先约定或配置了第一时间信息。或者,第一设备可根据自身的设备状态信息来确定第一时间信息。第一设备在接收第三消息之前(比如在接收到第一消息之后、或者发送第二消息之后),先根据自身的设备状态信息确定第一时间信息,然后将第一时间信息携带在第二消息中一并发送给第二设备,以使第二设备根据第一时间信息确定第一时刻,并在第一时刻向第一设备发送第三消息。
在一个实施例中,第一消息包括第三消息的信息长度。在第一消息包括第三消息的信息长度的情况下,第三消息的信息长度由第二设备确定并发送给第一设备。第一设备接收到第一消息后,可根据第一消息携带的第三消息的信息长度,确定第一时刻,进而在第一时刻接收来自第二设备的第三消息。
可选地,第一设备和第二设备可以预先约定或配置好消息收发过程中各个消息的信息长度,包括第三消息的信息长度。这样,第二设备可根据预先约定或配置好的信息,确定第三消息的信息长度,进而将第三消息的信息长度携带在第一消息中一并发送给第一设备。
在一个实施例中,第二消息包括第一设备能够接收的消息的信息长度,第一设备能够接收的消息的信息长度由第一设备确定并发送给第二设备。可选地,第一设备可根据自身的设备状态信息确定能够接收消息的信息长度,比如,确定当前的储能信息能够收发的消息的信息长度是多少。第二设备接收到第二消息后,可根据第二消息携带的第一设备能够接收的消息的信息长度,确定第一时刻,进而在第一时刻向第一设备发送第三消息,此时,第二设备发送的第三消息的长度应和第一设备能够接收的消息的信息长度相匹配,比如,第三消息的长度小于或等于第一设备能够接收的消息的信息长度。
可选地,由于第二消息是由第一设备生成的随机字符,第三消息是针对第二消息的响应消息,因此,第一设备可以根据所生成的第二消息来确定第三消息的信息长度,进而将第三消息的信息长度确定为第一设备能够接收的消息的信息长度。比如,第一设备生成的第二消息的信息长度为16比特,则第三消息的信息长度可以是16比特,或者,在第三消息中需要携带其他信息的情况下,第三消息的信息长度可以大于16比特,比如32比特。
可选地,第一设备也可根据和第二设备预先约定或配置好的信息,确定第一设备能够 接收的消息的信息长度,进而将第一设备能够接收的消息的信息长度携带在第二消息中一并发送给第二设备。
在一个实施例中,第二消息包括设备状态信息,也即,第一设备的设备状态信息由第一设备通过第二消息发送给第二设备。设备状态信息包括以下其中一项:不延时收发消息的第一状态信息、延时收发消息的第二状态信息、第一设备的储能信息,其中,储能信息用于表征第一设备不延时收发消息、或者延时收发消息。可选地,第一设备可根据自身的储能信息来确定设备状态信息是第一状态信息或者第二状态信息。第二设备接收到第二消息后,根据第二消息携带的设备状态信息确定第一时刻,进而在第一时刻向第一设备发送第三消息。
在一个实施例中,执行S206时,即发送第四消息时,可以在接收第三消息之后立即发送第四消息,此时图3中所示的T2为0。也可在接收第三消息之后等待一段时间后发送第四消息,即延时发送第四消息,此时图3中所示的T2大于0。可选地,第一设备在第二时刻向第二设备发送第四消息,其中,第二时刻基于以下至少一项确定:第二时间信息、第一设备的设备状态信息、第四消息的信息长度、第二设备能够接收的消息的长度。
其中,第二时间信息可包括以下至少一项:第二时刻、第一设备发送第二消息与发送第四消息之间的第二时间间隔、第一设备接收第三消息与发送第四消息之间的第三时间间隔、接收第一消息与发送第四消息之间的第四时间间隔。第二时刻为第一设备接收第三消息之后的某个时刻。若第二时间信息包括第二时刻,即第二设备能够直接获知在哪个时刻发送第四消息。比如,第一设备在10:00:00点(即10点整)接收了第三消息,第二时刻为10:00:10点(即10点0分10秒),则第一设备在10:00:10点发送第四消息。若第二时间信息包括第二时间间隔,则第一设备能够获知发送第二消息之后需等待的时间间隔。比如,第一设备在10:00:00点(即10点整)发送了第二消息,第二时间间隔为1秒,则第一设备在发送第二消息之后,等待1秒后发送第四消息。需要说明的是,由于第一设备在发送第四消息之后需接收第三消息,因此第二时间间隔应大于发送第二消息和接收第三消息之间的时间间隔。若第二时间信息包括第三时间间隔,则第一设备能够获知接收第三消息之后需等待的时间间隔。比如,第一设备在10:00:00点(即10点整)接收了第三消息,第三时间间隔为1秒,则第一设备在接收第三消息之后,等待1秒后发送第四消息。
第一设备的设备状态信息可包括以下至少一项:不延时收发消息的第一状态信息、延时收发消息的第二状态信息、第一设备的储能信息。其中,储能信息用于表征第一设备不延时收发消息、或者延时收发消息。
第二时间信息、第一设备的设备状态信息、第四消息的信息长度以及第二设备能够接 收的消息的长度,这几种信息的携带方式有多种,以下详细说明。
在一个实施例中,第二消息或者第三消息包括第二时间信息。
在第二消息包括第二时间信息的情况下,第二时间信息由第一设备确定并发送给第二设备。第二设备接收到第二消息后,可根据第二消息携带的第二时间信息,确定第二时刻,进而在第二时刻接收第一设备发送的第四消息。
其中,第一设备在确定第二时间信息时,可以根据第一设备和第二设备预先约定或配置好的信息来确定,比如,第一设备和第二设备预先约定或配置了第二时间信息。或者,第一设备可根据自身的设备状态信息来确定第二时间信息。第一设备在发送第四消息之前,先根据自身的设备状态信息确定第二时间信息,然后将第二时间信息携带在第二消息中一并发送给第二设备。第一设备在第二时刻向第二设备发送第四消息,同时,第二设备根据第二消息中携带的第二时间信息确定第二时刻,并在第二时刻接收第一设备发送的第四消息。
在第三消息包括第二时间信息的情况下,第二时间信息由第二设备确定并发送给第一设备。第一设备接收到第三消息后,可根据第三消息携带的第二时间信息,确定第二时刻,进而在第二时刻向第二设备发送第四消息。
其中,第二设备在确定第二时间信息时,可根据第一设备和第二设备预先约定或配置好的信息来确定,比如,第一设备和第二设备预先约定或配置了第二时间信息。或者,第二设备可根据第一设备的设备状态信息来确定第二时间信息。基于此,第一设备可预先向第二设备发送设备状态信息,以使第二设备在第一设备发送第四消息之前,即可根据第一设备发送的设备状态信息确定第二时间信息,进而将第二时间信息携带在第三消息中一并发送给第一设备。
在一个实施例中,第二消息包括第四消息的信息长度。在第二消息包括第四消息的信息长度的情况下,第四消息的信息长度由第一设备确定并发送给第二设备。第二设备接收到第二消息后,可根据第二消息携带的第四消息的信息长度,确定第二时刻,进而在第二时刻接收第一设备发送的第四消息。
其中,第一设备和第二设备可以预先约定或配置好消息收发过程中各个消息的信息长度,包括第四消息的信息长度。这样,第一设备可根据预先约定或配置好的信息,确定第四消息的信息长度,进而将第四消息的信息长度携带在第二消息中一并发送给第二设备。
或者,由于目标数据存储于第一设备中,因此,第一设备可以根据目标数据来确定第四消息的信息长度。比如,目标数据的数据长度为32比特,则第四消息的信息长度可以是32比特,即目标数据的数据长度,或者,在第四消息中需要携带其他信息的情况下, 第四消息的信息长度可以大于32比特,比如48比特。
在一个实施例中,第三消息包括第二设备能够接收的消息的信息长度。第二设备能够接收的消息的信息长度由第二设备确定并发送给第一设备。第一设备接收到第三消息后,可根据第三消息携带的第二设备能够接收的消息的信息长度确定第二时刻,进而在第二时刻向第二设备发送第四消息。
可选地,第二设备可根据和第一设备预先约定或配置好的信息,确定第二设备能够接收的消息的信息长度,进而将第二设备能够接收的消息的信息长度携带在第三消息中一并发送给第一设备。可选地,第二设备可根据待获取的目标数据,预估第二设备能够接收的消息的信息长度。
在一个实施例中,第二消息包括设备状态信息,也即,第一设备的设备状态信息由第一设备通过第二消息发送给第二设备。设备状态信息包括以下其中一项:不延时收发消息的第一状态信息、延时收发消息的第二状态信息、第一设备的储能信息,其中,储能信息用于表征第一设备不延时收发消息、或者延时收发消息。可选地,第一设备可根据自身的储能信息来确定设备状态信息是第一状态信息或者第二状态信息。第二设备接收到第二消息后,根据第二消息携带的设备状态信息确定第二时刻,进而在第二时刻接收第一设备发送的第四消息。
由上述实施例可看出,在第二设备需要获取第一设备中的目标数据并发出第一消息后,第一设备并非是立即将目标数据发送至第二设备,而是能够基于时间信息(包括第一时间信息和/或第二时间信息)、第一设备的设备状态信息和/或待收发消息的信息长度来确定收发消息的时刻,包括接收第三消息的第一时刻、以及发送第四消息的第二时刻,因此,第一设备在消息收发过程中能够有更多的时间来累积能量,从而在第一设备能量充足(如具有足够的收发信号功率)的情况下进行消息收发,避免因设备能量不足而影响消息收发效果或者无法收发消息的情况。因此,第一设备在消息收发过程中能够有更多的时间来累积能量,从而在第一设备能量充足(如具有足够的收发信号功率)的情况下进行消息收发,避免因设备能量不足而影响消息收发效果或者无法收发消息的情况。
在一个实施例中,第一设备接收来自第二设备的第三消息之前,可确定自身的储能信息与第一时刻和/或第二时刻是否匹配。若不匹配,则向第二设备发送供能时间因子,该供能时间因子用于第二设备调整第一时刻和/或第二时刻。其中,第一设备的储能信息与第一时刻和/或第二时刻匹配,说明第一设备的储能信息足以按照第一时刻和/或第二时刻收发消息,此时不需要向第二设备发送供能时间因子。第一设备的储能信息与第一时刻和/或第二时刻不匹配,说明第一设备的储能信息不足以按照第一时刻和/或第二时刻收发消 息,此时需要增大第一时刻和/或第二时刻,从而使第一设备有更多的时间储备能量,确保第一设备的储能信息足以按照第一时刻和/或第二时刻收发消息。
储能信息可包括具体的储备能量和/或储备能量是否满足当前的调度时间需求。若储能信息包括储备能量,则第一设备可根据储备能量的值,确定出当前的储备能量是否满足调度时间需求。若储备能量满足调度时间需求,则说明第一设备的储能信息与第一时刻和/或第二时刻匹配;若储备能量不满足调度时间需求,则说明第一设备的储能信息与第一时刻和/或第二时刻不匹配。
可选地,第二消息包括供能时间因子,即,供能时间因子可携带于第二消息中发送至第二设备,第二设备根据供能时间因子调整第一时刻和/或第二时刻。
第一设备可根据第一设备的设备状态信息确定供能时间因子。设备状态信息可包括以下至少一项:不延时收发消息的第一状态信息、延时收发消息的第二状态信息、第一设备的储能信息。可选地,若设备状态信息为第一状态信息,则说明第一设备的储备能量较多,可确定第一设备的储能信息与第一时刻和/或第二时刻匹配。若设备状态信息为第二状态信息,则说明第一设备的储备能量较少,此时可进一步根据储备能量的值确定储能信息与第一时刻和/或第二时刻匹配。
本实施例中,第一设备可根据自身的设备状态信息确定供能时间因子,由于该供能时间因子可作用于第一时刻和/或第二时刻,因此使得消息收发的延时时间是动态可调整的,从而能够灵活地根据第一设备的设备状态信息动态调整第一设备和第二设备之间收发消息的时间,避免因设备能量不足而影响消息收发效果或者无法收发消息的情况。
图4是根据本申请另一实施例的一种消息收发方法的示意性流程图,本实施例中,消息收发方法应用于第二设备,第二设备可以是如图1所示的终端11或者网络侧设备12。如图4所述,该方法包括:
S402,向第一设备发送第一消息;第一消息包括对获取请求。
其中,目标数据可存储于第一设备中,也可存储于与第一设备相关联的其他设备或者存储器中。
S404,接收来自第一设备的、用于响应第一消息的第二消息。
S408,接收来自第一设备的第四消息;第四消息包括目标数据。
本实施例中,第二消息可以由第一设备生成,比如生成一个16比特的随机字符,作为第二消息发送给第二设备。由于第三消息是为了响应第二消息,因此第三消息至少包括由第一设备发送的16比特的随机字符,例如,第三消息为ACK(Acknowledgement,确认字符)指令的形式,则第二设备通过ACK指令将16比特的随机字符反馈给第一设备, 以触发第一设备向第二设备发送目标数据。第一设备和第二设备之间的消息收发机制,与图3所示实施例相同,此处不再赘述。
本申请实施例中,第二设备向第一设备发送第一消息,该第一消息包括对目标数据的获取请求,接收第一设备发送的用于响应第一消息的第二消息。之后,接收来自第一设备的第四消息,第四消息包括目标数据。可见,在第二设备需要获取第一设备中的目标数据并发出第一消息后,第一设备并非是立即将目标数据发送至第二设备,而是先产生第一消息的响应消息(即第二消息),将该响应信息发送给第二设备,并在第二设备再次响应之后,第一设备才会将目标数据发送给第二设备。由于第二消息属于中间响应消息,即不携带真实的目标数据,因此设备双方通过第二消息的交互,能够避免第一设备将目标数据发送至其他设备(非第二设备)的情况,从而确保了消息收发的准确性。并且,相较于现有技术的消息收发流程,比如第一设备接收到来自第二设备的第一消息后、直接将目标数据发送给第二设备而言,本申请提供的消息收发流程更加完善。此外,在设备盘点模式(如第二设备从第一设备中获取数据进行盘点)下,设备双方通过中间响应消息的交互,不仅能确保数据传输的准确性,还能使第一设备(如无源设备)有更多的时间进行储能,从而在储能充足的情况下收发消息,确保消息收发效果以及目标数据传输的成功率。
在一个实施例中,第二设备接收来自第一设备的第四消息之前,可先向第一设备发送用于响应第二消息的第三消息,然后再接收来自第一设备的第四消息。由于第三消息属于中间响应消息,即不携带真实的目标数据,因此设备双方通过第三消息的交互,能够使消息收发效果更佳,这在多个设备之间同时交互的场景中体现更加突出。例如,若多个第二设备同时向第一设备发送第一消息,以获取目标数据。如果第一设备向每个第二设备发送第二消息之后,接着向每个第二设备发送第四消息,就会导致第一设备同时向多个第二设备发送数据的情况,从而造成数据传输拥堵现象,影响数据传输的成功率。而如果第一设备先等待第二设备发送第三消息,并在成功接收到第三消息之后、再向发送该第三消息的第二设备发送第四消息,就能够避免同时向多个第二设备发送数据的情况,从而避免数据传输拥堵现象,提升数据传输的成功率。
在一个实施例中,第二设备向第一设备发送第三消息时,可以在接收到第二消息之后立即发送第三消息,此时图3中所示的T1为0。也可在接收到第二消息之后等待一段时间后发送第三消息,即延时发送第三消息,此时图3中所示的T1大于0。可选地,在第一时刻发送第三消息,其中,第一时刻基于以下至少一项确定:第一时间信息、第一设备的设备状态信息、第三消息的信息长度、所述第一设备能够接收的消息的长度。
其中,第一时间信息可包括以下至少一项:第一时刻、第一设备发送第二消息与接收 第三消息之间的第一时间间隔。第一时刻为第一设备发送第二消息之后的某个时刻。
第一设备的设备状态信息可包括以下至少一项:不延时收发消息的第一状态信息、延时收发消息的第二状态信息、第一设备的储能信息。其中,储能信息用于表征第一设备不延时收发消息、或者延时收发消息。比如,储能信息包括具体的储备能量,或者储备能量是否需要延时收发消息。
第一时间信息、第一设备的设备状态信息、第三消息的信息长度以及第一设备能够接收的消息的长度,这几种信息的携带方式和上述实施例中相同,此处不再赘述。
在一个实施例中,执行S406时,即接收第四消息时,可以在发送第三消息之后立即接收第四消息,此时图3中所示的T2为0。也可在发送第三消息之后等待一段时间后接收第四消息,即延时接收第四消息,此时图3中所示的T2大于0。可选地,第二设备在第二时刻接收第四消息,其中,第二时刻基于以下至少一项确定:第二时间信息、第一设备的设备状态信息、第四消息的信息长度。
其中,第二时间信息可包括以下至少一项:第二时刻、第一设备发送第二消息与发送第四消息之间的第二时间间隔、第一设备接收第三消息与发送第四消息之间的第三时间间隔、第一设备接收第一消息与发送第四消息之间的第四时间间隔。第二时刻为第一设备接收第三消息之后的某个时刻。
第一设备的设备状态信息可包括以下至少一项:不延时收发消息的第一状态信息、延时收发消息的第二状态信息、第一设备的储能信息。其中,储能信息用于表征第一设备不延时收发消息、或者延时收发消息。
在一个实施例中,若设备状态信息包括第一状态信息,这说明第一设备在后续时刻已准备好收发消息。
若设备状态信息包括第二状态信息,这说明第一设备在后续时刻尚未准备好收发消息。因此,第二设备向第一设备发送用于响应第二消息的第三消息之后,若在预设时长内未接收到第一设备对第三消息的响应消息,则可按照预设时间间隔再次向第一设备发送第三消息,直至第三消息满足停止发送条件。其中,停止发送条件包括:第一设备对第三消息的接收到响应消息;和/或,第三消息的发送次数达到预设次数。
例如,当第一设备的设备状态信息为延时收发消息的第二状态信息时,说明第一设备需要延时收发后续消息,比如延时接收ACK。此时,第二设备可以多次尝试发送ACK,若在预设时长(比如10毫秒)内接收到第一设备对ACK的响应消息,则停止发送ACK。若在预设时长(比如10毫秒)内未接收到第一设备对ACK的响应消息,则在预设时间间隔后(比如20毫秒)后再次发送ACK,直至接收到第一设备对ACK的响应消息,或者 达到预设的发送次数。
第二时间信息、第一设备的设备状态信息、第四消息的信息长度以及第二设备能够接收的消息的长度,这几种信息的携带方式和上述实施例中相同,此处不再赘述。
由上述实施例可看出,在第二设备获取第一设备中的目标数据并发出第一消息后,第一设备并非是立即将目标数据发送至第二设备,而是能够基于时间信息(包括第一时间信息和/或第二时间信息)、第一设备的设备状态信息和/或待收发消息的信息长度来确定收发消息的时刻,包括发送第三消息的第一时刻、以及接收第四消息的第二时刻,因此,第一设备在消息收发过程中能够有更多的时间来累积能量,从而在第一设备能量充足(如具有足够的收发信号功率)的情况下进行消息收发,避免因设备能量不足而影响消息收发效果或者无法收发消息的情况。因此,第一设备在消息收发过程中能够有更多的时间来累积能量,从而在第一设备能量充足(如具有足够的收发信号功率)的情况下进行消息收发,避免因设备能量不足而影响消息收发效果或者无法收发消息的情况。
在一个实施例中,第二设备接收第一设备发送的供能时间因子,根据供能时间因子调整第一时刻和/或第二时刻。
可选地,第二消息包括供能时间因子,即,供能时间因子可携带于第二消息中由第一设备发送至第二设备,第二设备根据供能时间因子调整第一时刻和/或第二时刻。
下面以第一设备为标签机、第二设备为读取器为例,示例性地说明本申请提供的消息收发方法。
在一个实施例中,如图5所示,读取器需从标签机中查询目标数据,则读取器首先向标签机发送查询指令(Query),该查询指令即为第一消息。然后,标签机接收到查询指令后,生成一个16比特的随机字符(即RN16),将RN16发送给读取器。然后,读取器通过ACK指令的形式将RN16反馈给标签机,以触发标签机向读取器发送目标数据。
在实际应用中,标签机的电路设计要求有足够的接收信号功率,在标签机接收读取器发送的消息时,通过整流器和稳压器后输出给数字信号处理单元,该阶段需要一直有稳压器的输出电流供给数字信号处理单元,这对于标签机的供电有一定的要求。当信号的接收电平较小时,标签机通过一定时间的能量累计也可以达到一定的输出电压和输出电流,以驱动数字信号单元进行信号的开关调制。但是,如果标签机在发送消息阶段时间持续较长,则会对前期能量的累计要求比较高,从而影响信号接收效果。因此,需要有一定的延时收发消息机制来确保消息收发效果。
可选地,标签机向读取器发送RN16(即第二消息)时,可在RN16中携带第一时间信息,如图5所示的T1,该T1表示标签机发送RN16和接收ACK指令之间的时间间隔。 其中,标签机可根据自身的设备状态信息(包括是否延时收发信息、储能信息等)确定当前的储能信息是否与第一时刻相匹配,若不匹配,则可以将T1值调整至更大的值,比如增加10毫秒,并按照调整后的T1接收ACK指令。或者,标签机可以向读取器反馈供能时间因子,以使读取器根据供能时间因子将T1调整至更大的值。在T1这段时间内,标签机可以储备更多的能量。
可选地,标签机向读取器发送RN16时,也可在RN16中携带可收发的信息长度,比如ACK指令的信息长度、目标数据的数据长度等中的至少一项。读取器接收到RN16后,可根据RN16中携带的信息长度,确定发送ACK指令的第一时刻(对应图5中的T1)和/或接收目标数据的第二时刻(对应图5中的T2),从而使标签机有更多的时间储能能量。
可选地,标签机发送RN16时,还可在RN16中携带自身的设备状态信息,该设备状态信息包括是否延时收发信息、储能信息等。读取器接收到RN16后,可根据RN16中携带的设备状态信息,确定是否按照T1和T2收发消息。若设备状态信息为标签机不延时收发消息,则T1、T2为0;若设备状态信息为第一设备延时收发消息,则读取器可根据其他信息(如标签机上报的储能信息、预先约定或配置好的T1和T2)确定出T1和T2的值,进而按照T1和T2与标签机收发消息。
在一个实施例中,如图6所示,读取器需从标签机中查询目标数据,则读取器首先向标签机发送查询指令(Query),该查询指令即为第一消息。然后,标签机接收到查询指令后,生成一个16比特的随机字符(即RN16),将RN16发送给读取器。然后,读取器通过ACK指令的形式将RN16反馈给标签机,以触发标签机向读取器发送目标数据。
可选地,标签机向读取器发送RN16时,可在RN16中携带第二时间信息,如图6所示的T3,该T3表示标签机发送RN16和发送目标数据之间的时间间隔。
可选地,标签机向读取器发送RN16时,可在RN16中携带如图6所示的T4,该T4表示标签机接收ACK和发送目标数据之间的时间间隔。
可选地,标签机向读取器发送RN16时,可在RN16中携带供能时间因子,以使读取器根据供能时间因子调整T3和T4的值。比如,若标签机当前的储能信息和调度时间需求(即T3和T4的值)不匹配,则可以向读取器上报供能时间因子,以使读取器调整大T3和T4的值,从而延后读取器发送ACK指令的时间,以及延后标签机发送目标数据的时间。
由上述实施例可看出,在读取器获取标签机中的目标数据并发出查询指令(Query)后,标签机并非是立即将目标数据发送至读取器,而是能够基于时间信息(比如图5-6所示的T1、T2、T3和T4)、标签机的设备状态信息和/或待收发消息的信息长度来确定收发 消息的时刻,因此,标签机在消息收发过程中能够有更多的时间来累积能量,从而在标签机能量充足(如具有足够的收发信号功率)的情况下进行消息收发,避免因标签机能量不足而影响消息收发效果或者无法收发消息的情况。因此,标签机在消息收发过程中能够有更多的时间来累积能量,从而在标签机能量充足(如具有足够的收发信号功率)的情况下进行消息收发,避免因设备能量不足而影响消息收发效果或者无法收发消息的情况。
本申请实施例提供的消息收发方法,执行主体可以为消息收发设备。本申请实施例中以消息收发设备执行消息收发方法为例,说明本申请实施例提供的消息收发设备。
图7是根据本申请一实施例的一种消息收发设备的示意性框图。如图7所示,消息收发设备包括:
第一接收模块71,用于接收第二设备发送的第一消息;所述第一消息包括对目标数据的获取请求;
第一发送模块72,用于向所述第二设备发送用于响应所述第一消息的第二消息;
第二发送模块73,用于向所述第二设备发送第四消息;所述第四消息包括所述目标数据。
在一个实施例中,所述设备还包括:
第二接收模块,用于所述向所述第二设备发送第四消息之前,接收来自所述第二设备的、用于响应所述第二消息的第三消息。
在一个实施例中,所述第二接收模块包括:
第一接收单元,用于在第一时刻接收所述第三消息;所述第一时刻基于以下至少一项确定:第一时间信息、所述第一设备的设备状态信息、所述第三消息的信息长度、所述第一设备能够接收的消息的长度;
和/或,
所述第二发送模块73包括:
第一发送单元,用于在第二时刻向所述第二设备发送所述第四消息;所述第二时刻基于以下至少一项确定:第二时间信息、所述第一设备的设备状态信息、所述第四消息的信息长度、所述第二设备能够接收的消息的长度。
在一个实施例中,所述第一消息包括所述第一时间信息和/或所述第三消息的信息长度;
或者,
所述第二消息包括所述第一时间信息和/或所述第一设备能够接收的消息的信息长度。
在一个实施例中,所述第一时间信息包括以下至少一项:
所述第一时刻;
发送所述第二消息与接收所述第三消息之间的第一时间间隔。
在一个实施例中,所述第二消息包括所述第一时间信息;
所述设备还包括:
第一确定模块,用于所述向所述第二设备发送用于响应所述第一消息的第二消息之前,根据所述第一设备的储能信息,确定所述第一时间信息。
在一个实施例中,所述第二消息包括所述第二时间信息和/或所述第四消息的信息长度;
或者,
所述第三消息包括所述第二时间信息和/或所述第二设备能够接收的消息的信息长度。
在一个实施例中,所述第二时间信息包括以下至少一项:
所述第二时刻;
发送所述第二消息与发送所述第四消息之间的第二时间间隔;
接收所述第三消息与发送所述第四消息之间的第三时间间隔;
接收所述第一消息与发送所述第四消息之间的第四时间间隔。
在一个实施例中,所述第二消息包括所述第二时间信息;
所述设备还包括:
第二确定模块,用于所述向所述第二设备发送第四消息之前,根据所述第一设备的储能信息,确定所述第二时间信息。
在一个实施例中,所述设备还包括:
第五发送模块,用于所述接收来自所述第二设备的、用于响应所述第二消息的第三消息之前,若确定所述第一设备的储能信息与所述第一时刻和/或所述第二时刻不匹配,则向所述第二设备发送供能时间因子;所述供能时间因子用于调整所述第一时刻和/或所述第二时刻。
在一个实施例中,所述第二消息包括所述供能时间因子。
在一个实施例中,所述设备还包括:
第三确定模块,用于所述向所述第二设备发送供能时间因子之前,根据所述设备状态信息,确定所述供能时间因子。
在一个实施例中,所述第二消息包括所述设备状态信息。
在一个实施例中,所述设备状态信息包括以下其中一项:
不延时收发消息的第一状态信息;
延时收发消息的第二状态信息;
所述第一设备的储能信息;所述储能信息用于表征所述第一设备不延时收发消息、或者延时收发消息。
在本申请实施例中,第一设备接收第二设备发送的第一消息,该第一消息包括对目标数据的获取请求,向第二设备发送用于响应第一消息的第二消息。之后,向第二设备发送第四消息,第四消息包括目标数据。可见,在第二设备需要获取第一设备中的目标数据并发出第一消息后,第一设备并非是立即将目标数据发送至第二设备,而是先产生第一消息的响应消息(即第二消息),将该响应信息发送给第二设备,并在第二设备再次响应之后,第一设备才会将目标数据发送给第二设备。由于第二消息属于中间响应消息,即不携带真实的目标数据,因此设备双方通过第二消息的交互,能够避免第一设备将目标数据发送至其他设备(非第二设备)的情况,从而确保了消息收发的准确性。并且,相较于现有技术的消息收发流程,比如第一设备接收到来自第二设备的第一消息后、直接将目标数据发送给第二设备而言,本申请提供的消息收发流程更加完善。此外,在设备盘点模式(如第二设备从第一设备中获取数据进行盘点)下,设备双方通过中间响应消息的交互,不仅能确保数据传输的准确性,还能使第一设备(如无源设备)有更多的时间进行储能,从而在储能充足的情况下收发消息,确保消息收发效果以及目标数据传输的成功率。
图8是根据本申请另一实施例的一种消息收发设备的示意性框图。如图8所示,消息收发设备包括:
第三发送模块81,用于向第一设备发送第一消息;所述第一消息包括对目标数据的获取请求;
第三接收模块82,用于接收来自所述第一设备的、用于响应所述第一消息的第二消息;
第四接收模块83,用于接收来自所述第一设备的第四消息;所述第四消息包括所述目标数据。
在一个实施例中,所述设备还包括:
第四发送模块,用于所述接收来自所述第一设备的第四消息之前,向所述第一设备发送用于响应所述第二消息的第三消息。
在一个实施例中,所述第四发送模块包括:
第二发送单元,用于在第一时刻向所述第一设备发送所述第三消息;所述第一时刻基 于以下至少一项确定:第一时间信息、所述第一设备的设备状态信息、所述第三消息的信息长度、所述第一设备能够接收的消息的信息长度;
和/或,
所述第四接收模块83包括:
第二接收单元,用于在第二时刻接收所述第四消息;所述第二时刻基于以下至少一项确定:第二时间信息、所述第一设备的设备状态信息、所述第四消息的信息长度、所述第二设备能够接收的消息的信息长度。
在一个实施例中,所述第一消息包括所述第一时间信息和/或所述第三消息的信息长度;
或者,
所述第二消息包括所述第一时间信息和/或所述第一设备能够接收的消息的信息长度。
在一个实施例中,所述第一时间信息包括以下至少一项:
所述第一时刻;
所述第一设备发送所述第二消息与接收所述第三消息之间的第一时间间隔。
在一个实施例中,所述第二消息包括所述第二时间信息和/或所述第四消息的信息长度;
或者,
所述第三消息包括所述第二时间信息和/或所述第二设备能够接收的消息的信息长度。
在一个实施例中,所述第二时间信息包括以下其中一项:
所述第二时刻;
所述第一设备接收所述第二消息与接收所述第四消息之间的第二时间间隔;
所述第一设备发送所述第三消息与接收所述第四消息之间的第三时间间隔;
所述第一设备接收所述第一消息与发送所述第四消息之间的第四时间间隔。
在一个实施例中,所述设备还包括:
第五接收模块,用于所接收所述第一设备发送的供能时间因子;
调整模块,用于根据所述供能时间因子,调整所述第一时刻和/或所述第二时刻。
在一个实施例中,所述第二消息包括所述供能时间因子。
在一个实施例中,所述第二消息包括所述第一设备的所述设备状态信息;
所述设备还包括:
第四确定模块,用于所述向所述第一设备发送用于响应所述第二消息的第三消息之前,根据所述设备状态信息,确定所述第一时刻和/或所述第二时刻。
在一个实施例中,所述设备状态信息包括以下其中一项:
所述第一设备不延时收发消息的第一状态信息;
所述第一设备延时收发消息的第二状态信息;
所述第一设备的储能信息;所述储能信息用于表征所述第一设备不延时收发消息、或者延时收发消息。
在一个实施例中,所述设备状态信息包括所述第二状态信息;
所述设备还包括:
第六发送模块,用于所述向所述第一设备发送用于响应所述第二消息的第三消息之后,若在预设时长内未接收到所述第一设备对所述第三消息的响应消息,则按照预设时间间隔再次向所述第一设备发送所述第三消息,直至所述第三消息满足停止发送条件;
其中,所述停止发送条件包括:接收到所述响应消息;和/或,发送次数达到预设次数。
本申请实施例中,第二设备向第一设备发送第一消息,该第一消息包括对目标数据的获取请求,接收第一设备发送的用于响应第一消息的第二消息。接收来自第一设备的第四消息,第四消息包括目标数据。可见,在第二设备需要获取第一设备中的目标数据并发出第一消息后,第一设备并非是立即将目标数据发送至第二设备,而是先产生第一消息的响应消息(即第二消息),将该响应信息发送给第二设备,并在第二设备再次响应之后,第一设备才会将目标数据发送给第二设备。由于第二消息属于中间响应消息,即不携带真实的目标数据,因此设备双方通过第二消息的交互,能够避免第一设备将目标数据发送至其他设备(非第二设备)的情况,从而确保了消息收发的准确性。并且,相较于现有技术的消息收发流程,比如第一设备接收到来自第二设备的第一消息后、直接将目标数据发送给第二设备而言,本申请提供的消息收发流程更加完善。此外,在设备盘点模式(如第二设备从第一设备中获取数据进行盘点)下,设备双方通过中间响应消息的交互,不仅能确保数据传输的准确性,还能使第一设备(如无源设备)有更多的时间进行储能,从而在储能充足的情况下收发消息,确保消息收发效果以及目标数据传输的成功率。
本申请实施例中的消息收发设备可以是电子设备,例如具有操作系统的电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端11的类型,其他设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)等,本申请实 施例不作具体限定。
本申请实施例提供的消息收发设备能够实现上述方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。
可选的,如图9所示,本申请实施例还提供一种通信设备900,包括处理器901和存储器902,存储器902上存储有可在所述处理器901上运行的程序或指令,例如,该通信设备900为终端时,该程序或指令被处理器901执行时实现上述消息收发方法实施例的各个步骤,且能达到相同的技术效果。该通信设备900为网络侧设备时,该程序或指令被处理器901执行时实现上述消息收发方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例还提供一种终端,包括处理器和通信接口,处理器用于接收第二设备发送的第一消息;所述第一消息包括对存储于所述第一设备中的目标数据的获取请求;向所述第二设备发送用于响应所述第一消息的第二消息;接收来自所述第二设备的、用于响应所述第二消息的第三消息;向所述第二设备发送第四消息;所述第四消息包括所述目标数据。该终端实施例与上述第一设备侧方法实施例对应,上述方法实施例的各个实施过程和实现方式均可适用于该终端实施例中,且能达到相同的技术效果。
本申请实施例还提供一种终端,包括处理器和通信接口,处理器用于向第一设备发送第一消息;所述第一消息包括对存储于所述第一设备中的目标数据的获取请求;接收来自所述第一设备的、用于响应所述第一消息的第二消息;向所述第二设备发送用于响应所述第二消息的第三消息;接收来自所述第二设备的第四消息;所述第四消息包括所述目标数据。该终端实施例与上述第二设备侧方法实施例对应,上述方法实施例的各个实施过程和实现方式均可适用于该终端实施例中,且能达到相同的技术效果。
具体地,图10为实现本申请实施例的一种终端的硬件结构示意图。
该终端1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等中的至少部分部件。
本领域技术人员可以理解,终端1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics  Processing Unit,GPU)10041和麦克风10042,GPU 10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
本申请实施例中,射频单元1001接收来自网络侧设备的下行数据后,可以传输给处理器1010进行处理;另外,射频单元1001可以向网络侧设备发送上行数据。通常,射频单元1001包括但不限于天线、放大器、收发信机、耦合器、低噪声放大器、双工器等。
存储器1009可用于存储软件程序或指令以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。
处理器1010可包括一个或多个处理单元;可选的,处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
在一个实施例中,处理器1010,用于接收第二设备发送的第一消息;所述第一消息包括对目标数据的获取请求;向所述第二设备发送用于响应所述第一消息的第二消息;向所述第二设备发送第四消息;所述第四消息包括所述目标数据。
可选的,处理器1010,还用于在第一时刻接收所述第三消息;所述第一时刻基于以下至少一项确定:第一时间信息、所述第一设备的设备状态信息、所述第三消息的信息长度、所述第一设备能够接收的消息的长度。
可选的,处理器1010,还用于在第二时刻向所述第二设备发送所述第四消息;所述第二时刻基于以下至少一项确定:第二时间信息、所述第一设备的设备状态信息、所述第四消息的信息长度、所述第二设备能够接收的消息的长度。
可选的,处理器1010,还用于所述向所述第二设备发送用于响应所述第一消息的第二消息之前,根据所述第一设备的储能信息,确定所述第一时间信息。
可选的,处理器1010,还用于所述向所述第二设备发送第四消息之前,根据所述第一设备的储能信息,确定所述第二时间信息。
可选的,处理器1010,还用于所述接收来自所述第二设备的、用于响应所述第二消息的第三消息之前,若确定所述第一设备的储能信息与所述第一时刻和/或所述第二时刻不匹配,则向所述第二设备发送供能时间因子;所述供能时间因子用于调整所述第一时刻和/或所述第二时刻。
可选的,处理器1010,还用于所述向所述第二设备发送供能时间因子之前,根据所述设备状态信息,确定所述供能时间因子。
在本申请实施例中,第一设备接收第二设备发送的第一消息,该第一消息包括对目标数据的获取请求,向第二设备发送用于响应第一消息的第二消息。之后,向第二设备发送第四消息,第四消息包括目标数据。可见,在第二设备需要获取第一设备中的目标数据并发出第一消息后,第一设备并非是立即将目标数据发送至第二设备,而是先产生第一消息的响应消息(即第二消息),将该响应信息发送给第二设备,并在第二设备再次响应之后,第一设备才会将目标数据发送给第二设备。由于第二消息属于中间响应消息,即不携带真实的目标数据,因此设备双方通过第二消息的交互,能够避免第一设备将目标数据发送至其他设备(非第二设备)的情况,从而确保了消息收发的准确性。并且,相较于现有技术的消息收发流程,比如第一设备接收到来自第二设备的第一消息后、直接将目标数据发送给第二设备而言,本申请提供的消息收发流程更加完善。此外,在设备盘点模式(如第二设备从第一设备中获取数据进行盘点)下,设备双方通过中间响应消息的交互,不仅能确保数据传输的准确性,还能使第一设备(如无源设备)有更多的时间进行储能,从而在储能充足的情况下收发消息,确保消息收发效果以及目标数据传输的成功率。
在一个实施例中,处理器1010,用于向第一设备发送第一消息;所述第一消息包括对目标数据的获取请求;接收来自所述第一设备的、用于响应所述第一消息的第二消息; 接收来自所述第一设备的第四消息;所述第四消息包括所述目标数据。
可选的,处理器1010,还用于在第一时刻向所述第一设备发送所述第三消息;所述第一时刻基于以下至少一项确定:第一时间信息、所述第一设备的设备状态信息、所述第三消息的信息长度、所述第一设备能够接收的消息的信息长度;
可选的,处理器1010,还用于在第二时刻接收所述第四消息;所述第二时刻基于以下至少一项确定:第二时间信息、所述第一设备的设备状态信息、所述第四消息的信息长度、所述第二设备能够接收的消息的信息长度。
可选的,处理器1010,还用于接收所述第一设备发送的供能时间因子;根据所述供能时间因子,调整所述第一时刻和/或所述第二时刻。
可选的,处理器1010,还用于所述向所述第一设备发送用于响应所述第二消息的第三消息之前,根据所述设备状态信息,确定所述第一时刻和/或所述第二时刻。
可选的,处理器1010,还用于所述向所述第一设备发送用于响应所述第二消息的第三消息之后,若在预设时长内未接收到所述第一设备对所述第三消息的响应消息,则按照预设时间间隔再次向所述第一设备发送所述第三消息,直至所述第三消息满足停止发送条件;其中,所述停止发送条件包括:接收到所述响应消息;和/或,发送次数达到预设次数。
本申请实施例中,第二设备向第一设备发送第一消息,该第一消息包括对目标数据的获取请求,接收第一设备发送的用于响应第一消息的第二消息。之后,接收来自第一设备的第四消息,第四消息包括目标数据。可见,在第二设备需要获取第一设备中的目标数据并发出第一消息后,第一设备并非是立即将目标数据发送至第二设备,而是先产生第一消息的响应消息(即第二消息),将该响应信息发送给第二设备,并在第二设备再次响应之后,第一设备才会将目标数据发送给第二设备。由于第二消息属于中间响应消息,即不携带真实的目标数据,因此设备双方通过第二消息的交互,能够避免第一设备将目标数据发送至其他设备(非第二设备)的情况,从而确保了消息收发的准确性。并且,相较于现有技术的消息收发流程,比如第一设备接收到来自第二设备的第一消息后、直接将目标数据发送给第二设备而言,本申请提供的消息收发流程更加完善。此外,在设备盘点模式(如第二设备从第一设备中获取数据进行盘点)下,设备双方通过中间响应消息的交互,不仅能确保数据传输的准确性,还能使第一设备(如无源设备)有更多的时间进行储能,从而在储能充足的情况下收发消息,确保消息收发效果以及目标数据传输的成功率。
本申请实施例还提供一种网络侧设备,包括处理器和通信接口,处理器用于接收第二设备发送的第一消息;所述第一消息包括对存储于所述第一设备中的目标数据的获取请 求;向所述第二设备发送用于响应所述第一消息的第二消息;接收来自所述第二设备的、用于响应所述第二消息的第三消息;向所述第二设备发送第四消息;所述第四消息包括所述目标数据。该网络侧设备实施例与上述第一设备侧方法实施例对应,上述方法实施例的各个实施过程和实现方式均可适用于该网络侧设备实施例中,且能达到相同的技术效果。
本申请实施例还提供一种网络侧设备,包括处理器和通信接口,处理器用于向第一设备发送第一消息;所述第一消息包括对存储于所述第一设备中的目标数据的获取请求;接收来自所述第一设备的、用于响应所述第一消息的第二消息;向所述第二设备发送用于响应所述第二消息的第三消息;接收来自所述第二设备的第四消息;所述第四消息包括所述目标数据。该网络侧设备实施例与上述第二设备侧方法实施例对应,上述方法实施例的各个实施过程和实现方式均可适用于该网络侧设备实施例中,且能达到相同的技术效果。
具体地,本申请实施例还提供了一种网络侧设备。如图11所示,该网络侧设备1100包括:天线111、射频装置112、基带装置113、处理器114和存储器115。天线111与射频装置112连接。在上行方向上,射频装置112通过天线111接收信息,将接收的信息发送给基带装置113进行处理。在下行方向上,基带装置113对要发送的信息进行处理,并发送给射频装置112,射频装置112对收到的信息进行处理后经过天线111发送出去。
以上实施例中网络侧设备执行的方法可以在基带装置113中实现,该基带装置113包括基带处理器。
基带装置113例如可以包括至少一个基带板,该基带板上设置有多个芯片,如图11所示,其中一个芯片例如为基带处理器,通过总线接口与存储器115连接,以调用存储器115中的程序,执行以上方法实施例中所示的网络设备操作。
该网络侧设备113还可以包括网络接口116,该接口例如为通用公共无线接口(common public radio interface,CPRI)。
具体地,本发明实施例的网络侧设备1100还包括:存储在存储器115上并可在处理器114上运行的指令或程序,处理器114调用存储器115中的指令或程序执行图6所示各模块执行的方法,并达到相同的技术效果,为避免重复,故不在此赘述。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述消息收发方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的终端中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述消息收发方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。
本申请实施例另提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现上述消息收发方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例还提供了一种消息收发系统,包括:终端及网络侧设备,所述终端可用于执行如上所述的第一设备侧的消息收发方法的步骤,所述网络侧设备可用于执行如上所述的第二设备侧的消息收发方法的步骤。或者,所述终端可用于执行如上所述的第二设备侧的消息收发方法的步骤,所述网络侧设备可用于执行如上所述的第一设备侧的消息收发方法的步骤
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形 式,均属于本申请的保护之内。

Claims (31)

  1. 一种消息收发方法,应用于第一设备,所述方法包括:
    接收第二设备发送的第一消息;所述第一消息包括对目标数据的获取请求;
    向所述第二设备发送用于响应所述第一消息的第二消息;
    向所述第二设备发送第四消息;所述第四消息包括所述目标数据。
  2. 根据权利要求1所述的方法,其中,所述向所述第二设备发送第四消息之前,还包括:
    接收来自所述第二设备的、用于响应所述第二消息的第三消息。
  3. 根据权利要求2所述的方法,其中,所述接收来自所述第二设备的、用于响应所述第二消息的第三消息包括:
    在第一时刻接收所述第三消息;所述第一时刻基于以下至少一项确定:第一时间信息、所述第一设备的设备状态信息、所述第三消息的信息长度、所述第一设备能够接收的消息的长度;
    和/或,
    所述向所述第二设备发送第四消息包括:
    在第二时刻向所述第二设备发送所述第四消息;所述第二时刻基于以下至少一项确定:第二时间信息、所述第一设备的设备状态信息、所述第四消息的信息长度、所述第二设备能够接收的消息的长度。
  4. 根据权利要求3所述的方法,其中,所述第一消息包括所述第一时间信息和/或第三消息的信息长度;
    或者,
    所述第二消息包括所述第一时间信息和/或所述第一设备能够接收的消息的信息长度。
  5. 根据权利要求4所述的方法,其中,所述第一时间信息包括以下至少一项:
    所述第一时刻;
    发送所述第二消息与接收所述第三消息之间的第一时间间隔。
  6. 根据权利要求4或5所述的方法,其中,所述第二消息包括所述第一时间信息;
    所述向所述第二设备发送用于响应所述第一消息的第二消息之前,还包括:
    根据所述第一设备的储能信息,确定所述第一时间信息。
  7. 根据权利要求3所述的方法,其中,所述第二消息包括所述第二时间信息和/或所述第四消息的信息长度;
    或者,
    所述第三消息包括所述第二时间信息和/或所述第二设备能够接收的消息的信息长度。
  8. 根据权利要求7所述的方法,其中,所述第二时间信息包括以下至少一项:
    所述第二时刻;
    发送所述第二消息与发送所述第四消息之间的第二时间间隔;
    接收所述第三消息与发送所述第四消息之间的第三时间间隔;
    接收所述第一消息与发送所述第四消息之间的第四时间间隔。
  9. 根据权利要求7或8所述的方法,其中,所述第二消息包括所述第二时间信息;
    所述向所述第二设备发送第四消息之前,还包括:
    根据所述第一设备的储能信息,确定所述第二时间信息。
  10. 根据权利要求3所述的方法,其中,所述接收来自所述第二设备的、用于响应所述第二消息的第三消息之前,还包括:
    若确定所述第一设备的储能信息与所述第一时刻和/或所述第二时刻不匹配,则向所述第二设备发送供能时间因子;所述供能时间因子用于调整所述第一时刻和/或所述第二时刻。
  11. 根据权利要求10所述的方法,其中,所述第二消息包括所述供能时间因子。
  12. 根据权利要求10或11所述的方法,其中,所述向所述第二设备发送供能时间因子之前,还包括:
    根据所述设备状态信息,确定所述供能时间因子。
  13. 根据权利要求3所述的方法,其中,所述第二消息包括所述设备状态信息。
  14. 根据权利要求3或13所述的方法,其中,所述设备状态信息包括以下其中一项:
    不延时收发消息的第一状态信息;
    延时收发消息的第二状态信息;
    所述第一设备的储能信息;所述储能信息用于表征所述第一设备不延时收发消息、或者延时收发消息。
  15. 一种消息收发方法,应用于第二设备,所述方法包括:
    向第一设备发送第一消息;所述第一消息包括对目标数据的获取请求;
    接收来自所述第一设备的、用于响应所述第一消息的第二消息;
    接收来自所述第一设备的第四消息;所述第四消息包括所述目标数据。
  16. 根据权利要求15所述的方法,其中,所述接收来自所述第一设备的第四消息之前,还包括:
    向所述第一设备发送用于响应所述第二消息的第三消息。
  17. 根据权利要求16所述的方法,其中,所述向所述第一设备发送用于响应所述第二消息的第三消息包括:
    在第一时刻向所述第一设备发送所述第三消息;所述第一时刻基于以下至少一项确定:第一时间信息、所述第一设备的设备状态信息、所述第三消息的信息长度、所述第一设备能够接收的消息的信息长度;
    和/或,
    所述接收来自所述第一设备的第四消息包括:
    在第二时刻接收所述第四消息;所述第二时刻基于以下至少一项确定:第二时间信息、所述第一设备的设备状态信息、所述第四消息的信息长度、所述第二设备能够接收的消息的信息长度。
  18. 根据权利要求17所述的方法,其中,所述第一消息包括所述第一时间信息和/或 所述第三消息的信息长度;
    或者,
    所述第二消息包括所述第一时间信息和/或所述第一设备能够接收的消息的信息长度。
  19. 根据权利要求18所述的方法,其中,所述第一时间信息包括以下至少一项:
    所述第一时刻;
    所述第一设备发送所述第二消息与接收所述第三消息之间的第一时间间隔。
  20. 根据权利要求17所述的方法,其中,所述第二消息包括所述第二时间信息和/或所述第四消息的信息长度;
    或者,
    所述第三消息包括所述第二时间信息和/或所述第二设备能够接收的消息的信息长度。
  21. 根据权利要求20所述的方法,其中,所述第二时间信息包括以下其中一项:
    所述第二时刻;
    所述第一设备接收所述第二消息与接收所述第四消息之间的第二时间间隔;
    所述第一设备发送所述第三消息与接收所述第四消息之间的第三时间间隔;
    所述第一设备接收所述第一消息与发送所述第四消息之间的第四时间间隔。
  22. 根据权利要求17所述的方法,其中,还包括:
    接收所述第一设备发送的供能时间因子;
    根据所述供能时间因子,调整所述第一时刻和/或所述第二时刻。
  23. 根据权利要求22所述的方法,其中,所述第二消息包括所述供能时间因子。
  24. 根据权利要求17所述的方法,其中,所述第二消息包括所述第一设备的所述设备状态信息;
    所述向所述第一设备发送用于响应所述第二消息的第三消息之前,还包括:
    根据所述设备状态信息,确定所述第一时刻和/或所述第二时刻。
  25. 根据权利要求24所述的方法,其中,所述设备状态信息包括以下其中一项:
    所述第一设备不延时收发消息的第一状态信息;
    所述第一设备延时收发消息的第二状态信息;
    所述第一设备的储能信息;所述储能信息用于表征所述第一设备不延时收发消息、或者延时收发消息。
  26. 根据权利要求25所述的方法,其中,所述设备状态信息包括所述第二状态信息;
    所述向所述第一设备发送用于响应所述第二消息的第三消息之后,还包括:
    若在预设时长内未接收到所述第一设备对所述第三消息的响应消息,则按照预设时间间隔再次向所述第一设备发送所述第三消息,直至所述第三消息满足停止发送条件;
    其中,所述停止发送条件包括:接收到所述响应消息;和/或,发送次数达到预设次数。
  27. 一种消息收发设备,包括:
    第一接收模块,用于接收第二设备发送的第一消息;所述第一消息包括对目标数据的获取请求;
    第一发送模块,用于向所述第二设备发送用于响应所述第一消息的第二消息;
    第二发送模块,用于向所述第二设备发送第四消息;所述第四消息包括所述目标数据。
  28. 一种消息收发设备,包括:
    第三发送模块,用于向第一设备发送第一消息;所述第一消息包括对目标数据的获取请求;
    第三接收模块,用于接收来自所述第一设备的、用于响应所述第一消息的第二消息;
    第四接收模块,用于接收来自所述第一设备的第四消息;所述第四消息包括所述目标数据。
  29. 一种终端,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至14任一项所述的消息收发方法的步骤,或者,所述程序或指令被所述处理器执行时实现如权利要求15至26任一项所述的消息收发方法的步骤。
  30. 一种网络侧设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至14任一项所述的消息收发方法的步骤,或者,所述程序或指令被所述处理器执行时实现如权利要求15至26任一项所述的消息收发方法的步骤。
  31. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至14任一项所述的消息收发方法,或者实现如权利要求15至26任一项所述的消息收发方法的步骤。
PCT/CN2023/103051 2022-07-04 2023-06-28 消息收发方法及设备 WO2024007907A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210780063.8 2022-07-04
CN202210780063.8A CN117395297A (zh) 2022-07-04 2022-07-04 消息收发方法及设备

Publications (1)

Publication Number Publication Date
WO2024007907A1 true WO2024007907A1 (zh) 2024-01-11

Family

ID=89454243

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/103051 WO2024007907A1 (zh) 2022-07-04 2023-06-28 消息收发方法及设备

Country Status (2)

Country Link
CN (1) CN117395297A (zh)
WO (1) WO2024007907A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111886806A (zh) * 2018-03-23 2020-11-03 华为技术有限公司 一种背向散射通信方法及装置
US20210264123A1 (en) * 2020-02-25 2021-08-26 Toshiba Tec Kabushiki Kaisha Tag reader and tag reading system
WO2021163957A1 (zh) * 2020-02-20 2021-08-26 Oppo广东移动通信有限公司 一种基于反向散射的传输方法、电子设备及存储介质
CN113645577A (zh) * 2021-08-25 2021-11-12 国网浙江省电力有限公司双创中心 一种无线通信方法、装置、设备及可读存储介质
CN114698071A (zh) * 2020-12-31 2022-07-01 维沃移动通信有限公司 能量提供方法、装置及通信设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111886806A (zh) * 2018-03-23 2020-11-03 华为技术有限公司 一种背向散射通信方法及装置
WO2021163957A1 (zh) * 2020-02-20 2021-08-26 Oppo广东移动通信有限公司 一种基于反向散射的传输方法、电子设备及存储介质
US20210264123A1 (en) * 2020-02-25 2021-08-26 Toshiba Tec Kabushiki Kaisha Tag reader and tag reading system
CN114698071A (zh) * 2020-12-31 2022-07-01 维沃移动通信有限公司 能量提供方法、装置及通信设备
CN113645577A (zh) * 2021-08-25 2021-11-12 国网浙江省电力有限公司双创中心 一种无线通信方法、装置、设备及可读存储介质

Also Published As

Publication number Publication date
CN117395297A (zh) 2024-01-12

Similar Documents

Publication Publication Date Title
WO2023246757A1 (zh) 算力服务方法、装置及终端
WO2024007907A1 (zh) 消息收发方法及设备
WO2024007953A1 (zh) 处理方法、设备及可读存储介质
WO2024037514A1 (zh) 信息传输方法、装置及通信设备
WO2023151649A1 (zh) 信息激活方法、终端及网络侧设备
WO2023231920A1 (zh) 反向散射通信方法及设备
WO2024061111A1 (zh) 资源处理方法、装置及通信设备
WO2024032489A1 (zh) Prs接收方法及装置、终端
WO2023236962A1 (zh) 资源分配方法、装置、通信设备、系统及存储介质
WO2024027746A1 (zh) 信息传输方法、装置、接收端及发送端
WO2024067443A1 (zh) 指示方法、第一设备及第二设备
WO2023125311A1 (zh) 信道估计方法、装置、终端、网络侧设备及介质
WO2024022439A1 (zh) 处理方法、设备及可读存储介质
WO2023185819A1 (zh) Pdcch监听方法、终端、网络侧设备及介质
WO2024041593A1 (zh) 反向散射通信处理方法、装置、终端及网络侧设备
WO2023231908A1 (zh) 反向散射通信的信息传输方法、装置、终端及网络侧设备
WO2024032496A1 (zh) 通信、资源配置方法、装置、阅读器、标签和网络侧设备
WO2023185841A1 (zh) 中继终端的选择方法、装置、终端及存储介质
WO2023241448A1 (zh) 测量处理方法、终端及网络侧设备
WO2023143415A1 (zh) 信息反馈方法、接收方法、装置、终端及网络侧设备
WO2024067519A1 (zh) 指示方法、第一设备及第二设备
WO2024037409A1 (zh) 定位消息传输方法、终端及网络侧设备
EP4366365A1 (en) Positioning measurement method and positioning configuration method and apparatuses, and communication device
WO2023143442A1 (zh) 路径偏好确定方法、终端及网络侧设备
WO2023222076A1 (zh) 非连续传输方法、装置、终端及网络侧设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23834675

Country of ref document: EP

Kind code of ref document: A1