RN-XV WiFly Module driver - Page 2 - Project Showcase - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

RN-XV WiFly Module driver


  • Please log in to reply
98 replies to this topic

#21 Kaeptn Linux

Kaeptn Linux

    New Member

  • Members
  • Pip
  • 8 posts

Posted 30 March 2012 - 05:16 PM

Hello Stefan, thank you for your help. I will try the workarounds tomorrow and then i'll tell you the result

#22 Kaeptn Linux

Kaeptn Linux

    New Member

  • Members
  • Pip
  • 8 posts

Posted 31 March 2012 - 02:58 PM

Hello Stefan, i figured out that on the shield there has been soldered a diode between Tx of netduino and Pin3 of the RN-XV module. I bridged it and all trouble has gone. I will also attach a photo Thank you for your help.

#23 tranceash

tranceash

    Member

  • Members
  • PipPip
  • 12 posts

Posted 10 April 2012 - 12:14 PM

Hello Stefan,

i figured out that on the shield there has been soldered a diode between Tx of netduino and Pin3 of the RN-XV module.
I bridged it and all trouble has gone. I will also attach a photo
Thank you for your help.


Can you attach the photo of what you did to get the RN-XV module working on the xbee shield

#24 tranceash

tranceash

    Member

  • Members
  • PipPip
  • 12 posts

Posted 10 April 2012 - 12:36 PM

You could do the same for the PIR sensor, also with jumper wires :)



Hi Stefan

I have connected RN-XV WiFly module to the netduino using breadboard and it works great.


thanks

#25 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 10 April 2012 - 04:16 PM

I have connected RN-XV WiFly module to the netduino using breadboard and it works great.

Good to read that!!

I am having a problem connecting this pir device PIR Sensor
I cant detect any movement also cant seem to get to work

Could you make a seperate thread about it on the forums? I would love to look into it, but it's not really related to the RN-XV module anymore :)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#26 Kaeptn Linux

Kaeptn Linux

    New Member

  • Members
  • Pip
  • 8 posts

Posted 11 April 2012 - 11:18 AM

Hello tranceash, sorry for replying so late. But i read your message only now. I had problems to upload the picture. But this evening i'll retry it.

#27 tranceash

tranceash

    Member

  • Members
  • PipPip
  • 12 posts

Posted 11 April 2012 - 02:20 PM

Good to read that!!


Could you make a seperate thread about it on the forums? I would love to look into it, but it's not really related to the RN-XV module anymore :)



Stephan sometimes I get an IP sometimes I dont is there a way to see why I am not receiving an IP. Alos as soon as I get an Ip and try opening a socket to a webpage it cant connect ? Is there a problem with the netduino and wifly module ?

#28 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 11 April 2012 - 03:16 PM

Stephan sometimes I get an IP sometimes I dont is there a way to see why I am not receiving an IP. Alos as soon as I get an Ip and try opening a socket to a webpage it cant connect ? Is there a problem with the netduino and wifly module ?

Hi trencaesh,

It can happen that it takes too much time to get a good signal, I'm not sure. if you enable debugging, you'll see a lot more.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#29 Kaeptn Linux

Kaeptn Linux

    New Member

  • Members
  • Pip
  • 8 posts

Posted 11 April 2012 - 09:04 PM

Here the photo i promised ...

Attached Files



#30 tranceash

tranceash

    Member

  • Members
  • PipPip
  • 12 posts

Posted 12 April 2012 - 10:59 AM

Hi trencaesh,

It can happen that it takes too much time to get a good signal, I'm not sure. if you enable debugging, you'll see a lot more.


Stephan this is the debug output

Starting wifi config...
Instace created...
Local IP: 192.168.0.200
MAC address: 00:06:66:71:e1:de
Dns Lookup google.com.au: 74.125.237.119
#### Exception System.ApplicationException - 0x00000000 (1) ####
#### Message: Can't connect:<2.31> ERR:Connected!
Disconn from TEHS_4B6B22,1:0

#### Toolbox.NETMF.Hardware.WiFlyGSX::OpenSocket [IP: 0084] ####
#### Toolbox.NETMF.NET.WiFlySocket::Connect [IP: 001c] ####
#### NetduinoApplication1.wifi::Main [IP: 006d] ####
A first chance exception of type 'System.ApplicationException' occurred in Toolbox.NETMF.Hardware.WiFlyGSX.dll
An unhandled exception of type 'System.ApplicationException' occurred in Toolbox.NETMF.Hardware.WiFlyGSX.dll

Additional information: Can't connect:<2.31> ERR:Connected!
Disconn from TEHS_4B6B22,1:0

#31 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 12 April 2012 - 11:11 AM

That's strange, could you please upload (a part of) your project so I can see what's going on?
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#32 tranceash

