Design of voice miner's lamp based on WiFi
-
摘要: 针对现有矿灯大多只具有照明、定位、环境感知等功能,没有语音对讲功能的问题,设计了一种基于WiFi的具有语音对讲功能的语音矿灯。该语音矿灯以工业以太环网和WiFi网络为传输平台,采用VoIP语音通信技术实现语音播放、音频采集、与调度台对讲功能;通过音频编解码芯片实现语音模拟信号与数字信号的转换,采用UDP协议将信号传输至调度台,完成语音数据的双向传输,实现语音对讲和矿灯照明一体化。详细介绍了语音对讲功能实现的关键技术:音频数据的编码格式和缓存管理、语音数据的可靠传输机制,用于确保语音播放的准确性;WiFi模块与微控制器STM32L151的低功耗休眠技术,用于降低语音矿灯平均电流,延长工作时间。测试结果表明:该语音矿灯能够满足调度台与井下工作人员之间的语音对讲需求,与WiFi基站通信距离可达400 m,与调度台之间的对讲传输时延小于1 s,语音矿灯之间的组播传输时延小于3 s;语音矿灯对讲时平均电流小于70 mA、空闲时平均电流小于5 mA。Abstract: In order to solve the problem that most of the existing miner's lamps only have the functions of lighting, positioning, environment perception and so on, and do not have the voice intercom function, a voice miner's lamp with voice intercom function based on WiFi is designed. The voice miner's lamp takes industrial Ethernet ring network and WiFi network as transmission platform, and adopts VoIP voice communication technology so as to realize voice playback, audio acquisition, and intercom function with the dispatching center. The audio codec chip is used to realize the conversion of voice analog signal and digital signal, and UDP protocol is applied to transmit the signal to the dispatching center so as to complete the two-way transmission of voice data and realize the integration of voice intercom and miner’s lamp lighting. This paper introduces the key technologies of voice intercom function in details. Audio data encoding format and cache management, reliable voice data transmission mechanism are used to ensure the accuracy of voice playback. The low-power sleep technology of WiFi module and microcontroller STM32L151 are used to reduce the average current of the voice miner's lamp and extend the working time. The test results show that the voice miner's lamp can meet the demand of voice intercom between the dispatching center and the underground workers, the communication distance between the voice miner's lamp and the WiFi base station can reach 400 m, the intercom transmission delay between the voice miner's lamp and the dispatching center is less than 1 s, and the multicast transmission delay between the voice miner's lamps is less than 3 s. The average current of the voice miner's lamp is less than 70 mA during intercom, and the average current is less than 5 mA during idle time.
-
表 1 语音数据帧的格式说明
Table 1. Format description of voice data frames
序号 内容 长度/byte 说明 1 序列号 1 每段语音数据对应1个序列号 2 编码号 2 每个语音数据帧对应1个编码号 3 语音数据 24 有效的语音数据 -
[1] 李爽, 薛广哲, 方新秋, 等. 煤矿智能化安全保障体系及关键技术[J]. 煤炭学报,2020,45(6):2320-2330.LI Shuang, XUE Guangzhe, FANG Xinqiu, et al. Coal mine intelligent safety system and key technologies[J]. Journal of China Coal Society,2020,45(6):2320-2330. [2] 吕鹏飞, 何敏, 陈晓晶, 等. 智慧矿山发展与展望[J]. 工矿自动化,2018,44(9):84-88.LYU Pengfei, HE Min, CHEN Xiaojing, et al. Development and prospect of wisdom mine[J]. Industry and Mine Automation,2018,44(9):84-88. [3] 孙继平, 陈晖升. 智慧矿山与5G和WiFi6[J]. 工矿自动化,2019,45(10):1-4.SUN Jiping, CHEN Huisheng. Smart mine with 5G and WiFi6[J]. Industry and Mine Automation,2019,45(10):1-4. [4] 姚磊, 张明泉, 周泉. 井下无线物联网与智能终端应用研究[J]. 山东煤炭科技,2020(8):166-168. doi: 10.3969/j.issn.1005-2801.2020.08.054YAO Lei, ZHANG Mingquan, ZHOU Quan. Application research of wireless Internet of things and intelligent terminal in underground[J]. Shandong Coal Science and Technology,2020(8):166-168. doi: 10.3969/j.issn.1005-2801.2020.08.054 [5] 张帝, 权悦, 国海, 等. 基于LoRa与RT−Thread的多功能矿灯设计[J]. 工矿自动化,2021,47(6):96-102.ZHANG Di, QUAN Yue, GUO Hai, et al. Design of multifunctional miner lamp based on LoRa and RT-Thread[J]. Industry and Mine Automation,2021,47(6):96-102. [6] 刘朝阳, 王安义. 便携式通信矿灯的研究与设计[J]. 现代电子技术,2020,43(1):9-11.LIU Zhaoyang, WANG Anyi. Study and design of portable communication mine lamp[J]. Modern Electronics Technique,2020,43(1):9-11. [7] 戴剑波. 一种多模定位信息矿灯标识卡设计与实现[J]. 煤矿安全,2021,52(4):133-136.DAI Jianbo. Design and implementation of a multi-mode information lamp identification card for positioning[J]. Safety in Coal Mines,2021,52(4):133-136. [8] 吴静然, 李秀凤, 吴倩. 基于WiFi的煤矿井下智能终端设计[J]. 工矿自动化,2013,39(4):5-8. doi: 10.7526/j.issn.1671-251X.2013.04.002WU Jingran, LI Xiufeng, WU Qian. Design of underground intelligent terminal based on WiFi[J]. Industry and Mine Automation,2013,39(4):5-8. doi: 10.7526/j.issn.1671-251X.2013.04.002 [9] 王军, 顾义东, 曾苛. WiFi通信技术在煤矿信息化中的应用分析[J]. 工矿自动化,2017,43(7):90-93.WANG Jun, GU Yidong, ZENG Ke. Application analysis of WiFi communication technology in coal mine informatization[J]. Industry and Mine Automation,2017,43(7):90-93. [10] 张立亚. 全矿井融合通信系统研究[J]. 工矿自动化,2018,44(3):12-16.ZHANG Liya. Research on integrated mine communication system[J]. Industry and Mine Automation,2018,44(3):12-16. [11] 孙继平. 现代化矿井通信技术与系统[J]. 工矿自动化,2013,39(3):1-5. doi: 10.7526/j.issn.1671-251X.2013.03.001SUN Jiping. Modern mine communication technology and system[J]. Industry and Mine Automation,2013,39(3):1-5. doi: 10.7526/j.issn.1671-251X.2013.03.001 [12] 王树强, 江云, 徐炜, 等. 矿用IP广播对讲系统设计[J]. 工矿自动化,2011,37(11):4-6.WANG Shuqiang, JIANG Yun, XU Wei, et al. Design of mine-used IP broadcast and talkback system[J]. Industry and Mine Automation,2011,37(11):4-6. [13] 常云泽. 井下信息化矿灯通讯调度系统研究[J]. 能源与节能,2021(2):178-180.CHANG Yunze. Study on communication and dispatching system of underground informationalized miner's lamp[J]. Energy and Energy Conservation,2021(2):178-180. [14] 张晓丹, 俞侃, 朱琳琳. 基于CC3200的可视化低功耗门铃设计与实现[J]. 自动化与仪表,2020,35(5):103-108.ZHANG Xiaodan, YU Kan, ZHU Linlin. Design and implementation of visual low-power WiFi door bell based on CC3200[J]. Automation & Instrumentation,2020,35(5):103-108.