#include "mag_service.h"\r
#include "nandflash_config.h"\r
#include "string.h"\r
-#include "custom_utils.h"\r
#include "custom_runtime.h"\r
#include "bletest.h"\r
#pragma pack(1)\r
0x06,\r
&send_data,\r
1);\r
- }\r
+ } else if(testitem == 0x07)\r
+ {\r
+ //获取cywee chipinfo\r
+ char chipinfo[64] = {0};\r
+ uapi_cywee_get_chipinfo(chipinfo,sizeof(chipinfo));\r
\r
+ factorytest_protocol_replymsg(BLE_TEST_CMD_MODE_SOFT_TEST,\r
+ BLE_TEST_CMD_SOFT_TEST_SUB_MODE_ACC,\r
+ 0x07,\r
+ (uint8_t *)chipinfo,\r
+ strlen(chipinfo));\r
+ }\r
break;\r
\r
case BLE_TEST_CMD_SOFT_TEST_SUB_MODE_HRS:\r
void cywee_ar_alert_switch(int cmd);
void cywee_save_data(void);
void step_history_save(void);
+void cywee_get_chipinfo(char *databuf,uint8_t len);
extern uint8_t hrs_mode_state;
#pragma pack()
int history_step_=0;//存一个小时前的步数数据,每次保存步数时会更新改数据
+static char chipInfo[64] = {0};
+
int cm__hs1__init(void);
int cm__hs1__deinit(void);
+void cywee_get_chipinfo(char *databuf,uint8_t len)
+{
+ memcpy_s(databuf,len,chipInfo,strlen(chipInfo));
+}
+
void cywee_save_data(void)
{
CWM_OS_saveData(&stepcount,sizeof(int));
-
}
void step_history_save(void)
CWM_SettingControl(SCL_AR_ALERT_CONFIG, &scl);
}
-
void cywee_hand_updown_switch(int cmd)
{
if(cmd == 1)
#endif
//get chip information
- char chipInfo[64];
-
memset(&scl, 0, sizeof(scl));
scl.iData[0] = 1;
scl.iData[1] = 1;
PRINT("cywee id : 0x%X \r\n",id);
}
+void uapi_cywee_get_chipinfo(char *databuf,uint8_t len)
+{
+ cywee_get_chipinfo(databuf,len);
+}
+
#ifdef SUPPORT_ALIPAY_SEC
#include "alipay_feature.h"
int custom_exit_lpm(void)
void uapi_cywee_get_sleep_data(void);
void uapi_cywee_set_user_info(int user_info[5]);
void uapi_cywee_time_sync(void);
-
+void uapi_cywee_get_chipinfo(char *databuf,uint8_t len);
#include "custom_utilscpp.h"