Research Article
BibTex RIS Cite

CAN Data Transfer from Vehicle to Cloud via Smartphone

Year 2024, Volume: 26 Issue: 78, 356 - 363, 27.09.2024
https://doi.org/10.21205/deufmd.2024267801

Abstract

Smartphones have evolved into multipurpose handheld devices and have exceeded their limits beyond communication. Apart from communication, these devices have been utilized for mobile payment, cloud-based services, artificial intelligence, Internet of Things (IoT) applications, and more. In this study, an Arduino-based system has been developed to receive commercial heavy-duty vehicle data in accordance with the SAE J1939 standard through the On Board Diagnosis II (OBD-II) connection. In addition, a smartphone application supported by graphical interface has been created to transmit processed data to the cloud. The designed system has been tested and verified by using data from an internal combustion engine passenger bus. The reliable transfer of selected data has been realized in both the smartphone and cloud environments. This study has offered a cost-effective solution for transmitting J1939 standardized vehicle data to a remote operator via a smartphone based on verified successful applications. Moreover, the created system will be a good significant resource for comparison to future applications.

References

  • [1] Keeratiwintakorn, P., Thepnorarat, E., Russameesawang, A. 2009. Mar. Ubiquitous communication for V2V and V2I for Thailand intelligent transportation system. InNTC International Conference, Thailand.
  • [2] Sivanathan, A., Gharakheili, H.H., Sivaraman, V. 2020. Managing IoT cyber-security using programmable telemetry and machine learning. IEEE Transactions on Network and Service Management, Vol.17, s.60-74. DOI:10.1109/TNSM.2020.2971213.
  • [3] Zaldivar, J., Calafate, C.T., Cano, J.C., Manzoni, P. 2011. Providing accident detection in vehicular networks through OBD-II devices and Android- based smartphones. IEEE 36th Conference on Local Computer Networks, 4-7 October 2011, Germany, 813-819.
  • [4] Sawant, P.R., Pande, S. 2015. A Mobile Application for Monitoring Inefficient and Unsafe Driving Behavior. Data Mining and Knowledge Engineering. Vol.7, s.105-7.
  • [5] Prasad, B.V.P., Tang, J.J., Luo, S.J. 2019. Design and implementation of SAE J1939 vehicle diagnostics system. IEEE International Conference on Computation, Communication and Engineering (ICCCE) 8-10 November, China, 71-74.
  • [6] Rodríguez, A.R., Álvarez, J.R., Rodriguez, R.I. 2018. Implementation of an OBD-II diagnostics tool over CAN-BUS with Arduino. Sistemas y Telemática. 16(45). DOI:https://doi.org/10.18046/syt.v16i45.2747.
  • [7] Palomino, J., Cuty, E., Huanachin, A. 2021. Development of a CAN Bus datalogger for recording sensor data from an internal combustion ECU. IEEE International Workshop of Electronics, Control, Measurement, Signals and their application to Mechatronics (ECMSM) (pp. 1-4). DOI:10.1109/ECMSM51310.2021.9468837.
  • [8] Alvear, O., Calafate, C.T., Cano, J.C., Manzoni, P. 2015. Validation of a vehicle emulation platform supporting OBD-II communications. 12th Annual IEEE Consumer Communications and Net-working Conference (CCNC) 9-12 January, 880-885.
  • [9] Burakova, Y., Hass, B., Millar, L., Weimerskirch, A. 2016. Truck Hacking: An Experimental Analysis of the SAE J1939 Standard. Proceedings of the USENIX Workshop on Offensive Technologies (WOOT). 16:211-20.
  • [10] Din, M.A.C., Rahman, M.T.A., Munir, H.A., Rahman, A., Hamid, A.F.A. 2019 Development of CAN bus converter for on board diagnostic (OBD-II) system. IOP Conference Series: Materials Science and Engineering. 26-27 August, Malaysia,
  • [11] Specification. Bosch, C,A., Robert Bosch GmbH, Postfach. 1991 Sep;50.
  • [12] Pimple, P. 2018. Sniffing the Automotive CAN Bus for Real-Time Data-Logging and Real Time Diagnostics Display [Conference presentation]. International Conference on Smart Electric Drives and Power System (ICSEDPS), India, 167-170.
  • [13] Popa, L., Groza, B., Jichici, C. & Murvay, P. S. 2022. ECUPrint—Physical Fingerprinting Electronic Control Units on CAN Buses Inside Cars and SAE J1939 Compliant Vehicles. IEEE Transactions on Information Forensics and Security, 17, 1185-1200.
  • [14] Anil, D., Sivraj, P. 2020. Electric Vehicle Charging Communication Test-bed following CHAdeMO [Conference presentation]. 11th International Conference on Computing, Communication and Networking Technologies (ICCCNT), India, 1-7.
  • [15] Salunkhe, A. A., Kamble, P. P. & Jadhav, R. 2016. Design and implementation of CAN bus protocol for monitoring vehicle parameters [Conference presentation]. IEEE international conference on recent trends in electronics, information & communication technology (RTEICT), 20-21 May, India, 301-304.
  • [16] Santo Gitakarma, M. & Priyambodo, T. K. 2019. A Real-Time Smart Home System using Android Bluetooth Control Device Module [Conference presentation]. International Symposium on Electronics and Smart Devices (ISESD), 8-9 October. Indonesia, 1-7.
  • [17] Fenriana, I., Putra, D. S. D., Dermawan, B. & Kurnia, Y. 2022. Smart Home Prototype with HC–05 Bluetooth and RFID Modules, Based on Microcontroller. Bit-Tech, 5(2), 77-84. DOI: https://doi.org/10.32877/bt.v5i2.564.
  • [18] Desai S, Bhateshvar Y. 2023. Development of unified diagnostic services on CAN using MATLAB and Arduino. Materials Today: Proceedings, 72: 1935-1942. DOI: https://doi.org/10.1016/j.matpr.2022.10.157.
  • [19] Lakshmi, S. & Kumar, R. H. 2022. Secure Communication between Arduinos using Controller Area Network (CAN) Bus [Conference presentation]. IEEE International Power and Renewable Energy Conference (IPRECON), 19-18 December. India, 1-6.
  • [20] MIT App Inventor. (n.d.). https://appinventor.mit.edu/
  • [21] Xie, B. & Abelson, H. 2016. Skill progression in MIT app inventor [Conference presentation]. IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC), 4-8 September, Cambridge.
  • [22] Jamaluddin, A., Harjunowibowo, D., Rahardjo, D. T., Adhitama, E. & Hadi, S. 2016. Wireless water flow monitoring based on Android smartphone [Conference presentation]. 2nd International Conference of Industrial, Mechanical, Electrical, and Chemical Engineering (ICIMECE), 6-7 October. Indonesia, 243-247.
  • [23] Munasinghe, T., Patton, E. W. & Seneviratne, O. 2019.Iot application development using MIT app inventor to collect and analyze sensor data [Conference presentation]. IEEE International Conference on Big Data (Big Data), 9-12 December. USA, 6157-6159.
  • [24] Ceuca, E., Tulbure, A., Taut, A., Pop, O. & Farkas, I. 2013. Embedded system for remote monitoring of OBD bus [Conference presentation]. Proceedings of the 36th International Spring Seminar on Electronics Technology, 8-12 May. Romania, 305-308.
  • [25] Petrović, N., Roblek, V., Radenković, M. & Nejković, V. 2020. Approach to Rapid Development of Data-Driven Applications for Smart Cities using AppSheet and Apps Script [Conference presentation]. AIIT International conference on Applied Internet and Information Technologies, 16 October. Serbia, 77-81.
  • [26] DeBell, T., Goertzen, L., Larson, L., Selbie, W., Selker, J. & Udell, C. 2019. Opens hub: Real-time data logging, connecting field sensors to google sheets. Frontiers in Earth Science, 7, 137. DOI: https://doi.org/10.3389/feart.2019.00137.
  • [27] Thomas, A. & KP, M. S. 2019. Application of google app scripts in email for providing current awareness services to research scholars, at central university of kerala: an evaluative study. Int J Eng Appl Sci Technol, 4(6), 313-318.
  • [28] Ameen, H. A., Zaidan, B. B., Zaidan, A. A., Saon, S., Nor, D. M., Malik et al. 2019. A deep review and analysis of data exchange in vehicle-to-vehicle communications systems: coherent taxonomy, challenges, motivations, recommendations, substantial analysis and future directions. IEEE Access, 7, 158349-158378. DOI:10.1109/ACCESS.2019.2949130.
  • [29] Engelbrecht, J., Booysen, M. J., van Rooyen, G. J. & Bruwer, F. J. 2015. Survey of smartphone‐based sensing in vehicles for intelligent transportation system applications. IET Intelligent Transport Systems, 9(10), 924-935. DOI: https://doi.org/10.1049/iet- its.2014.0248.
  • [30] Türker, G. F., & Kutlu, A. 2016. Survey of smartphone applications based on OBD-II for intelligent transportation systems. Int. Journal of Engineering Research and Applications, 6(1), 69-73.
  • [31] Tahat, A., Said, A., Jaouni, F. & Qadamani, W. 2012. Android-based universal vehicle diagnostic and tracking system [Conference presentation]. IEEE 16th International Symposium on Consumer Electronics, 4-6 June. USA, 137-143.
  • [32] Meseguer, J. E., Calafate, C. T., Cano, J. C. & Manzoni, P. 2013. DrivingStyles: A smartphone application to assess driver behavior [Conference presentation]. IEEE symposium on computers and communications (ISCC), 7-10 July. Croatia, 000535-000540.
  • [33] Baek, S. H. & Jang, J. W. 2015. Implementation of integrated OBD-II connector with external network. Information Systems. 50:69–75. https://doi.org/10.1016/j.is.2014.06.011.
  • [34] Yang, Y., Chen, B., Su, L. & Qin, D. 2013. Research and development of hybrid electric vehicles CAN-bus data monitor and diagnostic system through OBD-II and Android-based smartphones. Advances Mechanical Engineering. 5:741240. DOI: https://doi.org/10.1155/2013/7412.
  • [35] Čabala, M., Gamec, J. 2012. Wireless real-time vehicle monitoring based on android mobile device. Acta Electrotechnica et Informatica. 12(4).
  • [36] Astarita, V., Festa, D. C. & Giofrè, V. P. 2018. Mobile Systems applied to Traffic Management and Safety: a state of the art. Procedia computer science. 1; 134:407-14. DOI:https://doi.org/10.1016/j.procs.2018.07.19 1
  • [37] Zhou, L., Chen, Q., Luo, Z., Zhu, H. & Chen, C. 2017. Speed-based location tracking in usage-based automotive insurance [Conference presentation]. IEEE 37th International Conference on Distributed Computing Systems (ICDCS), 5-8 June, USA, 2252-2257.

