Page 1 of 2
Open Inverter Data Logger CANLITE
Posted: Mon Jun 10, 2024 12:28 pm
by Boxster EV
Just noticed this in Johu’s shop.
https://openinverter.org/shop/index.php ... duct_id=78
Seems like a brilliant solution but just checking I haven’t misunderstood the functionality. Can I just connect it to my Tesla LDU CAN BUS (open inverter logic board) and then stream the data via wifi to my phone’s browser?
Re: Open Inverter Data Logger
Posted: Mon Jun 10, 2024 2:14 pm
by johu
Yes that the plan
The logging feature isn't implemented, but all necessary hardware fitted & working.
Re: Open Inverter Data Logger
Posted: Mon Jun 10, 2024 2:19 pm
by Boxster EV
johu wrote: ↑Mon Jun 10, 2024 2:14 pm
Yes that the plan
The logging feature isn't implemented, but all necessary hardware fitted & working.
Thank you. But I can use it to change parameters and see spot values?
Re: Open Inverter Data Logger
Posted: Mon Jun 10, 2024 2:19 pm
by johu
Yes works exactly like the onboard wifi
Re: Open Inverter Data Logger
Posted: Mon Jun 10, 2024 2:40 pm
by Boxster EV
Placing an order now!
Re: Open Inverter Data Logger
Posted: Sat Jun 22, 2024 8:21 pm
by Boxster EV
Thank you for such fast shipment of the board. I have wired it in and can see the board access point. However, I can’t get past the error message. Any suggestions?
Re: Open Inverter Data Logger
Posted: Sat Jun 22, 2024 8:50 pm
by johu
bus speed must be 500k and firmware must be pretty new, like 5.27 at least, 5.35 is more reliable
Re: Open Inverter Data Logger
Posted: Sun Jun 23, 2024 6:52 am
by Boxster EV
Okay thanks. I’m a bit nervous about updating firmware from 5.20r as the car is running PERFECTLY. Will give it a whirl.
Re: Open Inverter Data Logger
Posted: Sun Jun 23, 2024 7:19 am
by johu
Are you using throttle over CAN? Then 5.27 or better read through the release info and go straight to 5.35
If traditional throttle read this
viewtopic.php?t=5075
And consider 5.35 as well
Re: Open Inverter Data Logger
Posted: Sun Jun 23, 2024 7:43 am
by Boxster EV
Thanks.
No throttle over CAN. Using the original OE potentiometer Porsche pedal.
Re: Open Inverter Data Logger
Posted: Sun Jun 23, 2024 8:04 am
by Boxster EV
Will add a 10k resistor. 26k miles never had a runaway Tesla LDU.
Re: Open Inverter Data Logger
Posted: Sun Jun 23, 2024 8:17 am
by johu
No, it's one of those probability things. 999 people never bump into the issue, one will
Re: Open Inverter Data Logger
Posted: Wed Jun 26, 2024 8:30 pm
by Boxster EV
Me again… I’ve upgraded the sine firmware to 5.35. Wow. I’ll write about that in another thread but it’s a significant improvement.
Still can’t get the data logger to establish a connection. These are my comms settings:
Re: Open Inverter Data Logger
Posted: Wed Jun 26, 2024 8:32 pm
by johu
Can you check the console available on the TX pin next to the wifi module?
Usually it's something with the physical connection. Are there any .json files on the file system? If so delete them and power cycle
Re: Open Inverter Data Logger
Posted: Wed Jun 26, 2024 9:00 pm
by Boxster EV
Sorry, are you referring to the file system on the esp8266 attached to the logic board inside the drive unit?
Re: Open Inverter Data Logger
Posted: Wed Jun 26, 2024 9:13 pm
by johu
No, the ESP32 CAN Board
Re: Open Inverter Data Logger
Posted: Wed Jun 26, 2024 9:18 pm
by Boxster EV
johu wrote: ↑Wed Jun 26, 2024 9:13 pm
No, the ESP32 CAN Board
I haven’t uploaded anything to it. Simply just connected 12v and connected the CAN lines.
Re: Open Inverter Data Logger
Posted: Wed Jun 26, 2024 9:20 pm
by Boxster EV
Drive unit is spitting out CAN map data correctly on the same bus, as messages on other systems are being received correctly. The data logger just doesn’t seem to want to connect to the STM.
I’ve also tried disconnecting everything else from the network (connecting data logger directly to LDU bus) but still no bueno.
Re: Open Inverter Data Logger
Posted: Wed Jun 26, 2024 9:36 pm
by Boxster EV
Will check the TX console when back from work on Friday. Thanks for your help
Re: Open Inverter Data Logger
Posted: Fri Jun 28, 2024 7:53 pm
by Boxster EV
I don’t have access to a scope so I can’t really properly test the tx / rx line. I tried connecting a 3.3v external CAN transceiver but also could not get it to work. I did however notice the following:
On the console to the right of the wifi module, the pin marked 5v is outputting 12v.
In the absence of a scope, I don’t really know what else to try.
Re: Open Inverter Data Logger
Posted: Fri Jun 28, 2024 8:44 pm
by johu
Boxster EV wrote: ↑Fri Jun 28, 2024 7:53 pm
On the console to the right of the wifi module, the pin marked 5v is outputting 12v.
Oh yes, I use the header for programming and feed 5V into this pin. There used to be a diode in between but the voltage drop was too large. So not it is connected straight to the 12V input of the 3.3V reg
Re: Open Inverter Data Logger CANLITE
Posted: Sun Jul 14, 2024 5:42 pm
by Boxster EV
To report back: I managed to get this working, sort of. In summary, here's what I did:
1) Upgraded to the latest Inverter firmware
2) Deleted the ESP file system .json file with cURL
3) Connected using a PC (rather than an iPhone). Upon first connection I needed to toggle the node ID from from 1 to 2 and back to 1 again. Didn't need to do this after a power cycle.
This then connected the ESP with the STM as expected and data loaded onto the browser Huebner interface.
What doesn't work:
1) Tried unsuccessfully to connect using various IOS devices. The IP address brings up the OI interface but it says that ESP cant connect with STM
2) When scrolling the parameter list (using a PC), it doesn't load the parameters beyond what's initially loaded on the screen. IE as soon as the curser is used to scroll down, no further parameters load.
Re: Open Inverter Data Logger CANLITE
Posted: Mon Jul 15, 2024 3:17 pm
by P.S.Mangelsdorf
So just getting up to speed on this; want to make sure I'm understanding things correctly:
There can be multiple devices on the bus, and just need to assign them different Node IDs, is that correct?
How is the Node ID changed?
Re: Open Inverter Data Logger CANLITE
Posted: Mon Jul 15, 2024 3:34 pm
by uhi22
P.S.Mangelsdorf wrote: ↑Mon Jul 15, 2024 3:17 pm
There can be multiple devices on the bus, and just need to assign them different Node IDs, is that correct?
Exactly. The normal use case is, that there is one CANopen "master" (which is the ESP32 web interface) and multiple CANopen "slaves".
* In the web interface, you can select the node ID with the up/down arrows in the left column, or type in the intended ID in the white box and press enter. This selects, to which "slave" the web interface shall talk to.
* The Node ID of a certain "slave" is programmed in its software, it is a function call like "canSdo->SetNodeId(....)". It depends on the project, whether this is hardcoded or adjustable via a parameter. For the inverter and foccci/clara, there is the parameter "nodeid" or "NodeId", which is exactly the place where it is possible to adjust the Node ID. After changing this parameter (and safing it to flash), a restart of the control unit may be necessary to apply the setting, and the communication from the web interface will be lost, because nobody will respond on the old node ID anymore. After switching the node ID in the left column of the web interface, the communication shall work again.
Re: Open Inverter Data Logger CANLITE
Posted: Mon Jul 15, 2024 3:42 pm
by P.S.Mangelsdorf
uhi22 wrote: ↑Mon Jul 15, 2024 3:34 pm
For the inverter and foccci/clara, there is the parameter "nodeid" or "NodeId", which is exactly the place where it is possible to adjust the Node ID. After changing this parameter (and safing it to flash)
Great, thank you!