By MrIon
#5461
I got the fremantics OBD II Adaptor. I want to program it using an USBASP, so I got one and connected it according to the link below: [url=http://arduinodev.com/programming-freematics-obd-ii-adapter/]http://arduinodev.com/programming-freematics-obd-ii-adapter/[/url]

I then downloaded the required libraries and the Arduino software. I changed under Tools/Board to Microduino- Core+ ([email protected],5v) on COM 1. Also have the programmer as USBasp. I tried to get the computer to recognize it, but it doesn't seem to find it at all. Am I missing a step?

I then opened up rpm_led example and hit verify and I get nothing but errors. I included a screen shot of the errors.
By MrIon
#5463
Can you link me up to a good USBasp? I just checked and this one is giving me vid=0x03EB & pid=0xc8b4, while the USBasp is looking for  vid=0x16c0 & pid=0x05dc.
By MrIon
#5466
So I've been playing around and I got the OBD.cpp and OBD.h in a Ardunio project under the CodeBlocks program. Everything build with no problem. Now I'm trying to use the USBtiny programmer however I get an error. Here's what the debug window says:

Scanning for lexers in C:\Users\Marius\Desktop\CodeBlocks/share/codeblocks/lexers/...
Found 45 lexers
Scanning for lexers in C:\Users\Marius\Desktop\CodeBlocks/share/codeblocks/lexers/...
Found 45 lexers
Loading lexer_A68k
Loading lexer_ada
Loading lexer_angelscript
Loading lexer_bash
Loading lexer_batch
Loading lexer_bibtex
Loading lexer_caml
Loading lexer_cg
Loading lexer_cmake
Loading lexer_cpp
Loading lexer_css
Loading lexer_d
Loading lexer_diff
Loading lexer_f77
Loading lexer_fortran
Loading lexer_glsl
Loading lexer_gm
Loading lexer_haskell
Loading lexer_hitasm
Loading lexer_html
Loading lexer_java
Loading lexer_latex
Loading lexer_lisp
Loading lexer_lua
Loading lexer_make
Loading lexer_masm
Loading lexer_matlab
Loading lexer_nsis
Loading lexer_OgreCompositor
Loading lexer_OgreMaterial
Loading lexer_pascal
Loading lexer_perl
Loading lexer_postscript
Loading lexer_prg
Loading lexer_properties
Loading lexer_python
Loading lexer_rc
Loading lexer_ruby
Loading lexer_smalltalk
Loading lexer_sql
Loading lexer_squirrel
Loading lexer_vbscript
Loading lexer_verilog
Loading lexer_vhdl
Loading lexer_xml
Loading lexer_A68k
Loading lexer_ada
Loading lexer_angelscript
Loading lexer_bash
Loading lexer_batch
Loading lexer_bibtex
Loading lexer_caml
Loading lexer_cg
Loading lexer_cmake
Loading lexer_cpp
Loading lexer_css
Loading lexer_d
Loading lexer_diff
Loading lexer_f77
Loading lexer_fortran
Loading lexer_glsl
Loading lexer_gm
Loading lexer_haskell
Loading lexer_hitasm
Loading lexer_html
Loading lexer_java
Loading lexer_latex
Loading lexer_lisp
Loading lexer_lua
Loading lexer_make
Loading lexer_masm
Loading lexer_matlab
Loading lexer_nsis
Loading lexer_OgreCompositor
Loading lexer_OgreMaterial
Loading lexer_pascal
Loading lexer_perl
Loading lexer_postscript
Loading lexer_prg
Loading lexer_properties
Loading lexer_python
Loading lexer_rc
Loading lexer_ruby
Loading lexer_smalltalk
Loading lexer_sql
Loading lexer_squirrel
Loading lexer_vbscript
Loading lexer_verilog
Loading lexer_vhdl
Loading lexer_xml
Configured 7 tools
Scanning for plugins in C:\Users\Marius\Desktop\CodeBlocks/share/codeblocks/plugins
Loaded 17 plugins
Scanning for plugins in C:\Users\Marius\Desktop\CodeBlocks/share/codeblocks/plugins
Loaded 17 plugins
Loading:
Abbreviations
AStylePlugin
Autosave
ClassWizard
CodeCompletion
Compiler
CppCheck
Debugger
FilesExtensionHandler
HexEditor
OpenFilesList
ProjectsImporter
ScriptedWizard
SmartIndentCpp
SmartIndentXML
ToDoList
WindowsXPLookNFeel
Running startup script
Script plugin registered: Find Broken Files plugin
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'
Create new parser for project 'OBDtest1'
Project 'OBDtest1' parsing stage done!
Deleting parser for project 'OBDtest1'!
Create new parser for project 'OBDtest1'
Project 'OBDtest1' parsing stage done!
Launching tool 'Upload via USBtiny': C:\Users\Marius\Desktop\CodeBlocks/cb_console_runner.exe bin/avrdude -e -F -C bin/avrdude.conf -V -patmega644p -cusbtiny -Pusb -Uflash:w:C:\Users\Marius\Desktop\OBD Project\OBD Prototype\OBDtest1\/build\OBDtest1_uduino644p.elf.hex:i  -Ueeprom:w:C:\Users\Marius\Desktop\OBD Project\OBD Prototype\OBDtest1\build\OBDtest1_uduino644p.elf.eep.hex:i (in C:\Users\Marius\Desktop\CodeBlocks\bin)
Tool execution terminated with status 1
By MrIon
#5467
Nevermind I figured it out. I had spaces in the my folder structures and it didn't like that( for example OBD Project) as soon as I named it OBDProject and resaved it worked.
By MrIon
#5468
I made an app that connected to the ble frematics in Android. Now how do I grab information from the bluetooth in order to get lets say the engine RPM?
By MrIon
#5470
the datalogger is already on the m644p right? I suggest disabling LCD display by uncommenting the line in config.h:
[code]LCD_Null lcd;[/code]

and comment out:
[code]LCD_SSD1306 lcd;[/code]