<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Romuald,<div><br></div><div>Welcome. To answer your questions:</div><div><br></div><div><ol class="MailOutline"><li>Goals seem fine. OVMS has three CAN buses, expansion board area, and can (sic) write to the third CAN bus. Be aware that there are only two free full GPIOs available, but as I2C only uses two (SDA, SCL), you should hopefully be ok.<br><br></li><li>No traps that I am aware of. Just follow the developer’s guide very carefully (in particularly regarding ESP IDF and compiler versions) to get your build environment up and running, and start with the default sdkconfig copied from support/sdkconfig.default.hw31.<br><br></li><li>OpenEnergyMonitor should have some prototyping boards (I don’t think they list them on the website, but you can ask to confirm). If not, I can supply from Hong Kong but shipping times and costs are still crazy at the moment.<br><br></li><li>Have a look at components/can for the framework. You just need a pointer to the can bus object, and then call the Write() method on it. You can look at can/src/can.c can_tx() function for an example. To do it periodically, you would need a task, or if lightweight use the timer functions. If you only need to write slowly (once a second or so), then even a script could do it.</li></ol><div><br></div><div>Regards, Mark.</div><div><br><blockquote type="cite"><div>On 27 Apr 2023, at 9:06 PM, Romuald Conty (Opus Codium) <romuald@opus-codium.fr> wrote:</div><br class="Apple-interchange-newline"><div><div><div class="content-isolator__container"><div class="protected-part"><div class="protected-title">Signed PGP part</div><div class="protected-content">Hi,<br><br>I'm Romuald, a FLOSS enthusiast, and I'm working on a project where I'm going <br>to use OVMS platform as a part of the vehicle hybridisation system.<br><br>To reach my goals, I'll have to:<br> - Read two CAN buses to grab and display values on a HUD<br> - Make an expansion board with some IC which requires to talk using I²C<br> - Publish events on a third CAN bus which exposes additional sensors values<br><br>I have a lot of questions about the really exiting OVMS board and platform, to <br>start here are my firsts:<br> - Is there is any trap I should take care that is not described in users or <br>developers documentation regarding my goals?<br> - Is there is any place where I can find some prototype boards¹?<br> - Could someone guide me to be able to periodically wrote values on CAN bus <br>using the OVMS code architecture²?<br><br>Thanks for this awesome project!<br><br>[1] I bough my OVMS from OpenEnergyMonitor and unfortunately none are sold<br>[2] It's about read some sensors, compute values and provide results at a <br>traditional CAN frequency on the bus.<br><br>-- <br>Romuald Conty<br>Opus Codium</div></div><br><iframe class="content-isolator__isolated-content" sandbox="allow-scripts" scrolling="auto" width="200" height="10" style="border:none;display:block;overflow:auto;" data-src="data:text/html;charset=UTF-8;base64,PGlmcmFtZS1jb250ZW50IGRhdGEtaWZyYW1lLWhlaWdodD0idHJ1ZSI+X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX188QlI+T3Ztc0RldiBtYWlsaW5nIGxpc3Q8QlI+T3Ztc0RldkBsaXN0cy5vcGVudmVoaWNsZXMuY29tPEJSPmh0dHA6Ly9saXN0cy5vcGVudmVoaWNsZXMuY29tL21haWxtYW4vbGlzdGluZm8vb3Ztc2RldjxCUj48L2lmcmFtZS1jb250ZW50Pg=="></iframe></div></div></div></blockquote></div><br></div></body></html>