CN113905333B - CSBK transmission method, device and intercom equipment - Google Patents

CSBK transmission method, device and intercom equipment Download PDF

Info

Publication number
CN113905333B
CN113905333B CN202111180019.5A CN202111180019A CN113905333B CN 113905333 B CN113905333 B CN 113905333B CN 202111180019 A CN202111180019 A CN 202111180019A CN 113905333 B CN113905333 B CN 113905333B
Authority
CN
China
Prior art keywords
data
data frame
field
frame
short message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111180019.5A
Other languages
Chinese (zh)
Other versions
CN113905333A (en
Inventor
梁日苏
张兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Sea Hengtong Technology Co ltd
Original Assignee
Shenzhen Sea Hengtong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Sea Hengtong Technology Co ltd filed Critical Shenzhen Sea Hengtong Technology Co ltd
Priority to CN202111180019.5A priority Critical patent/CN113905333B/en
Publication of CN113905333A publication Critical patent/CN113905333A/en
Application granted granted Critical
Publication of CN113905333B publication Critical patent/CN113905333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/10Push-to-Talk [PTT] or Push-On-Call services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q5/00Selecting arrangements wherein two or more subscriber stations are connected by the same line to the exchange
    • H04Q5/24Selecting arrangements wherein two or more subscriber stations are connected by the same line to the exchange for two-party-line systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention provides a CSBK transmission method, a device and intercom equipment, wherein a data frame structure for transmitting a short message by the CSBK is defined, and the data frame structure comprises a leading data frame structure and a short message data frame structure; constructing a data frame set according to the content of data to be transmitted, the length of the data to be transmitted, the sending data rate, the destination address, the source address, the frame check data and the data frame structure, wherein the data frame set comprises a plurality of data frames with continuous serial numbers; and a configuration register for sequentially transmitting the data frames in the order of the sequence number based on the CSBK. The technical problem that the existing CSBK transmission technology is not perfect enough is solved.

Description

CSBK transmission method, device and intercom equipment
Technical Field
The invention relates to the field of talkback, in particular to a CSBK transmission method, a CSBK transmission device and talkback equipment.
Background
The existing CSBK (Control Signal Block) transmission scheme has limitation and can not transmit short messages, so the existing CSBK transmission scheme is not perfect.
Disclosure of Invention
The CSBK transmission method, the CSBK transmission device and the intercom device provided by the embodiment of the invention solve the technical problem that the existing CSBK transmission technology is not complete enough.
In order to solve the above technical problem, an embodiment of the present invention provides a CSBK transmission method, including:
s101, defining a data frame structure for transmitting a short message by CSBK, wherein the data frame structure comprises a leading data frame structure and a short message data frame structure;
s102, constructing a data frame set according to the content of data to be transmitted, the length of the data to be transmitted, the sending data rate, the destination address, the source address, the frame check data and the data frame structure, wherein the data frame set comprises a plurality of data frames with continuous serial numbers;
s103, a configuration register, which transmits each data frame in sequence according to the sequence number of the CSBK.
In order to solve the foregoing technical problem, an embodiment of the present invention provides another CSBK transmission method, including:
s201, based on a CSBK blind receiving data frame, wherein the data frame comprises a leading data frame and a short message data frame, and whether a deframing system is interrupted is detected;
s202, if the data frame is interrupted, reading a register and judging whether the data frame is received or not;
s203, if a data frame is received, reading a random access memory address carried in the data frame, and judging whether the random access memory address is matched with the address of the random access memory;
s204, if the data frames are matched with each other, reading the serial number carried in the data frame, and judging whether the data frame is continuous with the last received data frame or not according to the serial number;
s205, if the data frame is continuous with the last received data frame, reading frame check data carried in the data frame, and checking the data frame according to the frame check data;
s206, if the verification is correct, reading response type data carried in the data frame, and judging whether to feed back confirmation data or not according to the response type data;
s207, if not needed, starting a register to start receiving the next data frame;
and S208, if necessary, generating confirmation data, feeding back the confirmation data based on the CSBK, and starting the register to receive the next data frame.
In order to solve the above technical problem, an embodiment of the present invention further provides a CSBK transmission device, including:
the defining module is used for defining a data frame structure of the CSBK transmission short message, wherein the data frame structure comprises a leading data frame structure and a short message data frame structure;
the data frame structure comprises a construction module, a data frame acquisition module and a data frame transmission module, wherein the construction module is used for constructing a data frame set according to the content of data to be transmitted, the length of the data to be transmitted, the sending data rate, a destination address, a source address, frame check data and the data frame structure, and the data frame set comprises a plurality of data frames with continuous serial numbers;
and the first sending module is used for configuring the register and sending the data frames in sequence based on the sequence number of the CSBK.
In order to solve the above technical problem, an embodiment of the present invention further provides another CSBK transmitting apparatus, including:
the receiving module is used for blindly receiving data frames based on CSBK, and the data frames comprise leading data frames and short message data frames;
the detection module is used for detecting whether the deframing system is interrupted or not;
the first reading module is used for reading the register if the decoding frame system is interrupted;
the first judging module is used for judging whether a data frame is received or not;
the second reading module is used for reading the random access memory address carried in the data frame if the data frame is received;
the second judging module is used for judging whether the random access memory address is matched with the self address;
a third reading module, configured to read a sequence number carried in the data frame if the sequence number matches the sequence number;
a third judging module, configured to judge whether to continue with the last received data frame according to the sequence number;
the fourth reading module is used for reading the frame check data carried in the data frame if the frame check data is continuous with the last received data frame;
the checking module is used for checking the data frame according to the frame checking data;
a fifth reading module, configured to read response type data carried in the data frame;
the fourth judging module is used for judging whether to feed back confirmation data according to the response type data;
the starting module is used for starting the register to start receiving the next data frame;
the generating module is used for generating confirmation data if needed;
and the second sending module is used for feeding back the confirmation data based on the CSBK.
In order to solve the technical problem, an embodiment of the present invention further provides an intercom device, including any one of the CSBK transmission devices described above.
Advantageous effects
The CSBK transmission method, the device and the talkback equipment provided by the embodiment of the invention realize the purpose of transmitting the short message by using the CSBK.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a schematic flow chart of a CSBK transmission method according to a first embodiment of the present invention;
fig. 2 is a schematic flowchart of a CSBK transmission method according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
the following detailed description of specific embodiments of the present invention is provided in connection with the accompanying drawings and examples. Fig. 1 is a schematic flowchart of a CSBK transmission method according to an embodiment of the present invention, which is mainly used for a sending end to send a data frame, and as shown in fig. 1, the CSBK transmission method according to the embodiment mainly includes:
s101, defining a data frame structure for transmitting a short message by CSBK, wherein the data frame structure comprises a leading data frame structure and a short message data frame structure;
s102, constructing a data frame set according to the content of data to be transmitted, the length of the data to be transmitted, the sending data rate, the destination address, the source address, the frame check data and the data frame structure, wherein the data frame set comprises a plurality of data frames with continuous serial numbers;
s103, a configuration register, which transmits each data frame in sequence according to the sequence number of the CSBK.
In this embodiment, the short message is sent by using the CSBK, and in some embodiments, the short message may be divided into two types: non-acknowledgement messages and acknowledgement messages. The difference between the two is that: after each data frame is sent, the confirmation short message type needs to receive a confirmation data feedback packet to finish data frame transmission. The unacknowledged short message type does not require the receipt of an acknowledgment data feedback packet.
In some embodiments, the preamble data frame structure defined in step S101 may include a non-acknowledgement preamble data frame structure and/or an acknowledgement preamble data frame structure, wherein,
the unacknowledged preamble data frame structure may include: one or more of a destination address type field, a response type field, a data header field, an unacknowledged data bit field, a frame header data type field, a destination address field, a source address field, a sending type field, a data frame quantity field, a reserved bit field, a single-frame sequence bit field, a frame check data field, a stuffing byte high-order field and a stuffing byte low-order field;
the ack preamble data frame structure may include: one or more of a destination address type field, a response type field, a data header field, an unacknowledged data bit field, a frame header data type field, a destination address field, a source address field, a transmission type field, a data frame quantity field, a reserved bit field, a transmission sequence number field, a single frame sequence bit field, a frame check data field, a stuffing byte high-order field and a stuffing byte low-order field.
In some embodiments, the sms data frame structure defined in the step S101 may include a non-acknowledgement sms data frame structure and/or an acknowledgement sms data frame structure,
the non-confirmed short message data frame structure comprises a short message content field or comprises a short message content field and a total verification data field;
the confirmed short message data frame structure comprises a short message content field, a sending sequence number field and a frame check data field, or comprises a short message content field, a sending sequence number field, a frame check data field and a total check data field.
The leading data frame structure is used for packaging leading data frames; the short message data frame structure is used for packaging the short message data frame; the encapsulated preamble data frame and short message data frame are used for transmission in step S103. The leading data frame plays the role of a frame header, and the short message data frame carries the data content to be transmitted.
In some embodiments, the step S102 may include:
determining the number of data frames, the data content to be carried by each data frame and the serial number of each data frame according to the content of the data to be transmitted, the length of the data to be transmitted, the sending data rate and the data frame structure;
constructing a leading data frame according to the leading data frame structure, the destination address, the source address, the data frame quantity, the starting sequence number and the frame check data of the leading data frame; and constructing and obtaining each short message data frame according to the short message data frame structure, the data content to be carried by each short message data frame, the serial number of each short message data frame and the frame check data of each short message data frame.
In some embodiments, step S103 may further include:
and the configuration register is used for retransmitting the data frame with failed transmission.
The present embodiment further provides a CSBK transmission device, which mainly includes:
the defining module is used for defining a data frame structure of the CSBK transmission short message, wherein the data frame structure comprises a leading data frame structure and a short message data frame structure;
the data frame structure comprises a construction module, a data frame acquisition module and a data frame transmission module, wherein the construction module is used for constructing a data frame set according to the content of data to be transmitted, the length of the data to be transmitted, the sending data rate, a destination address, a source address, frame check data and the data frame structure, and the data frame set comprises a plurality of data frames with continuous serial numbers;
and the first sending module is used for configuring the register and sending the data frames in sequence based on the sequence number of the CSBK.
The CSBK transmitting apparatus provided in this embodiment is used to implement the CSBK transmitting method provided in this embodiment, and each module in the apparatus is used to implement a corresponding step in the method, which is not described herein again.
The embodiment also provides an intercom device comprising the CSBK transmission device. The intercom device may be a device having an intercom function, such as an intercom.
The CSBK transmission method, the device and the talkback equipment provided by the embodiment of the invention realize the purpose of transmitting the short message by using the CSBK.
Example two:
the following detailed description of specific embodiments of the present invention is provided in connection with the accompanying drawings and examples. Fig. 2 is a schematic flowchart of a CSBK transmission method according to a second embodiment of the present invention, which is mainly used for a receiving end to receive a data frame, and as shown in fig. 2, the CSBK transmission method according to the second embodiment mainly includes:
s201, based on a CSBK blind receiving data frame, wherein the data frame comprises a leading data frame and a short message data frame, and whether a deframing system is interrupted is detected; if not, continuing to execute S201;
s202, if the data frame is interrupted, reading a register and judging whether the data frame is received or not; if the data frame is not received, S202 is continuously executed;
s203, if a data frame is received, reading a random access memory address carried in the data frame, and judging whether the random access memory address is matched with the address of the random access memory; if not, discarding the data frame, and proceeding to step S209;
s204, if the data frames are matched with each other, reading the serial number carried in the data frame, and judging whether the data frame is continuous with the last received data frame or not according to the serial number; if not, discarding the data frame, and proceeding to step S209;
s205, if the data frame is continuous with the last received data frame, reading frame check data carried in the data frame, and checking the data frame according to the frame check data; if the verification fails, discarding the data frame, and entering step S209;
s206, if the verification is correct, reading response type data carried in the data frame, and judging whether to feed back confirmation data or not according to the response type data;
s207, if not needed, starting a register to start receiving the next data frame;
and S208, if necessary, generating confirmation data, feeding back the confirmation data based on the CSBK, and starting a register to start receiving the next data frame.
And S209, generating retransmission prompt data, and feeding back the retransmission prompt data based on the CSBK.
The present embodiment further provides a CSBK transmitting apparatus, which mainly includes:
the receiving module is used for blindly receiving data frames based on CSBK, and the data frames comprise leading data frames and short message data frames;
the detection module is used for detecting whether the de-framing system is interrupted or not;
the first reading module is used for reading the register if the deframing system is interrupted;
the first judging module is used for judging whether a data frame is received or not;
the second reading module is used for reading the random access memory address carried in the data frame if the data frame is received;
the second judging module is used for judging whether the random access memory address is matched with the self address;
a third reading module, configured to read the serial number carried in the data frame if the serial numbers match with each other;
a third judging module, configured to judge whether to continue with the last received data frame according to the sequence number;
a fourth reading module, configured to read frame check data carried in the data frame if the frame check data is consecutive to a last received data frame;
the checking module is used for checking the data frame according to the frame checking data;
a fifth reading module, configured to read response type data carried in the data frame;
the fourth judging module is used for judging whether to feed back confirmation data or not according to the response type data;
the starting module is used for starting the register to start receiving the next data frame;
the generating module is used for generating confirmation data if needed;
and the second sending module is used for feeding back the confirmation data based on the CSBK.
The CSBK transmission apparatus provided in this embodiment is used to implement the CSBK transmission method provided in this embodiment, and each module in the apparatus is used to implement a corresponding step in the method, which is not described herein again.
The embodiment also provides an intercom device comprising the CSBK transmission device. The intercom device may be a device with intercom function, such as an intercom.
The CSBK transmission method, the device and the talkback equipment provided by the embodiment of the invention realize the transmission of the short message by using the CSBK.
Example three:
the following detailed description of specific embodiments of the present invention is provided in connection with the accompanying drawings and examples. The embodiment mainly introduces the transmission of short messages between a sending end and a receiving end based on CSBK. The CSBK transmission method provided in this embodiment mainly includes:
firstly, a data frame structure of CSBK transmission short message is defined, the data frame structure comprises a leading data frame structure and a short message data frame structure.
The present embodiment defines two preamble frame structures including an unacknowledged preamble frame structure and an acknowledged preamble frame structure, wherein,
the unacknowledged preamble data frame structure includes: a destination address type field, a response type field, a data header field, an unconfirmed data bit field, a frame header data type field, a destination address field, a source address field, a sending type field, a data frame quantity field, a reserved bit field, a single-frame sequence bit field, a frame check data field, a stuffing byte high-order field and a stuffing byte low-order field;
the fields, byte length, value and meaning of the unacknowledged preamble data frame structure are defined as follows:
Figure BDA0003296682330000091
the acknowledgment preamble frame structure includes: a destination address type field, a response type field, a data header field, an unacknowledged data bit field, a frame header data type field, a destination address field, a source address field, a transmission type field, a data frame quantity field, a reserved bit field, a transmission sequence number field, a single frame sequence bit field, a frame check data field, a stuffing byte high-order field and a stuffing byte low-order field.
The fields, byte length, value and meaning of the ack-rs frame structure are defined as follows:
Figure BDA0003296682330000092
Figure BDA0003296682330000101
this embodiment defines two short message data frame structures, including an unacknowledged short message data frame structure and an acknowledged short message data frame structure,
the unconfirmed short message data frame structure can comprise a short message content field, or comprise a short message content field and a total check data field; if the non-confirmation short message data frame structure only includes the short message content field, the byte length of the short message content field may be 96, and if the non-confirmation short message data frame structure includes the short message content field and the total verification data field, the byte length of the short message content field may be 64, and the byte length of the total verification data field may be 32.
The confirmation short message data frame structure can comprise a short message content field, a sending sequence number field and a frame check data field, or comprises a short message content field, a sending sequence number field, a frame check data field and a total check data field. If it is determined that the short message data frame structure includes a short message content field, a sending sequence number field, and a frame check data field, the byte length of the short message content field may be 128, the byte length of the sending sequence number field may be 7, and the byte length of the frame check data field may be 9. If the short message data frame structure is determined to include the short message content field, the sending sequence number field, the frame check data field and the total check data field, the byte length of the short message content field may be 96, the byte length of the sending sequence number field may be 7, the byte length of the frame check data field may be 9, and the byte length of the total check data field may be 32.
The frame structure of the data frame fed back from the receiving end to the transmitting end, such as the data frame structure of the feedback acknowledgement data (ackcssk) and the retransmission hint data, may also be further defined; the fields, byte lengths, values and meanings of the frame structure of the feedback data frame are defined as follows:
Figure BDA0003296682330000111
and secondly, constructing data frames and configuring a register, and sequentially transmitting the data frames in the sequence number sequence based on the CSBK.
For the non-confirmed short message type, the method mainly comprises the following procedures:
1. and calculating the number of required data frames according to the content of the data to be transmitted, the length of the data to be transmitted, the sending data rate and the defined data frame structure, and determining the data content to be carried by each data frame and the sequence number of each data frame. Constructing a leading data frame according to the defined leading data frame structure, the destination address, the source address, the data frame quantity, the starting sequence number and the frame check data of the leading data frame; constructing and obtaining each short message data frame according to the defined short message data frame structure, the data content to be carried by each short message data frame, the serial number of each short message data frame and the frame check data of each short message data frame; filling byte number (filling 0), calculating frame check data and the like;
2. writing a leading data frame (PreCSBK1) to a Transmit random Access memory (Ram) address;
3. configuring the register LAYER2_ SEND _ TYPE to be 0x60 to indicate that the leading data frame, namely the frame header, is sent;
4. the configuration register, LAYER2_ TXRX _ CTRL, of 0x80 indicates that the next slot turns on transmission;
5. the 1 st packet 96Bits/144Bits two rate (one of them is selected) information (MSGCSBK) is written into the sending Ram address.
6. Configuring a register LAYER2_ SEND _ TYPE to be 0x70/0x80 to indicate that the short message data frame is sent;
7. the configuration register, LAYER2_ TXRX _ CTRL, of 0x80 indicates that the next slot turns on transmission;
8. the receiving end detects the interruption of a deframing system based on the CSBK blind receiving data frames, reads a register RX _ TYPE _ INFO, judges whether the data frames are received, reads the Ram address carried by the data frames if the data frames are received, and judges whether the Ram address is matched with the self address; if the addresses are matched, starting a time slot to receive the unconfirmed short message service, and starting a time slot switch register LAYER2_ TXRX _ CTRL register;
9. writing the 2 nd packet 96Bits/144Bits two rate (one of them is selected) information (MSGCSBK) into the sending Ram address;
10. the configuration register LAYER2_ SEND _ TYPE is 0x70/0x80 to indicate that the short message data frame is sent;
11. the configuration register, LAYER2_ TXRX _ CTRL, of 0x80 indicates that the next slot turns on transmission;
12. the receiving end detects the interruption of a deframing system based on the CSBK blind receiving data frames, reads a register RX _ TYPE _ INFO, judges whether the data frames are received, reads the Ram address carried by the data frames if the data frames are received, and judges whether the Ram address is matched with the self address; if the addresses are matched, starting a time slot to receive the unconfirmed short message service, and starting a time slot switch register LAYER2_ TXRX _ CTRL register;
13. writing the information (MSGCSBK) of the 3 rd packet 96Bits/144Bits with two rates (one of the two rates is selected) into a transmitting Ram address;
14. the configuration register LAYER2_ SEND _ TYPE is 0x70/0x80 to indicate that the short message data frame is sent;
15. the configuration register, LAYER2_ TXRX _ CTRL, of 0x80 indicates that the next slot turns on transmission;
16. writing the check result of the 4 th packet 96Bits/144Bits (one of which is selected) information (MSGCSBK) containing CRC32 into the sending Ram address;
17. configuring a register LAYER2_ SEND _ TYPE to be 0x70/0x80 to indicate that the short message data frame is sent;
18. the configuration register, LAYER2_ TXRX _ CTRL, of 0x80 indicates that the next slot turns on transmission;
19. and when the last data frame of the non-confirmation short message is sent, the short message is sent. And when the receiving end receives the last data frame, the receiving end finishes receiving the short message, the time sequence is finished, and the flow of sending the non-confirmation short message is finished.
For confirming the short message type, the method mainly comprises the following procedures:
1. and calculating the number of required data frames according to the content of the data to be transmitted, the length of the data to be transmitted, the sending data rate and the defined data frame structure, and determining the data content to be carried by each data frame and the sequence number of each data frame. Constructing a leading data frame according to the defined leading data frame structure, a destination address, a source address, the data frame quantity, a starting sequence number and frame check data of the leading data frame; constructing and obtaining each short message data frame according to the defined short message data frame structure, the data content to be carried by each short message data frame, the serial number of each short message data frame and the frame check data of each short message data frame; filling byte number (filling 0), calculating frame check data and the like;
2. writing a leading data frame (PreCSBK1) to a Transmit random Access memory (Ram) address;
3. the configuration register LAYER2_ SEND _ TYPE is 0x60 to indicate that a leading data frame, namely a frame header, is sent;
4. the configuration register, LAYER2_ TXRX _ CTRL, of 0x80 indicates that the next slot turns on transmission;
5. writing the two-rate (one is selected) information (MSGCSBK) of the 1 st packet 96Bits/144Bits into a transmitting Ram address, wherein the information (MSGCSBK) contains the CRC9 check result of the data content of the packet;
6. configuring a register LAYER2_ SEND _ TYPE to be 0x70/0x80 to indicate that the short message data frame is sent;
7. the configuration register, LAYER2_ TXRX _ CTRL, of 0x80 indicates that the next slot turns on transmission;
8. the receiving end detects the interruption of a deframing system based on the CSBK blind receiving of the data frame, reads the register RX _ TYPE _ INFO, judges whether the data frame is received, reads the Ram address carried by the data frame if the data frame is received, and judges whether the Ram address is matched with the own address; if the addresses are matched, starting a time slot receiving confirmation short message service, and starting a time slot switch register LAYER2_ TXRX _ CTRL register; reading a register RX _ TYPE _ INFO according to interruption of a deframing system, sequentially and correspondingly reading corresponding data frames from a received Ram address, and correspondingly calculating CRC9 check calculation of each data frame until the last data frame is received; and performing CRC32 check calculation on all received data frames in sequence to judge whether the received information is completely correct. The CRC9 of all data frames is correct and the CRC32 of the data content is correct, the receiving end needs to feed back acknowledgement data (ACKCSBK) to the transmitting end.
9. Writing the 2 nd packet 96Bit/144Bits two rate (one of them is selected) information (MSGCSBK) containing the CRC9 check result of the packet data content into the sending Ram address;
10. configuring a register LAYER2_ SEND _ TYPE to be 0x70/0x80 to indicate that the short message data frame is sent;
11. the configuration register, LAYER2_ TXRX _ CTRL, of 0x80 indicates that the next slot turns on transmission;
12. the receiving end detects the interruption of a deframing system based on the CSBK blind receiving of the data frame, reads the register RX _ TYPE _ INFO, judges whether the data frame is received, reads the Ram address carried by the data frame if the data frame is received, and judges whether the Ram address is matched with the own address; if the addresses are matched, starting a time slot receiving confirmation short message service, and starting a time slot switch register LAYER2_ TXRX _ CTRL register; reading a register RX _ TYPE _ INFO according to the interruption of a deframing system, reading corresponding data frames from a received Ram address in sequence correspondingly, and correspondingly calculating CRC9 check calculation of each data frame until the receiving of the last data frame is completed; and performing CRC32 check calculation on all the received data frames in sequence to judge whether the received information is completely correct. The CRC9 of all data frames is correct and the CRC32 of the data content is correct, the receiving end needs to feed back acknowledgement data (ackcssbk) to the transmitting end.
13. Writing the CRC9 verification result of the 3 rd packet 96Bits/144Bits two rate (one of them is selected) information (MSGCSBK) containing the data content of the packet into the sending Ram address;
14. configuring a register LAYER2_ SEND _ TYPE to be 0x70/0x80 to indicate that the short message data frame is sent;
15. the configuration register, LAYER2_ TXRX _ CTRL, of 0x80 indicates that the next slot turns on transmission;
16. the receiving end detects the interruption of a deframing system based on the CSBK blind receiving of the data frame, reads the register RX _ TYPE _ INFO, judges whether the data frame is received, reads the Ram address carried by the data frame if the data frame is received, and judges whether the Ram address is matched with the own address; if the addresses are matched, starting a time slot receiving confirmation short message service, and starting a time slot switch register LAYER2_ TXRX _ CTRL register; reading a register RX _ TYPE _ INFO according to interruption of a deframing system, sequentially and correspondingly reading corresponding data frames from a received Ram address, and correspondingly calculating CRC9 check calculation of each data frame until the last data frame is received; and performing CRC32 check calculation on all received data frames in sequence to judge whether the received information is completely correct. If the CRCs 9 of all data frames are correct and the CRCs 32 of the data contents are correct, the receiving end needs to feed back the acknowledgement data (ackcssk) to the transmitting end;
17. writing the information (MSGCSBK) of the 4 th packet 96Bits/144Bits with two rates (one is selected) into a sending Ram address, wherein the information comprises a CRC9 check result of the data content of the frame and a CRC32 check result of all the data content;
18. configuring a register LAYER2_ SEND _ TYPE to be 0x70/0x80 to indicate that the short message data frame is sent;
19. the configuration register, LAYER2_ TXRX _ CTRL, of 0x80 indicates that the next slot turns on transmission;
20. preparing the confirmed short message frame tail information of the voice LC72Bits, and writing the 72Bits information into a sending Ram address;
21. the configuration register LAYER2_ SEND _ TYPE of 0x20 represents sending the end of frame LC;
22. configuration register LAYER2_ TXRX _ CTRL of 0x80 indicates that the next slot turns on transmission;
23. and finishing sending the short message when the last data frame of the confirmation short message is sent. And when the receiving end receives the last data frame, the receiving end finishes receiving the short message, the time sequence is finished, and the short message sending and confirming process is finished.
The CSBK transmission method provided in this embodiment enables the use of CSBK to transmit short messages.
The foregoing is a more detailed description of the embodiments of the present invention, and the specific embodiments are not to be considered as limiting the invention. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A CSBK transmission method, comprising:
s101, defining a data frame structure for transmitting a short message by CSBK, wherein the data frame structure comprises a leading data frame structure and a short message data frame structure;
s102, constructing a data frame set according to the content of data to be transmitted, the length of the data to be transmitted, the sending data rate, the destination address, the source address, the frame check data and the data frame structure, wherein the data frame set comprises a plurality of data frames with continuous serial numbers;
s103, a configuration register, which transmits each data frame in sequence according to the sequence number of the CSBK.
2. The CSBK transmission method according to claim 1, wherein the preamble frame structure defined at step S101 includes an unacknowledged preamble frame structure or an acknowledged preamble frame structure,
the unacknowledged preamble data frame structure includes: one or more of a destination address type field, a response type field, a data header field, an unacknowledged data bit field, a frame header data type field, a destination address field, a source address field, a sending type field, a data frame quantity field, a reserved bit field, a single-frame sequence bit field, a frame check data field, a stuffing byte high-order field and a stuffing byte low-order field;
the acknowledgment preamble frame structure comprises: one or more of a destination address type field, a response type field, a data header field, an unacknowledged data bit field, a frame header data type field, a destination address field, a source address field, a transmission type field, a data frame quantity field, a reserved bit field, a transmission sequence number field, a single frame sequence bit field, a frame check data field, a stuffing byte high-order field, and a stuffing byte low-order field.
3. The CSBK transmission method according to claim 1, wherein the short message data frame structure defined at step S101 comprises an unacknowledged short message data frame structure or an acknowledged short message data frame structure,
the non-confirmation short message data frame structure comprises a short message content field, or comprises a short message content field and a total verification data field;
the confirmed short message data frame structure comprises a short message content field, a sending sequence number field and a frame check data field, or comprises a short message content field, a sending sequence number field, a frame check data field and a total check data field.
4. The CSBK transmission method according to claim 1, wherein the step S102 includes:
determining the number of data frames, the data content to be carried by each data frame and the serial number of each data frame according to the content of the data to be transmitted, the length of the data to be transmitted, the sending data rate and the data frame structure;
constructing a leading data frame according to the leading data frame structure, the destination address, the source address, the data frame quantity, the starting sequence number and the frame check data of the leading data frame; and constructing and obtaining each short message data frame according to the short message data frame structure, the data content to be carried by each short message data frame, the serial number of each short message data frame and the frame check data of each short message data frame.
5. The CSBK transmission method according to claim 1, wherein step S103 further comprises:
and the configuration register is used for retransmitting the data frame with failed transmission.
6. A CSBK transmission method, comprising:
s201, based on the CSBK blind reception of data frames, detecting whether a deframing system is interrupted or not, wherein the data frames comprise leading data frames and short message data frames;
s202, if the interruption occurs, reading a register and judging whether a data frame is received;
s203, if a data frame is received, reading a random access memory address carried in the data frame, and judging whether the random access memory address is matched with the address of the random access memory;
s204, if the data frames are matched with each other, reading the serial number carried in the data frame, and judging whether the data frame is continuous with the last received data frame or not according to the serial number;
s205, if the data frame is continuous with the last received data frame, reading frame check data carried in the data frame, and checking the data frame according to the frame check data;
s206, if the verification is correct, reading response type data carried in the data frame, and judging whether to feed back confirmation data or not according to the response type data;
s207, if not needed, starting a register to start receiving the next data frame;
and S208, if necessary, generating confirmation data, feeding back the confirmation data based on the CSBK, and starting a register to start receiving the next data frame.
7. The CSBK transmission method according to claim 6, further comprising S209:
and if the data frame is not continuous with the last received data frame, generating retransmission prompt data, and feeding back the retransmission prompt data based on the CSBK.
8. A CSBK transmission device, comprising:
the defining module is used for defining a data frame structure of the CSBK transmission short message, wherein the data frame structure comprises a leading data frame structure and a short message data frame structure;
the data frame structure comprises a construction module, a data frame acquisition module and a data frame transmission module, wherein the construction module is used for constructing a data frame set according to the content of data to be transmitted, the length of the data to be transmitted, the sending data rate, a destination address, a source address, frame check data and the data frame structure, and the data frame set comprises a plurality of data frames with continuous serial numbers;
and the first sending module is used for configuring the register and sending the data frames in sequence based on the sequence number of the CSBK.
9. A CSBK transmission device, comprising:
the receiving module is used for blindly receiving data frames based on CSBK, and the data frames comprise leading data frames and short message data frames;
the detection module is used for detecting whether the de-framing system is interrupted or not;
the first reading module is used for reading the register if the deframing system is interrupted;
the first judging module is used for judging whether a data frame is received or not;
the second reading module is used for reading the random access memory address carried in the data frame if the data frame is received;
the second judging module is used for judging whether the random access memory address is matched with the self address;
a third reading module, configured to read a sequence number carried in the data frame if the sequence number matches the sequence number;
a third judging module, configured to judge whether to continue with a last received data frame according to the sequence number;
a fourth reading module, configured to read frame check data carried in the data frame if the frame check data is consecutive to a last received data frame;
the checking module is used for checking the data frame according to the frame checking data;
a fifth reading module, configured to read response type data carried in the data frame;
the fourth judging module is used for judging whether to feed back confirmation data or not according to the response type data;
the starting module is used for starting the register to start receiving the next data frame;
the generating module is used for generating confirmation data if needed;
and the second sending module is used for feeding back the confirmation data based on the CSBK.
10. An intercom apparatus comprising the CSBK transmission device as claimed in claim 8 or 9.
CN202111180019.5A 2021-10-11 2021-10-11 CSBK transmission method, device and intercom equipment Active CN113905333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111180019.5A CN113905333B (en) 2021-10-11 2021-10-11 CSBK transmission method, device and intercom equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111180019.5A CN113905333B (en) 2021-10-11 2021-10-11 CSBK transmission method, device and intercom equipment

Publications (2)

Publication Number Publication Date
CN113905333A CN113905333A (en) 2022-01-07
CN113905333B true CN113905333B (en) 2022-09-23

Family

ID=79191174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111180019.5A Active CN113905333B (en) 2021-10-11 2021-10-11 CSBK transmission method, device and intercom equipment

Country Status (1)

Country Link
CN (1) CN113905333B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002091596A2 (en) * 2001-05-04 2002-11-14 M & S Systems, Inc. Digital multi-room, multi-source entertainment and communications network
CN1381968A (en) * 2001-04-18 2002-11-27 信息产业部武汉邮电科学研究院 Interface device and method for direct match of Ethernet with physical channel
CN102158769A (en) * 2011-04-07 2011-08-17 海能达通信股份有限公司 Method and system for realizing remote inquiry and control of interphone
CN204425560U (en) * 2015-01-13 2015-06-24 深圳市海恒通科技有限公司 A kind of elevator intercommunication unit and system
CN106658529A (en) * 2016-12-19 2017-05-10 中国人民解放军国防信息学院 Private network frequency-selecting networking chain building method based on short wave channel
CN106788782A (en) * 2016-12-06 2017-05-31 哈尔滨工程大学 Underwater sound communication network OFDM Link Physical Layers and MAC layer cross-layer communication method
CN109067513A (en) * 2018-11-01 2018-12-21 北京志翔科技股份有限公司 A kind of half-duplex operation method, apparatus and system
CN109561426A (en) * 2018-11-20 2019-04-02 浙江威星智能仪表股份有限公司 A kind of reliability method of less radio-frequency GFSK networking communication

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1381968A (en) * 2001-04-18 2002-11-27 信息产业部武汉邮电科学研究院 Interface device and method for direct match of Ethernet with physical channel
WO2002091596A2 (en) * 2001-05-04 2002-11-14 M & S Systems, Inc. Digital multi-room, multi-source entertainment and communications network
CN102158769A (en) * 2011-04-07 2011-08-17 海能达通信股份有限公司 Method and system for realizing remote inquiry and control of interphone
CN204425560U (en) * 2015-01-13 2015-06-24 深圳市海恒通科技有限公司 A kind of elevator intercommunication unit and system
CN106788782A (en) * 2016-12-06 2017-05-31 哈尔滨工程大学 Underwater sound communication network OFDM Link Physical Layers and MAC layer cross-layer communication method
CN106658529A (en) * 2016-12-19 2017-05-10 中国人民解放军国防信息学院 Private network frequency-selecting networking chain building method based on short wave channel
CN109067513A (en) * 2018-11-01 2018-12-21 北京志翔科技股份有限公司 A kind of half-duplex operation method, apparatus and system
CN109561426A (en) * 2018-11-20 2019-04-02 浙江威星智能仪表股份有限公司 A kind of reliability method of less radio-frequency GFSK networking communication

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
警用数字集群终端协议栈的研究与实现;李俊生;《中国优秀硕士学位论文全文数据库(电子期刊)》;20181231;第二章 *

Also Published As

Publication number Publication date
CN113905333A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
US4439859A (en) Method and system for retransmitting incorrectly received numbered frames in a data transmission system
KR940002195B1 (en) Universal protocol data receiver
US9288014B2 (en) Communication apparatus, transmitting method and receiving method
US5818852A (en) Packet data communication method and system
CN101507318B (en) Radio communication device and method used in mobile communication system
CN106656424A (en) Verification method of data transmission
CN111800171A (en) Bluetooth low-power-consumption audio data transmission method, device and equipment
CN106654770A (en) Universal serial bus (USB) extension cord
CN105119691A (en) Method for reliable point-to-point transmission via Ethernet
CN113905333B (en) CSBK transmission method, device and intercom equipment
US5007055A (en) Information distribution system
KR100859499B1 (en) Data transmitting/receiving method and communication system thereof
JP2001007788A (en) Method for identifying data unit in communication channel
JPH1070523A (en) Method and equipment for packet transmission
KR20140062400A (en) Base station and a plurality of member nodes of transmitting and receiving network coding based multicast traffic
JP3460715B2 (en) Communication system and communication method
CN104144043A (en) Hybrid automatic retransmission request combination method
KR20140074685A (en) Electron tag device and communication method thereof
JPH01289339A (en) Communication controller
Bansal et al. Analysis of Sliding Window Protocol for Connected Node
JP2862403B2 (en) Data transmission method
CN117579226A (en) Link retransmission method and device based on IB flow control packet
SU873439A1 (en) Subscriber communication station
JPH0897880A (en) Communication system by procedure applicable to hdlc
WO2023170276A1 (en) Method and apparatus for radio communications

Legal Events

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