CN111953373B - A 433MHz-based broadcast message communication device - Google Patents
A 433MHz-based broadcast message communication device Download PDFInfo
- Publication number
- CN111953373B CN111953373B CN202010795097.5A CN202010795097A CN111953373B CN 111953373 B CN111953373 B CN 111953373B CN 202010795097 A CN202010795097 A CN 202010795097A CN 111953373 B CN111953373 B CN 111953373B
- Authority
- CN
- China
- Prior art keywords
- 433mhz
- mcu
- serial port
- data
- transmitter
- 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.)
- Expired - Fee Related
Links
- 238000004891 communication Methods 0.000 title claims abstract description 60
- 230000005540 biological transmission Effects 0.000 claims abstract description 27
- 238000000034 method Methods 0.000 claims description 21
- 230000006870 function Effects 0.000 claims description 15
- 230000004044 response Effects 0.000 claims description 4
- 230000003044 adaptive effect Effects 0.000 claims 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 abstract description 4
- 238000010276 construction Methods 0.000 abstract 1
- 238000010295 mobile communication Methods 0.000 abstract 1
- QVFWZNCVPCJQOP-UHFFFAOYSA-N chloralodol Chemical compound CC(O)(C)CC(C)OC(O)C(Cl)(Cl)Cl QVFWZNCVPCJQOP-UHFFFAOYSA-N 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 239000013589 supplement Substances 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 230000010287 polarization Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 239000011152 fibreglass Substances 0.000 description 1
- 230000017525 heat dissipation Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000005693 optoelectronics Effects 0.000 description 1
- 230000007903 penetration ability Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/38—Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
- H04B1/40—Circuits
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种基于433MHz的广播式消息通讯装置,包括一个发射端和多个接收端。发送端由PC端,发射端MCU,433MHz串口无线通讯模块,GPS接收器以及运行在PC端的专用发送软件所组成。本发明采用公用433MHz的32个频段进行通讯,有效避免干扰,使用无线数传电台的无中继的广播可达8000m。通讯的消息采用AES128位加密。本发明成本低、通讯可靠、通讯距离可调、不依赖于目前的移动通讯网和互联网。在企业、政府、学校、医院、军事、消防、公安、水利、建筑、农村居住地等部门进行公开消息通讯和紧急消息通讯中应用十分方便。
The invention discloses a 433MHz-based broadcast message communication device, which includes a transmitter and a plurality of receivers. The sending end is composed of a PC end, a transmitting end MCU, a 433MHz serial wireless communication module, a GPS receiver and a special sending software running on the PC end. The invention adopts 32 frequency bands of public 433MHz for communication, which can effectively avoid interference, and the broadcast without repeater using wireless data transmission station can reach 8000m. Communication messages are encrypted with AES128 bit. The invention has low cost, reliable communication, adjustable communication distance, and does not depend on the current mobile communication network and the Internet. It is very convenient to use in public news communication and emergency news communication in enterprises, governments, schools, hospitals, military, fire protection, public security, water conservancy, construction, rural residences and other departments.
Description
技术领域technical field
本发明属于数据通讯技术领域,涉及一种基于433MHz的广播式消息通讯装置。The invention belongs to the technical field of data communication, and relates to a broadcast message communication device based on 433MHz.
背景技术Background technique
在一对多的消息通讯中,涉及的成熟方案比较多。比如传统手机短信群发;广泛使用的基于互联网的通讯,如微信,QQ等等;运用一定频段的民用对讲机通讯,目前在物联网领域较多的LoRa通讯,NB-IoT通讯等等。In the one-to-many message communication, there are many mature solutions involved. For example, traditional mobile phone SMS group sending; widely used Internet-based communication, such as WeChat, QQ, etc.; civil walkie-talkie communication using a certain frequency band, LoRa communication, NB-IoT communication and so on are currently used in the field of Internet of Things.
其存在的问题是:短信群发依赖于网络运营商的信号,并有一定的成本,其保密程序一般。基于互联网的通讯,如微信,QQ虽然在目前通讯是可靠的,但是更多的是私人性质,即使公有使用,也要依赖于互联网络,其保密程度一般。目前民用对讲机通讯,在其语音通讯的同时,如果有数据通讯则是困难的。基于LoRa,NB-IoT等更多的是应用物联网中的数据通讯,有些也具有AES128以上的加密,虽然也有一对多,自组网等特征,但是其应用非是本发明应用的范围。The existing problems are: mass message sending relies on the signal of the network operator, and has a certain cost, and its security procedures are general. Internet-based communications, such as WeChat and QQ, are reliable at present, but are more of a private nature. Even if they are used publicly, they must rely on the Internet, and their degree of confidentiality is average. At present, civil walkie-talkie communication is difficult if there is data communication at the same time as its voice communication. Based on LoRa, NB-IoT, etc. are more used for data communication in the Internet of Things, and some also have encryption above AES128. Although there are also features such as one-to-many and ad-hoc networks, their applications are not within the scope of the present invention.
如在政府部门,经常需要给指定部门或者指定人群发布公开或者加密的消息,通知其重要事项或者进行会议通知。如果在这些指定部门指定人群桌面有公共的显示终端则是方便的。如果是在办事大厅等场合,如果是公开的比如办事指南、注意事项、甚至天气、温度、交通指南等消息,作为数据的补充,随时可移动的无线方式无疑是灵活的。如果是单位或者部门内部,无线方式的加密消息传递具有一定的保密性。For example, in government departments, it is often necessary to release public or encrypted messages to designated departments or designated groups to notify them of important matters or to notify them of meetings. It is convenient if there are public display terminals on the desktops of the designated groups of these designated departments. If it is in the office hall and other occasions, if it is public information such as work instructions, precautions, and even weather, temperature, traffic instructions, etc., as a supplement to the data, the wireless method that can be moved at any time is undoubtedly flexible. If it is within a unit or department, the wireless encrypted message transmission has a certain degree of confidentiality.
在学校,大量的教室在上课、开展活动时需要显示终端显示本教室的利用情况。在学生宿舍、需要一个公共的显示终端显示学校发来的消息、院系给学生的消息、教师给学生的消息等。如通知学生参加学术讲座、演讲、讨论会等。In schools, a large number of classrooms need display terminals to display the utilization of the classrooms during classes and activities. In the student dormitory, a public display terminal is required to display messages from the school, messages from departments to students, messages from teachers to students, etc. Such as informing students to participate in academic lectures, speeches, seminars, etc.
在医院的特定部门、有时候需要发布全院性的公开或者加密的消息,通知。有时候需要通知某些科室人员参加会议、联合会诊。带有文字带有提醒功能的安装于办公室桌面的显示终端则是方便的。In specific departments of the hospital, it is sometimes necessary to publish hospital-wide public or encrypted messages and notifications. Sometimes it is necessary to notify the staff of certain departments to participate in meetings and joint consultations. A display terminal installed on the office desktop with text and reminder function is convenient.
在一些企业和政府部分,有专门的用于业务的专用网络。内部的许多联系基于专网进行。有些禁止互联网接入,甚至限制了移动互联网的使用。在这种情况下,基于无线的加密消息通信就有了应用的可能。In some corporate and government segments, there are dedicated private networks dedicated to business. Many internal contacts are based on private networks. Some ban internet access and even limit mobile internet usage. In this case, wireless-based encrypted messaging has the potential to be used.
在社会服务的公共部门,如消防、公安、水利、供水供电等部门,在紧急状况下,作为传统通讯的补充,安装于公共场所或者办公室或者宿舍等场合的公共接收终端是需要的。在紧急状态下,终端系统具有的报警系统能在紧急通知特定人员争分夺秒完成某件事情上相当重要。In public departments of social services, such as fire protection, public security, water conservancy, water supply and power supply and other departments, in emergency situations, as a supplement to traditional communication, public receiving terminals installed in public places, offices or dormitories are needed. In an emergency state, the alarm system of the terminal system can be very important in urgently notifying specific personnel in a race against time to complete something.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种基于433MHz的广播式消息通讯装置。The purpose of the present invention is to provide a broadcast message communication device based on 433MHz.
其技术方案如下:Its technical solutions are as follows:
一种基于433MHz的广播式消息通讯装置,包括一个发送端和多个接收端。A 433MHz-based broadcast message communication device includes a sender and a plurality of receivers.
所述发送端是由PC端,发射端MCU,433MHz串口无线通讯模块,GPS接收器, 4G/GPRS接口以及运行在PC端的专用发送软件所组成。The sending end is composed of a PC end, a transmitting end MCU, a 433MHz serial port wireless communication module, a GPS receiver, a 4G/GPRS interface and a special sending software running on the PC end.
所述发射端有两种模式,一是广播模式,可以全体广播,也可以局部广播;二是点对点模式,就是将数据发给特定地址的接收端,这样即可实现对特定部门和特定人群发布消息。The transmitter has two modes, one is the broadcast mode, which can broadcast all or part of the broadcast; the other is the point-to-point mode, which is to send data to the receiver of a specific address, so that it can be released to specific departments and specific groups of people. information.
发射端和接收端采用自定义协议的方法进行数据通讯,其格式是:接收端地址(2B),发射端地址(2B),数据长度(2B),紧急特征(1B),回应特征(1B),加密特征(1B),CRC16(2B),数据头(5B),日期时间(12B),采用AES128位算法加密的数据部分(nB)。The transmitter and receiver use a custom protocol for data communication. The format is: receiver address (2B), transmitter address (2B), data length (2B), emergency feature (1B), response feature (1B) , encryption feature (1B), CRC16 (2B), data header (5B), date and time (12B), data part (nB) encrypted by AES128-bit algorithm.
PC端通过RS485连接所述发射端MCU.所述PC端运行专用软件是运行于Windows下具有消息发送界面的计算机软件。该软件具有选择群发和指定地址发送功能、具有紧急消息、普通消息选择功能,具有是否回应功能、具有是否加密功能等,最后将数据传递给所述的发送端的MCU。The PC end is connected to the transmitting end MCU through RS485. The PC end running special software is computer software running under Windows with a message sending interface. The software has the functions of selecting mass sending and sending to designated addresses, selecting functions of emergency messages and ordinary messages, whether to respond, whether to encrypt, etc., and finally transmit the data to the MCU of the sending end.
所述发射端MCU,其串口1连接所述433MHz串口无线通讯模块;其串口2连接所述4G/GPRS接口;通过RS485转接器连接所述GPS接收器。其作用是将PC端软件发来的消息在内存中进行自定义消息协议的封装。封装的数据中包括了将GPS授时消息解码得到的日期和时间信息。将封装完成的数据包以串口的方式连接所述433MHz串口无线通讯模块进行发射。In the transmitter MCU, its serial port 1 is connected to the 433MHz serial port wireless communication module; its serial port 2 is connected to the 4G/GPRS interface; it is connected to the GPS receiver through an RS485 adapter. Its function is to encapsulate the message sent by the PC-side software in the memory for a custom message protocol. The encapsulated data includes the date and time information obtained by decoding the GPS timing message. The encapsulated data packet is connected to the 433MHz serial port wireless communication module in a serial port mode for transmission.
所述4G/GPRS模块是一种连接移动互联网的模块,通过串口2连接所述发射端MCU。多个授权的手机号码可以通过4G信号连接所述的4G/GPRS模块,通过特定软件发送透明的数据给所述的发射端MCU,以同样的方式在所述MCU中进行自定义消息协议的封装,最后进行发射。其目的是授权的工作人员可以在使用手机远程连接4G/GPRS模块发布消息给本网用户,在紧急情况下使用,比较方便。The 4G/GPRS module is a module connected to the mobile Internet, and is connected to the transmitter MCU through the serial port 2 . Multiple authorized mobile phone numbers can connect to the 4G/GPRS module through 4G signals, send transparent data to the transmitter MCU through specific software, and encapsulate a custom message protocol in the MCU in the same way , and finally launch. The purpose is that the authorized staff can use the mobile phone to remotely connect the 4G/GPRS module to publish messages to the users of this network, which is more convenient to use in emergency situations.
所述433MHz串口无线通讯模块是一种基于串口的远距离数据传输模块,通过其串口连接到所述发射端MCU串口1。既可以接收也可以发射。通讯速率一般设定为9600bps,空中波特率默认为2.5Kbps,通讯的信道从410MHz每隔1M间隔32的信道。The 433MHz serial port wireless communication module is a serial port-based long-distance data transmission module, and is connected to the transmitting end MCU serial port 1 through its serial port. Both receive and transmit. The communication rate is generally set to 9600bps, the air baud rate is 2.5Kbps by default, and the communication channel is 32 channels every 1M from 410MHz.
接收端包括433MHz的串口无线通讯模块,7寸串口彩屏,接收端MCU以及报警单元所组成。The receiving end includes a 433MHz serial port wireless communication module, a 7-inch serial port color screen, a receiving end MCU and an alarm unit.
所述433MHz串口无线通讯通讯模块与发射端所述的模块一致。The 433MHz serial wireless communication module is consistent with the module described at the transmitting end.
所述433MHz串口无线通讯通讯模块的串口连接到所述接收端MCU的串口2。用于接收发射器远距离发射的无线信号,并透明传输到所述接收端的MCU。The serial port of the 433MHz serial port wireless communication module is connected to the serial port 2 of the receiving end MCU. It is used to receive the wireless signal transmitted by the transmitter at a long distance, and transparently transmit it to the MCU of the receiving end.
所述接收端MCU,其串口1连接所述7寸串口彩屏。串口2连接所述433MHz无线通讯模块,其P1.0端口连接所述报警单元。所述433MHz无线通讯模块将发给本机的数据传递给所述接收端的MCU,在接收端的MCU中,将发来的消息按自定义的消息协议分别进行解码,得到各个字段的数据。使用接收端MCU芯片硬件中存储的解密密钥对数据部分进行解密,将非法的消息滤除,将要显示的数据通过串口1推送到7寸彩屏上显示。在正常情况下,接收端消息显示在7寸彩屏上,在紧急情况下,在接收端接收消息的同时还发出报警信号,如果在字段中要求回应,则接收者通过按钮进行回应发送端。The receiving end MCU, its serial port 1 is connected to the 7-inch serial port color screen. Serial port 2 is connected to the 433MHz wireless communication module, and its P1.0 port is connected to the alarm unit. The 433MHz wireless communication module transmits the data sent to the local machine to the MCU of the receiving end, and the MCU of the receiving end decodes the sent message according to the self-defined message protocol to obtain the data of each field. Use the decryption key stored in the receiver MCU chip hardware to decrypt the data part, filter out illegal messages, and push the data to be displayed on the 7-inch color screen through serial port 1 for display. Under normal circumstances, the message of the receiver is displayed on the 7-inch color screen. In an emergency, the receiver will send an alarm signal while receiving the message. If a response is required in the field, the receiver will respond to the sender by pressing the button.
所述报警单元连接到所述接收端的MCU的P1.0接口。具有驱动电路和蜂鸣器报警和 LED闪光功能。The alarm unit is connected to the P1.0 interface of the MCU of the receiving end. With drive circuit and buzzer alarm and LED flashing function.
所述接收端7寸彩屏应该至少包含6763个汉字的汉字硬件字库。在接收端接收的消息中,如果是汉字,则是汉字内码编码方式。一个汉字用2个字节的汉字内码方式表示,这样的方式,极大减少了无线数据传输量。The 7-inch color screen of the receiving end should contain at least a Chinese character hardware font library of 6763 Chinese characters. In the message received by the receiving end, if it is a Chinese character, it is a Chinese character encoding method. A Chinese character is represented by a 2-byte Chinese character internal code, which greatly reduces the amount of wireless data transmission.
数据在发射端和接收端采用AES128为对称加密算法。加密密钥和解密密钥是一致的。其加密方法是:加密密钥和所述发射端MCU的程序文件一起烧录到所述单片机中,加密时,程序本身读取加密密钥作为一个常量来加密数据;同理,解密密钥和所述接收端MCU 的程序文件一起烧录到所述单片机中,解密时,程序本身读取解密密钥作为一个常量来解密数据。The data at the transmitter and receiver uses AES128 as a symmetric encryption algorithm. The encryption key and decryption key are the same. The encryption method is as follows: the encryption key and the program file of the transmitter MCU are burned into the single-chip microcomputer. When encrypting, the program itself reads the encryption key as a constant to encrypt data; similarly, the decryption key and The program files of the receiving end MCU are programmed into the single chip microcomputer together. When decrypting, the program itself reads the decryption key as a constant to decrypt the data.
加密密钥和解密密钥防范被非法读取的方法是:MCU采用STC15W4K32S4,此MCU 本身具有程序文件的硬件加密功能,其加密原理是采用此MCU芯片制造时全球唯一的ID 号通过复杂算法对程序文件进行加密,一旦含有密钥的程序文件被烧录到此MCU中,目前的技术和方法无法读取解密。而此MCU正常运行时,自动解密存储在其内部的程序文件正常运行,也能通过正常的程序文件读取作为常量存储的密钥,从而实现加密和解密的过程。The method to prevent the encryption key and decryption key from being illegally read is: MCU adopts STC15W4K32S4, this MCU itself has the function of hardware encryption of program files, and the encryption principle is to use the unique ID number in the world when the MCU chip is manufactured through complex algorithm. The program file is encrypted. Once the program file containing the key is burned into the MCU, the current technology and method cannot be read and decrypted. When the MCU is running normally, the program files stored in it can be automatically decrypted and run normally, and the keys stored as constants can also be read through the normal program files, thereby realizing the process of encryption and decryption.
防范程序文件被非法改写的方法是:下载口令保护,没有口令无法改写发射端和接收端所述MCU的的运行程序。The method of preventing program files from being illegally rewritten is: downloading password protection, without the password, the running programs of the MCU described in the transmitting end and the receiving end cannot be rewritten.
433MHz无线通讯模块发射的频率范围:410Mhz~441MHz,每隔1MHz一个频段,共32个频段,采用无线数传电台的无中继的广播可达8000m。为了避免非法的同一个频段433MHz,同一个信道,比如17号,同一个地址,比如(9999)数据的干扰,采用的方法是:在自定义消息协议的数据部分,定义了5个字节的数据头,例如:“MNPQR”。非法的数据即使已知频率、信道、接收地址,但是因为无法得到解密密钥从而无法得到正确的数据头而使得非法的数据被丢弃。从而避免了数据干扰。The frequency range of 433MHz wireless communication module transmission: 410Mhz ~ 441MHz, every 1MHz frequency band, a total of 32 frequency bands, the use of wireless data transmission radio station without relay broadcast can reach 8000m. In order to avoid illegal interference of the same frequency band 433MHz, the same channel, such as No. 17, and the same address, such as (9999) data, the method used is: in the data part of the custom message protocol, a 5-byte data is defined. Data header, for example: "MNPQR". Even if the frequency, channel, and receiving address of illegal data are known, the illegal data is discarded because the decryption key cannot be obtained so that the correct data header cannot be obtained. Thereby avoiding data interference.
进一步,在所述发射端,通常情况下,将发射端MCU、GPS(除天线)、4G/GPRS模块、交流220V转+5V电源供电模块都封装于一个外壳中。USB转RS485模块则独立外置,这样,可以将USB转RS485模块安装于PC附近,而将发射端通过RS485电缆连接安装在较远的位置,便于在楼顶等位置安装GPS天线和所述的无线发射模块天线。Further, in the transmitting end, under normal circumstances, the transmitting end MCU, GPS (except antenna), 4G/GPRS module, AC 220V to +5V power supply module are all packaged in a casing. The USB-to-RS485 module is independent and external. In this way, the USB-to-RS485 module can be installed near the PC, and the transmitter can be installed at a distant location through the RS485 cable connection, which is convenient for installing the GPS antenna and the above-mentioned Wireless transmitter module antenna.
在所述电源部分,采用标准化工业开关电源,输出+5V,电流5A,具有防雷保护、短路保护、良好的散热等功能。In the power supply part, a standardized industrial switching power supply is used, the output is +5V, the current is 5A, and it has the functions of lightning protection, short-circuit protection, and good heat dissipation.
USB转RS485模块采用光电隔离型,具有防雷保护、工业抗干扰性强。采用工业的RS485信号电缆。The USB to RS485 module adopts photoelectric isolation type, which has lightning protection and strong industrial anti-interference. Adopt industrial RS485 signal cable.
所述发射端外接GPS天线要求增益在38db以上,噪声值1.5db,驻波比<1.5:1,圆形极化,采用SMA接口天线,天线长度至少5m,要将GPS天线装设到室外无遮挡环境。能同时接受北斗和GPS信号。The external GPS antenna at the transmitting end requires a gain of more than 38db, a noise value of 1.5db, a standing wave ratio of <1.5:1, circular polarization, an SMA interface antenna, and an antenna length of at least 5m. Block the environment. Can accept Beidou and GPS signals at the same time.
所述发射端433MHz无线通讯模块的天线也采用外置式,采用室外玻璃钢全向型天线,馈线长度至少3m,垂直极化方式,增益至少5db,阻抗50Ω,SMA接口。The antenna of the 433MHz wireless communication module at the transmitting end is also external, using an outdoor fiberglass omnidirectional antenna, the feeder length is at least 3m, the vertical polarization mode, the gain is at least 5db, the impedance is 50Ω, and the SMA interface.
在所述接收端,通常情况下,将所述MCU,所述无线通讯接收单元、报警单元等设计安装于一块PCB板上,提供具有DC005结构的电源接口,采用交流220V转+5V电源适配器,外置供电,也可以采用电脑USB接口供电。At the receiving end, under normal circumstances, the MCU, the wireless communication receiving unit, the alarm unit, etc. are designed and installed on a PCB board, and a power interface with a DC005 structure is provided, using an AC 220V to +5V power adapter, External power supply, you can also use the computer USB interface to supply power.
所述接收端7寸彩屏,提供+5V、GND、RXD、TXD四个IO接口,具有能显示全彩色、文字和图像等功能。长200cm,宽100mm,将接收端的PCB板后置于7寸彩屏,右侧具有12mm*12mm*5mm的大按键,垂直方向排列三个,分别是紧急回复、关闭显示器、待机模式按键。设计支架结构斜45度立于桌面。The receiving end has a 7-inch color screen, which provides four IO interfaces of +5V, GND, RXD, and TXD, and has the functions of displaying full color, text, and images. The length is 200cm and the width is 100mm. The PCB board of the receiving end is placed behind the 7-inch color screen. There are large buttons of 12mm*12mm*5mm on the right side. There are three buttons in the vertical direction, which are emergency response, monitor off, and standby mode buttons. Design the bracket structure to stand on the desktop at an angle of 45 degrees.
接收端无线模块天线采用外置的吸盘天线,具有SMA内针接口,天线高度17cm。因为接收433M无线信号,因而连接所述接收端的天线可以在室内。The wireless module antenna at the receiving end adopts an external suction cup antenna with an SMA inner needle interface, and the antenna height is 17cm. Because the 433M wireless signal is received, the antenna connected to the receiving end can be indoors.
与现有技术相比,本发明的有益效果:Compared with the prior art, the beneficial effects of the present invention:
首先能在社会生活的各个领域广泛使用。如政府政策消息发布时,可在多个位置发布消息。在公共区域,如公园、广场、社区、酒店、餐厅等位置发布消息。在学校、医院、消防、公安、水利电力、通讯、农业、交通运输等部门内部正常使用或者紧急使用。其次是成本低,比如传统的企业级短信存在成本,也不依赖移动网、互联网不必申请就可使用,也因为多数消息为文字消息,无论是接收端还是发送端基于文字处理的速度快,成本很低,接收端有几十上百个除了通讯稍有延迟外,其他没有影响。第三,是可靠性,目前无中继带天线的模块在空中速率2.5Kbps,传输距离在8000m时几乎没有丢包。在一般情况下,复杂环境下5km~6km是可靠的。有一级中继时,可达12~15km.第四,是安装方便,接收端可以在公共区域,可以在办公室也可在家里。第五,是作为目前局域通讯的补充。在紧急情况下,授权发布的用户可用手机连接4G/GPRS接口,直接以广播式消息进行数据发布,也就是实现了远程数据无线发布。当然,正常情况下,也可以使用手机连接4G/GPRS 接口进行发布。First of all, it can be widely used in various fields of social life. For example, when government policy news is published, the news can be published in multiple locations. Post messages in public areas such as parks, plazas, neighborhoods, hotels, restaurants, and more. Normal use or emergency use in schools, hospitals, fire protection, public security, water conservancy and electricity, communications, agriculture, transportation and other departments. Secondly, the cost is low. For example, traditional enterprise-level SMS has costs, and it does not depend on mobile networks or the Internet. It can be used without application. Also, because most messages are text messages, both the receiving end and the sending end are based on word processing. The speed is fast, the cost Very low, there are dozens or hundreds of receivers, except for a slight delay in communication, the others have no effect. The third is reliability. At present, the module without relay antenna has an air rate of 2.5Kbps and almost no packet loss when the transmission distance is 8000m. In general, 5km to 6km is reliable in complex environments. When there is a first-level relay, it can reach 12-15km. Fourth, it is easy to install. The receiving end can be in the public area, in the office or at home. Fifth, as a supplement to the current local area communication. In case of emergency, users who are authorized to publish can use their mobile phones to connect to the 4G/GPRS interface, and publish data directly through broadcast messages, that is, to realize remote data wireless publishing. Of course, under normal circumstances, you can also use your mobile phone to connect to the 4G/GPRS interface for publishing.
附图说明Description of drawings
图1a为本发明实施例中基于433MHz的广播式消息通讯装置的发射端结构框图;1a is a block diagram of a transmitter structure of a 433MHz-based broadcast message communication device according to an embodiment of the present invention;
图1b为本发明实施例中基于433MHz的广播式消息通讯装置的接收端结构框图;1b is a structural block diagram of a receiving end of a 433MHz-based broadcast message communication device according to an embodiment of the present invention;
图2为本发明实施例提供发射端MCU封装数据包的流程图;2 is a flowchart of providing a transmitter MCU encapsulation data packet according to an embodiment of the present invention;
图3为本发明实施例提供发射端MCU封装数据包的实施例;3 is an embodiment of the present invention providing an embodiment of a transmitter MCU encapsulating a data packet;
图4为本发明实施例提供的接收端接收数据包流程图。FIG. 4 is a flowchart of a receiving end receiving a data packet according to an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图和具体实施方式对本发明的技术方案作进一步详细地说明。The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
为了更进一步说明本发明的优点:In order to further illustrate the advantages of the present invention:
实验环境:发射端,离地面高度30米,外置无线发射端并外置吸盘天线,GPS天线外置无遮挡。MCU与无线模块串口通讯速率9600bps。空中速率2400bps,信道17,发射功率30db,发射端地址8888,定向传输方式,加密前缀5字节,含CRC校验。包载荷64个字节,载荷中含有计数器,发射端连续发射100个包,包间隔1秒。采用循环发射方式,即给第一个接收端定向传输,之后给第二个接收端定向传输,最后给第三个接收端定向传输,以此类推。Experimental environment: transmitter, 30 meters above the ground, external wireless transmitter and external suction cup antenna, GPS antenna externally unobstructed. The serial communication rate between MCU and wireless module is 9600bps. Air rate 2400bps,
接收端有3个,接收端无线模块天线采用外置的吸盘天线,具有SMA内针接口,天线高度17cm。因为接收433M无线信号,因而连接所述接收端的天线可以在室内,MCU与无线模块串口通讯速率9600bps。空中速率2400bps,信道17,接收端地址: 9991,9992,9993,共设三个接收端,在接收端设计四位数码管显示接收到包的计数器,此计数器表示接收端在一定距离接收包并进行正确解码的数量。There are 3 receiving ends. The wireless module antenna of the receiving end adopts an external suction cup antenna with SMA inner needle interface, and the antenna height is 17cm. Because the 433M wireless signal is received, the antenna connected to the receiving end can be indoors, and the serial communication rate between the MCU and the wireless module is 9600 bps. Air rate 2400bps,
在城市多楼宇地区,5km~6km以内,室内接收,丢包率<1%,在空旷地区,无楼宇遮挡,原模块测试距离8000m准确收到信号,实际测试5km~6km以内无丢包。如果采用自动中继,接收端计数器显示10km左右丢包率<3%。因为采用LoRa扩频相比传统的FSK 极大地提升了穿透能力,可以做到大功率远距离,抗干扰能力强。In the urban multi-building area, within 5km~6km, indoor reception, the packet loss rate is less than 1%, in the open area, there is no building block, the original module test distance is 8000m to receive the signal accurately, and the actual test is within 5km~6km without packet loss. If automatic relay is used, the counter at the receiving end shows that the packet loss rate is less than 3% at about 10km. Because the use of LoRa spread spectrum greatly improves the penetration ability compared with the traditional FSK, it can achieve high power and long distance, and has strong anti-interference ability.
发射端必须和接收端在收发频率一致,空中波特率一致,射频速率等一致情况下,才能正确收发。非法的发射端即使能通过这些参数发射,但是因为本发明所述的在发射端MCU中进行了数据封包,并且在数据封包头采用AES128为加密,非法的发射信息因为不能解密数据头而被接收端丢弃。从而保证了数据的不受非法干扰。例如:数据头部分加密存储于MCU中的常量字符串“MNPQR”,在实验中,因为在发射端可以设置为广播式发射,就是在MCU中设置接收端地址为0xFFFF,这样,三个接收端均接收到信号,但是因为无法解密数据头而使得非法数据被丢弃。The transmitter and receiver must have the same sending and receiving frequency, the same air baud rate, and the same radio frequency rate, etc., in order to send and receive correctly. Even if the illegal transmitter can transmit through these parameters, because the data packet is carried out in the transmitter MCU according to the present invention, and the data packet header is encrypted by AES128, the illegal transmission information is received because the data header cannot be decrypted. end discarded. Thereby ensuring that the data is not illegally interfered with. For example: the constant string "MNPQR" stored in the MCU is encrypted in the data header part. In the experiment, because the transmitter can be set to broadcast transmission, the receiver address is set to 0xFFFF in the MCU. In this way, the three receivers Both received the signal, but the illegal data was discarded because the header could not be decrypted.
在多楼宇环境,6km距离,1个发射端和3个接收端,在空闲状态下,发射所述的 GPS解码得到的时间和日期信息,显示在接收端的所述的7寸彩屏上,经过几个月实验运行,装置运行正常。In a multi-building environment, 6km distance, 1 transmitter and 3 receivers, in the idle state, the time and date information obtained by the GPS decoding is transmitted, and displayed on the 7-inch color screen of the receiver. The experiment has been run for several months, and the device is running normally.
本发明实施例图1a、图1b、图2、图3和图4。提供了一种433MHz广播式消息通讯装置,包括一个发射端和多个接收端。Embodiments of the present invention are shown in FIGS. 1 a , 1 b , 2 , 3 and 4 . Provided is a 433MHz broadcast message communication device, which includes a transmitter and a plurality of receivers.
所述发送端是由PC端,发射端MCU,433MHz串口无线发射器,GPS接收器, 4G/GPRS接口以及运行在PC端的专用发送软件所组成。The sending end is composed of a PC end, a transmitting end MCU, a 433MHz serial port wireless transmitter, a GPS receiver, a 4G/GPRS interface and a special sending software running on the PC end.
所述PC端通过RS485接口总线连接到所述发射端MCU。将要发送的消息以串口形式发送到所述的发射端MCU进行处理。因为发射端安装于室外,因此一般要通过集线器,如采用带有防雷和光电隔离的4口RS485接口集线器。The PC terminal is connected to the transmitting terminal MCU through an RS485 interface bus. The message to be sent is sent to the transmitter MCU in the form of a serial port for processing. Because the transmitter is installed outdoors, it generally needs to pass through a hub, such as a 4-port RS485 interface hub with lightning protection and optoelectronic isolation.
所述发射端MCU是采用STC15W4K32S4,作用是接收所述PC发来的已经封装好的数据包消息,接收GPS消息并进行解码,接收手机通过4G/GPRS接口发来的消息,所述发射端MCU通过参见图2所示的流程方法封装数据包,封装好的数据包传递给所述的 433MHz串口无线发射器发射。The transmitter MCU adopts STC15W4K32S4, and its function is to receive the packaged data packet messages sent by the PC, receive GPS messages and decode them, and receive messages from the mobile phone through the 4G/GPRS interface. The data packet is encapsulated by referring to the process method shown in FIG. 2 , and the encapsulated data packet is transmitted to the 433MHz serial port wireless transmitter for transmission.
所述433MHz串口无线发射器,是基于串口的远距离数据发射模块,LORA扩频传输,型号是SX1278,所述发射端MCU到SX1278无线串口模块设定速率9600bps,功率1W.工作电压+5V,工作频率410~441MHz之间选择433MHz,空中传输速率2.5Kbps。采用点对点定点传输方式和广播方式结合,带有天线。在空旷无中继方式下,传输距离可达 8000m。The 433MHz serial port wireless transmitter is a serial port-based long-distance data transmission module, LORA spread spectrum transmission, the model is SX1278, the transmitter MCU to the SX1278 wireless serial port module set rate 9600bps, power 1W. Working voltage +5V, The working frequency is 433MHz between 410 and 441MHz, and the air transmission rate is 2.5Kbps. It adopts the combination of point-to-point fixed-point transmission mode and broadcast mode, with antenna. In the open and no repeater mode, the transmission distance can reach 8000m.
所述GPS接收器是带有RS485接口的接收器,能同时接收GPS和北斗信号。主要给所述核心MCU授时,授时的信息包括时间字段和日期字段,时间字段和日期字段作为数据载荷的一部分。The GPS receiver is a receiver with an RS485 interface, which can simultaneously receive GPS and Beidou signals. It mainly provides timing to the core MCU, and the timing information includes a time field and a date field, and the time field and the date field are part of the data payload.
所述4G/GPRS接口是一种带有串口输出的基于4G移动网络的接口模块,可实现信号的透明传输。目的是将手机发来的消息(需要授权)通过串口传递给所述的核心MCU,核心MCU按照图2所示的流程方法将消息封装为数据包的形式,传递给所述433MHz的发射器发射。具体实施时,可采用型号是USR-780-V2.满足所述的4G/GPRS接口要求。The 4G/GPRS interface is a 4G mobile network-based interface module with serial output, which can realize transparent transmission of signals. The purpose is to transmit the message from the mobile phone (authorization required) to the core MCU through the serial port. . In specific implementation, the model that can be used is USR-780-V2, which meets the 4G/GPRS interface requirements.
所述PC端运行专用软件是运行于Windows下具有消息发送界面的计算机软件。该软件具有选择群发和指定地址发送功能、具有紧急消息、普通消息选择功能,具有是否回应功能、具有是否加密功能等,最后将数据传递给所述的发送端的MCU.采用Delphi7.0软件开发,连接Microsoft SQL Server2005数据库,具有查询、删除、统计和修改等功能。The PC-side running special software is computer software running under Windows with a message sending interface. The software has the functions of selecting mass sending and sending to designated addresses, selecting functions of emergency messages and ordinary messages, whether to respond, whether to encrypt, etc., and finally transmit the data to the MCU of the sending end. It is developed with Delphi7.0 software, Connect to Microsoft SQL Server2005 database, with functions such as query, delete, statistics and modification.
作为发射端中实施例如:构造的数据包如附图3所示。As an example in the transmitting end, the constructed data packet is shown in FIG. 3 .
所述接收端包括433MHz的串口无线接收端,7寸彩屏,STC15W为核心的MCU以及报警单元组成。The receiving end includes a 433MHz serial wireless receiving end, a 7-inch color screen, an MCU with STC15W as the core, and an alarm unit.
所述433MHz的串口无线接收端具有与发射端同样的频率,如433MHz(410~441可选)、同样的信道,如17号信道(0~31可选)、同样的空中传输速率,如2.5Kbps,可以在静态配置其参数,可以在运行时动态配置其参数。The 433MHz serial wireless receiver has the same frequency as the transmitter, such as 433MHz (410-441 optional), the same channel, such as channel 17 (0-31 optional), and the same air transmission rate, such as 2.5 Kbps, its parameters can be configured statically, and its parameters can be dynamically configured at runtime.
所述接收端采用带有串口的7寸彩屏。显然,在办公室等室内环境使用和室外环境使用应当有所区别,室外应当采用比如10寸以上的显示屏较好。这种彩色显示屏本身带有基本的应用程序环境,只要通过串口发送数据到彩屏本身的控件单元,这些控件单元就在相应的位置显示文字或符号。因为彩屏本身必须带有汉字库,汉字库一般至少包含6763个汉字,在对汉字进行编码时只要将1个汉子编码为2个字节的汉字内码就可以,这样既大大减少了数据在空中的传输量。The receiving end adopts a 7-inch color screen with a serial port. Obviously, there should be a difference between use in an indoor environment such as an office and use in an outdoor environment, and it is better to use a display screen of more than 10 inches outdoors. This color display itself has a basic application program environment. As long as data is sent to the control units of the color screen itself through the serial port, these control units will display text or symbols in the corresponding positions. Because the color screen itself must have a Chinese character library, the Chinese character library generally contains at least 6763 Chinese characters. When encoding Chinese characters, it is only necessary to encode one Chinese character into a 2-byte Chinese character internal code, which greatly reduces the data in the air. transmission volume.
所述报警单元连接到所述接收端的MCU的P1.0接口。具有驱动电路和蜂鸣器报警和 LED闪光功能。The alarm unit is connected to the P1.0 interface of the MCU of the receiving end. With drive circuit and buzzer alarm and LED flashing function.
参见本发明实例附图4,所述接收端接收数据与发射器封包的过程相反。从定义的数据包中解码得到各个字段的数据。Referring to FIG. 4 of the example of the present invention, the process of receiving data at the receiving end is opposite to that of the transmitting device. Decode the data of each field from the defined packet.
加密密钥和解密密钥防范被非法读取的方法是:MCU采用STC15W4K32S4,此MCU 本身具有程序文件的硬件加密功能,其加密原理是采用此MCU芯片制造时全球唯一的ID 号通过复杂算法对程序文件进行加密,一旦含有密钥的程序文件被烧录到此MCU中,目前的技术和方法无法读取解密。而此MCU正常运行时,自动解密存储在其内部的程序文件正常运行,也能通过正常的程序文件读取作为常量存储的密钥,从而实现加密和解密的过程。The method to prevent the encryption key and decryption key from being illegally read is: MCU adopts STC15W4K32S4, this MCU itself has the function of hardware encryption of program files, and the encryption principle is to use the unique ID number in the world when the MCU chip is manufactured through complex algorithm. The program file is encrypted. Once the program file containing the key is burned into the MCU, the current technology and method cannot be read and decrypted. When the MCU is running normally, the program files stored in it can be automatically decrypted and run normally, and the keys stored as constants can also be read through the normal program files, thereby realizing the process of encryption and decryption.
防范程序文件被非法改写的方法是:下载口令保护,没有口令无法改写发射端和接收端所述MCU的运行程序。The method of preventing the program file from being illegally rewritten is: downloading password protection, without the password, the running program of the MCU described in the transmitting end and the receiving end cannot be rewritten.
433MHz无线通讯模块发射的频率范围:410Mhz~441MHz,每隔1MHz一个频段,共32个频段,采用无线数传电台的无中继的广播可达8000m。为了避免非法的同一个频段433MHz,同一个信道,比如17号,同一个地址,比如(9999)数据的干扰,采用的方法是:在自定义消息协议的数据部分,定义了5个字节的数据头,例如:“MNPQR”。非法的数据即使已知频率、信道、接收地址,但是因为无法得到解密密钥从而无法得到正确的数据头而使得非法的数据被丢弃。从而避免了数据干扰。The frequency range of 433MHz wireless communication module transmission: 410Mhz ~ 441MHz, every 1MHz frequency band, a total of 32 frequency bands, the use of wireless data transmission radio station without relay broadcast can reach 8000m. In order to avoid illegal interference of the same frequency band 433MHz, the same channel, such as No. 17, and the same address, such as (9999) data, the method used is: in the data part of the custom message protocol, a 5-byte data is defined. Data header, for example: "MNPQR". Even if the frequency, channel, and receiving address of illegal data are known, the illegal data is discarded because the decryption key cannot be obtained so that the correct data header cannot be obtained. Thereby avoiding data interference.
以上所述,仅为本发明较佳的具体实施方式,本发明的保护范围不限于此,任何熟悉本技术领域的技术人员在本发明披露的技术范围内,可显而易见地得到的技术方案的简单变化或等效替换均落入本发明的保护范围内。The above are only preferred specific embodiments of the present invention, and the protection scope of the present invention is not limited thereto. Any person skilled in the art can obviously obtain the simplicity of the technical solution within the technical scope disclosed in the present invention. Variations or equivalent substitutions fall within the protection scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010795097.5A CN111953373B (en) | 2020-08-10 | 2020-08-10 | A 433MHz-based broadcast message communication device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010795097.5A CN111953373B (en) | 2020-08-10 | 2020-08-10 | A 433MHz-based broadcast message communication device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111953373A CN111953373A (en) | 2020-11-17 |
CN111953373B true CN111953373B (en) | 2022-08-12 |
Family
ID=73333199
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010795097.5A Expired - Fee Related CN111953373B (en) | 2020-08-10 | 2020-08-10 | A 433MHz-based broadcast message communication device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111953373B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113630717B (en) * | 2021-08-10 | 2022-04-26 | 重庆创迪科技发展有限公司 | Gateway device based on 433MHZ and 4G communication forwarding control system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106211184A (en) * | 2015-04-30 | 2016-12-07 | 东莞市星东升实业有限公司 | Microgrid Construction Method Based on Microgrid Protocol |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008058959A1 (en) * | 2006-11-13 | 2008-05-22 | Kine Ehf | A method and a system of managing remote devices placed on objects |
CN102075275A (en) * | 2010-12-14 | 2011-05-25 | 北京西军电信息科技有限公司 | Control system for transmitting and receiving urgent message |
CN103402181A (en) * | 2013-07-30 | 2013-11-20 | 张明亮 | Broadcasting device, broadcasting equipment and broadcasting method thereof |
CN104052559A (en) * | 2013-12-31 | 2014-09-17 | 许春香 | Sudden-onset disaster emergency wireless public broadcast system |
CN106656381A (en) * | 2015-08-05 | 2017-05-10 | 黑龙江真美广播通讯器材有限公司 | Early warning broadcasting machine having encryption and decryption functions |
CN106384484A (en) * | 2015-08-05 | 2017-02-08 | 黑龙江真美广播通讯器材有限公司 | Early warning broadcast host |
-
2020
- 2020-08-10 CN CN202010795097.5A patent/CN111953373B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106211184A (en) * | 2015-04-30 | 2016-12-07 | 东莞市星东升实业有限公司 | Microgrid Construction Method Based on Microgrid Protocol |
Also Published As
Publication number | Publication date |
---|---|
CN111953373A (en) | 2020-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101466085B (en) | Emergency system and method | |
EP2586269B1 (en) | System and method for administration and operation of one or more mobile electronic communications devices | |
CN103761848B (en) | A kind of data concentrated collection copies control table system | |
CN109617867B (en) | Intelligent gateway system for controlling household equipment | |
CN111953373B (en) | A 433MHz-based broadcast message communication device | |
CN108430091B (en) | Efficient wifi network distribution method and device for smart home | |
CN205068378U (en) | Multi -functional wireless serial ports device | |
Hendriana et al. | Remote control system as serial communications mobile using a microcontroller | |
CN109150289A (en) | A kind of number biography emergency communication system | |
Jiao et al. | A blockchain-based trusted upload scheme for the Internet of Things nodes | |
CN105591755A (en) | Intelligent home system and authentication connection method on the basis of sound wave authentication connection | |
Goel et al. | The personal SMS gateway | |
CN102333018B (en) | A kind of information notice method, system and wireless communication terminal | |
CN108833612B (en) | Local area network equipment communication method based on ARP protocol | |
CN102271306A (en) | Method for realizing inter-contact geographical position information interaction and displaying by global positioning system (GPS), short messages and map navigation software | |
CN201813446U (en) | Meteorological Information Early Warning and Release System Based on SMS, GPRS and Satellite | |
CN209657470U (en) | A kind of anti-air-raid and disaster-preventing alert device | |
CN204633773U (en) | For the plotted data acquisition system in public emergent safety | |
CN110062336B (en) | Broadcasting method and device for air defense and disaster prevention alarm, electronic equipment and storage medium | |
CN201191878Y (en) | Embedded short message remote security monitoring apparatus | |
CN202373117U (en) | Wireless indoor monitoring system | |
Singh et al. | Project monitomation version 1 | |
KURLEKAR et al. | GSM MODULE INTERFACING WITH 8051 FOR DISPLAY BOARD APPLICATION | |
CN113870622A (en) | Method and system for unmanned aerial vehicle information interaction by using safety short message | |
Banait et al. | Cost Effective Android Based Wireless Notice Board |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220812 |