I want to send AT command to switch my headlights pernament ON in Nissan Leaf.
It is located in ID 625
0x00 - OFF
0x60 - ON
0x40 - Parking lights ON
0x
If your Nissan is talking CAN (i.e. your ELM 327 device will reply with a number between 6 and 9 when you send AT DPN), then you can:
AT Z
AT E0
AT L1
AT SP 0
0100
AT SH 625
Up to here you have:
AT Z)AT E0)AT L1)AT SP 0)0100) (okay, not really, but this helps the chipset determine the protocol)AT SH 625)Now, do you know which of the bytes do you have to change to 0x40 to turn headlights on? You could try to send 40 00 directly, but I really doubt it helps.
Note: don't try to send CAN messages on the buss unless you know what you are doing. Don't hold anybody liable if your car starts acting weird. Also, don't send messages while driving.