×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    200

    Better WLAN detection

    I noticed that socket module offers some useful functions.

    But I was dissapointed in its implementation of WLAN networks detection. Even socket.select_access_point() neglects them!

    Is smarter WLAN detection possible? Ultimately I want to arrive at a script which detects all WLAN networks in proximity.

    Wud appreciate advise.

    Best,
    wirefree101

  2. #2
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    153

    Re: Better WLAN detection

    Do you already know this tool made by smart guys from this forum?

    http://discussion.forum.nokia.com/fo...highlight=wlan

  3. #3
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    200

    Re: Better WLAN detection

    Quote Originally Posted by novis View Post
    Do you already know this tool made by smart guys from this forum?

    http://discussion.forum.nokia.com/fo...highlight=wlan

    Very impressive in terms of its exhaustiveness!

    Where can I find study-material for modules, & associated functions, for WLAN connections?

    I have glossed over Pys60 API documentation at the following URL but found little ellaboration.

    http://sourceforge.net/project/showf...kage_id=171153


    Wud appreciate some pointers.

    Best,
    wirefree101

  4. #4
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    200

    Re: Better WLAN detection

    I have found a tool named "wlantools" which is a combination of C++ & .py scripts. You cannot scan for wireless in pure python. The module is composed of C++ code only.

    Here you can find more info:

    http://www-rp.lip6.fr/~berger/pys60.html


    My question now pertains to the ability to package these disparate set of files into one wholesome package like a *.sis. Is that achievable in PyS60?

  5. #5
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: Better WLAN detection

    Quote Originally Posted by wirefree101 View Post
    I have found a tool named "wlantools" which is a combination of C++ & .py scripts. You cannot scan for wireless in pure python. The module is composed of C++ code only.

    Here you can find more info:

    http://www-rp.lip6.fr/~berger/pys60.html


    My question now pertains to the ability to package these disparate set of files into one wholesome package like a *.sis. Is that achievable in PyS60?
    Hello wirefree101,

    You already have a SIS file for the extension at http://www-rp.lip6.fr/~berger/pys60_exts/
    Moreover if your question is "Can you convert python script files to sis files?" The answer is yes. On 3rd ed devices you can use Ensymble for it.

    Moreover ensymble is a versatile tool that allows you to merge more than one sis files. So you can have a single sis file as well.

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  6. #6
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    200

    Re: Better WLAN detection

    Quote Originally Posted by croozeus View Post
    You already have a SIS file for the extension at http://www-rp.lip6.fr/~berger/pys60_exts/
    Notice that installation of wlantools.sis itself does not achieve much. You still need to execute commands via Interactive Console in PyS60 shell or run a script to import wlantools and call wlantools.scan().

    So, I am asking: If I py2sis the import & scan command script, can I have the newly created sis contain the import & scan as well as wlantools.sis in one?

  7. #7
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: Better WLAN detection

    Quote Originally Posted by wirefree101 View Post
    Notice that installation of wlantools.sis itself does not achieve much. You still need to execute commands via Interactive Console in PyS60 shell or run a script to import wlantools and call wlantools.scan().
    Yes obviously its a module so you need to use it through the interpreter


    Quote Originally Posted by wirefree101 View Post
    So, I am asking: If I py2sis the import & scan command script, can I have the newly created sis contain the import & scan as well as wlantools.sis in one?
    Yes. It can be done using mergesis if ensymble. Search the forum for mergesis.

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  8. #8
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    200

    Re: Better WLAN detection

    Appreciate the response, Pankaj.

    However, I am unable to run the following script:

    import wlantools
    wlantools.scan()


    Following error is received while running wlantools.py


    Traceback (most recent call last):
    File "E:\private\2000b1a5\default.py", line 81, in menu_action
    f()
    File "E:\private\2000b1a5\default.py", line 65, in query_and_exec
    execfile(script_list[index][1].encode('utf-8'), script_namespace.namespace)
    File "c:\python\wlantools.py", line 3, in ?
    import wlantools
    File "c:\resource\site.py", line 97, in platsec_import
    return _original_import(name, globals, locals, fromlist)
    File "c:\resource\wlantools.py", line 23, in ?
    _wlantools = imp.load_dynamic('_wlantools', 'c:\\sys\\bin\\_wlantools.pyd')
    SymbianError: [Errno -5] KErrNotSupported


    Following error is received using Interactive Console:

    >>> import wlantool
    Traceback (most recent call last):
    File "<console>", line 1, in ?
    File "c:\resource\site.py", line 112, in platsec_import
    raise ImportError("No module named "+name)
    ImportError: No module named wlantool
    >>>


    Any clues to obvious errors appreciated.

  9. #9
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: Better WLAN detection

    Quote Originally Posted by wirefree101 View Post
    Appreciate the response, Pankaj.

    However, I am unable to run the following script:

    import wlantools
    wlantools.scan()


    Following error is received while running wlantools.py


    Traceback (most recent call last):
    File "E:\private\2000b1a5\default.py", line 81, in menu_action
    f()
    File "E:\private\2000b1a5\default.py", line 65, in query_and_exec
    execfile(script_list[index][1].encode('utf-8'), script_namespace.namespace)
    File "c:\python\wlantools.py", line 3, in ?
    import wlantools
    File "c:\resource\site.py", line 97, in platsec_import
    return _original_import(name, globals, locals, fromlist)
    File "c:\resource\wlantools.py", line 23, in ?
    _wlantools = imp.load_dynamic('_wlantools', 'c:\\sys\\bin\\_wlantools.pyd')
    SymbianError: [Errno -5] KErrNotSupported


    Following error is received using Interactive Console:

    >>> import wlantool
    Traceback (most recent call last):
    File "<console>", line 1, in ?
    File "c:\resource\site.py", line 112, in platsec_import
    raise ImportError("No module named "+name)
    ImportError: No module named wlantool
    >>>


    Any clues to obvious errors appreciated.
    Have you installed the module properly?
    Moreover did you sign it before installing it?
    Do you use a selfsigned Scriptshell?

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  10. #10
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    200

    Re: Better WLAN detection

    Quote Originally Posted by croozeus View Post
    Have you installed the module properly?
    I have installed it like any other *.sis file. It is a straight-forward process.


    Quote Originally Posted by croozeus View Post
    Moreover did you sign it before installing it?
    Yes.


    Quote Originally Posted by croozeus View Post
    Do you use a selfsigned Scriptshell?
    Yes. I have signed it with my devcert using SignSIS-GUI utility.


    Have you attempted running the script on your phone? Does it generate any errors?

  11. #11
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: Better WLAN detection

    Hello,

    I havent attempted to use this module. But you seem to be going right!
    I think if you still face problems then you should contact Berger, who is the author of the module.

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  12. #12
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    200

    Re: Better WLAN detection

    Could anybody confirm wlantools stand-alone usage?

    Wud gr8ly appreciate it.

    Best,
    wirefree101

  13. #13
    Registered User
    Join Date
    Feb 2005
    Posts
    2

    Re: Better WLAN detection

    I think you must install the wlantools SIS file to the phone memory, not the memory card. If you install to phone memory, it should work with the code you tried.

  14. #14
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    57

    Re: Better WLAN detection

    I have also similar error when I install it to the memory card. And when I install it to the phone's memory it doestn't work. No errors, but nothing happens.

    Now it works. I just had to modify drive letters...
    Last edited by DrivingMobileInnovation; 2008-06-07 at 00:41.

  15. #15
    Registered User
    Join Date
    Nov 2009
    Posts
    4

    Re: Better WLAN detection

    What did you modify to get it to work? it just seems to run but nothing happens!

    thnx

Similar Threads

  1. Replies: 4
    Last Post: 2009-06-09, 12:08
  2. wlan API is not working properly.
    By Digish in forum Wired and Wireless interfaces (Closed)
    Replies: 1
    Last Post: 2007-12-18, 10:24
  3. How to set WLAN IAP network mode to Ad-hoc instead of Infrastructure?
    By PopAndDestroy in forum Wired and Wireless interfaces (Closed)
    Replies: 2
    Last Post: 2007-08-29, 08:04
  4. Making VOIP calls and WLAN detection
    By KnightRider in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2007-03-29, 20:53
  5. Making VOIP calls and WLAN detection
    By KnightRider in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2007-03-26, 15:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×