Closed nimasaj closed 5 years ago
There is already a setPowerMode() function here. The function you are referring to is to set to continuous wave, only usefull in test mode.
setPowerMode()
is used for power management of the module itself (to set it in standby, sleep or deep sleep mode). Is it possible to change transmission power of the module from 14 dBm to 12 dBm or less?
You are right. I don't think you can change the transmission power, it is by default at 14dBm
You can adjust radio output power with following command, based on table 11:
ATS302=12
// here 12 represents output power in dBm. By default it is set to 14 dBm
Command | Function | Description |
---|---|---|
ATSuint=uint |
Set Register | Change a configuration register. |
Register | Name | Description | Default | Range | Units |
---|---|---|---|---|---|
302 |
Power Level | The output power of the radio. Note: This setting is used for all TX modes except AT$CW. | 14 | 0 - 14 | dBm |
Datasheet: https://www.onsemi.com/pub/Collateral/AX-SFEU-D.PDF
You can update the library to support transmission power as well.
I think you have to edit line 149 in IO_WSSFM10.cpp
to change Sigfox.print(mode);
to Sigfox.print(power);
.
You were right, this is now fixed in https://github.com/adrien3d/IO_WSSFM10-Arduino/commit/c343b05925e36c57431b1c37b2d1912fd670b87c
Could you please add support to adjust transmission power?
Description is available in pages 8 (table 7) and 12 (table 10) of datasheet. The output power of the AX−Sigfox can be programmed in 1 dB steps from 0 dBm – 14 dBm.
Datasheet:
https://www.onsemi.com/pub/Collateral/AX-SIGFOX-D.PDF
Table 7:
AT$CW=868130000,1,0
AT$CW=868130000,1,14
Table 10: