[go: up one dir, main page]

CN120263909B - Short-wave radio fax communication module and method for realizing short-wave radio fax communication - Google Patents

Short-wave radio fax communication module and method for realizing short-wave radio fax communication

Info

Publication number
CN120263909B
CN120263909B CN202510737966.1A CN202510737966A CN120263909B CN 120263909 B CN120263909 B CN 120263909B CN 202510737966 A CN202510737966 A CN 202510737966A CN 120263909 B CN120263909 B CN 120263909B
Authority
CN
China
Prior art keywords
fax
module
fax communication
communication
data
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
CN202510737966.1A
Other languages
Chinese (zh)
Other versions
CN120263909A (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.)
Xian University of Posts and Telecommunications
Original Assignee
Xian University of Posts and Telecommunications
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 Xian University of Posts and Telecommunications filed Critical Xian University of Posts and Telecommunications
Priority to CN202510737966.1A priority Critical patent/CN120263909B/en
Publication of CN120263909A publication Critical patent/CN120263909A/en
Application granted granted Critical
Publication of CN120263909B publication Critical patent/CN120263909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Facsimile Transmission Control (AREA)
  • Facsimiles In General (AREA)

Abstract

本发明提供了一种短波电台传真通信模块及实现短波电台传真通信的方法,属于短波通信技术领域,短波电台传真通信模块包括:中央控制单元、存储单元、用户线路接口电路、初始化模块、配置模块、日志模块、传真通信状态机模块、G3传真机传真通信模块、传真数据加解密模块、波形协议处理模块。本发明的短波电台传真通信模块通过各模块的协同工作,实现了与G3传真机的专线或外线连接,支持多种传真编码方式,对传真数据进行加密解密处理,提高了通信安全性;通过状态机实现业务实时调度,保证了系统的高效可靠运行。实现短波电台传真通信的方法,详细规定了发送和接收传真的流程,兼容不同配置方式,解决了现有技术中的问题。

The present invention provides a shortwave radio fax communication module and a method for implementing shortwave radio fax communication, belonging to the field of shortwave communication technology. The shortwave radio fax communication module includes: a central control unit, a storage unit, a user line interface circuit, an initialization module, a configuration module, a log module, a fax communication state machine module, a G3 fax machine fax communication module, a fax data encryption and decryption module, and a waveform protocol processing module. The shortwave radio fax communication module of the present invention achieves dedicated or external line connection with a G3 fax machine through the coordinated operation of various modules, supports multiple fax encoding methods, encrypts and decrypts fax data, and improves communication security. Real-time service scheduling is achieved through the state machine, ensuring efficient and reliable operation of the system. The method for implementing shortwave radio fax communication details the process of sending and receiving faxes, is compatible with different configuration methods, and solves problems in the prior art.

Description

