openxsensor causes sensor lost

Development & General Chat for the superb openxvario project.

Moderator: rainer

Post Reply
RCgirl
Posts: 25
Joined: Sun Mar 23, 2014 1:58 pm
Country: -

openxsensor causes sensor lost

Post by RCgirl »

I am using an openXsensor GPS on multiple models (FrSky SmartPort protocol), with success so far.
But recently, I added the FrSky MINI lipo voltage sensor, to measure cell voltages. When used separately, this sensor is detected and works correctly.
But whenever I combine it with my openXsensor GPS sensor, I get the "sensor lost" of the CELS value. All other telemetry values are unaffected.
I check in the code that ARDUINO_MEASURES_VOLTAGE is set to NO, and that NUMBEROFCELLS is commented out (I thought this could cause the interference).
What am I missing here?

mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: openxsensor causes sensor lost

Post by mstrens »

Perhaps, the 2 sensors share the same device ID.

You can try changing the device ID from oXs Gps.
It is in file oXs_config_advanced.h

It is defined in line
#define DATA_ID_GPS 0x83 // 3 used for GPS data

You can try using an other values than 0X83 but the value must be in the list below:
//list of 28 device ID codes is (in sequence)
//0x00,0xA1,0x22,0x83,0xE4,0x45,0xC6,0x67,0x48,0xE9,0x6A,0xCB,0xAC,0x0D,0x8E,0x2F,0xD0,0x71,0xF2,0x53,0x34,0x95,0x16,0xB7,0x98,0x39,0xBA,0x1B
RCgirl
Posts: 25
Joined: Sun Mar 23, 2014 1:58 pm
Country: -

Re: openxsensor causes sensor lost

Post by RCgirl »

Thanks, that was a valid option...alas, it didn't change the problem.
I experimented with all the device IDs in that file, but the problem is still there. The standard ID for the voltage sensor is 02, which should be out of the way of all the IDs used in the program.
It's a bit frustrating that I don't see how I can debug this problem...
Maybe I should try to measure cell voltages with the Arduino...that would normally solve the problem.

Post Reply

Return to “OpenXVario - an open source vario supported by the open source firmwares!!”