TI例子默认是兼容所有模式吗?
如果应用层的代码已经实现了。那是应该按照什么模式运行
Viki Shi:
不太明白,可否提供更详细的问题描述
user5322468:
回复 Viki Shi:
#defineFEATURE_ALL_MODES
/*! If defined, builds the image with the frequency mode of operation */
#undef FEATURE_FREQ_HOP_MODE/*! If defined, builds the image with beacon mode of operation */
#undef FEATURE_BEACON_MODE/*! If defined, builds the image with non beacon mode of operation */
#undefFEATURE_NON_BEACON_MODE/*! Builds the image with the full function device */
#define FEATURE_FULL_FUNCTION_DEVICE我如果要使用非信标模式,是要改动#defineFEATURE_NON_BEACON_MODE?
还是说我直接用#defineFEATURE_ALL_MODES,然后CONFIG_MAC_BEACON_ORDER 等于15就可以了。
二者有什么区别。
Viki Shi:
回复 user5322468:
Features.h allows the user to compile only the features needed for the mode of operation needed, which facilitates memory savings. Out of the box FEATURE_ALL_MODES is defined which enables all modes of operation and FEATURE_MAC_SECURITY is define which enable security.
The user can only define one of the features among the following options.
FEATURE_FREQ_HOP_MODE – frequency hopping mode of operation
FEATURE_BEACON_MODE – beacon mode of operation
FEATURE_NON_BEACON_MODE – nonbeacon mode of operation
FEATURE_MAC_SECURITY – enable security
FEATURE_BLE – enable uBLE stack operations如上,FEATURE_ALL_MODES默认开启,会使用更多的内存,如果需要个性化的配置,也可以自己更改
user5322468:
回复 Viki Shi:
入手cc1310,忽略了这处问题。我使用的是#define FEATURE_ALL_MODES
CONFIG_MAC_BEACON_ORDER 等于15应用层的代码完善了,可以入网,通讯。因为内存的问题我完善,改动#define FEATURE_NON_BEACON_MODE,非信标模式
现在导致网络无法入网。请问我要使用此模式正常通讯,应该如何完善
Viki Shi:
回复 user5322468:
CONFIG_MAC_SUPERFRAME_ORDER也要设置,并且collector和 sensor直接的设置必须匹配
Superframe order, according to mode of operation: For nonbeacon and frequency-hopping modes, set this value to 15 for both collector and sensor. For beacon mode, this value can be from 1 to 14, and must match for both collector and sensor.
user5322468:
回复 Viki Shi:
你上述说的这些值都是匹配的。config里面的设置都是使用的默认设置。可是还是无法入网。
YiKai Chen:
回复 user5322468:
TI 15.4 例程預設就是非信标模式、直接編譯應該就可以正常運作
user5322468:
回复 YiKai Chen:
例子的里面的Features.h,启动的是所有模式呀,但是例子的设置是按照非信标来更改的?
如果是:为何把Features.h中的FEATURE_ALL_MODES改为FEATURE_NON_BEACON_MODE,就无法入网。sensor和collector二边都做了修改
user5322468:
回复 YiKai Chen:
为什么入网始终无法进行,改为这个才可以,FEATURE_ALL_MODES,
FEATURE_NON_BEACON_MODE,看文档中非信标的入网,和我的没有区别,我这边抓包信息是一直sensor发送入网请求,collector无任何回应。collector打开了入网许可,灯闪烁状态。