Araçtan Buluta Akıllı Telefon ile CAN Veri Aktarımı

Year 2024, Volume: 26 Issue: 78, 356 - 363, 27.09.2024
https://doi.org/10.21205/deufmd.2024267801

Abstract

Akıllı telefonlar çok amaçlı elde taşınan cihazlara dönüşmüş ve iletişimin ötesinde sınırlarını aşmıştır. İletişim dışında, bu cihazlar mobil ödeme, bulut tabanlı hizmetler, yapay zeka, Nesnelerin İnterneti (IoT) uygulamaları ve daha fazlası için kullanılmıştır. Bu çalışmada, SAE J1939 standardına uygun ticari ağır vasıta verilerini On Board Diagnosis II (OBD-II) bağlantısı üzerinden almak için Arduino tabanlı bir sistem geliştirilmiştir. Ayrıca, işlenen verilerin buluta iletilmesi için grafik arayüz destekli akıllı telefon uygulaması oluşturulmuştur. Tasarlanan sistem, içten yanmalı motorlu bir yolcu otobüsünden alınan veriler kullanılarak test edilmiş ve doğrulanmıştır. Seçilen verilerin güvenilir aktarımı hem akıllı telefon hem de bulut ortamlarında gerçekleştirilmiştir. Bu çalışma, doğrulanmış başarılı uygulamalara dayalı olarak, J1939 standartlaştırılmış araç verilerinin bir akıllı telefon aracılığıyla uzaktaki bir operatöre iletilmesi için uygun maliyetli bir çözüm sunmuştur. Ayrıca, oluşturulan sistem, gelecekteki uygulamalarla karşılaştırma için önemli bir kaynak olacaktır.