Short-wave radio fax communication module and method for realizing short-wave radio fax communication
Technical Field
The invention relates to the technical field of short-wave communication, in particular to a short-wave radio fax communication module and a method for realizing short-wave radio fax communication.
Background
Short wave communication radio stations are important in emergency communication, offshore communication, military communication and other scenes because of the advantages of long communication distance, small volume, strong anti-interference capability and the like. Facsimile communication has real-time recording and genuine-mark transmission properties as recording communication for transmitting still images, and is widely used in various fields, and is particularly valuable in military communication. However, the existing short-wave station fax communication has the problems of low transmission rate, insufficient safety, difficulty in being compatible with various types of G3 fax machines, and the like, and a short-wave station fax communication module and a method capable of solving the problems are needed.
Disclosure of Invention
The invention aims to solve the problems of low transmission rate, insufficient safety, difficult compatibility and the like in the conventional short-wave radio fax communication, and provides a short-wave radio fax communication module and a method for realizing the short-wave radio fax communication.
The specific technical scheme is as follows:
A short-wave radio fax communication module comprises a central control unit, a storage unit, a user line interface circuit, an initialization module, a configuration module, a log module, a fax communication state machine module, a G3 fax machine fax communication module, a fax data encryption and decryption module and a waveform protocol processing module, wherein the central control unit is respectively and electrically connected with the storage unit, the user line interface circuit and an embedded Modem, the initialization module, the configuration module, the log module, the fax communication state machine module, the G3 fax machine fax communication module, the fax data encryption and decryption module and the waveform protocol processing module are stored in a Flash memory in the central control unit in the form of software binary codes, the module is connected with the G3 fax machine in a special line or an external line mode through a two-wire telephone line to realize fax communication between the G3 fax machine and the short-wave radio, fax data is communicated with a waveform module according to a protocol, a LwIP protocol and a waveform module protocol are realized, and the waveform module and the fax communication module adopts UDP transmission.
In the above short-wave radio fax communication module, the storage unit includes an SRAM memory CY62157 with a capacity of 1MB and a Flash memory W25X80 with a capacity of 1MB, and is configured to store fax data, fax capability analysis information, and buffer data after encryption and decryption processing, and support on-demand dynamic allocation of at most 10 pages of fax data.
The short-wave radio fax communication module is characterized in that the subscriber line interface circuit is an SLIC circuit Ag1170 and is used for detecting an off-hook signal, feeding a line and generating a ringing signal, supporting a special line or an external line connection mode of a two-line telephone line, and being compatible with an information security laser special fax machine and a warship secret fax machine type G3 fax machine.
The short-wave radio station fax communication module is characterized in that the fax communication state machine module realizes real-time scheduling of services such as PSTN fax communication, waveform protocol processing, off-hook detection, dual tone multi-frequency DTMF signal identification, ringing signal generation and the like through a state machine, and the system is powered on and then sequentially goes through an Initial state and an Idle monitoring state, state transition complies with specific conditions and routes, and network receiving is realized through interrupt callback.
The short-wave radio station fax communication module comprises the embedded Modem MT9234, the embedded Modem MT9234 communicates with the Modem through a UART in the central control unit, fax transmission and fax reception are achieved according to a T.30 fax communication protocol, the complete and reliable transmission of the whole fax data frame is achieved by adopting a stop equation flow control mechanism in a stage C of the T.30 fax protocol, stop equation flow control is achieved by monitoring (XON/XOFF) characters on a Modem line in a software mode, UART baud rate is set to 19200bps, line rate is set to 9600bps or 11400bps, and flow control is not needed in a mode of setting UART to 57600bps baud rate for receiving and setting a large buffer area when receiving fax. The method realizes a plurality of time-limited response processes of G3 fax machine call establishment, message pre-preparation process and message post-release process, and reliable and complete receiving and transmitting of fax coding data frames in the message. Fax coding data supports MH\MHR\MMR coding modes.
According to the short-wave radio station fax communication module, the fax data encryption and decryption module encrypts and decrypts the fax image data, and the symmetric block cipher algorithm with the variable key length of the Blowfish is adopted to encrypt and decrypt the fax page coded data, so that the fax data transmitted by the radio station cannot be decrypted, and the communication safety is improved.
The waveform protocol processing module realizes protocol communication with the waveform module of the short-wave radio station, the data packet format definition comprises version, length, source module code, target module code, type, checksum and message payload, UDP protocol transmission is adopted, a data confirmation mechanism and a communication mechanism are provided, and waiting time and retransmission of the data packet are regulated.
The short-wave radio fax communication module further comprises an LM3S9B96 of the ARMCortex-M3 inner core of the main controller, an embedded Modem MT9234, a latch 7416373, a DTMF signal identification circuit HT9172 and a power supply circuit, wherein all the hardware components work cooperatively to realize the hardware function support of the fax communication module.
The short-wave radio fax communication module comprises a software system, wherein the software system comprises a HAL hardware abstraction layer based on a circuit layer, an OS operating system layer and a logic function application layer, the HAL hardware abstraction layer comprises UART, timer, GPIO, SRAM, FLASH, SLIC, modem driving programs, and the logic function application layer comprises an initialization module, a state machine, a fax data encryption and decryption module, a configuration module, a log module, a PSTN calling and sending module, a PSTN called receiving module and a waveform protocol receiving and sending processing module.
According to the short-wave radio station fax communication module, the simulation debugging software supports the waveform protocol to transmit and receive communication, fax data can be conveniently received and sent through a network, fax image data can be browsed in a Tiff file mode, and the data display window displays communication data in real time.
The short-wave radio fax communication module comprises an initialization module, a configuration module and a log module, wherein the initialization module is used for detecting and initializing the power-on of system resources, the configuration module is used for configuring network parameters and a line connection mode, and the log module is used for recording the system activity state in real time and generating a communication report.
In the above short-wave radio fax communication module, the PSTN calling transmission module t.30 fax communication procedure C stage adopts a stop-and-go flow control method, and the waveform protocol processing module uses a request-acknowledge protocol type flow control and retransmission error control method.
The short-wave radio fax communication module is characterized in that a LwIP protocol is realized by the waveform protocol processing module, and the waveform protocol is programmed and realized in a Raw/CallbackAPI callback mode.
The invention also provides a method for realizing the fax communication of the short-wave radio station, which comprises the steps of sending fax and receiving fax, wherein when the fax is sent, the fax communication module receives the fax sent by the G3 fax machine, communicates and stores data through a T.30 fax communication protocol, encrypts the data and transmits the data to a service unit through a network, and is transmitted by the short-wave radio station, when the fax is received, the short-wave radio station sends the encrypted fax data to the fax communication module, and after decryption, starts a fax sending flow, and communicates with the fax machine at the G3 receiving end according to the T.30 fax communication protocol.
The method for realizing the fax communication of the short-wave radio station comprises the steps of starting a receiving process by using an off-hook dialing # of a calling G3 fax machine when a fax is sent in an external mode, calling and establishing an A-stage according to a T.30 fax communication procedure, sending by pressing a start button, directly connecting and receiving a fax message after the G3 fax machine presses the start button when the fax is configured in a special mode, detecting an off-hook state of a line in the external mode when the fax is received, sending a ringing signal to inform a receiver of the off-hook state of the line in the special mode, directly trying the A-stage connection, and communicating according to a T.30 fax communication procedure protocol after the connection is successful.
The invention has the following beneficial effects:
The short-wave radio fax communication module realizes the special line or external line connection with the G3 fax machine through the cooperative work of the modules, supports various fax coding modes, encrypts and decrypts the fax data, improves the communication safety, realizes the real-time service scheduling through a state machine, and ensures the efficient and reliable operation of the system. The method for realizing the fax communication of the short-wave radio station specifies the flow of sending and receiving the fax in detail, is compatible with different configuration modes, solves the problems in the prior art, and is suitable for the fields of emergency communication, offshore communication, military communication and the like.
Drawings
Fig. 1 is a schematic diagram of fax communication of a short-wave radio station according to an embodiment of the present invention;
fig. 2 is a schematic diagram of system hardware of a fax communication module of a short-wave radio station according to an embodiment of the present invention;
fig. 3 is a system architecture diagram of a short-wave radio fax communication module according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a fax communication module as a called receiver according to an embodiment of the present invention;
FIG. 5 is a schematic illustration of an external connection and external setup operation provided by an embodiment of the present invention;
Fig. 6 is a schematic diagram of dedicated connection and dedicated setting operations according to an embodiment of the present invention;
FIG. 7 is a flow chart of a fax communication module for receiving a fax communication of a G3 fax machine according to an embodiment of the present invention;
FIG. 8 is a flow chart of a facsimile data encryption process provided by an embodiment of the present invention;
fig. 9 is a flow chart of fax data network transmission according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a fax communication module according to an embodiment of the present invention as a calling transmitter;
fig. 11 is a flow chart of fax data network reception according to an embodiment of the present invention;
FIG. 12 is a flowchart of a fax data network receiving decryption processing transmitting G3 fax machine according to an embodiment of the present invention;
FIG. 13 is a flow chart of fax communication for sending a G3 fax machine by the fax communication module according to the embodiment of the present invention;
fig. 14 is a schematic diagram of a protocol packet format of a fax communication module and a short wave waveform module according to an embodiment of the present invention;
FIG. 15 is a Modem rate chart of a T.30 fax communication process according to an embodiment of the present invention;
fig. 16 is a schematic diagram of fax data format definition according to an embodiment of the present invention;
FIG. 17 is a state transition diagram of fax communication module system software according to an embodiment of the present invention;
fig. 18 is a flowchart of facsimile data Blowfish encryption provided in an embodiment of the present invention;
fig. 19 is a flowchart of facsimile data Blowfish decryption according to an embodiment of the present invention;
fig. 20 is a schematic diagram of an internal implementation process of a Socket initialization function of a waveform protocol processing module according to an embodiment of the present invention;
FIG. 21 is a schematic diagram of a facsimile data stop-equation flow control according to an embodiment of the present invention;
Fig. 22 is a flow chart of a fax data transmission with stop-and-go flow control according to an embodiment of the present invention;
FIG. 23 is a schematic diagram of a protocol flow control of a waveform protocol processing module according to an embodiment of the present invention;
FIG. 24 is a diagram of a fax communication module according to an embodiment of the present invention;
fig. 25 is a waveform protocol analog modulation software interface diagram of a fax communication module according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further described below by the specific embodiments with reference to the accompanying drawings.
Wherein the drawings are for illustrative purposes only and are schematic representations, not intended to be limiting of the application, and wherein certain components of the drawings are omitted, enlarged or reduced in order to better illustrate embodiments of the application, and do not represent actual product dimensions.
In the description of the present application, it should be understood that, if the terms "upper", "lower", "left", "right", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, it is merely for convenience in describing the present application and simplifying the description, and it is not indicated or implied that the devices or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, so that the terms describing the positional relationships in the drawings are merely for illustration and are not to be construed as limitations of the present application, and that the specific meanings of the terms described above may be understood by those skilled in the art according to specific circumstances.
In the description of the present invention, unless explicitly stated or limited otherwise, the term "coupled" or the like should be interpreted broadly, as referring to a connection between two components, for example, a fixed connection, a removable connection, or a combination, a mechanical connection, an electrical connection, a direct connection, an indirect connection via an intermediary, a communication between two components, or an interaction between two components. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
The first embodiment of the invention provides a short-wave radio fax communication module, as shown in fig. 1-25, comprising a central control unit, a storage unit, a user line interface circuit, an initialization module, a configuration module, a log module, a fax communication state machine module, a G3 fax machine fax communication module, a fax data encryption and decryption module and a waveform protocol processing module, wherein the central control unit is respectively and electrically connected with the storage unit, the user line interface circuit and an embedded Modem, the initialization module, the configuration module, the log module, the fax communication state machine module, the G3 fax machine fax communication module, the fax data encryption and decryption module and the waveform protocol processing module are stored in a Flash memory in the central control unit in the form of software binary codes, the modules are connected with the G3 fax machine in a special line or an external line mode through two-line telephone lines, so that the fax communication between the G3 fax machine and the short-wave radio fax is realized, the fax data is communicated with the waveform module according to the protocol, the waveform module realizes LwIP protocols and the waveform module protocols, and the waveform module adopts UDP transmission.
By adopting the technical scheme, the short-wave radio fax communication module is connected with each module through the central control unit, so that the cooperative work among the modules is realized, and a complete short-wave radio fax communication system is constructed. The two-wire telephone line is connected with the G3 fax machine, so that fax communication between the G3 fax machine and a short-wave radio station can be realized, and LwIP protocol and waveform module protocol are utilized for communication, thereby ensuring reliability and stability of data transmission and providing an infrastructure for fax communication.
Specifically, in this embodiment, the storage unit includes an SRAM memory CY62157 with a capacity of 1MB and a Flash memory W25X80 with a capacity of 1MB, which are used to store fax data, fax capability analysis information, and buffer data after encryption and decryption processing, and support on-demand dynamic allocation of at most 10 pages of fax data.
By adopting the technical scheme, the storage unit is provided with the SRAM memory and the Flash memory with certain capacity, and can effectively store fax data, fax capability analysis information and buffer data after encryption and decryption processing. Dynamic allocation according to needs is supported, storage requirements of fax data of different quantities can be met, and flexibility and high efficiency of data storage are guaranteed.
Specifically, in this embodiment, the subscriber line interface is a SLIC circuit Ag1170, which is used to perform on-hook signal detection, line feeding and ringing signal generation, and support a dedicated or external connection mode of a two-line telephone line, so that the subscriber line interface is compatible with an information security laser dedicated fax machine and a warship secret fax machine type G3 fax machine.
By adopting the technical scheme, the subscriber line interface adopts the SLIC circuit Ag1170, and can accurately detect the off-hook signal, feed the line and generate the ringing signal. The system supports multiple connection modes, is compatible with all types of G3 fax machines, enhances the universality and the adaptability of the module, and can meet the use requirements of different users and different fax machines.
Specifically, in this embodiment, the fax communication state machine module implements real-time scheduling of services such as PSTN fax communication, waveform protocol processing, hook-off detection, dual tone multi-frequency DTMF signal identification, ring signal generation, etc. through a state machine, after the system is powered on, the system sequentially goes through an Initial state and an Idle monitoring state, state transitions follow specific conditions and routes, and network reception is implemented through interrupt callback.
By adopting the technical scheme, the fax communication state machine module realizes real-time scheduling of multiple services through a state machine, so that the system can orderly process tasks such as PSTN fax communication, waveform protocol processing, off-hook and on-hook detection and the like. After the system is powered on, the system operates according to a specific state transition rule, network receiving is realized through interrupt callback, the operation efficiency and response speed of the system are improved, and smooth operation of various services is ensured.
Specifically, in this embodiment, the fax communication module of the G3 fax machine includes an embedded Modem MT9234, and communicates with the Modem through a UART inside the central control unit, fax transmission and fax reception are implemented according to a t.30 fax communication protocol, and in a stage C of the t.30 fax protocol, a (XON/XOFF) character on a Modem line is monitored by software to implement stop equation flow control, a UART baud rate is set to 19200bps, a line rate supports 9600bps or 11400bps, and when receiving a fax, flow control is not required by setting a UART to 57600bps baud rate for receiving and setting a large buffer. The method realizes a plurality of time-limited response processes of G3 fax machine call establishment, message pre-preparation process and message post-release process, and reliable and complete receiving and transmitting of fax coding data frames in the message. Fax coding data supports MH\MHR\MMR coding modes.
By adopting the technical scheme, the balance of data throughput between the Modem and the UART is maintained through the stop equation flow control, the complete and reliable transmission and reception of the fax data message are realized, the fax data message supports a plurality of coding modes, and the coding mode with higher compression rate is selected to be beneficial to shortening the fax message data transmission time of a short wave channel.
Specifically, in this embodiment, the fax data encryption and decryption module encrypts and decrypts the fax image data, and uses a Blowfish variable-key-length symmetric block cipher algorithm to encrypt and decrypt the fax page encoded data, so as to ensure that the fax data transmitted by the radio station cannot be decrypted, so as to improve communication security.
By adopting the technical scheme, the fax data encryption and decryption module encrypts and decrypts the fax image data, and the symmetric block cipher algorithm with the variable key length of the Blowfish is adopted to encrypt and decrypt the fax page coded data, so that the fax data transmitted by a radio station can not be easily decrypted, the communication safety is greatly improved, and the fax information is prevented from being stolen or tampered in the transmission process.
Specifically, in this embodiment, the waveform protocol processing module implements protocol communication with the short-wave radio waveform module, where the packet format definition includes version, length, source module code, destination module code, type, checksum, and message payload, and UDP protocol is used for transmission, and the packet format definition includes a data acknowledgement mechanism and a communication mechanism, and specifies a waiting time and retransmission of a packet.
By adopting the technical scheme, the waveform protocol processing module realizes protocol communication with the short-wave radio waveform module, through definite data packet format definition, UDP protocol transmission is adopted, and the data packet waiting time and retransmission are regulated by a data confirmation mechanism and a communication mechanism, so that the accuracy and reliability of fax data in the communication process with the short-wave radio are ensured, and the data loss and transmission errors are reduced.
Specifically, in this embodiment, the hardware portion further includes an LM3S9B96 of the armcotex-M3 core, an embedded Modem MT9234, a latch 7416373, a DTMF signal identification circuit HT9172, and a power supply circuit, where each hardware component cooperates to implement hardware function support of the facsimile communication module.
By adopting the technical scheme, the components of the hardware part work cooperatively, the main controller is used as a core for coordination, the embedded Modem realizes signal modulation and demodulation, the storage unit provides a data storage function for fax data storage and encryption and decryption processing of cache data, the user line interface circuit, the DTMF signal identification circuit, the power supply circuit and other auxiliary components provide support, and the stable hardware function support is provided for the fax communication module together, so that the normal operation of the whole module is ensured.
Specifically, in this embodiment, the software system includes a HAL hardware abstraction layer based on a circuit layer, an OS operating system layer and a logic function application layer, where the HAL hardware abstraction layer includes UART, timer, GPIO, SRAM, FLASH, SLIC, modem drivers, and the logic function application layer includes PSTN calling sending, PSTN called receiving, a state machine, a waveform protocol transceiving processing module, an initialization module and a fax data encryption and decryption module.
Specifically, in this embodiment, the initialization module performs power-up detection and initialization on system resources, the configuration module configures network parameters and a line connection mode, and the log module records the system activity state in real time to generate a communication report.
Specifically, in this embodiment, the PSTN caller sending module t.30 fax communication procedure stage C adopts a stop-equation flow control method, and the waveform protocol processing module uses a request-acknowledgement protocol type flow control and retransmission error control method, so that the communication is efficient, reliable and complete.
Specifically, in this embodiment, the waveform protocol processing module implements LwIP protocols, and the waveform protocols are implemented by programming in a way of Raw/CallbackAPI callback, so that the performance of the system is improved.
By adopting the technical scheme, the software system adopts a layered architecture, and each layer has definite division. The logical function application layer comprises a plurality of functional modules, realizes various business logics of fax communication, improves the maintainability and expandability of the software, and is convenient for upgrading and optimizing the system.
The second embodiment provides a method for realizing fax communication of a short-wave radio station, which is applied to the fax communication module of the short-wave radio station in the embodiment 1 and comprises the steps of transmitting fax and receiving fax, wherein when the fax is transmitted, the fax communication module receives the fax transmitted by a G3 fax machine, communicates and stores data through a T.30 fax communication protocol, transmits the encrypted data to a service unit through a network, and is transmitted by the short-wave radio station, when the fax is received, the short-wave radio station transmits the encrypted fax data to the fax communication module, and after decryption, starts a fax transmission flow, and communicates with the fax machine at a G3 receiving end according to the T.30 fax communication protocol.
The method specifies the flow of transmitting and receiving the fax in detail, realizes the fax communication between the G3 fax machine and the short-wave radio station, ensures that the fax data can be accurately and safely transmitted between different devices, and solves the problems of the fax communication of the existing short-wave radio station.
The method comprises the steps of when a fax is sent, when the fax is configured to be in an external mode, starting a receiving flow by an off-hook dialing of a calling G3 fax machine, sending according to a T.30 fax communication procedure call establishment A stage by pressing a starting button, when the fax is configured to be in a special line mode, directly connecting and receiving a fax message after the G3 fax machine presses the starting button, when the fax is received, detecting an off-hook state of a line in the external mode, sending a ringing signal to inform a receiver of off-hook, always off-hook the line in the special line mode, directly trying for A stage connection, and communicating according to a T.30 fax communication procedure protocol after the connection is successful. Specific operation flows for sending and receiving faxes are respectively provided for different configuration modes (an external mode and a special line mode), so that the module can be better adapted to different use scenes, the flexibility and compatibility of the system are improved, and diversified user requirements are met.
In summary, the short-wave radio fax communication module provided in this embodiment has the following advantages:
the short-wave radio fax communication module of the embodiment realizes special line or external line connection with the G3 fax machine through the cooperative work of the modules, supports various fax coding modes, encrypts and decrypts fax data, improves communication safety, realizes real-time service scheduling through a state machine, and ensures efficient and reliable operation of the system. The method for realizing the fax communication of the short-wave radio station specifies the flow of sending and receiving the fax in detail, is compatible with different configuration modes, solves the problems in the prior art, and is suitable for the fields of emergency communication, offshore communication, military communication and the like.
The short-wave radio fax communication module provided in this embodiment mainly comprises module hardware and a software system, wherein:
Modular hardware composition
And the LM3S9B96 of the ARMCortex-M3 kernel of the main controller is used as a central control unit to coordinate the work of each hardware component. The embedded Modem MT9234 realizes the modulation and demodulation of signals, and the SLIC circuit Ag1170 is used as a subscriber line interface to perform off-hook signal detection, line feeding and ringing signal generation. The DTMF signal recognition circuit HT9172 performs recognition of a dual tone multi-frequency signal. The SRAM memory CY62157, the Flash memory W25X80 and the latch 7416373 form a storage system for storing fax message related data. Auxiliary components such as a power circuit and the like ensure the stable operation of the hardware system.
Software system operation
After the system is powered on, the initialization is completed in the Initial state, and if the initialization is successful, the Idle monitoring state is entered. In Idle state, off-hook signals or network reception data are monitored. When the fax machine is detected to be off-hook, the dialing number of the DTMF signal recognition circuit judges whether the fax machine enters a voice call state or a PSTN receiving fax state. And in the PSTN receiving fax state, receiving fax data according to a T.30 fax communication protocol, storing, encrypting, and starting a network sending flow. And after the network transmission is completed, reporting the state and returning to the Idle state. When receiving the fax, the data is received from the waveform module, decrypted and then sent to the G3 fax machine according to the T.30 fax communication protocol, and the whole process is scheduled in real time by the fax communication state machine module.
The overall working principle flow of the short-wave radio station fax communication module is divided into two main processes of fax sending and fax receiving:
Transmitting faxes
1. And the connection and data receiving are that the G3 fax machine and the fax communication module are connected in a special line or an external line mode through a two-line telephone line. If the mode is the external line mode, the calling G3 fax machine starts the receiving flow, and the starting button is pressed to send in the phase A of the call establishment of the T.30 fax communication protocol, if the mode is the special line mode, the G3 fax machine is directly connected and receives the fax message after pressing the starting button. The fax communication module receives fax data sent by the G3 fax machine through the user line interface.
2. And data storage and processing, namely storing the received fax data in a storage system, and analyzing fax capacity by a fax communication state machine module. The fax data encryption and decryption module encrypts the data, so that the security of the data is ensured.
3. And the encrypted fax data is transmitted to a service unit by adopting a UDP protocol according to the protocol communication rule of the waveform module of the short-wave radio station by the waveform protocol processing module, and finally transmitted by the short-wave radio station.
Receiving faxes
1. And the data receiving step of sending the received encrypted fax data to the fax communication module by the short-wave radio station and receiving the data by the waveform protocol processing module.
2. And the data decryption, namely the fax data encryption and decryption module decrypts the encrypted fax data and recovers the original fax data.
3. And (3) data transmission and communication, namely starting a fax transmission flow after the decryption of the fax data is finished, and communicating the fax communication module with the G3 receiving-end fax machine according to a T.30 fax communication protocol. And in the special line mode, the line is always off-hook, the A-stage connection is directly tried, and fax data is sent to the G3 receiving end fax machine after the connection is successful.
In the whole process, the central control unit coordinates the work of each module, and the fax communication state machine module schedules each service in real time through the state machine, so that the high efficiency, accuracy and safety of fax communication are ensured.
Condition 1, detecting the off-hook signal, receiving the signal by the DTMF signal recognition circuit, and blocking the circuit to indicate that the line is busy, if the fax machine is off-hook at the moment, prompting busy tone and returning busy tone signal. The condition 1 satisfies the condition of entering the PSTN to receive the fax, completing the PSTN to receive the fax flow, and entering the Idle state if the receiving process is abnormally terminated or is in error.
And 2, smoothly completing the PSTN receiving process, and starting the network to send fax. Namely, if the PSTN receiving process is successfully completed (namely, the PSTN receives OK), the network fax sending state is entered. And (3) finishing the flow of network fax transmission, wherein the flow is abnormally terminated or smoothly completed to be in an Idle monitoring state.
And 3, the network sending fax flow is abnormally terminated or the switching to the Idle monitoring state is smoothly completed.
And 4, detecting an off-hook signal, receiving the digital number through a DTMF signal recognition circuit, and establishing a voice link to an incoming service unit (short wave module), namely connecting a physical connection. The voice channel is provided by a short wave module. Condition 4 satisfies the enter voice call state.
And 5, monitoring that the network port receives data, wherein the message content is request transmission (effective) and line configuration, and handshaking the message to indicate that the data is transmitted later, namely, connection is established, and the network can receive a large amount of data after successful handshaking.
And 6, initializing OK, namely transferring to an Idle monitoring state. And initializing failed FAIL, and entering an abnormal error state.
Condition 7, if the receiving process is aborted or in error. The fax receiving state from PSTN goes to Idle monitoring state.
And 8, ending the PSTN to send fax normally or abnormally, and switching to an Idle monitoring state.
And 9, completing error exception handling, namely completing exception or error repair, and switching to an Idle monitoring state. Serious anomalies automatically restart the system through the watchdog circuit.
And the condition 10 is that the error or problem of hardware or software occurs in the idle monitoring state, and the abnormal error state is entered.
Condition 11, network receives fax OK (normal end), automatically starts PSTN to send fax process (flow). The condition is network receiving OK.
And (12) entering an Idle monitoring state after the voice call is finished.
Condition 13, network reception aborts or makes an error. The fax receiving state from the network goes to the Idle monitoring state.
The foregoing is merely illustrative of the preferred embodiments of the present invention and is not intended to limit the embodiments and scope of the present invention, and it should be appreciated by those skilled in the art that equivalent substitutions and obvious variations may be made using the description and illustrations of the present invention, and are intended to be included in the scope of the present invention.

