|
發表於 2014年8月8日 04:24 PM
|
顯示全部樓層
本帖最後由 limingg 於 2014年8月8日 04:28 PM 編輯
看code有Frequency HOPPING,所以應該會自己跳號。而且header前4 byte可以自行定義header format,如果header不一樣就不會接受通訊,所以如果頻道跟頻率一樣,有header這一層,RX收到也會因為header不同而忽略。
可能就是用一個script command,搭配CLI的compiler 指令,random跑一些值自動填進去,就可以compile出不同韌體,這樣相同的機率就比較小了。
但是...github那邊的code怎跟code.google那邊差這麼多@@?
//###### HOPPING CHANNELS #######
//Select the hopping channels between 0-255
// Default values are 13,54 and 23 for all transmitters and receivers, you should change it before your first flight for safety.
//Frequency = CARRIER_FREQUENCY + (StepSize(60khz)* Channel_Number)
static unsigned char hop_list[3] = {13,54,23};
//###### RF DEVICE ID HEADERS #######
// Change this 4 byte values for isolating your transmission, RF module accepts only data with same header
static unsigned char RF_Header[4] = {'O','L','R','S'};
|
|