RN-XV WiFly Module driver
#61
Posted 14 September 2012 - 08:31 AM
#62
Posted 14 September 2012 - 08:59 AM
The IPWMPort is a type that's in the NETMF Toolbox, but not used for the wifly driver.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??
Do you use more components from the toolbox? If so, you may want to include Framework\Hardware\IPWMPort.cs.
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#63
Posted 14 September 2012 - 11:05 AM
#64
Posted 14 September 2012 - 11:12 AM
Without code/error message, no clue at all!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???
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.
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#65
Posted 14 September 2012 - 11:19 AM
#66
Posted 08 October 2012 - 04:26 PM
#67
Posted 09 October 2012 - 07:39 AM
Nope, I used this one:Are you using this WiFly module? https://www.sparkfun.com/products/9954
https://www.sparkfun.../products/10822
Because I used an xbee pin-out-compatible module. Benefit: it's cheaper and can also be used with other stuff like Netduino Go.Why do you need a xbee shield, whatever that is?
The latest version is always at http://www.netmftoolbox.comIs there a latest version of the drivers you have talked about here?
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#68
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
Posted 23 November 2012 - 04:05 PM
Some time ago, and yes, all sample codes are available if you download the packageWhen was this added and is there an example of it's simple usage to set the dateTime on the Netduino?
Thanks,
Donovan
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#70
Posted 24 November 2012 - 04:51 AM
#71
Posted 24 November 2012 - 08:35 AM
http://netmftoolbox....ew/20014#197117I have the toolbox.... will look again for an ntpvexample
Thanks :-)
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#72
Posted 25 November 2012 - 02:49 PM
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
Posted 25 November 2012 - 08:45 PM
You can swap the integratedsocket for the wifi socket;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.
http://netmftoolbox....ailable classes
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#74
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
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
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#76
Posted 26 November 2012 - 11:38 AM
#77
Posted 26 November 2012 - 05:05 PM
#78
Posted 26 November 2012 - 05:46 PM
I haven't found good timezone support in netmf so far , but I could be mistakenIs there a way to set the timezone just before the synchronize; as I need the times to be GMT +2?
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#79
Posted 27 November 2012 - 08:21 AM
DateTime.Now.AddHours(2)
Seems to work just fine for the moment
Thanks,
Donovan
#80
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