Abstract
The integration of high precision orientation sensors into resilient communication infrastructures is a key requirement for next-generation autonomous systems. Digital compass sensors typically generate data in the NMEA format, whereas distributed control architectures in mobile robotics predominantly utilize the CAN 2.0B protocol. This study presents the design and implementation of a microcontroller-based hardware-software gateway that enables seamless interoperability between these heterogeneous communication standards within autonomous agricultural platforms. The proposed system operates as a protocol translation layer, acquiring orientation data (heading, pitch, and roll) from a digital compass via serial communication and converting it into CAN-compliant messages. The incoming NMEA sentences are parsed, validated, and filtered before being encapsulated into extended CAN frames. To address the payload limitations of Classical CAN and discrepancies in transmission rates, a multi-frame segmentation strategy and a synchronization mechanism based on handshaking are implemented. Additionally, buffering techniques are employed to ensure temporal consistency and prevent data loss during high-frequency data exchange. Experimental evaluations demonstrated that the proposed gateway achieved reliable real-time communication performance, with an average end to end communication latency of 19.6 ms, a 99.98% message reconstruction success rate, and 0.02% packet loss during continuous CAN Bus data transmission tests. The proposed integration framework effectively bridges the gap between legacy serial sensor protocols and modern CAN Bus-based distributed systems. Consequently, this work offers a scalable and practical solution for protocol interoperability in precision agriculture and contributes to the development of robust sensor integration strategies for autonomous field robotics.
Keywords
Article history
- ReceivedUntil the next stage: 61 days
- RevisedUntil the next stage: 0 days
- AcceptedUntil the next stage: 105 days
- Published
References
28 references- Auernhammer, H. (2001). Precision farming—the environmental challenge. Computers and Electronics in Agriculture, 30(1–3), 31–43. https://doi.org/10.1016/S0168-1699(00)00153-8
- Barbosa Júnior, M. R., Santos, R. G. d., Sales, L. d. A., & Oliveira, L. P. d. (2024). Advancements in Agricultural Ground Robots for Specialty Crops: An Overview of Innovations, Challenges, and Prospects. Plants, 13(23), 3372. https://doi.org/10.3390/plants13233372
- Bari, B. S., Yelamarthi, K., & Ghafoor, S. (2023). Intrusion Detection in Vehicle Controller Area Network (CAN) Bus Using Machine Learning: A Comparative Performance Study. Sensors, 23(7), 3610. https://doi.org/10.3390/s23073610
- Bozdal, M., Samie, M., Aslam, S., & Jennions, I. (2020). Evaluation of CAN Bus Security Challenges. Sensors, 20(8), 2364. https://doi.org/10.3390/s20082364
- Cui, L., Le, F., Xue, X., Sun, T., & Jiao, Y. (2024). Design and Experiment of an Agricultural Field Management Robot and Its Navigation Control System. Agronomy, 14(4), 654. https://doi.org/10.3390/agronomy14040654
- Erlank, A.O., & Bridges, C.P. (2018). A hybrid real-time agent platform for fault-tolerant, embedded applications. Autonomous Agents and Multi-Agent Systems, 32(1), 252–274. https://doi.org/10.1007/s10458-017-9378-4
- Feng, L., Xu, C., Tang, H., Wei, Z., Guan, X., Xu, J., Yang, M., & Li, Y. (2026). Application of navigation technology in agricultural machinery: A review and prospects. Artificial Intelligence in Agriculture, 16(1), 94-123. https://doi.org/10.1016/j.aiia.2025.10.003
- Girbés, V., Hernández, D., Armesto, L., Dols, J. F., & Sala, A. (2019). Drive Force and Longitudinal Dynamics Estimation in Heavy-Duty Vehicles. Sensors, 19(16), 3515. https://doi.org/10.3390/s19163515
- Guan, X., Ge, H., Nie, S., & Ding, Y. (2025). Research on Agricultural Autonomous Positioning and Navigation System Based on LIO-SAM and Apriltag Fusion. Agronomy, 15(12), 2731. https://doi.org/10.3390/agronomy15122731
- Haider, M.H., Wang, Z., Khan, A.A., Ali, H., Zheng, H., Usman, S., Kumar, R., Bhutta, M.U.M., & Zhi, P. (2022). Robust mobile robot navigation in cluttered environments based on hybrid adaptive neuro-fuzzy inference and sensor fusion. Journal of King Saud University-Computer and Information Sciences, 34(10), 9060-9070. https://doi.org/10.1016/j.jksuci.2022.08.031
- Honeywell. (2026). HMR3200/HMR3300 Digital Compass Solutions User’s Guide. https://www.inertial-solutions.us/pdf_files/HMR32003300_manual.pdf
- Kessler, G.C. (2021). The CAN Bus in the Maritime Environment - Technical Overview and Cybersecurity Vulnerabilities. The International Journal on Marine Navigation and Safety of Sea Transportation, 15(3), 531-540. http://dx.doi.org/10.12716/1001.15.03.05
- Levshun, D., Chechulin, A., & Kotenko, I. (2021). Design of Secure Microcontroller-Based Systems: Application to Mobile Robots for Perimeter Monitoring. Sensors, 21(24), 8451. https://doi.org/10.3390/s21248451
- Lodge, N., Tambe, N., & Saqib, F. (2024). Addressing Vulnerabilities in CAN-FD: An Exploration and Security Enhancement Approach. IoT, 5(2), 290-310. https://doi.org/10.3390/iot5020015
- Miller, T., Mikiciuk, G., Durlik, I., Mikiciuk, M., Łobodzińska, A., & Śnieg, M. (2025). The IoT and AI in Agriculture: The Time Is Now—A Systematic Review of Smart Sensing Technologies. Sensors, 25(12), 3583. https://doi.org/10.3390/s25123583
- Mwitta, C., & Rains, G.C. (2024). The integration of GPS and visual navigation for autonomous navigation of an Ackerman steering mobile robot in cotton fields. Frontiers in Robotics and AI, 11(1), 1359887. https://doi.org/10.3389/frobt.2024.1359887
- Oliveira, L. F. P., Moreira, A. P., & Silva, M. F. (2021). Advances in Agriculture Robotics: A State-of-the-Art Review and Challenges Ahead. Robotics, 10(2), 52. https://doi.org/10.3390/robotics10020052
- Olliver, A., Schlingmann, N., & van der Vlugt, P. (2022). ISOBUS Technologies – The Standard for Smart Agriculture. In: Zhang, Q. (eds) Encyclopedia of Smart Agriculture Technologies. Springer, Cham. https://doi.org/10.1007/978-3-030-89123-7_117-1
- Piao, J., Jin, S., Seo, D.-H., Woo, S., & Chung, J.-G. (2023). MAC-Based Compression Ratio Improvement for CAN Security. Applied Sciences, 13(4), 2654. https://doi.org/10.3390/app13042654
- Qian, H., Wang, M., Zhu, M., & Wang, H. (2025). A Review of Multi-Sensor Fusion in Autonomous Driving. Sensors, 25(19), 6033. https://doi.org/10.3390/s25196033
- Shamshiri, R.R., Navas, E., Dworak, V., Cheein, F.A.A., & Weltzien, C. (2024). A modular sensing system with CANBUS communication for assisted navigation of an agricultural mobile robot. Computers and Electronics in Agriculture, 223, 109112. https://doi.org/10.1016/j.compag.2024.109112
- Spravil, J., Hemminghaus, C., von Rechenberg, M., Padilla, E., & Bauer, J. (2023). Detecting Maritime GPS Spoofing Attacks Based on NMEA Sentence Integrity Monitoring. Journal of Marine Science and Engineering, 11(5), 928. https://doi.org/10.3390/jmse11050928
- Sun, R., Cheng, Q., Xue, D., Wang, G., & Ochieng, W. Y. (2017). GNSS/Electronic Compass/Road Segment Information Fusion for Vehicle-to-Vehicle Collision Avoidance Application. Sensors, 17(12), 2724. https://doi.org/10.3390/s17122724
- Tran, K., Keene, S., Fretheim, E., & Tsikerdekis, M. (2021). Marine Network Protocols and Security Risks. Journal of Cybersecurity and Privacy, 1(2), 239-251. https://doi.org/10.3390/jcp1020013
- Ünal, İ. (2020). Integration of ZigBee based GPS receiver to CAN network for precision farming applications. Peer-to-Peer Networking and Applications, 13(1), 1394–1405. https://doi.org/10.1007/s12083-020-00897-3
- Yang, L., Li, P., Qian, S., Quan, H., Miao, J., Liu, M., Hu, Y., & Memetimin, E. (2023). Path Planning Technique for Mobile Robots: A Review. Machines, 11(10), 980. https://doi.org/10.3390/machines11100980
- Ye, J., Chen, Y., Simayi, A., Liu, Y., Lu, Z., & Wu, J. (2025). A Network Traffic Characteristics Reconstruction Method for Mitigating the Impact of Packet Loss in Edge Computing Scenarios. Future Internet, 17(5), 208. https://doi.org/10.3390/fi17050208
- Zhang, S., Cui, M., & Zhang, P. (2024). Development and Application of a High-Precision Portable Digital Compass System for Improving Combined Navigation Performance. Sensors, 24(8), 2547. https://doi.org/10.3390/s24082547
How to cite
APA
IEEE
MLA
Chicago
Harvard
Vancouver
BibTeX
RIS
Licence
May be shared and adapted with credit, for non-commercial purposes.
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
