Kit#3 with Bluetooth 2.1
Posted: Thu May 07, 2015 6:35 am
Hi,
I have a kit#3 with OBD-II Adapter for Arduino - Model B with MPU-6050, a GPS G6010 and Bluetooth 2.1.
I did a first test with the last sketch "megalogger-src-20150427" and I have a big problem:
- I can't detect bluetooth 2.1 on my iPhone 4S!
I have all the required libraries.
config.h:
Where is the error?
Thank you for helping me
I have a kit#3 with OBD-II Adapter for Arduino - Model B with MPU-6050, a GPS G6010 and Bluetooth 2.1.
I did a first test with the last sketch "megalogger-src-20150427" and I have a big problem:
- I can't detect bluetooth 2.1 on my iPhone 4S!
I have all the required libraries.
config.h:
Code: Select all
#ifndef CONFIG_H_INCLUDED
#define CONFIG_H_INCLUDED
/**************************************
* OBD-II Adapter options
**************************************/
#define OBD_ADAPTER_MODEL OBD_MODEL_I2C
//#define OBD_ADAPTER_MODEL OBD_MODEL_UART
#define OBD_PROTOCOL PROTO_AUTO
/**************************************
* Data logging options
**************************************/
// enable(1)/disable(0) data logging (if SD card is present)
#define ENABLE_DATA_LOG 1
#define SD_CS_PIN SS
/**************************************
* Data streaming options
**************************************/
// enable(1)/disable(0) data streaming
#define ENABLE_DATA_OUT 1
// uses software(1)/hardware(0) serial for data streaming
#define USE_SOFTSERIAL 0
// this defines the format of data streaming
// FORMAT_BIN is required by Freematics OBD iOS App
// FORMAT_CSV is for text-based output
#define STREAM_FORMAT FORMAT_BIN
/* Default streaming baudrates:
9600bps for BLE
38400bps for BT 2.1
*/
#define STREAM_BAUDRATE 38400
/**************************************
* GPS configuration
**************************************/
#define USE_GPS 1
#define GPSUART Serial2
#define MAX_GPS_PROCESS_TIME 50 /* ms */
#define GPS_DATA_TIMEOUT 2000 /* ms */
// 38400bps for G6010 5Hz GPS receiver
// 115200bps for G7020 10Hz GPS receiver
#define GPS_BAUDRATE 38400 /* bps */
/**************************************
* Accelerometer & Gyro
**************************************/
#define USE_MPU6050 1
//#define USE_MPU9150 1
#define ACC_DATA_RATIO 160
#define GYRO_DATA_RATIO 256
#define COMPASS_DATA_RATIO 8
/**************************************
* Timeout/interval options
**************************************/
#define OBD_MIN_INTERVAL 20 /* ms */
#define ACC_DATA_INTERVAL 200 /* ms */
/**************************************
* LCD module (uncomment only one)
**************************************/
LCD_SSD1289 lcd; /* 3.2" SSD12389 based TFT LCD */
//LCD_ILI9325D lcd; /* 2.8" ILI9325 based TFT LCD */
//LCD_ILI9341 lcd; /* 2.4" ILI9341 based SPI TFT LCD */
//LCD_Null lcd;
#endif
Where is the error?
Thank you for helping me