Turkish Journal of Agriculture - Food Science and Technology e-ISSN 2148-127X Open access
Research Paper Vol. 14, No. 10 (2026)

A Gateway-Based Approach for Integrating Digital Compass Data into Controller Area Network (CAN) in Precision Farming Systems

Author and affiliation details
  • İlker Ünal Corresponding author Burdur Mehmet Akif Ersoy University, Faculty of Science and Letters, Department of Precision Agriculture and Agricultural Robots, 15200, Burdur, Türkiye ORCID iD0000-0002-5188-4438 iunal@mehmetakif.edu.tr
  • Osman Eceoğlu Akdeniz University, Technical Science Vocational School, Department of Control and Automation, 07070, Antalya, Türkiye ORCID iD0000-0001-5778-6655
Pages
2860-2869
Published
Licence
CC BY-NC 4.0

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

  1. ReceivedUntil the next stage: 61 days
  2. RevisedUntil the next stage: 0 days
  3. AcceptedUntil the next stage: 105 days
  4. Published

References

28 references
  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. Honeywell. (2026). HMR3200/HMR3300 Digital Compass Solutions User’s Guide. https://www.inertial-solutions.us/pdf_files/HMR32003300_manual.pdf
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. Ü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
  26. 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
  27. 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
  28. 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

Ünal, İ., & Eceoğlu, O. (2026). A Gateway-Based Approach for Integrating Digital Compass Data into Controller Area Network (CAN) in Precision Farming Systems. Turkish Journal of Agriculture - Food Science and Technology, 14(10), 2860–2869. https://doi.org/10.24925/turjaf.v14i10.2860-2869.9031

IEEE

İ. Ünal and O. Eceoğlu, “A Gateway-Based Approach for Integrating Digital Compass Data into Controller Area Network (CAN) in Precision Farming Systems,” Turkish Journal of Agriculture - Food Science and Technology, vol. 14, no. 10, pp. 2860–2869, 2026, doi: 10.24925/turjaf.v14i10.2860-2869.9031.

MLA

Ünal, İlker, and Osman Eceoğlu. “A Gateway-Based Approach for Integrating Digital Compass Data into Controller Area Network (CAN) in Precision Farming Systems.” Turkish Journal of Agriculture - Food Science and Technology, vol. 14, no. 10, 2026, pp. 2860–2869. https://doi.org/10.24925/turjaf.v14i10.2860-2869.9031.

Chicago

Ünal, İlker, and Osman Eceoğlu. 2026. “A Gateway-Based Approach for Integrating Digital Compass Data into Controller Area Network (CAN) in Precision Farming Systems.” Turkish Journal of Agriculture - Food Science and Technology 14 (10): 2860–2869. https://doi.org/10.24925/turjaf.v14i10.2860-2869.9031.

Harvard

Ünal, İ. and Eceoğlu, O. (2026) ‘A Gateway-Based Approach for Integrating Digital Compass Data into Controller Area Network (CAN) in Precision Farming Systems’, Turkish Journal of Agriculture - Food Science and Technology, 14(10), pp. 2860–2869. doi: 10.24925/turjaf.v14i10.2860-2869.9031.

Vancouver

Ünal İ, Eceoğlu O. A Gateway-Based Approach for Integrating Digital Compass Data into Controller Area Network (CAN) in Precision Farming Systems. Turkish Journal of Agriculture - Food Science and Technology. 2026;14(10):2860-2869. doi:10.24925/turjaf.v14i10.2860-2869.9031

BibTeX

@article{unal2026, author = {Ünal, İlker and Eceoğlu, Osman}, title = {A Gateway-Based Approach for Integrating Digital Compass Data into Controller Area Network (CAN) in Precision Farming Systems}, journal = {Turkish Journal of Agriculture - Food Science and Technology}, year = {2026}, volume = {14}, number = {10}, pages = {2860--2869}, doi = {10.24925/turjaf.v14i10.2860-2869.9031}, url = {https://doi.org/10.24925/turjaf.v14i10.2860-2869.9031}, issn = {2148-127X} }

RIS

TY - JOUR AU - Ünal, İlker AU - Eceoğlu, Osman TI - A Gateway-Based Approach for Integrating Digital Compass Data into Controller Area Network (CAN) in Precision Farming Systems JO - Turkish Journal of Agriculture - Food Science and Technology T2 - Turkish Journal of Agriculture - Food Science and Technology PY - 2026 DA - 2026/10/11 VL - 14 IS - 10 SP - 2860 EP - 2869 DO - 10.24925/turjaf.v14i10.2860-2869.9031 UR - https://doi.org/10.24925/turjaf.v14i10.2860-2869.9031 SN - 2148-127X ER -

Licence

Creative Commons Attribution-NonCommercial 4.0 International

May be shared and adapted with credit, for non-commercial purposes.