servalproject / mesh-extender-builder

Creates firmware and file system images for easy building of Serval Mesh Extenders
10 stars 6 forks source link

Unable to get High-power output on the TL-MR3040 #9

Open cowherdboy opened 7 years ago

cowherdboy commented 7 years ago

Hello Paul,

I have successfully got high-power output enabled on the TL-MR3020. However, on the TL-MR3040 (v2 HW) the output power does not go more than -20 dBm (on the Spectrum Analyzer). Even after manually programming the radio to +30 dBm, it goes back to -20 dBm when lbard is started. I have ensured that hipower.en file is placed in the /dos directory but the EEPROM gets programmed back to TXPOWER=1dBm when lbard is started. On the MR3020 I get the following warning: "Setting radio to hipower -- you need a special spectrum license to do this!" but not on the MR3040. Please let me know what could be the problem.

gardners commented 7 years ago

Hello,

The GPIO for the switch is probably different. I am going to patch LBARD so that it doesn't do the low-power/hi-power select anymore, anyway, as it is no longer required under the revised Australian ISM band regulations (but this may not be the case in your jurisdiction, so please check). I have just pushed the patch to the master branch on lbard. Please compile a new lbard binary and try again.

Else find a way to control GPIO 18.

Paul.

On Thu, Dec 22, 2016 at 11:29 AM, cowherdboy notifications@github.com wrote:

Hello Paul,

I have successfully got high-power output enabled on the TL-MR3020. However, on the TL-MR3040 (v2 HW) the output power does not go more than -20 dBm (on the Spectrum Analyzer). Even after manually programming the radio to +30 dBm, it goes back to -20 dBm when lbard is started. I have ensured that hipower.en file is placed in the /dos directory but the EEPROM gets programmed back to TXPOWER=1dBm when lbard is started. On the MR3020 I get the following warning: "Setting radio to hipower -- you need a special spectrum license to do this!" but not on the MR3040. Please let me know what could be the problem.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/servalproject/mesh-extender-builder/issues/9, or mute the thread https://github.com/notifications/unsubscribe-auth/AAonT-4Ys4vsjv21irJ0f5hQ2fGzDd51ks5rKlEngaJpZM4LT2IA .

cowherdboy commented 7 years ago

Hi Paul,

Thanks for the patch. Would appreciate your help to point me to instructions on cross compiling for the ar71xx.

Merry Christmas.

cowherdboy commented 7 years ago

Hi Paul,

I need some help on compiling lbard. I used the openwrt compiler: mips-openwrt-linux-gcc and used it in your CC flag in the Makefile

The executable was created and I copied the same into the serval directory. However, when I start the device I get the following error: /etc/serval/runlbard: line 43: /serval/lbard: not found

I can confirm that the executable lbard is located in the /serval directory and the attributes are set correctly.

Maybe there are some linking issues. Please let me know how to correctly compile lbard for ar71xx.

gardners commented 7 years ago

Hello,

Can you email me the binary, and I can check if it looks okay?

Otherwise for cross-compiling, the mesh-extender-builder repository should build a valid lbard binary itself.

Paul.

On Fri, Jan 6, 2017 at 2:48 AM, cowherdboy notifications@github.com wrote:

Hi Paul,

I need some help on compiling lbard. I used the openwrt compiler: mips-openwrt-linux-gcc and used it in your CC flag in the Makefile

The executable was created and I copied the same into the serval directory. However, when I start the device I get the following error: /etc/serval/runlbard: line 43: /serval/lbard: not found

I can confirm that the executable lbard is located in the /serval directory and the attributes are set correctly.

Maybe there are some linking issues. Please let me know how to correctly compile lbard for ar71xx.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/servalproject/mesh-extender-builder/issues/9#issuecomment-270810287, or mute the thread https://github.com/notifications/unsubscribe-auth/AAonT9qX6v0uiRAGz4MppGpMAyRdYf1vks5rPZ1lgaJpZM4LT2IA .

cowherdboy commented 7 years ago

Hi Paul,

I have attached the file.

Regards,

Pannir

On Fri, Jan 6, 2017, at 04:57 PM, gardners wrote:

Hello,

Can you email me the binary, and I can check if it looks okay?

Otherwise for cross-compiling, the mesh-extender-builder repository should build a valid lbard binary itself.

Paul.

On Fri, Jan 6, 2017 at 2:48 AM, cowherdboy notifications@github.com wrote:

Hi Paul,

I need some help on compiling lbard. I used the openwrt compiler:

mips-openwrt-linux-gcc and used it in your CC flag in the Makefile

The executable was created and I copied the same into the serval

directory. However, when I start the device I get the following error: /etc/serval/runlbard: line 43: /serval/lbard: not found

I can confirm that the executable lbard is located in the /serval

directory and the attributes are set correctly.

Maybe there are some linking issues. Please let me know how to correctly compile lbard for ar71xx.

You are receiving this because you commented.

Reply to this email directly, view it on GitHub

https://github.com/servalproject/mesh-extender-builder/issues/9#issuecomment-270810287 , or mute the thread

https://github.com/notifications/unsubscribe-auth/AAonT9qX6v0uiRAGz4MppGpMAyRdYf1vks5rPZ1lgaJpZM4LT2IA .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub[1], or mute the thread[2].

--

Pannirselvam Kanagaratnam

pannir@xsmail.com

Links:

  1. https://github.com/servalproject/mesh-extender-builder/issues/9#issuecomment-270859641
  2. https://github.com/notifications/unsubscribe-auth/AGe-efIORzB9dUSZQDXLgWcuW8d68KBmks5rPgHqgaJpZM4LT2IA
cowherdboy commented 7 years ago

lbard.zip I am attaching the lbard in zip format.

Do you mean that when I run gather-image-files, lbard will be pulled from git and compiled and not the binary from the /servald folder?

cowherdboy commented 7 years ago

I was able to compile it using the toolchain from the uClibc buildroot system. The high power is working now on the MR3040. The openwrt compiler is linking other files instead of uClibc. What is the default high power value? Can I change the value? On the radio.c I see high power programmed with "write_all(serialfd,"!H",2)==-1" and not any specific value. How do I programme a specific value?

gardners commented 7 years ago

Hello,

Glad you got it working. The high/low power level values are set in our custom RFD900 firmware itself. Note that we will be removing the lo/high power setting soon, as the Australian radio regulations have changed, so that we believe that we no longer need to use it, assuming that our understanding of the spectral density of the RFD900 radio is correct.

Paul.

On Thu, Jan 12, 2017 at 3:54 AM, cowherdboy notifications@github.com wrote:

I was able to compile it using the toolchain from the uClibc buildroot system. The high power is working now on the MR3040. The openwrt compiler is linking other files instead of uClibc. What is the default high power value? Can I change the value? On the radio.c I see high power programmed with "write_all(serialfd,"!H",2)==-1" and not any specific value. How do I programme a specific value?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/servalproject/mesh-extender-builder/issues/9#issuecomment-272062237, or mute the thread https://github.com/notifications/unsubscribe-auth/AAonTzdCB_wzvHPcM3GfcQViiRUHh1fYks5rRZXNgaJpZM4LT2IA .

cowherdboy commented 7 years ago

Hi Paul,

Is the source code for your custom RFD900 firmware available for public use?