Claims (12)

1.一种短波电台传真通信模块,其特征在于,包括:中央控制单元、存储单元、用户线路接口电路、初始化模块、配置模块、日志模块、传真通信状态机模块、G3传真机传真通信模块、传真数据加解密模块、波形协议处理模块;所述中央控制单元分别与所述存储单元、用户线路接口电路、嵌入式Modem MT9234电性连接;所述初始化模块、配置模块、日志模块、传真通信状态机模块、G3传真机传真通信模块、传真数据加解密模块、波形协议处理模块以软件二进制代码的形式存储于中央控制单元内部的Flash存储器;短波电台传真通信模块通过二线电话线以专线或外线方式与G3传真机连接,实现G3传真机与短波电台的传真通信,短波电台传真通信模块和波形模块之间采用UDP传输,波形协议处理模块实现短波电台传真通信模块和波形模块之间的接口协议,完成短波电台传真通信模块与波形模块之间的传真数据通信;1. A shortwave radio fax communication module, comprising: a central control unit, a storage unit, a subscriber line interface circuit, an initialization module, a configuration module, a log module, a fax communication state machine module, a G3 fax machine fax communication module, a fax data encryption and decryption module, and a waveform protocol processing module; the central control unit being electrically connected to the storage unit, the subscriber line interface circuit, and the embedded modem MT9234, respectively; the initialization module, configuration module, log module, fax communication state machine module, the G3 fax machine fax communication module, the fax data encryption and decryption module, and the waveform protocol processing module being stored in a Flash memory within the central control unit in the form of software binary code; the shortwave radio fax communication module being connected to the G3 fax machine via a dedicated or external second-line telephone line to implement fax communication between the G3 fax machine and the shortwave radio; UDP transmission is employed between the shortwave radio fax communication module and the waveform module; the waveform protocol processing module implements an interface protocol between the shortwave radio fax communication module and the waveform module, thereby completing fax data communication between the shortwave radio fax communication module and the waveform module; G3传真机传真通信模块包括嵌入式Modem MT9234,通过中央控制单元内部UART与Modem进行通信,依照T.30传真通信规程协议实现传真发送和传真接收,PSTN主叫发送任务在T.30传真规程C阶段采用软件非阻塞接收方式读取UART接收线路上的XON/XOFF字符实现停等式流量控制;PSTN主叫发送任务UART波特率设置为19200bps,线路速率支持9600bps或11400bps;接收传真时通过设置UART为57600bps波特率接收、设置大缓冲区的方式无需进行流量控制;G3传真机传真通信模块实现G3传真机呼叫建立、报文前准备过程、报文后释放过程的多个限时应答过程,以及报文中传真编码数据帧的可靠完整接收和发送,传真编码数据支持MH\MHR\MMR编码方式;The G3 fax machine's fax communication module includes an embedded MT9234 modem, which communicates with the modem via the central control unit's internal UART. Fax transmission and reception are implemented according to the T.30 fax communication protocol. During Phase C of the T.30 fax protocol, PSTN caller transmission tasks utilize software non-blocking reception to read the XON/XOFF characters on the UART receive line for stop-and-wait flow control. The UART baud rate for PSTN caller transmission tasks is set to 19200bps, with line rates supporting 9600bps or 11400bps. When receiving faxes, the UART baud rate is set to 57600bps, and a large buffer is configured, eliminating the need for flow control. The G3 fax machine's fax communication module implements multiple timed response processes, including call establishment, pre-message preparation, and post-message release. It also ensures the reliable and complete reception and transmission of fax-encoded data frames within messages, supporting MH, MHR, and MMR encoding. 波形协议处理模块中使用请求-确认协议式的流量控制和重传差错控制方法;波形协议处理模块实现LwIP协议,波形模块与短波电台传真通信模块之间接口协议采用Raw/CallbackAPI回调的方式编程实现;The waveform protocol processing module uses a request-acknowledgement protocol-based flow control and retransmission error control method; the waveform protocol processing module implements the LwIP protocol, and the interface protocol between the waveform module and the shortwave radio fax communication module is implemented using Raw/CallbackAPI callback programming; 传真通信状态机模块通过实时调度摘挂机检测、G3传真机传真通信模块PSTN主叫发送任务、G3传真机传真通信模块PSTN被叫接收任务、波形协议处理模块网络发送、波形协议处理模块网络接收业务,通过中断回调的实现方式提高系统的实时性和性能。The fax communication state machine module improves the real-time performance of the system through real-time scheduling of on-hook and off-hook detection, G3 fax machine fax communication module PSTN caller sending tasks, G3 fax machine fax communication module PSTN called reception tasks, waveform protocol processing module network sending, waveform protocol processing module network receiving services, and the implementation of interrupt callbacks. 2.根据权利要求1所述的短波电台传真通信模块,其特征在于,所述存储单元包括1MB容量的SRAM存储器CY62157和1MB的Flash存储器W25X80,用于存储传真数据、传真能力解析信息以及加解密处理后的缓冲区数据,支持最多10页传真数据的按需动态分配。2. The shortwave radio fax communication module according to claim 1, wherein the storage unit comprises a 1MB SRAM memory CY62157 and a 1MB Flash memory W25X80, which are used to store fax data, fax capability analysis information, and encrypted and decrypted buffer data, and supports on-demand dynamic allocation of up to 10 pages of fax data. 3.根据权利要求1所述的短波电台传真通信模块,其特征在于,所述用户线路接口电路为SLIC电路Ag1170,用于进行摘挂机信号检测、线路馈电以及振铃信号产生,支持二线电话线的专线或外线连接方式,兼容信息安全激光专用传真机、舰用保密传真机类型G3传真机。3. The shortwave radio fax communication module according to claim 1 is characterized in that the user line interface circuit is a SLIC circuit Ag1170, which is used for picking up and hanging up signal detection, line power feeding and ringing signal generation, supports dedicated line or external line connection mode of two-line telephone line, and is compatible with information security laser dedicated fax machine and ship-mounted confidential fax machine type G3 fax machine. 4.根据权利要求1所述的短波电台传真通信模块,其特征在于,所述传真通信状态机模块通过状态机实现PSTN传真通信、波形协议处理、摘挂机检测、双音多频DTMF信号识别、振铃信号产生业务的实时调度,系统上电后依次经历Initial状态、Idle监控状态,状态变迁遵守特定条件和路线,网络接收通过中断回调实现。4. The shortwave radio fax communication module according to claim 1 is characterized in that the fax communication state machine module implements real-time scheduling of PSTN fax communication, waveform protocol processing, on-hook and off-hook detection, dual-tone multi-frequency (DTMF) signal recognition, and ring signal generation services through a state machine. After power-on, the system sequentially undergoes an Initial state and an Idle monitoring state, with state transitions complying with specific conditions and routes, and network reception is implemented through interrupt callback. 5.根据权利要求1所述的短波电台传真通信模块,其特征在于,所述传真数据加解密模块对传真图像数据进行加密和解密处理,采用Blowfish可变密钥长度的对称分组密码算法对传真页编码数据进行加密解密,以保证电台传送的传真数据无法被破译,以提高通信安全性。5. The shortwave radio fax communication module according to claim 1 is characterized in that the fax data encryption and decryption module encrypts and decrypts fax image data and uses a Blowfish variable key length symmetric block cipher algorithm to encrypt and decrypt fax page encoded data to ensure that the fax data transmitted by the radio cannot be deciphered, thereby improving communication security. 6.根据权利要求1所述的短波电台传真通信模块,其特征在于,所述波形协议处理模块实现与短波电台波形模块的协议通信,数据包格式定义包含版本、长度、源模块编码、目标模块编码、类型、校验和、消息净荷,采用UDP协议传输,具有数据确认机制和通信机制,对数据包的等待时间和重传进行规定。6. The shortwave radio fax communication module according to claim 1 is characterized in that the waveform protocol processing module implements protocol communication with the shortwave radio waveform module, the data packet format definition includes version, length, source module code, target module code, type, checksum, message payload, adopts UDP protocol transmission, has a data confirmation mechanism and a communication mechanism, and stipulates the waiting time and retransmission of the data packet. 7.根据权利要求1所述的短波电台传真通信模块,其特征在于,硬件部分还包括主控制器ARMCortex-M3内核的LM3S9B96、锁存器、DTMF信号识别电路HT9172以及电源电路,各硬件组件协同工作,实现传真通信模块的硬件功能支撑。7. The shortwave radio fax communication module according to claim 1, wherein the hardware part further comprises a main controller LM3S9B96 of the ARM Cortex-M3 core, a latch, a DTMF signal recognition circuit HT9172, and a power supply circuit, wherein the hardware components work in coordination to realize the hardware function support of the fax communication module. 8.根据权利要求1所述的短波电台传真通信模块,其特征在于,软件系统包括基于电路层的HAL硬件抽象层、OS操作系统层和逻辑功能应用层;所述HAL硬件抽象层包括UART、Timer、GPIO、SRAM、FLASH、SLIC、Modem驱动程序;所述逻辑功能应用层包括初始化模块、状态机、传真数据加解密模块、配置模块、日志模块、PSTN主叫发送模块、PSTN被叫接收模块、波形协议收发处理模块。8. The shortwave radio fax communication module according to claim 1, characterized in that the software system includes a HAL hardware abstraction layer based on the circuit layer, an OS operating system layer, and a logical function application layer; the HAL hardware abstraction layer includes UART, Timer, GPIO, SRAM, FLASH, SLIC, and Modem driver; the logical function application layer includes an initialization module, a state machine, a fax data encryption and decryption module, a configuration module, a log module, a PSTN caller sending module, a PSTN callee receiving module, and a waveform protocol transceiver processing module. 9.根据权利要求1所述的短波电台传真通信模块,其特征在于,模拟调试软件支持波形协议收发通信,通过网络能够方便地接收传真数据,发送传真数据,并能够以Tiff文件的形式浏览传真图像数据,数据显示窗口实时显示通信数据。9. The shortwave radio fax communication module according to claim 1 is characterized in that the simulation debugging software supports waveform protocol transceiver communication, can conveniently receive and send fax data through the network, and can browse fax image data in the form of Tiff files, and the data display window displays communication data in real time. 10.根据权利要求1所述的短波电台传真通信模块,其特征在于,所述初始化模块对系统资源进行上电检测和初始化;所述配置模块对网络参数、线路连接方式进行配置;所述日志模块实时记录系统活动状态,生成通信报告。10. The shortwave radio fax communication module according to claim 1, wherein the initialization module performs power-on detection and initialization on system resources; the configuration module configures network parameters and line connection methods; and the log module records system activity status in real time and generates communication reports. 11.一种实现短波电台传真通信的方法,应用如权利要求1-10任一项所述的短波电台传真通信模块,其特征在于,包括发送传真和接收传真;发送传真时,传真通信模块接收G3传真机发送的传真,通过T.30传真通信规程协议通信并存储传真页编码数据,加密处理后通过网络传输给业务单元,由短波电台传送;接收传真时,短波电台将加密传真数据发送给传真通信模块,解密后启动传真发送流程,按T.30传真通信规程协议与G3接收端传真机通信。11. A method for implementing shortwave radio fax communication, using the shortwave radio fax communication module according to any one of claims 1 to 10, characterized in that it includes sending a fax and receiving a fax; when sending a fax, the fax communication module receives a fax sent by a G3 fax machine, communicates and stores the fax page encoding data via the T.30 fax communication protocol, encrypts the data, transmits it to a business unit via a network, and transmits it by the shortwave radio; when receiving a fax, the shortwave radio sends the encrypted fax data to the fax communication module, decrypts the data, initiates a fax sending process, and communicates with the G3 receiving fax machine according to the T.30 fax communication protocol. 12.根据权利要求11所述的实现短波电台传真通信的方法,其特征在于,发送传真时,配置为外线方式时,主叫G3传真机摘机拨号*#启动接收流程,按照T.30传真通信规程呼叫建立A阶段按启动按钮发送;配置为专线方式时,G3传真机按启动按钮后直接连接并接收传真报文;接收传真时,外线方式下检测线路摘挂机状态,发送振铃信号通知接收方摘机,专线方式下线路一直摘机,直接尝试A阶段连接,连接成功后按T.30传真通信规程协议通信。12. The method for implementing shortwave radio fax communication according to claim 11, characterized in that, when sending a fax, when configured in external line mode, the calling G3 fax machine goes off-hook and dials *# to start the receiving process, and presses the start button to send according to the T.30 fax communication protocol call establishment phase A; when configured in dedicated line mode, the G3 fax machine directly connects and receives the fax message after pressing the start button; when receiving a fax, in external line mode, the line is detected to be on or off-hook, and a ringing signal is sent to notify the recipient to go off-hook. In dedicated line mode, the line remains off-hook and a phase A connection is directly attempted. After the connection is successful, communication is carried out according to the T.30 fax communication protocol.
CN202510737966.1A 2025-06-04 2025-06-04 Short-wave radio fax communication module and method for realizing short-wave radio fax communication Active CN120263909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510737966.1A CN120263909B (en) 2025-06-04 2025-06-04 Short-wave radio fax communication module and method for realizing short-wave radio fax communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510737966.1A CN120263909B (en) 2025-06-04 2025-06-04 Short-wave radio fax communication module and method for realizing short-wave radio fax communication

