documentation & use exmaples
Hi Stuart, Do you have any further documentation on wbus protocol used on Webasto and maybe some use exapmles for your library you can share? Regards, Thomas
Hello, think you are the first person to ask!
I've not picked up this project for a while, but I did managed to get my heater to fire up and run. My goal was to create an Arduino based controller with an LCD display - this is what the code on GITHUB does.
Most of my code logic comes from reading the topics and ideas on this page
http://sourceforge.net/p/libwbus/discussion/756917/
On Fri, Jan 29, 2016 at 9:54 AM, blackphoenixinf [email protected] wrote:
Hi Stuart, Do you have any further documentation on wbus protocol used on Webasto and maybe some use exapmles for your library you can share? Regards, Thomas
— Reply to this email directly or view it on GitHub https://github.com/stuartpittaway/WebastoHeaterWBusArduinoInterface/issues/1 .
Do you have any schematic?
Br Johnny
Yes, see this project.
https://github.com/stuartpittaway/WebastoWBUSInterface
Thank you very much :-)
a long time ago...
but has any tried to add a gsm module to the mix?
No I don't think so
On 18 Sep 2016 19:58, "Bo Herrmannsen" [email protected] wrote:
a long time ago...
but has any tried to add a gsm module to the mix?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stuartpittaway/WebastoHeaterWBusArduinoInterface/issues/1#issuecomment-247866299, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJW9Wnh5FOAqLsxPrjI_XFHUiIHYONZks5qrYm-gaJpZM4HPEkl .
well i have the hardware... only need a levelshifter between gsm and arduino (the mega) and also i like a L9637D to do the conversion between the wbus and arduino
and i need to dig out some sample code for the gsm part
Should be fairly easy to do. Let me know how you get on
On 18 Sep 2016 20:05, "Bo Herrmannsen" [email protected] wrote:
well i have the hardware... only need a levelshifter between gsm and arduino (the mega) and also i like a L9637D to do the conversion between the wbus and arduino
and i need to dig out some sample code for the gsm part
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stuartpittaway/WebastoHeaterWBusArduinoInterface/issues/1#issuecomment-247866711, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJW9RXFp-GC9U3VKOklE7ZH2RIyLkDAks5qrYtkgaJpZM4HPEkl .
will do....
how would you judge this code? http://pastebin.com/9jEW030e the wbus.h for that sketch: http://pastebin.com/8e8JQdX0
a bit different from the one you use.... i dont have a clue which one is the better one here
its from another project that might be better suited for the task...
but i take any advice i can get
EDIT: https://www.youtube.com/watch?v=6zZjSFef4yA
a demo of it... not my work...
my plan was to cut out code that i do not need, then add in gsm stuff
and try to find documentation on the strings that webasto uses for status etc, with some damn great luck i can use their app to control it :-D
Looks okay, memory size is the biggest problem when using LCD screens and interfacing to other devices.
On 18 Sep 2016 20:22, "Bo Herrmannsen" [email protected] wrote:
will do....
how would you judge this code? http://pastebin.com/9jEW030e
its from another project that might be better suited for the task...
but i take any advice i can get
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stuartpittaway/WebastoHeaterWBusArduinoInterface/issues/1#issuecomment-247867733, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJW9ejWVdnkSDoCpPa8v4C87hte6Zb3ks5qrY9DgaJpZM4HPEkl .
oki doke
lcd is going out and this will be hidden either under the dash or seat
only need to get some components to do level shifting... the GSM module is on 2.8V so it needs slight adjusting before it will work right
btw... is there a complete list of commands i can send the preheater? just so i can figure if there are any other nice stats i can get out of it or the sketch i found will make do
I've not found a reference manual as such, there is a link in my source code to the site where I found most information from.
On 19 September 2016 at 10:06, Bo Herrmannsen [email protected] wrote:
oki doke
lcd is going out and this will be hidden either under the dash or seat
only need to get some components to do level shifting... the GSM module is on 2.8V so it needs slight adjusting before it will work right
btw... is there a complete list of commands i can send the preheater? just so i can figure if there are any other nice stats i can get out of it or the sketch i found will make do
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stuartpittaway/WebastoHeaterWBusArduinoInterface/issues/1#issuecomment-247943455, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJW9X8P1fn8mjNlPO0-UX1Jv_QoNnXaks5qrlCngaJpZM4HPEkl .
oki, wil try and have a look
when i come up with a sketch will you have time to look it over and suggest corrections?
what i'm after is to get all "dead" code out
but it will not be before next month, to busy right now to so much more
Happy to take a look.
On 19 September 2016 at 10:51, Bo Herrmannsen [email protected] wrote:
oki, wil try and have a look
when i come up with a sketch will you have time to look it over and suggest corrections?
what i'm after is to get all "dead" code out
but it will not be before next month, to busy right now to so much more
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stuartpittaway/WebastoHeaterWBusArduinoInterface/issues/1#issuecomment-247952035, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJW9Wx68D596T8YB8CckEeHNsrhYg-nks5qrlsJgaJpZM4HPEkl .
bored enough that i started to have a hack at the code
http://pastebin.com/kNdYcnyN
this is just for a few hours of work, the lcd stuff is slowly going out to be replaced with texting commands to the arduino and it sending status back
Q: there are 2 get status voids.... are the variables in those accessible from the main loop?
i ask because i cant remember and i want to send the sms/text from the main loop if i can... but if not i will have to do it from the get status void
or is the it the other way round.. ie variables in the main loop are available in the get status voids ?
if that is the case no problem... i guess it would make sense to send the sms from there anyway...
if i call the status voids once they are done i will be returned from where i left off in the main void right?
a bit rusty so sorry for asking questions
Yes I think you are correct, not 100% following, but I think you are on the right lines.
On 20 September 2016 at 14:51, Bo Herrmannsen [email protected] wrote:
or is the it the other way round.. ie variables in the main loop are available in the get status voids ?
if that is the case no problem... i guess it would make sense to send the sms from there anyway...
if i call the status voids once they are done i will be returned from where i left off in the main void right?
a bit rusty so sorry for asking questions
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stuartpittaway/WebastoHeaterWBusArduinoInterface/issues/1#issuecomment-248307023, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJW9TYwRCcuyRTxHhK_6yM4MxQzJW61ks5qr-TdgaJpZM4HPEkl .
where do i loose you?
what i mean is that sometimes variables are not "useable" in the main loop... it fails and says that its not declared etc...
my problem here is that when i get the text in the main loop it stores the number of the sender in the number variable... so my plan is to call the get status void... then send the text from within the void and use the number variable to tell who should get the text
my sketch so far... have started to mark lines that might be dead code
http://pastebin.com/ie806tp5
will continue tomorrow... any headsup are welcome
tried to compile and it works except one line i commented out
http://pastebin.com/zP6qdPNp
any recommendations? did i get {} right in the main loop?
my logic for the main loop is that it checks for an sms... if it gets one it will check what the word in there is and carry out the action set... so far i just have start, stop, status1 and status2
if no text it received it will do the keepalive command but of course only if the heater has been given a command to start
and also it will check if there are a flame... if so it will send a text to say that the heater did light up
i will add some logic that send a text when the temp goes above say 60 degrees telling the car is ready to go
figured a few things and my code is now this: http://pastebin.com/KYRJXCbQ
have removed what seems to be dead variables in the beginning.... but any advice on cleaning it up more would be very welcome
@boelle thank you ever so much for sharing your code, i'm really very interested in this. Did you build your own wbus interface board or use an off the shelf Arduino canbus shield like the one from sparkfun? Would you mind sharing some pictures of the wiring or maybe a schematic Thanks
Hi Rob, my wiring diagram is on Github as well. https://github.com/stuartpittaway/WebastoWBUSInterface
On 11 October 2016 at 12:29, Rob Aldred [email protected] wrote:
@boelle https://github.com/boelle thank you ever so much for sharing your code, i'm really very interested in this. Did you build your own wbus interface board or use an off the shelf Arduino canbus shield like the one from sparkfun? Would you mind sharing some pictures of the wiring or maybe a schematic Thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stuartpittaway/WebastoHeaterWBusArduinoInterface/issues/1#issuecomment-252892066, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJW9Ye2ZXWLbrWUCyrXns8qJZj3vsvZks5qy3MQgaJpZM4HPEkl .
Hi
I will build my own, its not complete yet but it will be an eagle schematic thing
Ohh thanks @stuartpittaway that's great!
http://imgur.com/a/B2iMx
the black circle is the connection to the heater.. above is serial connection to GSM module
to the left is 2 dc/dc converter modules of the kind you find on ebay... a 15V suppresion diode to catch the most nasty spikes.. and a fat 22000uF cap to prevent to much drop when starting the engine
at the very top some leds to indicate status locally
not on there yet are some DS18B20 temp sensors for the cabin and outside
also missing in my code is a routine that checks if the gsm module lost connection and if so power cycle the gsm module
and the code i build this on only have TX line defined as far i can see... i wonder why as normally you would have a RX also
my code is based on this youtube video.... code is far down on the comments list..
but in the top ones i just got an reply that TX should be connected to RX/digi0... that is how i understand the authors reply