[SSID] I don't see any

Posted by Meditation 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
[SSID] I don't see any
October 12, 2014 05:57PM
Hey !

So I tried to do all the thing with 2 differents wifi dongle. Everytime at the state when I need to connect to the ssid there isn't any.

So I checked the list of "known for working" wifi dongle and I bought TL-WN822N

So I formatted my usb drive and sd card and started everything from 0 with this new dongle.

But now that I removed the ethernet cable from my Pi and disconnected the power, and boot it again without ethernet cable I don't see any SSID !!!

It can be from my phone or my computer

Is there any way to, I don't know, download drivers for it ? or something so I can enjoy my new stuff smiling smiley

Thank you very much
Have a nice evening
Re: [SSID] I don't see any
October 12, 2014 06:00PM
Hi,
which image did you download?
Can you please post the output of the command on the RPi?
cat /opt/piratebox/version

Matthias


This is only my signature.
Re: [SSID] I don't see any
October 13, 2014 03:58PM
piratebox-ws_1.0.0

this is the result of your command

And I downloaded ArchLinuxARM-2014.05-rpi.img

Thank you for your quick answer
Re: [SSID] I don't see any
October 13, 2014 10:02PM
The new version of this adapter (v3) uses a different chipset from Realtek instead of one from Atheros. Because of that the installed hostapd probably doesn't work as intended. [wikidevi.com]
Re: [SSID] I don't see any
October 14, 2014 01:52PM
Ok !

So what am I supposed to do now ?
Re: [SSID] I don't see any
October 14, 2014 11:18PM
You can try the steps described here [forum.piratebox.cc], but I am not sure if it is the right version for your chipset.



Edited 1 time(s). Last edit at 10/14/2014 11:21PM by Tobias.
Re: [SSID] I don't see any
October 15, 2014 11:00AM
Tobias Wrote:
-------------------------------------------------------
> You can try the steps described here
> [forum.piratebox.cc], but I
> am not sure if it is the right version for your
> chipset.

Thank you

But it doesn't work :/
Re: [SSID] I don't see any
October 16, 2014 06:07PM
did you already apply that ? [forum.piratebox.cc]
Re: [SSID] I don't see any
October 28, 2014 02:25PM
I just did this : [piratebox.cc]

doesn't fix anything

and now [forum.piratebox.cc]

But I still don't see any SSID

And I tried the command
Quote

systemctl status piratebox

and there are no errors so that's really weird



Edited 1 time(s). Last edit at 11/14/2014 05:11PM by Meditation.
Re: [SSID] I don't see any
November 14, 2014 05:11PM
[root@alarmpi ~]# systemctl status --all piratebox
* piratebox.service - PirateBox Service
Loaded: loaded (/etc/systemd/system/piratebox.service; enabled)
Active: active (exited) since Fri 2014-11-14 10:20:26 MST; 51s ago
Process: 329 ExecStop=/opt/piratebox/init.d/piratebox_alt stop (code=exited, status=0/SUCCESS)
Process: 338 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status=0/SUCCESS)
Main PID: 338 (code=exited, status=0/SUCCESS)

Nov 14 10:20:26 alarmpi systemd[1]: Started PirateBox Service.
Nov 14 10:20:26 alarmpi piratebox_alt[338]: Starting script piratebox
Nov 14 10:20:26 alarmpi piratebox_alt[338]: Generating hosts file ....
Nov 14 10:20:26 alarmpi piratebox_alt[338]: Generating dnsmasq.conf .....
Nov 14 10:20:26 alarmpi piratebox_alt[338]: Generating Environment-config for ligttpd .....
Nov 14 10:20:27 alarmpi piratebox_alt[338]: Empty tmp folder
Nov 14 10:20:27 alarmpi piratebox_alt[338]: rm: cannot remove '/opt/piratebox/tmp/': Is a directory
Nov 14 10:20:27 alarmpi piratebox_alt[338]: Copy over design files
Nov 14 10:20:27 alarmpi piratebox_alt[338]: /opt/piratebox/bin/piratebox_setup_wlan.sh: line 101: syntax error: unexpected end of file
Nov 14 10:20:27 alarmpi piratebox_alt[338]: failed probing Interface



Edited 1 time(s). Last edit at 11/14/2014 05:24PM by Meditation.
Re: [SSID] I don't see any
November 17, 2014 05:36PM
Hi,
this lines are weired

Nov 14 10:20:27 alarmpi piratebox_alt[338]: /opt/piratebox/bin/piratebox_setup_wlan.sh: line 101: syntax error: unexpected end of file

can you please post your /opt/piratebox/bin/piratebox_setup_wlan.sh file
please use the "
" tags of the forum.

regards
Matthias


This is only my signature.
Re: [SSID] I don't see any
November 21, 2014 01:58PM
Ok here it is :

#!/bin/bash

# Author: Matthias Strubel   / Feb. 2011
#  Script for setting up the wlan interface
#  Parameter 1 i used for the config file providing the parameters

#   IP-Adress
#   Netmask
#   Interface

# Load configfile

if [ -z  $1 ] || [ -z $2 ]; then 
  echo "Usage piratebox_setup_wlan.sh my_config <start|stop|probe>"
  exit 1
fi


if [ !  -f $1 ] ; then 
  echo "Config-File $1 not found..." 
  exit 1 
fi

#Load config
. $1 


### Check config
if [ -z $INTERFACE ]; then 
   echo "Please define i.e.  "
   echo "   INTERFACE=wlan0 "
   exit 1
fi

if [ -z $IP ] ; then
   echo "Please define i.e.  "
   echo "   IP=192.268.46.2 "
   exit 1
fi

if [ -z $NETMASK ] ; then
   echo "Please define i.e.  "
   echo "   NETMASK=255.255.255.0 "
   exit 1
fi



###  Do the stuff

if [ $2 =  "start" ] ; then

  echo "Bringing up wifi interface $INTERFACE "
  ifconfig $INTERFACE up 

  if  [ $?  -ne 0 ] ; then 
     echo  "..failed ";
     exit 1
  fi

  echo "Setting up $INTERFACE"
  ifconfig $INTERFACE  $IP netmask $NETMASK

  if  [ $?  -ne 0 ] ; then 
     echo  "..failed ";
     exit 1
  fi

  if [ $IPV6_ENABLE = "yes" ] ; then
     echo  "Setting up IPv6 stuff"
     IPv6="$IPV6_PREFIX:$IPV6_IP"/"$IPV6_MASK"
     echo  "  $INTERFACE  -->$IPv6<--"
     ifconfig $INTERFACE  add  $IPv6
  fi

elif [ $2 = "stop" ] ; then
  echo "Stopping wifi interface $INTERFACE "
  elif [ "$2" = "probe" ] ; then


probe() {
  if [ "$PROBE_INTERFACE" = "yes" ] ; then
     echo -n "Probing interface $INTERFACE"
     ifconfig  "$INTERFACE"  >> /dev/null 2>&1
     TEST_OK=$?
     CNT=$PROBE_TIME
     while [[ "$TEST_OK" != "0" &&  "$CNT" != "0"  ]]
     do
        echo -n "."
        sleep 1
        CNT=$(( $CNT - 1 ))
        if [ "$CNT" = 0 ] ; then
          exit 99
        fi
        ifconfig  "$INTERFACE"  >> /dev/null 2>&1
        TEST_OK=$?
     done
  fi
}

So i've deleted the lasts 2 lines and now the commande systemctl returns me something good, so i reboot it without ethernet but still 0 SSID ...



Edited 1 time(s). Last edit at 11/21/2014 02:10PM by Meditation.