mac addresses - Sevenstax/FreeV2G GitHub Wiki
stty is a Linux command for changing terminal line settings for the UART bus. To read out the logs, use cat.
- Connect the Whitebeet over an USB-C Cable to the pc and and plug power in
- open a new
Terminal
- set the
Baudrate
from the port over stty
sudo stty 1000000 -F /dev/ttyUSB0 # Set baudrate to 1000000 for ttyUSB0
- show serial output via terminal
sudo cat /dev/ttyUSB0 # Serial output via commandline
- push the reboot button or power-cyle
- to cancel hit
ctrl+c
.
Note: you must be in the
dialout
group!sudo useradd -G dialout <user>Restart the terminal.
HTerm is a terminal program for serial communication running on Windows and Linux.
- Connect the Whitebeet over an USB-C Cable to the pc and and plug power in
- open
hterm
- use the correct
Port
(Linux:/dev/ttyUSBx
, Windows:COMx
) - set the
baudrate
to1000000
- set
Newline at
toLF
- click on
connect
- push the reboot button or power-cyle
If you want to use another program (such as putty), use a baudrate
of 1000000
.
There are three MAC addresses on the whitebeet:
- the MAC address of the integrated STM32F7, which is used to communicate to the host controller
- the MAC address of the integrated STM32F7, which is used to communicate to the QCA7005
- 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