Filter operatingSystem for mobile or desktop

Hi,

I am using Piwik 1.10.1 and I am struggling with an issue - when making API request(for example “UserCountry.getCountry”) and passing segment=operatingSystem as filter where filter values for desktop are
’WI8’, ‘WI7’, ‘WVI’, ‘WS3’, ‘WXP’, ‘W2K’, ‘WNT’, ‘WME’, ‘W98’, ‘W95’, ‘LIN’, ‘MAC’, ‘SOS’, ‘AIX’, ‘HP-UX’, ‘BSD’, ‘NBS’, ‘OBS’, ‘DFB’, ‘SYL’, ‘IRI’, ‘T64’, ‘VMS’, ‘OS2’, ‘BEOS’, 'AMI’
but for mobile -
‘IPD’, ‘IPA’, ‘IPH’, ‘AND’, ‘WPH’, ‘WMO’, ‘WCE’, ‘WII’, ‘PS3’, ‘PSP’, ‘NDS’, ‘DSI’, ‘MAE’, ‘WOS’, ‘POS’, ‘BLB’, ‘QNX’, ‘SYM’, ‘SBA’

Problem is that is doesnt seems to be working properly cause for the moment results are as following:
Desktop+mobile(without this filter) is the same as filter desktop and filter mobile is not as it appears in Piwik backend.

Maybe there is something wrong trying to filter them this way? Can somone point me in the correct way?

Best regards, Janis!

what exact segment do you use ?

Request to Piwik for desktop devices looks like this:
http://site.com/piwik/?idSite=31&period=day&date=2013-01-15,2013-02-15&segment=operatingSystem==WI8,operatingSystem==WI7,operatingSystem==WVI,operatingSystem==WS3,operatingSystem==WXP,operatingSystem==W2K,operatingSystem==WNT,operatingSystem==WME,operatingSystem==W98,operatingSystem==W95,operatingSystem==LIN,operatingSystem==MAC,operatingSystem==SOS,operatingSystem==AIX,operatingSystem==HP-UX,operatingSystem==BSD,operatingSystem==NBS,operatingSystem==OBS,operatingSystem==DFB,operatingSystem==SYL,operatingSystem==IRI,operatingSystem==T64,operatingSystem==VMS,operatingSystem==OS2,operatingSystem==BEOS,operatingSystem==AMI&module=API&method=API.get&token_auth=token&format=json

For mobile:
http://site.com/piwik/?idSite=31&period=day&date=2013-01-15,2013-02-15&segment=operatingSystem==IPD,operatingSystem==IPA,operatingSystem==IPH,operatingSystem==AND,operatingSystem==WPH,operatingSystem==WMO,operatingSystem==WCE,operatingSystem==WII,operatingSystem==PS3,operatingSystem==PSP,operatingSystem==NDS,operatingSystem==DSI,operatingSystem==MAE,operatingSystem==WOS,operatingSystem==POS,operatingSystem==BLB,operatingSystem==QNX,operatingSystem==SYM,operatingSystem==SBA&module=API&method=API.get&token_auth=token&format=json

can you replicate this bug using demo.piwik.org as example ?

Data(without device filter) - http://demo.piwik.org/index.php?module=API&method=API.get&idSite=7&period=range&date=2013-01-15,2013-02-15&format=xml&token_auth=anonymous
gives 36033 nb_visits

Data(with desktop filter) - http://demo.piwik.org/index.php?module=API&method=API.get&idSite=7&period=range&date=2013-01-15,2013-02-15&format=xml&token_auth=anonymous&segment=operatingSystem==WI8,operatingSystem==WI7,operatingSystem==WVI,operatingSystem==WS3,operatingSystem==WXP,operatingSystem==W2K,operatingSystem==WNT,operatingSystem==WME,operatingSystem==W98,operatingSystem==W95,operatingSystem==LIN,operatingSystem==MAC,operatingSystem==SOS,operatingSystem==AIX,operatingSystem==HP-UX,operatingSystem==BSD,operatingSystem==NBS,operatingSystem==OBS,operatingSystem==DFB,operatingSystem==SYL,operatingSystem==IRI,operatingSystem==T64,operatingSystem==VMS,operatingSystem==OS2,operatingSystem==BEOS,operatingSystem==AMI
gives 34419 nb_visits

Data(with mobile filter) - http://demo.piwik.org/index.php?module=API&method=API.get&idSite=7&period=range&date=2013-01-15,2013-02-15&format=xml&token_auth=anonymous&segment=operatingSystem==IPD,operatingSystem==IPA,operatingSystem==IPH,operatingSystem==AND,operatingSystem==WPH,operatingSystem==WMO,operatingSystem==WCE,operatingSystem==WII,operatingSystem==PS3,operatingSystem==PSP,operatingSystem==NDS,operatingSystem==DSI,operatingSystem==MAE,operatingSystem==WOS,operatingSystem==POS,operatingSystem==BLB,operatingSystem==QNX,operatingSystem==SYM,operatingSystem==SBA
gives 1389 nb_visits

So dektop + mobile should be data(without filter) but 35808 is not 36033

This is a pretty small difference, mabe the differences are the "unknown " devices or some other you may have forgot to lits ?