How to build stock firmware?

Inquiry and support for Freematics products
Post Reply
BoxOfSnoo
Posts: 12
Joined: Tue Jun 24, 2014 6:35 am

How to build stock firmware?

Post 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?
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: How to build stock firmware?

Post by stanley »

Maybe you can try disabling logging first.
BoxOfSnoo
Posts: 12
Joined: Tue Jun 24, 2014 6:35 am

Re: How to build stock firmware?

Post by BoxOfSnoo »

Doesn't help.
hanifkhan
Posts: 1
Joined: Thu Dec 04, 2014 8:55 pm

Re: How to build stock firmware?

Post 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.
hanif
Marek
Posts: 11
Joined: Mon Dec 08, 2014 6:56 am

Re: How to build stock firmware?

Post 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
BoxOfSnoo
Posts: 12
Joined: Tue Jun 24, 2014 6:35 am

Re: How to build stock firmware?

Post by BoxOfSnoo »

Is this project dead?
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

Re: How to build stock firmware?

Post by stanley »

Again, the stock firmware is built with the totally same code from what is comitted to the github.
Post Reply