Hi,
looking at the xe1205 driver located in $TOSROOT/chips/xe1205, it seems that
the only valid bitrate settings are those between 38085bps and 152340bps, and
I'm wondering why, since the Semtech XE1205 can operate also at 1.2kbps.
In $TOSROOT/chips/xe1205/conf/ there is the interface for physical parametes
settings called XE1205PhyConf.nc, where is defined the function
setBitrate(xe1205_bitrate_t bitrate) used to set the xe1205 bitrate.
The function is implemented in XE1205PhyRssiConfP.nc, but looking at the code I
noticed that:
command error_t XE1205PhyConf.setBitrate(xe1205_bitrate_t bitrate) {
...
if (bitrate < xe1205_bitrate_38085 || bitrate > xe1205_bitrate_152340)
return EINVAL;
...
}
So it seems that if the bitrate is not in the range of 38085 - 152340, the
function returns EINVAL.
Moreover, looking in the file XE1205.h, where the xe1205_bitrate_t is defined,
I noticed that:
typedef enum {
xe1205_bitrate_152340=152340U,
xe1205_bitrate_76170=76170U,
xe1205_bitrate_50780=50780U,
xe1205_bitrate_38085=38085U,
// xe1205_bitrate_30468=30468,
// xe1205_bitrate_19042=19042,
// xe1205_bitrate_12695=12695,
// xe1205_bitrate_8017=8017,
// xe1205_bitrate_4760=4760
} xe1205_bitrate_t;
So the bitrate values under 38085 aren't defined in the header file.
I was trying to understand why the bitrates under 38085 are not accepted.
In the Semtech datasheet I haven't found anything about invalid bitrates, and
it seems that the chip could achieve the 1.2kbps without problems.
Thank you for any explanation and clarification.
Best regards,
Samuele.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help