Bài viết trình bày ứng dụng mã Hamming (7,4) trong việc phát hiện và sửa lỗi ảnh bị nhiễu khi truyền qua môi trường vô tuyến. Mô hình truyền thông sử dụng máy tính kết nối module thu phát NRF24L01 để truyền ảnh đen trắng đã được mã hóa bằng mã Hamming nhằm tăng độ tin cậy. Mỗi khối 4 bit dữ liệu được mã hóa thành 7 bit và truyền qua kênh vô tuyến. Kết quả cho thấy mã Hamming (7,4) có khả năng sửa được lỗi đơn (1 bit) trong mỗi khung dữ liệu, giúp phục hồi ảnh chính xác. Tuy nhiên, khi số lỗi vượt quá 1 bit/khung, mã không còn hiệu quả. Nghiên cứu khẳng định tính khả thi của mã Hamming trong truyền ảnh với mức nhiễu thấp và mở ra hướng phát triển các mã mạnh hơn cho các kênh truyền có tỷ lệ lỗi cao.
This paper presents the application of Hamming (7,4) codes for error detection and correction in noisy image transmission over wireless channels. The communication model utilizes computers connected to NRF24L01 transceiver modules to transmit binary images encoded with Hamming codes to enhance reliability. Each 4-bit data block is encoded into 7 bits and transmitted over the wireless link. Experimental results demonstrate that the Hamming (7,4) code can successfully correct single-bit errors per transmission frame, allowing accurate image recovery. However, when the number of errors exceeds 1 bit/frame, the code fails to correct the errors. This study confirms the feasibility of using Hamming codes for image transmission with low noise levels and highlights the need for stronger error correction codes for transmission channels with high error rates.
Mã Hamming(7.4), sửa lỗi trong truyền ảnh, truyền thông không dây, mã hoá kênh, NRF24L01 và truyền dữ liệu
Hamming(7.4) code, image transmission error correction, wireless communication, Channel coding, NRF24L01 and data transmission
Nguyễn Viết Kính – Trịnh Anh Vũ, Thông tin số, Nxb Giáo dục, Hà Nội, 2008
S. Lin and D. J. Costello, Error Control Coding: Fundamentals and Applications, 2nd ed. Pearson, 2004.
M. S. Gast, 802.11 Wireless Networks: The Definitive Guide, 2nd ed. O'Reilly Media, 2005.