Publications (2)

Publication Number Publication Date
CN120263909A CN120263909A (en) 2025-07-04
CN120263909B true CN120263909B (en) 2025-08-22

Family

ID=96189426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510737966.1A Active CN120263909B (en) 2025-06-04 2025-06-04 Short-wave radio fax communication module and method for realizing short-wave radio fax communication

Country Status (1)

Country Link
CN (1) CN120263909B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000000113A (en) * 1999-09-16 2000-01-15 임건 Sailing Information Service Method By Using Internet Network
KR20030016586A (en) * 2001-08-21 2003-03-03 홍은영 A wired-voice over internet protocol system for mobile telecommunication
CN101651958B (en) * 2009-09-02 2012-12-19 中兴通讯股份有限公司 Method and device for transmitting and receiving wireless G3 analog facsimile business
CN103957040B (en) * 2014-04-09 2017-04-05 北京工业大学 A kind of short-wave radio set communication control system and method
CN107172318B (en) * 2017-06-29 2020-03-13 厦门锋联信息技术有限公司 Special wireless fax method, system and device
CN107948459B (en) * 2017-11-03 2020-05-26 延安大学 Transmission equipment based on short-wave communication and transmission method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
无线传真软硬件接口的设计与实现;李哲;陈治清;卢梦怡;;西安文理学院学报(自然科学版);20150415(02);第46-50页 *

