我已经通过论坛的其余文档,但它没有帮助。
我的代码如下:
struct gapm_use_enc_block_cmd *enccmd = KE_MSG_ALLOC(gapm_use_enc_block_cmd, TASK_GAPM, TASK_APP,gapm_use_enc_block_cmd); < br / > enccmd→操作= GAPM_USE_ENC_BLOCK; < br / > uint8_t关键[16]= {0 x00 0 x01 0 x02, 0 x03, 0 x04 0 x05 0 x06 0 x07, 0 (0 x09 0 x0a 0 x0b 0 x0c 0 x0d 0 x0e 0 x0f}; < br / > uint8_t pt [16] = {0 x00 (x11) 0 0将0 x33, 0 x44 0 x55 0 x66 0 x77 0 x88 0 x99 0 xaa 0 xbb 0 xcc, 0 xdd 0 xee, 0 xff}; < br / > memcpy (enccmd→operand_1,钥匙,16);< br / >memcpy (enccmd→operand_2、pt、16);< br / > ke_msg_send (enccmd); < / p > < p >这是底部的user_app_init (); < / p > < p >, < / p > < p >我添加user_catch_rest_hndl < / p > < p >案例GAPM_USE_ENC_BLOCK_IND: < br / > {< br / > struct GAPM_USE_ENC_BLOCK_IND const * msg_param = (struct GAPM_USE_ENC_BLOCK_IND const *)(参数),< br / > uint8_t密文[16],< br/ > memcpy(密文,msg_param→结果,16);< br / >如果(密文[0]= = 0 x01) {< br / >密文[0]+ +;< br / >} < / p > < p >如果(密文[0]= = 0 x01) {< br / >——密文[0];< br / >} < br / >} < br / >打破;< / p > < p >添加断点,但似乎从未的消息。你能帮我找出我失踪/做错了什么? < / p > < p >谢谢< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords /加密”typeof = " skos:概念”属性= " rdfs: label skos: prefLabel”数据类型= " " >加密< / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords / aes”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > aes < / > < / div > < / div > < / div > < div class =”字段field-name-field-device field-type-taxonomy-term-reference field-label-above”> < div