PriiDash(TM): Enhanced Instrument Panel / Data Logger - Now Open Sourced!

Discussion in 'PriiDash (TM)' started by 2009Prius, Jun 26, 2011.

  1. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    I am surprised the Bluetooth can work at all - I thought it is too slow and will cause buffer overrun. Maybe the newer models are faster now?

    Yes the tablet PC works out well. When I used a netbook before I just let it sit on the dash with some Velcro. See the picture in the first post.
     
  2. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    2013-07 Major Update

    Thanks to the folks at the FLTK general discussion group, the usage of FLTK has been improved significantly. Now the native Windows version performs as well as the Cygwin version, and the "log to csv" function re-plays the drive data while converting the log to a csv file. New gauge types are added to show recent histories of various temperatures and power outputs of the engine, re-gen braking and friction braking. Average MPG gauge now shows the history of MPG each mile of the last 20 miles, similar to the Prius MFD display but more useful. New formula and command files for "request only" mode for gen 2 Prius are included. Both windows native and Cygwin executables are included in the download, so are the corresponding NetBeans IDE configuration files.

    Download here: PriiDash | Free Science & Engineering software downloads at SourceForge.net
     
    nh7o, mrbigh and R-P like this.
  3. mrbigh

    mrbigh Prius Absolutum Dominium

    Joined:
    Sep 6, 2005
    3,686
    699
    2
    Location:
    Long Island, NY
    Vehicle:
    Other Electric Vehicle
    THANK YOU FOR THE UPDATES !!
     
  4. connectorxp

    connectorxp Avid mountaineer and rock climber

    Joined:
    Dec 18, 2008
    25
    1
    0
    Location:
    Bucharest, Romania
    Vehicle:
    2008 Prius
    Model:
    N/A
    Looks nice, hope it will still work on my netbook. The Windows native app is very fine. Is it me, or the Lite interface is gone?

    Is there a way to permanently set the CSV and TXT log files? it's a hassle to set them everytime.
     
  5. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    Sorry the Lite interface hasn't been updated for a while. And permanently setting the directory for the log files is still on the to do list. I will have to take a look at both.
     
    connectorxp likes this.
  6. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    Done!


    2013-08 revive Lite version, settable default log path

    This new release revives the optional Lite version (fewer gauges displayed but all data still logged). New feature: now the default path for log files can be changed by the user. Roll mode history display added to MG1 & MG2 kW gauges.

    Download here: PriiDash | Free Science & Engineering software downloads at SourceForge.net
     
    connectorxp likes this.
  7. connectorxp

    connectorxp Avid mountaineer and rock climber

    Joined:
    Dec 18, 2008
    25
    1
    0
    Location:
    Bucharest, Romania
    Vehicle:
    2008 Prius
    Model:
    N/A
    Thanks, you rock! and our Prii also :)
     
  8. Glenn Blanc

    Glenn Blanc New Member

    Joined:
    Jul 7, 2013
    10
    0
    0
    Vehicle:
    2004 Prius
    Model:
    N/A
    I am a new user installing for the first time on Windows 7. When I hit GO the console window shows an error open file trying to open the log file. I changed the log file path from the default f: as I don't have an f drive. After the error it says runUI<> ended
    What am I doing wrong?

    I unzipped the zip file into a directory on the c: drive and ran the priidash3lite_mingw.exe from the 20130805 version, also tried the priidash3_mingw.exe from the 20130727 version as well, same error.

    Thanks for all your good work.
     
  9. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    Hello, Thanks for the interest in PriiDash.

    Please use the most recent version (20130805). The previous version (20130727) does not allow easy change of the log file path.
    1. Quit PriiDash if you have one open.
    2. Open a Windows command window (cmd.exe).
    3. Change directory (cd) to the folder that contains priidash3_mingw.exe (and other files that comes with the downloaded zip file in the same folder).
    4. Type priidash3_mingw and hit Enter to run the program.
    5. Accept license if prompted.
    6. Go to the Main Control window. The window title should say "Main Control - PriiDash(TM) 20130805".
    7. Click the blue button "Set log filename".
    8. A file selection dialog should show up. Navigate to the folder that you want the log files saved to, for example, c:/TEMP/. Type a dummy filename, for example, test.txt. Then click OK. Now the text field next to the button should show c:/TEMP/test.txt.
    9. Click the gray button "Set current log path to default". Now the text field labeled "Default log file path" should show c:/TEMP.
    10. From now on the log files will be saved in the "c:/TEMP" directory.
    11. To test the program, select "Simulation" in the "run type" drop down menu. Click the "Go" button and observe the gauges start to move up and down.
    [​IMG]

    If you still have problem setting the log file path after following the steps above, please copy and paste the output texts in the command window and post here. Thanks!
     
    connectorxp likes this.
  10. Glenn Blanc

    Glenn Blanc New Member

    Joined:
    Jul 7, 2013
    10
    0
    0
    Vehicle:
    2004 Prius
    Model:
    N/A
    Same issue opening the log file:
    **********************************************************************
    PriiDash(TM) Copyright (C) 2011 by TeamPrii at sourceforge
    This program is licensed under the GNU General Public License,
    with ADDITIONAL TERMS. For details click
    "About PriiDash(TM) ..." button in "Main Control" window.
    **********************************************************************
    length of Fl_Gauge::roll_Gs= 13 address at 0x5c8440
    showLic() starting ... showLic() started.
    showLic() ending ... showLic() ended.
    !!! Can not find INI_Settings.xml, try to create one !!!
    portname=COM7, fuel vol unit=0
    Main Control > Go button pressed
    UI starting
    runUI() thread starting ... runUI() thread started
    portname=COM7, fuel vol unit=0
    Open formula.txt ... read 38 formulas.
    runUI() started.
    Open command.txt ... Read 12 ini commands, 1 priority level1 query commands, 4 l
    vl2, 4 lvl3. HeaderON=1.
    Open command.txt ... Read 12 ini commands, 1 priority level1 query commands, 4 l
    vl2, 4 lvl3. HeaderON=1.

    !!! Error open file "c:/TEMP/log20130823_082723. csv" !!!
    runUI<> ended

    Thanks for your quick response
     
  11. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    OK it looks like you set the file path successfully but the program is having trouble opening a new file in the directory. Are you logged in Win 7 as an administrator? I wonder if there is write restriction imposed by Win 7 that prevents the program from opening a file. If you can't log in as an administrator, maybe try setting the log file path to your "My Documents" folder (C:/Users/your_username/Documents). Please let me know if this helps or not.
     
  12. Glenn Blanc

    Glenn Blanc New Member

    Joined:
    Jul 7, 2013
    10
    0
    0
    Vehicle:
    2004 Prius
    Model:
    N/A
    Same issue, tried in both my My Documents folder and in a TEMP folder I created. Also tried running from Windows Explorer and selecting run as administrator.
    runUI() started.
    Open command.txt ... Read 12 ini commands, 1 priority level1 query commands, 4
    vl2, 4 lvl3. HeaderON=1.
    Open command.txt ... Read 12 ini commands, 1 priority level1 query commands, 4
    vl2, 4 lvl3. HeaderON=1.
    !!! Error open file "c:/Users/blanc9/My Documents/log20130823_122215.csv" !!!
    runUI() ended
    Main Control > Go button pressed
    UI starting
    runUI() thread starting ... runUI() thread started
    portname=COM7, fuel vol unit=0
    Open formula.txt ... read 38 formulas.
    runUI() started.
    Open command.txt ... Read 12 ini commands, 1 priority level1 query commands, 4
    vl2, 4 lvl3. HeaderON=1.
    Open command.txt ... Read 12 ini commands, 1 priority level1 query commands, 4
    vl2, 4 lvl3. HeaderON=1.
    !!! Error open file "c:/Users/blanc9/TEMP/log20130823_122320.csv" !!!
    runUI() ended
     
  13. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    That's so frustrating! Are you logged in Win 7 as an administrator? Which version of Win 7 are you running?

    Please look in the folder where the executable file (priidash3_mingw.exe) is. Do you see these two files LicRead.txt and INI_Settings.xml? They are supposed to be created by the program when it runs for the first time. If you see them then you can try to set the default log file path to the same folder. The program should be able to create log files there since it has created the two files above. If you don't see the two files then the only thing I could think of right now is to try to log in as an administrator.

    Later I will try to log in not as an administrator on my laptop and see if I could reproduce the issue.
     
  14. Glenn Blanc

    Glenn Blanc New Member

    Joined:
    Jul 7, 2013
    10
    0
    0
    Vehicle:
    2004 Prius
    Model:
    N/A
    That did the trick, also I noticed that it was not saving my ODO input or USB port settings so I manually edited the INI_Settings.xml file and now they are saved. I have been running as administrator from Windows Explorer (don't know how to do that from cmd line) but this is a corporate machine and not every administrator has the same privileges so I think your instincts are correct that it has something to do with administrator privileges. I am running in simulation mode until my cable arrives.

    Many thanks, looks like a great tool.

    Glenn
     
  15. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    Great! Let me know if you have any other questions when the cable arrives.
     
  16. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    I am not sure either but you may try running the cmd.exe as administrator, then run PriiDash from command line.

    Another thought is to set the permissions of the folder through Windows Explorer right click menu if you want to use a particular folder for log files.
     
  17. Glenn Blanc

    Glenn Blanc New Member

    Joined:
    Jul 7, 2013
    10
    0
    0
    Vehicle:
    2004 Prius
    Model:
    N/A
    I have my USB cable, now when I run the application it never shows any of the gauges and the log looks like this (two attempts).

    vl2, 4 lvl3. HeaderON=1.
    Setting COM state ... OK.
    Running in normal mode.
    starting main loop in runUI()
    FF10 wrong algorithm in readATMAdata()!!! *partialmsglen(=3) != n(=0), reset *pa
    rtialmsglen to 0
    FF10 wrong algorithm in readATMAdata()!!! *partialmsglen(=2) != n(=0), reset *pa
    rtialmsglen to 0
    FF10 wrong algorithm in readATMAdata()!!! *partialmsglen(=3) != n(=0), reset *pa
    rtialmsglen to 0
    Main Control > Go button pressed
    UI stopping
    End of UIstate==Running
    runUI() ended

    Main Control > Go button pressed
    UI starting
    runUI() thread starting ... runUI() thread started
    portname=COM2, fuel vol unit=0
    Open formula.txt ... read 38 formulas.
    runUI() started.
    Open command.txt ... Read 12 ini commands, 1 priority level1 query commands, 4 l
    vl2, 4 lvl3. HeaderON=1.
    Open command.txt ... Read 12 ini commands, 1 priority level1 query commands, 4 l
    vl2, 4 lvl3. HeaderON=1.
    Setting COM state ... OK.
    Running in normal mode.
    starting main loop in runUI()
    FF10 wrong algorithm in readATMAdata()!!! *partialmsglen(=1) != n(=0), reset *pa
    rtialmsglen to 0
    FF10 wrong algorithm in readATMAdata()!!! *partialmsglen(=1) != n(=0), reset *pa
    rtialmsglen to 0
    FF10 wrong algorithm in readATMAdata()!!! *partialmsglen(=1) != n(=0), reset *pa
    rtialmsglen to 0
    FF10 wrong algorithm in readATMAdata()!!! *partialmsglen(=1) != n(=0), reset *pa
    rtialmsglen to 0

    I am using a ELM327 V1.5 OBD-II OBD2 USB Scan Tool for PC from eBay (photo attached). Windows sees it as Silicon labs CP210x USB to UART bridge (COM2). In windows I set the COM port to COM2 and the fastest baud rate I could set from windows was 115.200. I set the port in PriusDash to 115.200 for the first attempt and 1Meg for the second attempt. I assume the application sends the AT command for port speed to the device and that the windows setting is unimportant.

    Thanks for your help,

    Glenn
     

    Attached Files:

  18. johnhlong

    johnhlong Junior Member

    Joined:
    Aug 30, 2013
    89
    29
    0
    Location:
    East Carbon, Utah, USA
    Vehicle:
    2013 Prius c
    Model:
    Two
    Is there a version of PriiDash that will run using Bluetooth or Wifi ?

    I want to get a OBD-Bluetooth module for my 2013 Prius c (Trim II) so I can use my Android tablet (Torque) as my fulltime onboard display.

    It would also be nice if I could (from time to time) use my windows 7 laptop to run PriiDash for a complete look at what my car is doing.

    I'm hoping not to have to buy two OBD modules.



    John
     
  19. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    Hi you are right that sounds like baud rate issue. The PriiDash program actually does not set the baud rate of the OBD-USB device. You need to use a terminal program such as STN Term to set it. See this post
    FAQs | Troubleshoot - Need help? Ask questions here. | PriusChat
    for details. Good luck and let me know if there are any other questions.
     
  20. 2009Prius

    2009Prius A Wimpy DIYer

    Joined:
    Mar 25, 2009
    2,705
    511
    63
    Location:
    USA
    Vehicle:
    2009 Prius
    I tested a Bluetooth device before: that worked fine. I haven't tried Wifi. The main issue with your 2013 Prius is that it needs a different set of formula.txt and command.txt files from that of gen 2 Prius. The easiest way is to translate the Torque custom PIDs for gen 3 Prius. I don't really have time to do that (and no car to test) but if you are interested I can walk you through the process.