References

  • [1] Keeratiwintakorn, P., Thepnorarat, E., Russameesawang, A. 2009. Mar. Ubiquitous communication for V2V and V2I for Thailand intelligent transportation system. InNTC International Conference, Thailand.
  • [2] Sivanathan, A., Gharakheili, H.H., Sivaraman, V. 2020. Managing IoT cyber-security using programmable telemetry and machine learning. IEEE Transactions on Network and Service Management, Vol.17, s.60-74. DOI:10.1109/TNSM.2020.2971213.
  • [3] Zaldivar, J., Calafate, C.T., Cano, J.C., Manzoni, P. 2011. Providing accident detection in vehicular networks through OBD-II devices and Android- based smartphones. IEEE 36th Conference on Local Computer Networks, 4-7 October 2011, Germany, 813-819.
  • [4] Sawant, P.R., Pande, S. 2015. A Mobile Application for Monitoring Inefficient and Unsafe Driving Behavior. Data Mining and Knowledge Engineering. Vol.7, s.105-7.
  • [5] Prasad, B.V.P., Tang, J.J., Luo, S.J. 2019. Design and implementation of SAE J1939 vehicle diagnostics system. IEEE International Conference on Computation, Communication and Engineering (ICCCE) 8-10 November, China, 71-74.
  • [6] Rodríguez, A.R., Álvarez, J.R., Rodriguez, R.I. 2018. Implementation of an OBD-II diagnostics tool over CAN-BUS with Arduino. Sistemas y Telemática. 16(45). DOI:https://doi.org/10.18046/syt.v16i45.2747.
  • [7] Palomino, J., Cuty, E., Huanachin, A. 2021. Development of a CAN Bus datalogger for recording sensor data from an internal combustion ECU. IEEE International Workshop of Electronics, Control, Measurement, Signals and their application to Mechatronics (ECMSM) (pp. 1-4). DOI:10.1109/ECMSM51310.2021.9468837.
  • [8] Alvear, O., Calafate, C.T., Cano, J.C., Manzoni, P. 2015. Validation of a vehicle emulation platform supporting OBD-II communications. 12th Annual IEEE Consumer Communications and Net-working Conference (CCNC) 9-12 January, 880-885.
  • [9] Burakova, Y., Hass, B., Millar, L., Weimerskirch, A. 2016. Truck Hacking: An Experimental Analysis of the SAE J1939 Standard. Proceedings of the USENIX Workshop on Offensive Technologies (WOOT). 16:211-20.
  • [10] Din, M.A.C., Rahman, M.T.A., Munir, H.A., Rahman, A., Hamid, A.F.A. 2019 Development of CAN bus converter for on board diagnostic (OBD-II) system. IOP Conference Series: Materials Science and Engineering. 26-27 August, Malaysia,
  • [11] Specification. Bosch, C,A., Robert Bosch GmbH, Postfach. 1991 Sep;50.
  • [12] Pimple, P. 2018. Sniffing the Automotive CAN Bus for Real-Time Data-Logging and Real Time Diagnostics Display [Conference presentation]. International Conference on Smart Electric Drives and Power System (ICSEDPS), India, 167-170.
  • [13] Popa, L., Groza, B., Jichici, C. & Murvay, P. S. 2022. ECUPrint—Physical Fingerprinting Electronic Control Units on CAN Buses Inside Cars and SAE J1939 Compliant Vehicles. IEEE Transactions on Information Forensics and Security, 17, 1185-1200.
  • [14] Anil, D., Sivraj, P. 2020. Electric Vehicle Charging Communication Test-bed following CHAdeMO [Conference presentation]. 11th International Conference on Computing, Communication and Networking Technologies (ICCCNT), India, 1-7.
  • [15] Salunkhe, A. A., Kamble, P. P. & Jadhav, R. 2016. Design and implementation of CAN bus protocol for monitoring vehicle parameters [Conference presentation]. IEEE international conference on recent trends in electronics, information & communication technology (RTEICT), 20-21 May, India, 301-304.
  • [16] Santo Gitakarma, M. & Priyambodo, T. K. 2019. A Real-Time Smart Home System using Android Bluetooth Control Device Module [Conference presentation]. International Symposium on Electronics and Smart Devices (ISESD), 8-9 October. Indonesia, 1-7.
  • [17] Fenriana, I., Putra, D. S. D., Dermawan, B. & Kurnia, Y. 2022. Smart Home Prototype with HC–05 Bluetooth and RFID Modules, Based on Microcontroller. Bit-Tech, 5(2), 77-84. DOI: https://doi.org/10.32877/bt.v5i2.564.
  • [18] Desai S, Bhateshvar Y. 2023. Development of unified diagnostic services on CAN using MATLAB and Arduino. Materials Today: Proceedings, 72: 1935-1942. DOI: https://doi.org/10.1016/j.matpr.2022.10.157.
  • [19] Lakshmi, S. & Kumar, R. H. 2022. Secure Communication between Arduinos using Controller Area Network (CAN) Bus [Conference presentation]. IEEE International Power and Renewable Energy Conference (IPRECON), 19-18 December. India, 1-6.
  • [20] MIT App Inventor. (n.d.). https://appinventor.mit.edu/
  • [21] Xie, B. & Abelson, H. 2016. Skill progression in MIT app inventor [Conference presentation]. IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC), 4-8 September, Cambridge.
  • [22] Jamaluddin, A., Harjunowibowo, D., Rahardjo, D. T., Adhitama, E. & Hadi, S. 2016. Wireless water flow monitoring based on Android smartphone [Conference presentation]. 2nd International Conference of Industrial, Mechanical, Electrical, and Chemical Engineering (ICIMECE), 6-7 October. Indonesia, 243-247.
  • [23] Munasinghe, T., Patton, E. W. & Seneviratne, O. 2019.Iot application development using MIT app inventor to collect and analyze sensor data [Conference presentation]. IEEE International Conference on Big Data (Big Data), 9-12 December. USA, 6157-6159.
  • [24] Ceuca, E., Tulbure, A., Taut, A., Pop, O. & Farkas, I. 2013. Embedded system for remote monitoring of OBD bus [Conference presentation]. Proceedings of the 36th International Spring Seminar on Electronics Technology, 8-12 May. Romania, 305-308.
  • [25] Petrović, N., Roblek, V., Radenković, M. & Nejković, V. 2020. Approach to Rapid Development of Data-Driven Applications for Smart Cities using AppSheet and Apps Script [Conference presentation]. AIIT International conference on Applied Internet and Information Technologies, 16 October. Serbia, 77-81.
  • [26] DeBell, T., Goertzen, L., Larson, L., Selbie, W., Selker, J. & Udell, C. 2019. Opens hub: Real-time data logging, connecting field sensors to google sheets. Frontiers in Earth Science, 7, 137. DOI: https://doi.org/10.3389/feart.2019.00137.
  • [27] Thomas, A. & KP, M. S. 2019. Application of google app scripts in email for providing current awareness services to research scholars, at central university of kerala: an evaluative study. Int J Eng Appl Sci Technol, 4(6), 313-318.
  • [28] Ameen, H. A., Zaidan, B. B., Zaidan, A. A., Saon, S., Nor, D. M., Malik et al. 2019. A deep review and analysis of data exchange in vehicle-to-vehicle communications systems: coherent taxonomy, challenges, motivations, recommendations, substantial analysis and future directions. IEEE Access, 7, 158349-158378. DOI:10.1109/ACCESS.2019.2949130.
  • [29] Engelbrecht, J., Booysen, M. J., van Rooyen, G. J. & Bruwer, F. J. 2015. Survey of smartphone‐based sensing in vehicles for intelligent transportation system applications. IET Intelligent Transport Systems, 9(10), 924-935. DOI: https://doi.org/10.1049/iet- its.2014.0248.
  • [30] Türker, G. F., & Kutlu, A. 2016. Survey of smartphone applications based on OBD-II for intelligent transportation systems. Int. Journal of Engineering Research and Applications, 6(1), 69-73.
  • [31] Tahat, A., Said, A., Jaouni, F. & Qadamani, W. 2012. Android-based universal vehicle diagnostic and tracking system [Conference presentation]. IEEE 16th International Symposium on Consumer Electronics, 4-6 June. USA, 137-143.
  • [32] Meseguer, J. E., Calafate, C. T., Cano, J. C. & Manzoni, P. 2013. DrivingStyles: A smartphone application to assess driver behavior [Conference presentation]. IEEE symposium on computers and communications (ISCC), 7-10 July. Croatia, 000535-000540.
  • [33] Baek, S. H. & Jang, J. W. 2015. Implementation of integrated OBD-II connector with external network. Information Systems. 50:69–75. https://doi.org/10.1016/j.is.2014.06.011.
  • [34] Yang, Y., Chen, B., Su, L. & Qin, D. 2013. Research and development of hybrid electric vehicles CAN-bus data monitor and diagnostic system through OBD-II and Android-based smartphones. Advances Mechanical Engineering. 5:741240. DOI: https://doi.org/10.1155/2013/7412.
  • [35] Čabala, M., Gamec, J. 2012. Wireless real-time vehicle monitoring based on android mobile device. Acta Electrotechnica et Informatica. 12(4).
  • [36] Astarita, V., Festa, D. C. & Giofrè, V. P. 2018. Mobile Systems applied to Traffic Management and Safety: a state of the art. Procedia computer science. 1; 134:407-14. DOI:https://doi.org/10.1016/j.procs.2018.07.19 1
  • [37] Zhou, L., Chen, Q., Luo, Z., Zhu, H. & Chen, C. 2017. Speed-based location tracking in usage-based automotive insurance [Conference presentation]. IEEE 37th International Conference on Distributed Computing Systems (ICDCS), 5-8 June, USA, 2252-2257.
