<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font face="Arial">Hello everybody,<br>
my name is Julien, I am a soon-to-be CS engineer from France. I am working on an internship project that requires to modify the Renault Twizy's internal parameters via the CAN bus. I am very interested in the work done by the OVMS developers on that topic.<br>
<br>
In the past few weeks I have learned quite a lot about Twizy's SEVCON through the documentation and also by browsing through the OVMS car module's source code. Thanks a lot for all the documentation and advice you provide!<br>
<br>
I have some questions that I hope you guys can answer to (TL;DR below).<br>
<br>
<b>MSG commands</b><br>
<br>
My current situation is that I have upgraded my OVMS module to 2.6.5 firmware with the .hex file provided on GitHub. I have also successfully connected to the module via SMS commands and Android App. Most of the basic commands that I tried worked.<br>
<br>
I say 'most', because I have set the #15 'write' bit to '1' and cleared the #14 bit as well. However, I don't seem to be able to send CFG commands via SMS (such as CFG SPEED <speed> for example) in the way that the twizy manual describes it. All I get are push
 notifications forwarding my SMS to the app. Is there something I'm missing? :(<br>
<br>
<b>Compilation issues</b><br>
<br>
On an other topic, I have installed MPLABX and acquired the C18 compiler thanks to someone hosting it on a personal website (note: it's nowhere to be found in the microchip archive and static links sourcing it on the website are all dead at the moment).
<br>
<br>
I have tried to compile the V2_RT_Production from the last source available on GitHub. However I ran into compilation errors in vehicle_twicy.c, caused by what I assumed were missing '#define' directives (i.e 'OVMS_TWIZY_BATTMON' & 'OVMS_TWIZY_CFG'). I didn't
 see them referenced anywhere but in the version comments at the start of the file:<br>
<font color="808080" size="2"><br>
> - Twizy battery monitor compiler switch: OVMS_TWIZY_BATTMON</font><br>
<br>
So I added these two, but I don't know if they were supposed to be left out. Incidentally, I ran into a new compilation error:<br>
<br>
<font color="808080" size="2">> Error - section '.romdata_net_msg.o' can not fit the section. Section '.romdata_net_msg.o' length=0x000000a8</font><br>
<br>
Which as I understand is an issue relative to the length of the file being too large to pass compilation. I'm fairly new to PIC programming, so I may have misinterpreted some of these compilation errors. I imagine there is a lot of work in progress on the code
 so maybe the version I pulled was not a stable one ? Any remark or advice is most welcome!<br>
<br>
<b>DIAG communication</b><br>
<br>
Probably noob error: I tried connecting through the DIAG port with minicom. I set minicom to 9600 Bds / 8N1, as specified in the developers documentation, but had no success. I think that I'm closed since since I received data, but it was just gibberish encoding
 errors. Since these errors are often caused by a wrong baud setting, I tried different baud values without success. I hope somebody can point out something that I could have missed. I have read the manual, but, well... you never know.<br>
<br>
<b>TL;DR</b><br>
<i>- Can I send SMS CFG commands to Twizy 2.6.5 firmware?<br>
- Is there any specific advice on how to get started on OVMS source and compile it for the Twizy?<br>
- Communication with DIAG port on minicom only speaks gibberish although I have (supposedly) correct settings. Could I have missed something?</i><br>
<br>
Anyway, I hope I'm not bothering you with all my questions. Sorry for the long e-mail.<br>
I look forward to reading from you !<br>
<br>
Julien Nozais<br>
<br>
<br>
<br>
</font></div>
</body>
</html>