[Ovmsdev] understanding polling

Nikolay Shishkov nshishkov at yahoo.com
Sun Jun 21 21:44:16 HKT 2015


Hi , 
I am trying to make nissan leaf work with normal cable - on the CARCAN.

I am trying to figure out the polling mechanism and I have trouble understanding what the different parameters in the configurations are. 
In the ampera file I can see:
| rom struct |
|  |  { |
|  |  unsigned int moduleid; |
|  |  unsigned char polltime; |
|  |  unsigned int pid; |
|  |  } vehicle_voltampera_polls[] |
|  |  = |
|  |  { |
|  |  { 0x07E0, 10, 0x000D }, |
|  |  { 0x07E4, 10, 0x4369 }, |
|  |  { 0x07E4, 10, 0x4368 }, |
|  |  { 0x07E4, 10, 0x801f }, |
|  |  { 0x07E4, 10, 0x801e }, |
|  |  { 0x07E4, 10, 0x434f }, |
|  |  { 0x07E4, 10, 0x1c43 }, |
|  |  { 0x07E4, 10, 0x8334 }, |
|  |  { 0x07E1, 100, 0x2487 }, |
|  |  { 0x0000, 0, 0x0000 } |
|  |  }; |


While in the nissan leaf file I can see the following:

| rom vehicle_pid_t vehicle_nissanleaf_polls[] |
|  |  = |
|  |  { |
|  |  { 0x797, 0x79a, VEHICLE_POLL_TYPE_OBDIICURRENT, 0x0d, { 10, 10, 0 } }, // Speed |
|  |  { 0x797, 0x79a, VEHICLE_POLL_TYPE_OBDIIVEHICLE, 0x02, { 10, 10, 0 } }, // VIN |
|  |  { 0, 0, 0x00, 0x00, { 0, 0, 0 } } |
|  |  }; |


I can kind of guess some of it. I also found an old e-mail from Mark that describes a structure similar to the one in the nissan leaf file, but the leaf has one extra parameter - I think it is the return message can Id. 
Any info/advice is appreciated!

Nikolay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20150621/7a0c675f/attachment.htm>


More information about the OvmsDev mailing list