I found https://github.com/slackspace-io/imiev-remote-heater
The file there is named heater_on_tx.ino
The code:
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(115200);
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(2);
// Optional set pulse length.
mySwitch.setPulseLength(402);
// set protocol (default is 1, will work for most outlets)
// mySwitch.setProtocol(2);
// Optional set number of transmission repetitions.
mySwitch.setRepeatTransmit(15);
pinMode(0,OUTPUT);
}
void loop() {
mySwitch.send("010101111110101010101000");
Serial.println("sent");
digitalWrite(0,LOW);
delay(2000);
digitalWrite(0,HIGH);
delay(8000);
}
The person there seems to use OVMS. Have someone else found this and tried it out?
Hi,
Sorry for the confusion, that is my code repo. -- I put a comment in the issue you opened there too.
That was a poorly named repo by me - Sorry!
I installed a diesel heater in the back of the car, this was some very simple code to send the signal to turn the heater on/off.
I like others tried and failed to find a way to enable the actual heater in the I-Miev remotely. To my knowledge no one has shared publicly how to do *any* sort of commands to an I-Miev and have it do an action. From locking doors, windows, let alone heater control :-/
Hi,
I'd like to help. But I also have zero experience at this point with CAN programming.
So who set up the OVMS stuff that's already working? Can't they help us out pointing us in the right direction?
I'm glad to buy the hardware and load up any toolkit required. I just need someone to point me in the right direction.