编辑日期 2015年11月22日
版本:第一版
1、 上报用户状态
(1) url: http://120.25.84.123/Noise/ReportUserState 方法:post
(2) 参数说明(都是String类型)
参数 | 含义 | 举例 |
reportTime | 手机时间 | 2015-11-22 20:09:23 |
IMEI | 手机IMEI号 | 12345 |
(3) 返回json
{
“status”:1,
“data”:”success”
}
status:1或者0;1代表上报成功,0代表上报失败。
2、 获取声源
(1) url: http://120.25.84.123/Noise/GetSoundSource方法:get
(2) 参数:无
(3) 返回json
{
"status":1,
"data":
[
{"ssi_item_cn":"测试1","ssi_item_en":"test1","ssi_id":1,"ssi_code":"001","ssi_type":"00"},{"ssi_item_cn":"测试2","ssi_item_en":"test2","ssi_id":2,"ssi_code":"002","ssi_type":"00"},{"ssi_item_cn":"测试3","ssi_item_en":"test3","ssi_id":3,"ssi_code":"011","ssi_type":"01"},{"ssi_item_cn":"测试4","ssi_item_en":"test4","ssi_id":4,"ssi_code":"021","ssi_type":"02"}
]
}
status:1返回成功,status:0,返回失败。
返回成功:data是json数组。
ssi_item_cn:中文声源名称,ssi_item_en:英文声源名称,ssi_id:声源ID,ssi_code:声源代码,ssi_type:声源分类。
3、 上报测试结果数据
(1) url: http://120.25.84.123/Noise/ReportSPLValue方法:post
(2) 参数说明(都是String类型)
参数 | 含义 | 举例 |
time | 手机时间 | 2015-10-28 12:00:00 |
IMEI | IMEI号 | 123445 |
modelType | 手机型号 | HTC |
earphone | 耳机状态 | 0 |
lng | 经度 | 123.34551 |
lat | 纬度 | 23.2342 |
alt | 海拔 | 1213.45 |
acc | 精确度 | 23.12 |
spl | 声压级 | 45.2 |
source | 声源 | 11,21,31 |
asmt | 评价结果 | -1,2,-1 |
gender | 性别 | 1 |
age | 年龄段 | 3 |
(3) 返回json
{
“status”:1,
“data”:”success”
}
Status:1或者0;1代表上报成功,0代表上报失败。
4、 获取提醒
(1)url: http://120.25.84.123/Noise/GetSoundSource 方法:get
(2)参数:无
(3)返回json
{
"status":1,
"data":{
"t_tiptxt_en":"welcome, this is anapplication to evaluate the noise bla blabla","t_id":3,"t_tiptxt_cn":"欢迎使用噪音环境检测app"
}
}