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

#61 gomore11

gomore11

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 14 September 2012 - 08:31 AM

Ok, so this two errors seem to be resolved, but the main problem is there, Netduino continues getting freezed.......and the error is the same: Resolve: unknown type: Toolbox.NETMF.Hardware.IPWMPort Error: ff000000 I´m getting crazy.........I don´t know what to do. Maybe uninstall everything(visual Studio and sdk-s and everything) and reinstall again??

#62 Stefan

Stefan

    Moderator

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

Posted 14 September 2012 - 08:59 AM

Ok, so this two errors seem to be resolved, but the main problem is there, Netduino continues getting freezed.......and the error is the same:

Resolve: unknown type: Toolbox.NETMF.Hardware.IPWMPort

Error: ff000000

I´m getting crazy.........I don´t know what to do. Maybe uninstall everything(visual Studio and sdk-s and everything) and reinstall again??

The IPWMPort is a type that's in the NETMF Toolbox, but not used for the wifly driver.

Do you use more components from the toolbox? If so, you may want to include Framework\Hardware\IPWMPort.cs.
"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

#63 gomore11

gomore11

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 14 September 2012 - 11:05 AM

Hi Stefan. Thank you very much for your help and suggests. Finally I uninstalled the sdk-s and reinstall again and rewrite the Netduino´s Firmware and it works!!! Actually I don´t know witch could be the real problem........... Now I´m trying to connect two of this modules one connected to a Netduino and another connected to a Pc(I know that I can do it dircctly to the PC but first I want to connect two of this devices).In the one connected to Netduino it creates well the socket but when it tryes to connect with the other, it can´t so I have an exception due to the time. Any clue???

#64 Stefan

Stefan

    Moderator

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

Posted 14 September 2012 - 11:12 AM

Now I´m trying to connect two of this modules one connected to a Netduino and another connected to a Pc(I know that I can do it dircctly to the PC but first I want to connect two of this devices).In the one connected to Netduino it creates well the socket but when it tryes to connect with the other, it can´t so I have an exception due to the time. Any clue???

Without code/error message, no clue at all!
But it's not a wifi adapter for the PC, it's a serial to wifi bridge. You need some code in between. My code is written for the .NET Micro Framework, not the regular framework.
"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

#65 gomore11

gomore11

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 14 September 2012 - 11:19 AM

Yes yes, I know........I use the other module on the PC just to see if something arraives from the conection with CoolTerm software.

#66 John West

John West

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts

Posted 08 October 2012 - 04:26 PM

I have a netduino electronic dice roller that I want to enhance so that it sends stats to a website wirelessly. Why? Because I can, or hope I can :)... So I'm not versed in all that you're talking about. Some questions: Are you using this WiFly module? https://www.sparkfun.com/products/9954 Why do you need a xbee shield, whatever that is? Is there a latest version of the drivers you have talked about here? Thx!

#67 Stefan

Stefan

    Moderator

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

Posted 09 October 2012 - 07:39 AM

Are you using this WiFly module? https://www.sparkfun.com/products/9954

Nope, I used this one:
https://www.sparkfun.../products/10822

Why do you need a xbee shield, whatever that is?

Because I used an xbee pin-out-compatible module. Benefit: it's cheaper and can also be used with other stuff like Netduino Go.

Is there a latest version of the drivers you have talked about here?

The latest version is always at http://www.netmftoolbox.com :)
"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

#68 don664

don664

    Advanced Member

  • Members
  • PipPipPip
  • 77 posts
  • LocationHillcrest, KZN, South Africa

Posted 23 November 2012 - 02:56 PM


By the way, for those who know that netmftoolbox thingy, I also added an SNTP client today


When was this added and is there an example of it's simple usage to set the dateTime on the Netduino?

Thanks,
Donovan

#69 Stefan

Stefan

    Moderator

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

Posted 23 November 2012 - 04:05 PM

When was this added and is there an example of it's simple usage to set the dateTime on the Netduino?

Thanks,
Donovan

Some time ago, and yes, all sample codes are available if you download the package :)
"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

#70 don664

don664

    Advanced Member

  • Members
  • PipPipPip
  • 77 posts
  • LocationHillcrest, KZN, South Africa

Posted 24 November 2012 - 04:51 AM

I have the toolbox.... will look again for an ntpvexample Thanks :-)

#71 Stefan

Stefan

    Moderator

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

Posted 24 November 2012 - 08:35 AM

I have the toolbox.... will look again for an ntpvexample

Thanks :-)

http://netmftoolbox....ew/20014#197117 :)
"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

#72 don664

don664

    Advanced Member

  • Members
  • PipPipPip
  • 77 posts
  • LocationHillcrest, KZN, South Africa

Posted 25 November 2012 - 02:49 PM

Hi Stefan,

Thanks for the link... which reference do I need to add for "IntegratedSocket"?

I keep getting the following error:

The type or namespace name 'IntegratedSocket' could not be found (are you missing a using directive or an assembly reference?)


I'm running a Netduino Plus 2.

#73 Stefan

Stefan

    Moderator

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

Posted 25 November 2012 - 08:45 PM

Hi Stefan,

Thanks for the link... which reference do I need to add for "IntegratedSocket"?

