Model-based development of software for network control of automotive vehicles’ equipment

Cover Page


Cite item

Full Text

Abstract

BACKGROUND: Various devices and systems connected via onboard network with electronic control unit are the part of automotive vehicles’ equipment. Such devices and systems, which ensure the operability of a vehicle or are the elements of technological units, having microprocessor control, are based on various physical principles. Designers of such devices and systems may not have sufficient knowledge and experience to develop the software independently, which applies to the development of software for the network control.

AIM: The development of software for information subsystem of a technical device that interacts with an electronic control unit via onboard network as part of automotive vehicles’ equipment, as well as the demonstration of application of model-based programming tools in this development.

METHODS: A comprehensive description of technical solutions developed to achieve the listed aims using methods of system analysis and methods for developing and debugging of software is given. According to these methods, model-based programming tools are used as handlers for built-in interface modules of microcontroller and elements of software layout. Software elements for processing received messages, performing actions with the data received in them, as well as generation of response messages have been developed in the C language.

RESULTS: Software that processes messages received by a device subordinated to an electronic control unit via the CAN network, generates response messages addressed to this unit, and sends them has been developed. The method of access to the receiving buffer of the network interface and priority of software execution are taken into account.

CONCLUSION: It is shown that model-based programming in combination with programming tools based on structured text is an effective software development technology that is convenient for designers of technical devices and systems based on various physical principles and requiring microprocessor control. In particular, the abovementioned should be attributed to specialists in the field of electrical engineering who develop equipment for automotive vehicles.

About the authors

Igor S. Polyuschenkov

Rubicon – Innovation

Author for correspondence.
Email: polyushenckov.igor@yandex.ru
ORCID iD: 0000-0001-6023-9927
SPIN-code: 9795-8775

Cand. Sci. (Tech.), Engineer

Russian Federation, Smolensk

References

  1. Plotnikov D.A. Evaluation of the response time of elements in modular information-measuring and control systems using the CAN interface. Izvestiya vuzov. Severokavkazskiy region. Seriya: Tekhnicheskie nauki. 2017;1(193):13–18. (In Russ).
  2. Savelyev A.M. Multiplex car simulator system. Modeli, sistemy, seti v ekonomike, tekhnike, prirode i obshchestve. 2012;2(3): 124–126. (In Russ).
  3. Siraya E.V. Use of multiplex channels to control electrical devices on electric rolling stock. Izvestiya Peterburgskogo universiteta putey soobshcheniya. 2012;4(33):67–72. (In Russ).
  4. Yunusova L.R., Magsumova A.R. Automotive CAN bus — approaches and implementation. Problemy nauki. 2019;7(43):17–20. (In Russ).
  5. Khvoshch S.T., Lukovkin A.V., Lyutov A.G. Application of the CAN-Bus in distributed systems for collecting and processing information in real time. Informatsionno-upravlyayushchie sistemy. 2002;1:35–39. (In Russ).
  6. Denisenko V.V. Computer control of technological process, experiment, equipment. Moscow: Goryachaya liniya — Telekom; 2009. (In Russ).
  7. Polyushchenkov I.S. Model-Based Programming as a Tool for the Electrical Engineer. Vestnik IGEU. 2023;1:60–70. (In Russ). doi: 10.17588/2072-2672.2023.1.060-070
  8. Waijung Blockset [internet] Accessed: 29.05.2023. Available from: http://waijung.aimagin.com
  9. Podbelsky V.V., Fomin S.S. Programming course in C: textbook. Moscow: DMK Press; 2012. (In Russ).
  10. Polyushchenkov I.S. Development of electric drive software for group control in an electromechanical system. Vestnik IGEU. 2022;4:53–63. (In Russ). doi: 10.17588/2072-2672.2022.4.053-063
  11. Polyuschenkov I.S. Development and research of the control system of the electric drive of panoramic windscreen wipers. Izvestiya MGTU MAMI. 2022;16(4):345–356. (In Russ). doi: 10.17816/2074-0530-109188

Supplementary files

Supplementary Files
Action
1. JATS XML
2. Fig. 1. Network control of equipment for automotive vehicles: a) a functional scheme of a device with microprocessor control; b) a structural scheme of communication of devices within the CAN network; c) the structure of the J1939 protocol.

Download (298KB)
3. Fig. 2. Model-based schemes for software layout: a) a handler of interruption after overflow of a timer; b) a handler of interruption during the software or hardware installation of a system flag; c) a handler of a software flag processing.

Download (123KB)
4. Fig. 3. Formation of a message for the CAN network according to the J1939 protocol.

Download (106KB)
5. Fig. 4. Model-based scheme for extraction of fields from the message identifier (a); model-based scheme of the message identifier formation (b); model-based subsystems (c).

Download (371KB)
6. Fig. 5. Listings of functions for data packaging and unpacking: a) packaging of four bytes into the block of the uint32 format; b) unpacking the block of the uint32 format to the data of the float format; c) packaging of the data of the float format into the block of the uint32 format.

Download (127KB)
7. Fig. 6. Cyclic access to the CAN receiving buffer during interruption after overflow of a timer: a) a block diagram; b) a model-based subsystem of the do–while loop; c) a model-based diagram for cyclic access to the CAN receiving buffer; d) a processor of messages.

Download (224KB)
8. Fig. 7. Processing of a queue of messages: a) a block-diagram; b) a time-domain diagram.

Download (206KB)
9. Fig. 8. Access to the receiving buffer during interruption from the CAN module: a) a block diagram; b) a model-based diagram for processing an interruption from the CAN module; c) a model-based diagram for access to the receiving buffer of CAN module.

Download (183KB)
10. Fig. 9. Transmission of response messages via CAN network: a) a model-based diagram for transmission of a message; b) a model-based diagram for controlling the result of a message transmission.

Download (151KB)

Copyright (c) 2023 Eco-Vector

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Согласие на обработку персональных данных

 

Используя сайт https://journals.rcsi.science, я (далее – «Пользователь» или «Субъект персональных данных») даю согласие на обработку персональных данных на этом сайте (текст Согласия) и на обработку персональных данных с помощью сервиса «Яндекс.Метрика» (текст Согласия).