mac addresses - Sevenstax/FreeV2G GitHub Wiki

How to connect to the Whitebeet over UART

Linux (stty)

stty is a Linux command for changing terminal line settings for the UART bus. To read out the logs, use cat.

  1. Connect the Whitebeet over an USB-C Cable to the pc and and plug power in
  2. open a new Terminal
  3. set the Baudrate from the port over stty
sudo stty 1000000 -F /dev/ttyUSB0                        # Set baudrate to 1000000 for ttyUSB0
  1. show serial output via terminal
sudo cat /dev/ttyUSB0                                    # Serial output via commandline                                     
  1. push the reboot button or power-cyle
  2. to cancel hit ctrl+c.

Note: you must be in the dialout group!

sudo useradd -G dialout <user>

Restart the terminal.

Linux/Windows (HTerm)

HTerm is a terminal program for serial communication running on Windows and Linux.

  1. Connect the Whitebeet over an USB-C Cable to the pc and and plug power in
  2. open hterm
  3. use the correct Port (Linux: /dev/ttyUSBx, Windows: COMx)
  4. set the baudrate to 1000000
  5. set Newline at to LF
  6. click on connect
  7. push the reboot button or power-cyle

Alternativ

If you want to use another program (such as putty), use a baudrate of 1000000.

MAC addresses on Whitebeet

There are three MAC addresses on the whitebeet:

  1. the MAC address of the integrated STM32F7, which is used to communicate to the host controller
  2. the MAC address of the integrated STM32F7, which is used to communicate to the QCA7005
  3. the MAC address of the QCA7005

You need to provide the MAC address of the integrated STM32F7, which is used to communicate to the host controller to FreeV2G. It is printed on the sticker on the whitebeet. As an alternative you can get it from the UART after boot:

APPLICATION:
  Name:      ISO15118 (EVSE)
  Version:   V02_00_01
  Target:    WHITE-BEET
  CPU:       STM32F745
 
PRODUCT VERSION:
 String: SEVENSTAX_LIB_V_10_03_00
 Hex:    0x000a0300
 Dec:    100300
 
 Hostcontroller Interface: ETHERNET!
 
APPLICATION RUNNING ...
[    0.021] [NOTICE] SLAC: stxSLAC_Init()
[    0.023] [NOTICE] APL-ETH:   MAC of NIC[0]: c4:93:00:34:a5:f1
[    2.809] [NOTICE] APL-ETH:   MAC of NIC[1]: c4:93:00:34:a5:f0
[    2.809] [NOTICE] APL-MAIN: BOOT-CFG: Boot QCA7005 firmware from host
[    2.810] [NOTICE] APL-MAIN: BOOT-CFG: FW2
[    2.811] [NOTICE] APL-MAIN: BOOT-CFG: Module configured to EVSE
[    2.814] [NOTICE] PLCV-HL:  Boot from host selected
[    2.815] [NOTICE] V2GCPS: stxV2GCPS_RegisterCallback()
[    2.829] [NOTICE] APL-ETH: Got link:
[    2.829] [NOTICE] APL-ETH:     Interface: eth1
[    2.830] [NOTICE] APL-ETH:     MAC:       C4:93:00:34:A5:F0
[    3.288] [NOTICE] PLCV-HL: Reset QCA700x
[    4.695] [NOTICE] APL-MAIN: 
[    4.695] [NOTICE] APL-MAIN: =============================
[    4.696] [NOTICE] APL-MAIN: NEW LAN CONFIGURATION (IPv6): 
[    4.697] [NOTICE] APL-MAIN: for IP Config handle [fe01] 
[    4.697] [NOTICE] APL-MAIN: IPv6 Addresses:
[    4.698] [NOTICE] APL-MAIN:   Link-Local:  fe80:0:0:0 : c693:ff:fe34:a5f0
[    4.699] [NOTICE] APL-MAIN:   Local: 0:0:0:0 : 0:0:0:0
[    4.700] [NOTICE] APL-MAIN:   DNS1: 2001:4860:4860:0 : 0:0:0:8888
[    4.700] [NOTICE] APL-MAIN:   DNS2: fd00:0:0:0 : be05:43ff:fe44:5280
[    4.701] [NOTICE] APL-MAIN: =============================

It is the MAC address of NIC[1]/eth1. Here the MAC address is C4:93:00:34:A5:F0

⚠️ **GitHub.com Fallback** ⚠️