Also Published As

Publication number Publication date
CN120263909A (en) 2025-07-04

Similar Documents

Publication Publication Date Title
US6430691B1 (en) Stand-alone telecommunications security device
US5872845A (en) Method and apparatus for interfacing fax machines to digital communication networks
WO2011026297A1 (en) Device, transmission and reception method for enabling wireless group 3 (g3) analog facsimile services
JP2002199023A (en) Mail communication method using facsimile communication procedure, mail transmission device, mail reception device, and mail communication system
CN120263909B (en) Short-wave radio fax communication module and method for realizing short-wave radio fax communication
JPH10501111A (en) Group 3 facsimile apparatus for mobile satellite communication with exclusive and improved functions
JP4322905B2 (en) Communication terminal device and facsimile communication method
CN107948459B (en) Transmission equipment based on short-wave communication and transmission method thereof
CN107172318B (en) Special wireless fax method, system and device
JP2002300411A (en) Facsimile communication method and facsimile
JP2524744B2 (en) Transmission system
US20240214710A1 (en) Data processing method, outdoor unit, indoor unit and computer-readable storage medium
JP3828403B2 (en) Real-time gateway facsimile machine
JP2524757B2 (en) Facsimile transmission method
JP2009171438A (en) High-speed fax system, and communication terminal
JP3529873B2 (en) Encryption adapter, decryption adapter and encryption / decryption adapter
CN100438548C (en) Method for implementing analog facsimile service in CDMA system
JP4291461B2 (en) Multimedia communication system and method
JPS6271372A (en) FAX machine using receipt notification document
CN106550336A (en) Information sending, receiving method and related device based on handset dialing
JP3464722B2 (en) Email sending method
JP3105870B2 (en) Mutual confirmation method by exchanging communication equipment and its equipment information
CN104333437A (en) Communication device and communication method for maritime and field areas
JP3563977B2 (en) Control method of real-time internet gateway facsimile machine
JP2566413B2 (en) Facsimile transmission method

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