Master as simple controller for windshield motor?
hugovw1976 opened this issue · 5 comments
hugovw1976 commented
Hi zapta, I build a analyzer an successful read the mesages to controll a windshield motor from BMW.
I want to controll the motor out of BMW car, so only want to controll the motor with a buttons direct connected to the Atmega328p, I'm not a professional programmer and I wonder if you have a programm to direct write and send messages from a Lin master to a slave.
Thanks.
zapta commented
Hi hugovw, what you need is a linbus master. I don't have code for one
since everything I did was done in the car and thus I used the car's master.
You can search for source code for linbus masters, maybe this one
https://github.com/John-Titor/LIN_Nodes but most likely you will need to
do some programming to provide the linbus packets required by your motor.
Hope it helps.
…On Tue, May 2, 2017 at 6:46 AM, hugovw1976 ***@***.***> wrote:
Hi zapta, I build a analyzer an successful read the mesages to controll a
windshield motor from BMW.
I want to controll the motor out of BMW car, so only want to controll the
motor with a buttons direct connected to the Atmega328p, I'm not a
professional programmer and I wonder if you have a programm to direct write
and send messages from a Lin master to a slave.
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#21>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACFWQapx7cMI9aR9xBn-hbEMllDrrV5Aks5r1zO8gaJpZM4NOKXy>
.
hugovw1976 commented
Thanks, I will check.
hugovw1976 commented
In the injector code in wich file you send the code to activate the sport function? I just tried to learn how you write messages from slave to master, but can't find where you write messages. Thanks
zapta commented
The injector code is not good as a master since it uses the car's master
and just modify packets as they go through.
The code that decides when to change the data packets is here
https://github.com/zapta/linbus/blob/master/injector/src_reference/arduino/custom_injector.h#L99
but I don't think it will be easy to convert it to a master.
One option you have is to buy this product
http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=APGDT001
connect it to a compute and to your motor and send the packets that you
think will control your motor.
Z.
…On Tue, May 2, 2017 at 12:36 PM, hugovw1976 ***@***.***> wrote:
In the injector code in wich file you send the code to activate the sport
function?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACFWQXyewOei4sosbfCdS19xs0i3XJ47ks5r14WigaJpZM4NOKXy>
.
hugovw1976 commented
Ok, Thanks for your help.