• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

In/Out errors :(

Wireless
27
97
78.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    hoba
    last edited by May 9, 2006, 7:24 AM

    You can change the values using the sysctl command from shell:

    Example:
    "sysctl dev.ath.0.txantenna" will list the value that is in use atm
    "sysctl dev.ath.0.txantenna=1" will set the value to 1

    If you want to make these changes static add these commands to your "/etc/sysctl.conf" so they will be set at bootup. You can do that easily by using diagnostics>edit file from the webgui.

    1 Reply Last reply Reply Quote 0
    • N
      nima.m
      last edited by May 9, 2006, 9:08 AM

      Thanks for the help Hoba, using the following command eliminated my in/out error :

      sysctl dev.ath.0.rxantenna=1
      sysctl dev.ath.0.txantenna=1
      sysctl dev.ath.0.diversity=0

      However, I can't make it work on statup, I put these command inside /etc/sysctl.conf and reboot the router :
      dev.ath.0.rxantenna=1
      dev.ath.0.txantenna=1
      dev.ath.0.diversity=0

      But after reboot, If I do sysct, It show the old figures.

      inside /etc/rc.bootup, I noticed that functions interfaces_wan_configure()  interfaces_lan_configure()  interfaces_vlan_configure(); are called after system_setup_sysctl()
      Can those function overwrite my sysctl command.

      I also noticed the function system_do_shell_commands() (/* run any shell commands specified in config.xml */)
      Where inside config.xml file I can put my shell command ?
      Maybe puting my sysctl command there would help.

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by May 9, 2006, 9:26 AM May 9, 2006, 9:24 AM

        Maybe http://pfsense.blogspot.com/2005/06/new-xml-system-tag-introduced.html (another of our hidden xml options: http://faq.pfsense.com/index.php?action=artikel&cat=10&id=38&artlang=en&highlight=hidden ) would be a good option to put it as this then will also be run after you changed wireless settings from the gui. Please try and report back.
        Btw, we are working on getting these advanced options in the gui for pfSense 1.1.

        1 Reply Last reply Reply Quote 0
        • N
          nima.m
          last edited by May 9, 2006, 10:14 AM

          Hoba thank you very much for all help.

          I now manage to reduce my In/Out Error to 3 figures instead of 6 figures.
          In my configuration, I have only one antenna connected to CM9 card.

          1. Based on lsf recomendation,the first thing I did was changing my pfsense config trough webGUI to :
          Standard = 802.11g
          Mode = Access Point
          802.11g OFDM Protection Mode = Protection mode RTS and CTS
          802.11g only = Check
          Transmit power = 20
          Channel = Auto
          Distance setting = 30

          2. Based on Hobas help, I changed my Antenna configuration trough shell :
          sysctl dev.ath.0.rxantenna=1
          sysctl dev.ath.0.txantenna=1
          sysctl dev.ath.0.diversity=0

          3. Again, based on Hobas Help, I modify my /cf/conf/config.xml :
          Find the tag :

          Change it to :
          <shellcmd>sysctl dev.ath.0.rxantenna=1;sysctl dev.ath.0.txantenna=1;sysctl dev.ath.0.diversity=0</shellcmd>

          4.Reboot

          Hoba, maybe you should update WIKI for Wirless and explain how to change sysctl command and put it on startup (Number 2 and 3)

          1 Reply Last reply Reply Quote 0
          • H
            hoba
            last edited by May 9, 2006, 11:26 AM

            Maybe we should hardcode these settings for pfSense 1.0. This way it will work for people regardless if they have 1 antenna or 2 (one of them then would simply not be used though present unless you change the sysctl's). Like written in my earlier post the next pfSense version should have settings for these values at the webgui. Updating the wiki won't hurt. I'll do that later (unless lsf does this before I find the time  ;) ).

            1 Reply Last reply Reply Quote 0
            • N
              nima.m
              last edited by May 9, 2006, 11:40 AM

              Right now I am using BETA3-PLUS-11548-PLUS-11567

              I changed /cf/conf/config.xml from :

              To :
              <afterfilterchangeshellcmd>sysctl dev.ath.0.rxantenna=1;sysctl dev.ath.0.txantenna=1;sysctl dev.ath.0.diversity=0</afterfilterchangeshellcmd>

              and save the file.

              But when I changed some configuration in WebGui for my WLAN, the <afterfilterchangeshellcmd>inside config.xml had been removed automaticly.</afterfilterchangeshellcmd>

              1 Reply Last reply Reply Quote 0
              • N
                nima.m
                last edited by May 9, 2006, 2:31 PM

                Hoba,

                I did some more testing and now I fiugre out what should be done.
                Whenever, you change the /cf/conf/config.xml  file, you need to reboot the router immediately once .

                So this is how I make it work :

                1.Search /cf/conf/config.xml for

                Replace it with :
                <afterfilterchangeshellcmd>sysctl dev.ath.0.rxantenna=1;sysctl dev.ath.0.txantenna=1;sysctl dev.ath.0.diversity=0</afterfilterchangeshellcmd>

                2.Reboot

                3.Now, Whenever you change config for interfaces inside WebGUI, you don't loose the wirless parameters.

                1 Reply Last reply Reply Quote 0
                • S
                  sullrich
                  last edited by May 9, 2006, 2:33 PM

                  You have to remove /tmp/rules.debug as well after changing config.xml as its the cached version and will simply overwrite config.xml on the next filter reload operation.

                  So technically the reboot is not needed.

                  1 Reply Last reply Reply Quote 0
                  • B
                    billm
                    last edited by May 9, 2006, 4:35 PM

                    @sullrich:

                    You have to remove /tmp/rules.debug as well after changing config.xml as its the cached version and will simply overwrite config.xml on the next filter reload operation.

                    So technically the reboot is not needed.

                    close… /tmp/config.cache :)

                    --Bill

                    pfSense core developer
                    blog - http://www.ucsecurity.com/
                    twitter - billmarquette

                    1 Reply Last reply Reply Quote 0
                    • S
                      sullrich
                      last edited by May 9, 2006, 6:02 PM

                      @billm:

                      @sullrich:

                      You have to remove /tmp/rules.debug as well after changing config.xml as its the cached version and will simply overwrite config.xml on the next filter reload operation.

                      So technically the reboot is not needed.

                      close… /tmp/config.cache :)

                      --Bill

                      Grr.  Bill is absolutely right.  This head cold is driving me ape shit.

                      1 Reply Last reply Reply Quote 0
                      • P
                        pcatiprodotnet
                        last edited by May 10, 2006, 9:35 PM

                        My Tx was set to 0, and Rx to 1 (on Atheros).
                        Is 0 or 1 the First antenna?  And, what does it mean when set to "2".
                        Thank you,
                        -Pete

                        1 Reply Last reply Reply Quote 0
                        • H
                          hoba
                          last edited by May 10, 2006, 9:39 PM

                          The second time I link to http://forum.pfsense.org/index.php?topic=1149.msg6765#msg6765 in this thread  :P

                          1 Reply Last reply Reply Quote 0
                          • P
                            pcatiprodotnet
                            last edited by May 10, 2006, 9:49 PM May 10, 2006, 9:40 PM

                            Thanks hoba!
                            Although it's fairly obvious, I was just hoping to see it spelled out in no uncertain terms that 0=Main and 1=Aux.
                            I was careful to read the card's docs to be sure I put the First pigtail (labeled "Antenna#1") on Main,
                            and the Second pigtail (labeled "Antenna#2") on Aux.  -Pete

                            1 Reply Last reply Reply Quote 0
                            • N
                              nima.m
                              last edited by May 10, 2006, 9:41 PM

                              2 means Auto.

                              What I did was to set both antenna to 0 fisrt and check the in/out errror, then set both to 1 and check the errors again.
                              Do the same and see when you get less error, then you know which antenna port you should use.

                              1 Reply Last reply Reply Quote 0
                              • P
                                pcatiprodotnet
                                last edited by May 10, 2006, 9:48 PM

                                nima.m, is it possible that you plugged your single pigtail into the card's Aux antenna port, and that is why you had to set it to 1?

                                1 Reply Last reply Reply Quote 0
                                • H
                                  hoba
                                  last edited by May 10, 2006, 9:49 PM

                                  @pcatiprodotnet:

                                  Thanks hoba!
                                  Although it's fairly obvious, I was just hoping to see it spelled out in no uncertain terms that 0=Main and 1=Aux. -Pete

                                  I think that is related to the hardwarelayout. I have even seen cards with no label on either of the antennaoutputs. I recommend doing what nima.m suggested. Try to see what gives you the best results. Generate some traffic (try to load it) and you should see errors increasing rather fast with the wrong setting. Closing the case might help finding the wrong setting too, so you get some noise reflections inside the case with the non hooked up output.

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    nima.m
                                    last edited by May 10, 2006, 9:56 PM

                                    I have no idea :-)

                                    I bought one of those Lintex 6 Nic router and told them to install a CM9 minipci and a external antenna and send it to me.
                                    And they did that, And I havn't open my case for checking it.

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      pcatiprodotnet
                                      last edited by May 10, 2006, 10:39 PM May 10, 2006, 10:32 PM

                                      I just tried the above procedure on beta4, deleted /tmp/config.cache, rebooted for good measure, and it didn't change.
                                      I loaded up /cf/conf/config.xml , and re-checked it…
                                      <maximumstates><afterfilterchangeshellcmd>sysctl dev.ath.0.rxantenna=0;sysctl dev.ath.0.txantenna=0;sysctl dev.ath.0.diversity=0</afterfilterchangeshellcmd>

                                      but in shell it still reports...

                                      sysctl dev.ath.0.diversity

                                      dev.ath.0.diversity: 1

                                      sysctl dev.ath.0.rxantenna

                                      dev.ath.0.rxantenna: 1

                                      sysctl dev.ath.0.txantenna

                                      dev.ath.0.txantenna: 0</maximumstates>

                                      1 Reply Last reply Reply Quote 0
                                      • N
                                        nima.m
                                        last edited by May 10, 2006, 10:35 PM

                                        Change it to :

                                        <shellcmd>sysctl dev.ath.0.rxantenna=1;sysctl dev.ath.0.txantenna=1;sysctl dev.ath.0.diversity=0</shellcmd>
                                        <afterfilterchangeshellcmd>sysctl dev.ath.0.rxantenna=1;sysctl dev.ath.0.txantenna=1;sysctl dev.ath.0.diversity=0</afterfilterchangeshellcmd>

                                        then reboot and check

                                        sysctl dev.ath.0.diversity

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          pcatiprodotnet
                                          last edited by May 10, 2006, 10:50 PM

                                          It's still unchanged. -Pete

                                          1 Reply Last reply Reply Quote 0
                                          22 out of 97
                                          • First post
                                            22/97
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.