There are 37 citations in total.

Details

Primary Language English
Subjects Embedded Systems
Journal Section Research Article
Authors

Serhat Oldaç 0009-0000-7695-7333

Yavuz Şenol 0000-0002-3686-5597

Early Pub Date September 17, 2024
Publication Date September 27, 2024
Published in Issue Year 2024 Volume: 26 Issue: 78

Cite

APA Oldaç, S., & Şenol, Y. (2024). CAN Data Transfer from Vehicle to Cloud via Smartphone. Dokuz Eylül Üniversitesi Mühendislik Fakültesi Fen Ve Mühendislik Dergisi, 26(78), 356-363. https://doi.org/10.21205/deufmd.2024267801
AMA Oldaç S, Şenol Y. CAN Data Transfer from Vehicle to Cloud via Smartphone. DEUFMD. September 2024;26(78):356-363. doi:10.21205/deufmd.2024267801
Chicago Oldaç, Serhat, and Yavuz Şenol. “CAN Data Transfer from Vehicle to Cloud via Smartphone”. Dokuz Eylül Üniversitesi Mühendislik Fakültesi Fen Ve Mühendislik Dergisi 26, no. 78 (September 2024): 356-63. https://doi.org/10.21205/deufmd.2024267801.
EndNote Oldaç S, Şenol Y (September 1, 2024) CAN Data Transfer from Vehicle to Cloud via Smartphone. Dokuz Eylül Üniversitesi Mühendislik Fakültesi Fen ve Mühendislik Dergisi 26 78 356–363.
IEEE S. Oldaç and Y. Şenol, “CAN Data Transfer from Vehicle to Cloud via Smartphone”, DEUFMD, vol. 26, no. 78, pp. 356–363, 2024, doi: 10.21205/deufmd.2024267801.
ISNAD Oldaç, Serhat - Şenol, Yavuz. “CAN Data Transfer from Vehicle to Cloud via Smartphone”. Dokuz Eylül Üniversitesi Mühendislik Fakültesi Fen ve Mühendislik Dergisi 26/78 (September 2024), 356-363. https://doi.org/10.21205/deufmd.2024267801.
JAMA Oldaç S, Şenol Y. CAN Data Transfer from Vehicle to Cloud via Smartphone. DEUFMD. 2024;26:356–363.
MLA Oldaç, Serhat and Yavuz Şenol. “CAN Data Transfer from Vehicle to Cloud via Smartphone”. Dokuz Eylül Üniversitesi Mühendislik Fakültesi Fen Ve Mühendislik Dergisi, vol. 26, no. 78, 2024, pp. 356-63, doi:10.21205/deufmd.2024267801.
Vancouver Oldaç S, Şenol Y. CAN Data Transfer from Vehicle to Cloud via Smartphone. DEUFMD. 2024;26(78):356-63.

Dokuz Eylül Üniversitesi, Mühendislik Fakültesi Dekanlığı Tınaztepe Yerleşkesi, Adatepe Mah. Doğuş Cad. No: 207-I / 35390 Buca-İZMİR.