Closed TESolution closed 1 year ago
Hey @TESolution,
thank you for using the issue template and giving detailed information about your setup!
I will try to reproduce your issue and come back to you as soon as possible.
Best regards, lho
Hey @TESolution,
today I ran sessions for 10 minutes straight. I used the latest version of the master branch, choosed an energy amount so the charging lasted several seconds (changed this between sessions). I even stopped some session by pressing ctrl+c
, let FreeV2G timeout, etc.
In your case the EV side, the error is that the session started notification was send unexpectedly.
I was able to start the charging session every single time. I am using a Linux machine as a host. We had issues with timing on windows before, but this was sorted out by using a new python library and some users worked around this issue by elevating the FreeV2G process priority.
I kindly ask you to create wireshark logs of a failing session for EV and EVSE. You need to enable the portmirror by passing --portmirror
to the application.
Best regards, lho
Hello @lho-stx,
Could you advise me what are recommended Python Packages versions?
In general, I am trying to follow User Manual, but finally I am working with following versions:
Indeed, I am using Windows. When I tried virtualized Linux I had problem with ethernet network cards. I could switch bench setup to RPi instead of Windows, which is my goal anyway. EVSE White beet should be control through SPI. The exercise I am trying to do now, using two WBs under Windows is just to proof the concept and better understanding data exchange.
And some more approaches with changed charging and battery properties:
I also tried to run application on the both boards with disconnected CP. It's been connected on application request.
Best regards, TES
Hey @TESolution,
on Linux pip list
in the virtualenv gives me:
Package Version
----------------- -------
asttokens 2.2.1
backcall 0.2.0
Cython 3.0.0
decorator 5.1.1
executing 1.2.0
ipython 8.14.0
jedi 0.19.0
matplotlib-inline 0.1.6
parso 0.8.3
pexpect 4.8.0
pickleshare 0.7.5
pip 23.2.1
prompt-toolkit 3.0.39
ptyprocess 0.7.0
pure-eval 0.2.2
Pygments 2.16.1
python-libpcap 0.4.1
scapy 2.5.0
setuptools 68.0.0
six 1.16.0
stack-data 0.6.2
traitlets 5.9.0
typing_extensions 4.7.1
wcwidth 0.2.6
wheel 0.41.0
Regarding a virtualized linux environment:
You need to use an actual virtual machine. You need to pass through the network interface directly (in VirtualBox the option is called Bridged Adapter
and you may also need to enable promiscuos mode). WSL is not supported.
We are improving the documentation at the moment and this is still a work in progress, but maybe this wiki entry helps you setting up RaspberryPi and Whitebeet!
Thank you for trying the CP disconnect/reconnect, although it did not change anything... I will further try to reproduce your problem.
Best regards, lho
Hello @lho-stx ,
May I ask what is your Linux distribution as well as Python version for desktop development? I am facing issue with "python-libpcap" package installation due to incompatibility with Python 3.10. Trying to downgrade to 3.7...
In general I have the same problem on RPi, also with "scapy" package.
Best regards, TES
I will be grateful for checking my RPi logs: RPi_log.txt
I am using raspbian-plc-8gb.img.gz image.
Unfortunately I have not progressed since last time on Linux neither. I installed the same packages as you provided, but I have still some problems with "scape" - the same error as you can see in the log from RPi, and another problem with "python-libpcap", which was solved by creating virtual environment under Linux, but "pylibpcap" issue still exists what causes script crash due to lack of package installed.
Hello @TESolution,
I checked your logs. Can you please do me a favor and show me the output of ls /dev/
? It seems the name of the spi device is off...
Regarding the Python version: on my Pi it uses 3.9.2
Thank you, lho
Hello @lho-stx,
In general I am trying to run two setups:
Comment: May I ask what is your Linux distribution as well as Python version for desktop development? I am facing issue with "python-libpcap" package installation due to incompatibility with Python 3.10. Trying to downgrade to 3.7...
Please see attached output: ls_dev.txt
you can also see the result of running application using spidev0.1.
Best regards, TES
Hello @TESolution,
I see no problem in your setup, but can you try omitting the -m
parameter? So just call
python3 Application.py spi -i spidev0.1 -r EVSE
Are you sure you connected your Whitebeet RxReady pin to the correct GPIO on the Pi? Can you take a picture of your setup where I can see the hardware connection between the boards? In the meantime you can also double check the GPIO pins again:
Signal | Whitebeet | Whitebeet Carrier Board | Raspberry Pi 4 (name / wPi / BCM) |
---|---|---|---|
CLK | PAD 24 (PD3) | J8 SCK | SPI0 SCLK / 14 / 11 |
MOSI | PAD 36 (PB15) | J8 MOSI | SPI0 MOSI / 12 / 10 |
MISO | PAD 35 (PB14) | J8 MISO | SPI0 MISO / 13 / 9 |
NSS | PAD 77 (PB9) | J8 NSS | GPIO.5 / 5 / 24 |
RxReady | PAD 37 (PD4) | J1 PD4 | GPIO.3 / 3 / 22 |
TxPending | PAD 38 (PD11) | J1 PD11 | GPIO.2 / 2 / 27 |
Also keep the host selection pins for SPI in mind:
Whitebeet | Whitebeet Carrier Board | Level |
---|---|---|
PAD 85 (PC2) | J4 PC2 | GND |
PAD 84 (PA4) | J4 PA4 | VCC |
Thank you, lho
PS: We are working on a get started guide. It is still a draft, so inforamtion may missing, but you can already have a look.
Hello @lho-stx,
There is no difference when I call "python3 Application.py spi -i spidev0.1 -r EVSE".
I am using Raspberry Pi 3 model B v1.2. Pinout is a bit different:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
Signal | Whitebeet | Whitebeet Carrier Board | Raspberry Pi 3 B -- | -- | -- | -- CLK | PAD 24 (PD3) | J8 SCK | SPI0 SCLK / 23 MOSI | PAD 36 (PB15) | J8 MOSI | SPI0 MOSI / 19 MISO | PAD 35 (PB14) | J8 MISO | SPI0 MISO / 21 NSS | PAD 77 (PB9) | J8 NSS | GPIO.8 / 24 RxReady | PAD 37 (PD4) | J1 PD4 | TxPending | PAD 38 (PD11) | J1 PD11 |
Platform: EVSE White beet carrier board WB-CARRIER-BOARD-EI Firmware Version: V02_00_01 Host Controller Interface: Ethernet
Platform: PEV White beet carrier board WB-CARRIER-BOARD-PI Firmware Version: V01_00_07 Host Controller Interface: Ethernet
I prepared development setup using two White beet boards. I am able to set a communication between them once per a few attempts.
Steps to reproduce the behaviour.
I would expect behaviour presented on Development WB-EI to WB-PI - Succeed.jpg each time when I run application , while usually it is not possible to set a communication between boards. _Development WB-EI to WB-PI - Failed1.jpg _Development WB-EI to WB-PI - Failed2.jpg