background image

MACH ETH - User Manual 

 

 

 

 

MACH SYSTEMS s.r.o.

 

www.machsystems.cz

  

Page 

10

 of 

20

 

 

[email protected]

  

 

 

5

 

Usage 

The  user  can  use  default  firmware  to  control  the  device  peripherals.  The  firmware  protocol 

specification is available from [1]. The control message can be sent to the device over Ethernet or USB.  

The device’s firmware can be 

also fully developed by the user, and the user has full control over 

the device’s peripherals.

 For flashing this firmware, the user can make use of the system bootloader 

which allows for firmware programming over USB or Ethernet bootloader for firmware programming 
via an internet browser. 

The device can be used as CAN FD to CAN bridge, CAN(/FD) to LIN gateway, CAN/LIN to RS-232, 

data  logger,  ETH-CAN(/FD),  ETH-LIN  interface  or  communication.  An  analogue  input  and  a  digital 
output enable the user to interact with external peripherals. 

5.1

 

Supplied firmware  

With the device following firmware is provided:  

 

Bootloader 

 

MachEth (bootloader) 

 

MachEth (no bootloader) 

This firmware  is available from  [2]. File 

Bootloader.bin

  contains  Ethernet bootloader, which allows 

upload firmware to device HTTP protocol witch an internet browser. The file 

MachEth (bootloader).bin

 

contains an application with a communication protocol, which allows communication with buses. The 
Ethernet bootloader file must be flashed into the device before 

MachEth (bootloader).bin. 

When the 

MachEth (bootloader).bin

 is flashed to the device through the system bootloader, a user should select 

another  address  than  0x08000000  where  is  bootloader  already  stored.  Recommended  address  is 
0x08020000  for  proper  bootloader  function.  When  the  firmware  is  flashed  over  the  Ethernet 
bootloader  the  correct  starting  address  is  selected  automatically.  If  a  user  wants  to  use  a  device 
without the Ethernet bootloader the 

MachEth (no bootloader).bin

 should be flashed to the device 

(this must be done through the system bootloader).  

5.2

 

HTTP interface 

Note: the HTTP interface was tested with the Chrome browser. Use of this interface with other 
browsers is not recommended and it can lead to unpredicted faults.  

The default IP address of the device is 192.168.1.100. On the device runs a webserver and after 
accessing this IP address via browser the web page in Figure 8 is shown. On this page can be found 
information about the device like its serial number, firmware version hardware info or mac address 
of the device. This information is static and cannot be changed. There is also information like IP 
address, subnet mask and TCP port, that can be set by the user on this page and after a click on the 
save button the device setting is reconfigured. At the bottom of the page are three buttons. One for 

Содержание MACH-ETH

Страница 1: ...MACH ETH User Manual CHANGES Date Description Created By Review By 27 2 2023 First release PK MM...

Страница 2: ...4 5 Inputs and Outputs 9 4 6 USB 9 4 7 Galvanic Isolation 9 5 Usage 10 5 1 Supplied firmware 10 5 2 HTTP interface 10 5 3 System Bootloader 11 5 4 Ethernet bootloader 11 5 5 How to enter Bootloader 1...

Страница 3: ...Pin Assignment 8 Table 4 User DIP Switches 9 Table 5 Inputs and Outputs 9 Table 6 Ordering Numbers 20 List of Figures Figure 1 MACH ETH Interface 4 Figure 2 MACH ETH Block Diagram 4 Figure 3 MACH ETH...

Страница 4: ...rking gateways and bus converters mach eth Figure 1 MACH ETH Interface 2 Introduction The MACH ETH is an automotive network interface that features one Fast Ethernet port two CAN FD channels a LIN cha...

Страница 5: ...U C C compiler and programming examples 2 1 Features 10 100 Ethernet port LIN channel RS 232 port 2 CAN channels with CAN FD support USB 2 0 Analogue input and digital output 10 status LEDs 4 DIP swit...

Страница 6: ...ector 1 Power LED MCU STM32H7 1 MB Flash 564 KB RAM Transceivers CAN FD MCP2562FD LIN MCP2003B Ethernet KSZ8041 I O 1 Analogue input 0 5 V 1 Digital output 5 V push pull 0 5 A PWM capable Mechanical C...

Страница 7: ...s Figure 4 Device Overview 4 2 Power The MACH ETH can be over microUSB X4 or externally via a DSUB connector X5 or a terminal block X3 All Ground signals are connected Note In order to use the LIN cha...

Страница 8: ...State Description Off Channel stopped Green On Channel started Green Blinking Activity on TX or RX Red Blinking Slave timeout checksum error bus collision other LIN error Table 3 LIN Channel LED Desc...

Страница 9: ...e inputs and one digital outputs PWM capable Signal Direction Function Range Note AI1 Input Analogue Digital Input 0 5 V DO1 Output Push pull Digital Output 5 V max 0 5 A PWM capable Table 7 Inputs an...

Страница 10: ...ich allows communication with buses The Ethernet bootloader file must be flashed into the device before MachEth bootloader bin When the MachEth bootloader bin is flashed to the device through the syst...

Страница 11: ...bootloader whilst USB is connected the device can then be flashed over USB only If the user wants to flash the device over RS 232 he has to either power the device over external power pins see Option...

Страница 12: ...ader An example how is bootloader call taken from source code example Request going to the bootloader and do not do anything else another task will manage this BootloaderRequest pRxPkt Data 0 0 1 2 Ca...

Страница 13: ...et cable Short the eth boot pads together a pair of tweezers can be used The device will enter the Ethernet bootloader Release the boot pads Firmware can be flashed as described in 5 4 Close the enclo...

Страница 14: ...Programmer The STM32CubeProgrammer application can be used for flashing firmware over the system bootloader The application is available from 3 Steps for uploading a firmware 1 Open STM32CubeProgramme...

Страница 15: ...nd Serial view window this is possible only when debugging with connected ST LINK 7 In order to flash a new firmware open an elf file by Open file button and press Download button A hex file can be us...

Страница 16: ...igure 10 J5 ST LINK SWD Connection and Pinout An ST LINK v2 or v3 debugger and a TagConnect TC2030 NL header 4 is needed p n TC2030 CTX NL STDC14 Please make sure SWD Interface is selected in STM32Cub...

Страница 17: ...TH THIS DEVICE YOU MAY POTENTIALLY CAUSE A CHANGE IN THE OPERATION OF THE SYSTEM MODULE DEVICE CIRCUIT OR OUTPUT TURN ON OR ACTIVATE A MODULE DEVICE CIRCUIT OUTPUT OR FUNCTION TURN OFF OR DEACTIVATE A...

Страница 18: ...MACH ETH User Manual MACH SYSTEMS s r o www machsystems cz Page 18 of 20 info machsystems cz 6 3 Declaration of Conformity...

Страница 19: ...registered trademark of Arm Limited or its subsidiaries in the US and or elsewhere Kvaser is a registered trademark of Kvaser AB in Sweden and other countries 7 References 1 MACH ETH Communication Pro...

Страница 20: ...ETH device DIN BRACKET UNI A universal bracket for mounting any enclosure on a DIN rail MACH ETH NET SDK NET C SDK API DLL for accessing CAN FD and LIN channels over Ethernet TCP IP and USB VCP Table...

Отзывы: