Umeå University's logo

umu.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
DESIGN OF A CAN-TO-USB CONVERTER WITHARM-CORTEX STM32MICROCONTROLLER
Umeå University, Faculty of Science and Technology, Department of Applied Physics and Electronics.
2023 (English)Independent thesis Advanced level (professional degree), 10 credits / 15 HE creditsStudent thesisAlternative title
Design av en CAN-till-USB konverterare med ARM-Cortex STM32 Mikrokontroller (Swedish)
Abstract [en]

This thesis presents the development of a prototype that enables conversion between the CAN J1939 and USB interfaces, encompassing both hardware and software targeted for the STM32F412ZG embedded microcontroller. The software development process involves using the HAL API and implementing the interfaces with code partially generated by the initialization code generator STM32CubeMX.

The prototype collects data from messages exchanged from a connected CAN slave, transmitting converted data over USB in the form of Human Interface Device (HID) reports. The microcontroller and its interfaces are used to map data received to their respective data structures and establish connectivity for both data buses. The data structure for HID devices is described by the HID report descriptor, a hard-coded array of bytes describing data packets exchanged between the device and host. The connected CAN device is the Safety Cabin Module connected to a physical controller and features a total of 8 analog and 32 digital inputs. When connected to a USB host, CAN data received on the microcontroller is converted to the data structure defined by the report descriptor and sent to the host as HID reports. The USB Device operates as a multi-axis joystick with 32 digital buttons on a connected Windows PC.  

Abstract [sv]

I detta arbete utvecklas en prototyp för att konvertera data som skickas mellan gränssnitten CANJ1939 och USB. Prototypen består av fysisk hårdvara samt mjukvara skriven för mikrokontrollern STM32F412ZG, med delvis generad kod och åtkomst till HAL API med hjälp av programmet STM32CubeMX.

Prototypen agerar som en USB-enhet som konvererar CAN J1939 meddelanden och överför dem via USB i form av Human Interface Device (HID) reports, genom användning av mikrokontrollern omvandlas de olika databussarna till dess motsvarande datastruktur. Den datastrukturen för HID reports har benämningen report descriptor, vilket är en hårdkodad array som beskriver de data-paket som skickas mellan en enhet och host.

Det använda gränssnittet för CAN produkten är Safety Cabin Module (SCM) vilket har konfigurerats till en fysisk handkontroll med 8 analoga och 32 digitala ingångar, den data som skickasfrån handkontrollen konverteras om till en datastruktur i enlighet med en utvald report descriptor. Efter anslutning till en dator kan handkontrollen användas som en joystick med flertal axlar och 32 knappar.  

Place, publisher, year, edition, pages
2023. , p. 30
Keywords [en]
CAN, USB, C2U, CAN-To-USB
National Category
Electrical Engineering, Electronic Engineering, Information Engineering
Identifiers
URN: urn:nbn:se:umu:diva-226608OAI: oai:DiVA.org:umu-226608DiVA, id: diva2:1873077
External cooperation
Electrum Automation AB
Subject / course
Elektronik
Educational program
Bachelor of Science Programme in Electronic and Computer Engeneering/ Medical engineering
Supervisors
Examiners
Available from: 2024-06-19 Created: 2024-06-18 Last updated: 2024-06-19Bibliographically approved

Open Access in DiVA

fulltext(1097 kB)192 downloads
File information
File name FULLTEXT01.pdfFile size 1097 kBChecksum SHA-512
9d55f40113b878d37865c230b07cba3c41f23b2c8e4e089c5bc9aa762bc1a6b253d324058de84f16023231c8f1b35af3e7fc154aeaa759003b32ef6dc0ae01cf
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Eriksson, Jonathan
By organisation
Department of Applied Physics and Electronics
Electrical Engineering, Electronic Engineering, Information Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 192 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 317 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf