1. Attachments are working again! Check out this thread for more details and to report any other bugs.

My Duinomite Mega Canview V4 equivalent Project

Discussion in 'Prius PHEV Plug-In Modifications' started by lopezjm2001, Jul 19, 2012.

?
  1. Yes

    11 vote(s)
    100.0%
  2. Prefer to use Android Torque device

    0 vote(s)
    0.0%
  3. Prefer to use Scangauge

    0 vote(s)
    0.0%
  1. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    well i have it working
    i no longer get the unkown command error

    ofcourse with the DMbasic so i can not run the canview file made for MMbasic
    even if i do add the line numbers i geuss there are MMbasic specific code what wil not work in DMbasic like label thats part of the NO line number setup
    lopez can you upload the last version you made when still working with DMbasic? please
     
  2. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    -Htc Tapatalk ( sorry for auto spell correct )
     

    Attached Files:

  3. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    No I didn't get legal advice - and if someone prevents a convincing argument for me to stop then I'll stop. However:
    1. The CAN source files are available on GitHub - and if you get them from there then no one is breaking any distribution agreements.
    2. The MMBasic source files are available direct from Geoff Graham if you fill in a form to ask for them and if you agree not to distribute the hex or the source files. So, you can get this source without breaking any agreement.
    3. Now you have everything you need apart from the knowledge of how to compile it - there's no legal reason that I know of that I can't provide you those details. You can't distribute the results though.
    It's a drag - but there you have it. I'll get around to writing the instructions this evening and send them to FWD. However, my DM won't go into bootloading mode so I can't work on my new CAN commands :-(
     
  4. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Good job! Yes, I expect the issue is all to do with timing and missing the responses. When I get filtering working that problem should go away. However, my DM won't go into bootloader mode so I can't work on the updated CAN commands.

    BTW - I don't think you can run two basic programs at the same time on the DM (or MM).
     
  5. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    Looking forward to it
    What happend that you can no longer put it in upgrade mode? Did this happen after you loaded a modded firmware?

    -Htc Tapatalk ( sorry for auto spell correct )
     
  6. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Here are the instructions for how to port the CAN.c / CAN.h files into MMBasic.

    It's actually very easy - all the smarts belong to Geoff and Frank not me.

    My intent is only to make sure that folks with a DuinoMite who want to work with CAN will also get the benefits of the structured programming offered in MMBasic 3.2. I believe that both Geoff and Frank support the concept of sharing - they just have different philosophies of how to achieve that. Unfortunately for us that creates an incompatibility between the distribution licenses that each party is using. We can't distribute the source, but we can still share knowledge ...

    Peace, love and plug-ins!
     

    Attached Files:

    dave77 and lopezjm2001 like this.
  7. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    I don't know what caused the problem. Yes, it happened after I loaded a different HEX image. However, that shouldn't have effected anything - and I believe JLo has successfully used the bootloader after having loaded his modified HEX image.

    Read the warning at the start of the instructions I just posted and only proceed if you're willing to do so.
     
    dave77 likes this.
  8. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    It is specifically recommended that HIDbootloader is used. Using other ways to flash the hex can be a problem.
     
  9. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    What other is there
    I can only download that loader
    So using the right one

    -Htc Tapatalk ( sorry for auto spell correct )
     
  10. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    I have seen one just called bootloader.exe. Some people flash using a flashing device which plugs into the Duinomite Mega (not a miniUSB) which is not a good idea. Best to stick with using HIDbootloader.exe and using the flashing instructions provided using the miniUSB cable.
     
  11. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    I have got the F12 - DTC clear button working. I will be adding a drive mode to the status window i.e. "FORCED EV" for those of us who drive in OutOfGas mode.

    I have also added a F11 - DTC check button.
     
  12. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    When I receive the return Canbus message 7EA 10 aa bb cc dd ee ff gg I get the following in decimal values:

    Decimal
    39 97 195 63 255 15 160
    Binary
    00100111 01100001 00111111 11111111 00001111 10100000
    Hex
    27 61 C3 3F FF F A0

    MG1 temperature °F = (1.8 x AA) -58 = (1.8 x 39) - 58 = 12.2

    °C = (°F – 32) / 1.8
    °F = °C × 1.8 + 32

    From the above figures I am supposed to get the MG1 temperature and MG2 temperature. Accoring to my Canview V4 the MG1 temperature and MG2 temperature were both 16 degrees Celcius. I cannot figure out how 16 degrees is derived from the above. Help.
     
  13. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    So lopez you also used the instructions before to make your 3.2c canbus working?
    Or did you figure it out yourselfs
    Dont want to brick bootloading using These instructions now and have the same problem

    -Htc Tapatalk ( sorry for auto spell correct )
     
  14. lopezjm2001

    lopezjm2001 Senior Member

    Joined:
    Apr 14, 2009
    1,146
    407
    5
    Location:
    Sydney Australia
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
  15. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    I used HIDBootloader. I do not think the version of the firmware is the problem - but I don't know for sure.
     
  16. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
  17. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    If you have the problem Because ita the firmware then lopez also got it or did he not afd the can.h etc files based on your info? Before

    -Htc Tapatalk ( sorry for auto spell correct )
     
  18. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    EDIT ( errors solved because if misplaced file after double check )
    builld suceedsed

    no for testting again.
     
  19. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    OK
    ofcourse like expected with me its not working....
    i build with succes and so added rhe can files and made the intructions edits.....
    loaded into the mega and when i run the latest cnview.bas file i get a unknow command error.... on the canopen 500000 command.................:mad:
     
  20. Flying White Dutchman

    Flying White Dutchman Senior Member

    Joined:
    Dec 29, 2007
    4,374
    313
    0
    Vehicle:
    Other Non-Hybrid
    Model:
    N/A
    Good news
    Things are starting to get intocht the right direction
    Can read can messages now

    -Htc Tapatalk ( sorry for auto spell correct )