tranceash

    Member

  • Members
  • PipPip
  • 12 posts

Posted 14 April 2012 - 06:21 AM

That's strange, could you please upload (a part of) your project so I can see what's going on?


using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;
using Toolbox.NETMF;
using Toolbox.NETMF.NET;
using Toolbox.NETMF.Hardware;


namespace NetduinoApplication1
{
    public class wifi
    {

        
        public static void Main()
        {

            // write your code here
            Debug.Print("Starting wifi config...");
 
            WiFlyGSX WifiModule = new WiFlyGSX();
            Debug.Print("Instace created...");
            WifiModule.EnableDHCP();
            WifiModule.JoinNetwork("TEHS_4B6B22", 0 , WiFlyGSX.AuthMode.MixedWPA1_WPA2, "12121212121");

            //// Showing some interesting output
            Debug.Print("Local IP: " + WifiModule.LocalIP);
            Debug.Print("MAC address: " + WifiModule.MacAddress);
            Debug.Print("Dns Lookup google.com.au: " + WifiModule.DnsLookup("google.com.au"));

            // Creates a socket
            SimpleSocket Socket = new WiFlySocket("google.com.au", 80, WifiModule);

            // Connects to the socket
            Socket.Connect();

            // Does a plain HTTP request
            Socket.Send("GET / HTTP/1.1\r\n");
            Socket.Send("Host: " + Socket.Hostname + "\r\n");
            Socket.Send("Connection: Close\r\n");
            Socket.Send("\r\n");

            // Prints all received data to the debug window, until the connection is terminated and there's no data left anymore
            while (Socket.IsConnected || Socket.BytesAvailable > 0)
            {
                string Text = Socket.Receive();
                if (Text != "")
                    Debug.Print(Text);
            }

            // Closes down the socket
            Socket.Close();


    

        }


        




    }
}

One thing is funny if I disconnect and reconnect the output works. The second time i run the code it errors out when it tries to create the socket

#33 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 15 April 2012 - 01:23 AM

Used some of you socket code. Thanks.
Steve


My Other Hobby: Engineer Turned Baker

#34 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 15 April 2012 - 01:40 PM

One thing is funny if I disconnect and reconnect the output works. The second time i run the code it errors out when it tries to create the socket

Thanks, I'm going to test that scenario. Please stay tuned...
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#35 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 04 May 2012 - 08:37 PM

One thing is funny if I disconnect and reconnect the output works. The second time i run the code it errors out when it tries to create the socket

I did a very small modification to the code ( :ph34r: ) that could have fixed this issue.
Could you download the latest version? Also, it has a new debug method so it's easier to look into problems.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#36 Valkyrie-MT

Valkyrie-MT

    Advanced Member

  • Members
  • PipPipPip
  • 315 posts
  • LocationIndiana, USA

Posted 07 June 2012 - 03:22 AM

Stefan, Would it be possible to create a web server with the RN-XV? Can it continuously listen on a port and handle multiple simultaneous requests? It looks like the simple socket does not have the ability to send data as streams or chunks, so sending a 50kb file would require changes... right? Thanks, -Valkyrie-MT

#37 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 07 June 2012 - 04:39 AM

Would it be possible to create a web server with the RN-XV? Can it continuously listen on a port and handle multiple simultaneous requests? It looks like the simple socket does not have the ability to send data as streams or chunks, so sending a 50kb file would require changes... right?

The module can support only one request at once. It has some built-in http features I don't use though, but very limited. This driver is just for a single tcp/ip socket.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#38 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 12 June 2012 - 03:11 AM

Hi Stefan,

I got the XBee Shield (show in the pics below) from sparkfun but I didn't come with the black connectors (as shown in the picture of your project demo), so I can't mount it on top of my N+ at this moment until I solder those connector to this base. I am not eletronic savvy, so I can't come up with a better name for thise connectors. Do you know where to get them?

Posted Image
Posted Image

Thanks

#39 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 12 June 2012 - 03:16 AM

Hi Stefan,

I got the XBee Shield (show in the pics below) from sparkfun but I didn't come with the black connectors (as shown in the picture of your project demo), so I can't mount it on top of my N+ at this moment until I solder those connector to this base. I am not eletronic savvy, so I can't come up with a better name for thise connectors. Do you know where to get them?

Yea, Sparkfun does sell them seperately: http://www.sparkfun.com/products/10007
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#40 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 12 June 2012 - 03:21 AM

Yea, Sparkfun does sell them seperately: http://www.sparkfun.com/products/10007


It's hard to see from your picture but I think there are 4 of those on top and 4 in the bottom. Am I right? Any soldering involve?

And one last question, can I use this same shield on top of the N Go shield base as well?

Thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.