Page 1 of 1

请问如何在代码中获取模组sn?

Posted: 2025年 Aug 20日 15:30
by mark_ren

如题,请问如何在代码中获取模组sn?


Re: 请问如何在代码中获取模组sn?

Posted: 2025年 Aug 20日 15:36
by 愚者千虑必有一得

设备里一般不写入SN号,无法读取。


Re: 请问如何在代码中获取模组sn?

Posted: 2025年 Aug 20日 18:01
by mark_ren

不能吧,mcu链接模组可以通过uart拿到sn号,那么模组内部肯定是可以获取到的


Re: 请问如何在代码中获取模组sn?

Posted: 2025年 Aug 20日 18:14
by 愚者千虑必有一得

正常产测不写SN的,你拿到的可能是mac地址啥的。


Re: 请问如何在代码中获取模组sn?

Posted: 2025年 Aug 20日 18:29
by mark_ren

请问如何获取到mac地址


Re: 请问如何在代码中获取模组sn?

Posted: 2025年 Aug 20日 18:31
by mark_ren

主要是想知道调用的api是哪个


Re: 请问如何在代码中获取模组sn?

Posted: 2025年 Aug 21日 09:11
by mark_ren

模组和IOT通信的时候,会上报自己的sn,所以肯定有代码获取模组sn的


Re: 请问如何在代码中获取模组sn?

Posted: 2025年 Aug 21日 14:26
by 一线长天

获取到mac地址:OPERATE_RET tal_wifi_get_mac(WF_IF_E wf, NW_MAC_S *mac)

模组和IOT通信的时候,会上报自己的sn,所以肯定有代码获取模组sn的
---------有设备日志么?模组没有sn,也不会上报sn