Mark,Yes, I did and to no avail. I had purposefully let the car sit until it went into power save mode and tried again, no joy.Might it have something to do with the new FW on the roadster? (4.6.4 I think is the FW that is on mine.) My roadster is a 2.5.WilliamOn Fri, Feb 17, 2012 at 12:29 AM, Mark Webb-Johnson <mark@webb-johnson.net> wrote:
William:Current (1.2.0-rc3) code is:void can_tx_setchargecurrent(unsigned char current){while (TXB0CONbits.TXREQ) {} // Loop until TX is doneTXB0CON = 0;TXB0SIDL = 0b01000000; // Setup 0x102TXB0SIDH = 0b00100000; // Setup 0x102TXB0D0 = 0x05;TXB0D1 = 0x02;TXB0D2 = 0x00;TXB0D3 = 0x00;TXB0D4 = current;TXB0D5 = 0x00;TXB0D6 = 0x00;TXB0D7 = 0x00;TXB0DLC = 0b00001000; // data length (8)TXB0CON = 0b00001000; // mark for transmissionwhile (TXB0CONbits.TXREQ) {} // Loop until TX is donecan_tx_wakeup(); // Also, wakeup the car if necessary}void can_tx_wakeup(void){while (TXB0CONbits.TXREQ) {} // Loop until TX is doneTXB0CON = 0;TXB0SIDL = 0b01000000; // Setup 0x102TXB0SIDH = 0b00100000; // Setup 0x102TXB0D0 = 0x0a;TXB0DLC = 0b00000001; // data length (8)TXB0CON = 0b00001000; // mark for transmissionwhile (TXB0CONbits.TXREQ) {} // Loop until TX is done}That should work. Pre-rc3, I used to see this, but since rc3 it has been ok for me.Maybe the bus was busy and lost the wakeup message? Did you try sending any other commands, or repeating the start charge command?What is the version of your car (2.x or 1.5?).
Regards, Mark.P.S. There is also a specific command C,18 that calls the CAN wakeup function. Not sure if the Android App supports it or not.On 17 Feb 2012, at 2:22 PM, William Petefish wrote:Mark,Feature Needed: Wake Up command.I tried to send the start charge command from my android phone and it wouldn't start to charge or change charging mode, etc. without being woken up by opening/closing the doors/trunk/remote/etc.I am using the latest release (1.20) and the Android app.William
_______________________________________________
OvmsDev mailing list
OvmsDev@lists.teslaclub.hk
http://lists.teslaclub.hk/mailman/listinfo/ovmsdev