Page 1 of 1

How to build stock firmware?

Posted: Tue Aug 12, 2014 3:37 am
by BoxOfSnoo
Hi, I asked this before, but like many messages, they got lost on the forum.

I have been fighting with this for about a month.

I have tried many, many, many combinations of the settings in the config.h and I can't get a baseline that is anywhere near the stock functionality of the .hex file you distribute. I can get it to connect over BLE but it works at a fraction 10% of the speed and delivers PIDs the iOS app can't decipher (<0x0020> instead of ACC, etc). The Live Data display is basically useless.

Here is my config.h:

Code: Select all

#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED

/**************************************
* Data logging/streaming out
**************************************/

// enable(1)/disable(0) data logging (if SD card is present)
#define ENABLE_DATA_LOG 1

// enable(1)/disable(0) data streaming
#define ENABLE_DATA_OUT 1

// uses software(1)/hardware(0) serial for data streaming
#define USE_SOFTSERIAL 1

// this defines the format of data streaming
// FORMAT_BIN is required by Freematics OBD iOS App
#define STREAM_FORMAT FORMAT_BIN

/* Default streaming baudrates:
   9600bps for BLE
   38400bps for BT 2.1
*/
#define STREAM_BAUDRATE 9600

// outputs debug information
#define VERBOSE 0

/**************************************
* Choose SD pin here
**************************************/
//#define SD_CS_PIN SS // generic
//#define SD_CS_PIN 4 // ethernet shield
//#define SD_CS_PIN 7 // microduino
#define SD_CS_PIN 10 // SD breakout

/**************************************
* Other options
**************************************/
// minimum time for a loop (set in case OBD-II polling is too fast)
#define LOOP_INTERVAL 100 /* ms */

// enable(1)/disable(0) accelerometer/gyro
#define USE_ACCEL 1

// enable(1)/disable(0) GPS module
#define USE_GPS 0
#define LOG_GPS_NMEA_DATA 1
#define LOG_GPS_PARSED_DATA 0

#endif // CONFIG_H_INCLUDED


What is your secret?

Re: How to build stock firmware?

Posted: Wed Aug 20, 2014 5:10 pm
by stanley
Maybe you can try disabling logging first.

Re: How to build stock firmware?

Posted: Thu Aug 21, 2014 10:40 am
by BoxOfSnoo
Doesn't help.

Re: How to build stock firmware?

Posted: Thu Dec 04, 2014 8:57 pm
by hanifkhan
have tried many, many, many combinations of the settings in the config.h and I can't get a baseline that is anywhere near the stock functionality of the .hex file you distribute. I can get it to connect over BLE but it works at a fraction 10% of the speed and delivers PIDs the iOS app can't decipher (<0x0020> instead of ACC, etc). The Live Data display is basically useless.

Re: How to build stock firmware?

Posted: Mon Dec 08, 2014 7:02 am
by Marek
Maybe it would be a good idea to work out instructions on how to build the firmware I'd love to help myself

Re: How to build stock firmware?

Posted: Sun Dec 14, 2014 1:42 am
by BoxOfSnoo
Is this project dead?

Re: How to build stock firmware?

Posted: Tue Dec 16, 2014 3:30 pm
by stanley
Again, the stock firmware is built with the totally same code from what is comitted to the github.