I keep getting the following error:



I'm running a Netduino Plus 2.

You can swap the integratedsocket for the wifi socket;
http://netmftoolbox....ailable classes
"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

#74 don664

don664

    Advanced Member

  • Members
  • PipPipPip
  • 77 posts
  • LocationHillcrest, KZN, South Africa

Posted 26 November 2012 - 05:41 AM

You can swap the integratedsocket for the wifi socket;
http://netmftoolbox....ailable classes


Hi Stefan,

Thanks... but now I don't know how to set the time as "Synchronize" is not part of SimpleSocket:

'Toolbox.NETMF.NET.SimpleSocket' does not contain a definition for 'Synchronize' and no extension method 'Synchronize' accepting a first argument of type 'Toolbox.NETMF.NET.SimpleSocket' could be found (are you missing a using directive or an assembly reference?)


I've tried looking through the IntelliSense options for TimeClient but can't figure out which to use.

// Initializes the time client
            SimpleSocket TimeClient = new WiFlySocket("time-a.nist.gov", 123, WifiModule);
            // Displays the time in three ways:
            Debug.Print("Amount of seconds since 1 jan. 1900: " + TimeClient.NtpLookup());
            //Debug.Print("UTC time: " + TimeClient.UTCDate.ToString());
            //Debug.Print("Local time: " + TimeClient.LocalDate.ToString());
            // Synchronizes the internal clock
            TimeClient.Synchronize();


#75 Stefan

Stefan

    Moderator

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

Posted 26 November 2012 - 06:56 AM

Hi Stefan,

Thanks... but now I don't know how to set the time as "Synchronize" is not part of SimpleSocket:



I've tried looking through the IntelliSense options for TimeClient but can't figure out which to use.

// Initializes the time client
            SimpleSocket TimeClient = new WiFlySocket("time-a.nist.gov", 123, WifiModule);
            // Displays the time in three ways:
            Debug.Print("Amount of seconds since 1 jan. 1900: " + TimeClient.NtpLookup());
            //Debug.Print("UTC time: " + TimeClient.UTCDate.ToString());
            //Debug.Print("Local time: " + TimeClient.LocalDate.ToString());
            // Synchronizes the internal clock
            TimeClient.Synchronize();


Try this:
// Initializes the time client
            //SNTP_Client TimeClient = new SNTP_Client(new IntegratedSocket("time-a.nist.gov", 123));
            SNTP_Client TimeClient = new SNTP_Client(new WiFlySocket("time-a.nist.gov", 123, WifiModule));
            // Displays the time in three ways:
            Debug.Print("Amount of seconds since 1 jan. 1900: " + TimeClient.Timestamp.ToString());
            Debug.Print("UTC time: " + TimeClient.UTCDate.ToString());
            Debug.Print("Local time: " + TimeClient.LocalDate.ToString());
            // Synchronizes the internal clock
            TimeClient.Synchronize();

The WiFlySocket replaces the IntegratedSocket, not the whole SNTP_Client :)
"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

#76 don664

don664

    Advanced Member

  • Members
  • PipPipPip
  • 77 posts
  • LocationHillcrest, KZN, South Africa

Posted 26 November 2012 - 11:38 AM

Ah ha ;) Perfect! Thanks for the help Stefan!

#77 don664

don664

    Advanced Member

  • Members
  • PipPipPip
  • 77 posts
  • LocationHillcrest, KZN, South Africa

Posted 26 November 2012 - 05:05 PM

Is there a way to set the timezone just before the synchronize; as I need the times to be GMT +2? Thanks :)

#78 Stefan

Stefan

    Moderator

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

Posted 26 November 2012 - 05:46 PM

Is there a way to set the timezone just before the synchronize; as I need the times to be GMT +2?

I haven't found good timezone support in netmf so far :(, but I could be mistaken
"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

#79 don664

don664

    Advanced Member

  • Members
  • PipPipPip
  • 77 posts
  • LocationHillcrest, KZN, South Africa

Posted 27 November 2012 - 08:21 AM

ok, as a work around, I am simply adding two hours when I call for the date and time:

DateTime.Now.AddHours(2)

Seems to work just fine for the moment ;)

Thanks,
Donovan

#80 winton

winton

    New Member

  • Members
  • Pip
  • 5 posts

Posted 19 February 2013 - 08:22 AM

Hi 

I am testing the RN-XV WiFly Module driver.

But I don't know how to use socket to connect to my WCF Web service.

 

I see the example ,but don't understand how to modify it.

 

For example,if my webservice is http://test.sino.org...tMonitoringList

sorry can't post my real webservice url.

 

I use below code, but the Debug output shows  

 

I: ERR: Bad Addrrn

 

So how to write the correct socket data string to web service?

 

Thank you very much.

 

 

 // Creates a socket

SimpleSocket Socket = new WiFlySocket("test.sino.org/WCF1/Service1", 80, WifiModule);

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

// Does a plain HTTP request
 Socket.Send("GET /GetMonitoringList HTTP/1.1rn");
Socket.Send("Host: " + Socket.Hostname + "rn");
Socket.Send("Connection: Closern");
Socket.Send("rn");

 






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.