phev-remote / phevctl

41 stars 15 forks source link

Add support for more commands #10

Closed vzakharchenko closed 3 years ago

vzakharchenko commented 3 years ago

Usage

Usage: phevctl [OPTION...] register
  or:  phevctl [OPTION...] battery
  or:  phevctl [OPTION...] chargestatus
  or:  phevctl [OPTION...] lockstatus
  or:  phevctl [OPTION...] hvac
  or:  phevctl [OPTION...] remaningchargestatus
  or:  phevctl [OPTION...] update
  or:  phevctl [OPTION...] aircon [on|off]
  or:  phevctl [OPTION...] acmode [heat|cool|windscreen] [10|20|30]
  or:  phevctl [OPTION...] headlights [on|off]
  or:  phevctl [OPTION...] parkinglights [on|off]
  or:  phevctl [OPTION...] monitor
  or:  phevctl [OPTION...] get <register>

Program to control the car via the remote WiFi interface.  Requires this device
to be connected to the REMOTE**** access point with a valid IP address, which
is on the 192.168.8.x subnet.

THIS PROGRAM COMES WITH NO WARRANTY ANY DAMAGE TO THE CAR OR ANY OTHER
EQUIPMENT IS AT THE USERS OWN RISK.

  -c, --car-model=<YEAR>     Model Year.
  -m, --mac=<MAC ADDRESS>    MAC address.
  -v, --verbose              Verbose output
  -?, --help                 Give this help list
      --usage                Give a short usage message

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Doors Lock status

Example: phevctl lockstatus


Mitsubishi Outlander PHEV Remote CLI - Designed and coded by Jamie Nuttall 2020
MIT License

Type 'x' then enter to quit.
Register 01
94 F2 37 CF E1 1D 0C E9 01 
Register 21
00 
Register 22
00 00 00 00 00 00 
Register 23
00 01 00 02 02 
Register 24
01 00 00 00 00 00 00 00 00 00 
Doors are Locked

Charging state

# phevctl chargestatus
Mitsubishi Outlander PHEV Remote CLI - Designed and coded by Jamie Nuttall 2020
MIT License

Type 'x' then enter to quit.
Register 01
C7 69 1D 0C E9 AD A5 1D 01 
Register 25
0E 00 FF 
Register 26
00 
Register 27
00 
Register 28
52 45 4D 4F 54 45 33 37 70 65 65 65 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 
Register 29
00 01 00 
Register 2C
00 
Register C0
30 30 36 30 30 33 30 30 30 30 10 01 00 
Register 01
01 01 
Register 02
02 00 00 00 
Register 03
01 75 77 
Register 04
00 FF FF 03 00 FF FF 03 00 FF FF 03 00 FF FF 03 00 FF FF 03 
Register 05
01 00 FE 07 00 FE 07 00 FE 07 00 FE 07 00 FE 07 
Register 06
00 4A 41 34 4A 32 34 41 35 58 4B 5A 36 30 37 37 31 32 00 01 
Register 07
01 
Register 0B
01 
Register 0C
01 
Register 0D
01 
Register 0F
00 
Register 10
00 00 00 
Register 11
00 
Register 12
15 03 07 13 20 0A 00 
Register 13
00 
Register 14
00 00 00 00 00 00 00 
Register 15
03 4A 41 34 4A 32 34 41 35 58 4B 5A 36 30 37 37 31 32 00 01 
Register 16
02 2E 00 6F 00 30 00 00 
Register 17
01 
Register 18
00 00 00 00 
Register 1A
00 00 00 00 00 
Register 1B
11 
Register 1C
02 
Register 1D
5E 00 00 03 
Register 1E
00 00 
Register 1F
00 00 00 
Not charging

Remaining Charge in minutes

# phevctl remaningchargestatus
Mitsubishi Outlander PHEV Remote CLI - Designed and coded by Jamie Nuttall 2020
MIT License

Type 'x' then enter to quit.
Register 01
37 CF E9 AD AD AD A5 15 01 
Register 0F
00 
Register 10
00 00 00 
Register 11
00 
Register 12
15 03 07 13 21 28 00 
Register 13
00 
Register 14
00 00 00 00 00 00 00 
Register 15
03 4A 41 34 4A 32 34 41 35 58 4B 5A 36 30 37 37 31 32 00 01 
Register 16
02 2E 00 6F 00 30 00 00 
Register 17
01 
Register 18
00 00 00 00 
Register 1A
00 00 00 00 00 
Register 1B
11 
Register 1C
02 
Register 1D
5E 00 00 03 
Register 1E
00 00 
Register 1F
00 00 00 
Remaining 0

HVAC status

 phevctl hvac 
Mitsubishi Outlander PHEV Remote CLI - Designed and coded by Jamie Nuttall 2020
MIT License

Type 'x' then enter to quit.
Register 01
58 F2 3F 58 FA C7 69 15 01 
Register 15
03 4A 41 34 4A 32 34 41 35 58 4B 5A 36 30 37 37 31 32 00 01 
Register 16
02 2E 00 6F 00 30 00 00 
Register 17
01 
Register 18
00 00 00 00 
Register 1A
00 00 00 00 00 
Register 1B
11 
Register 1C
02 
Operating: 0
mode: 2

Switching air condition mode on Outlander 2019 PHEV (0.0600.3.000)

phevctl --car-model=2019 acmode [heat|cool|windscreen] [10|20|30]

vzakharchenko commented 3 years ago

Hi @papawattu can you take a look?