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.

bgreer5050

Member Since 17 Aug 2014
Offline Last Active Aug 10 2015 06:55 PM
-----

Topics I've Started

Deploy over TCP

10 August 2015 - 01:36 PM

Is it possible to deploy an app over tcp/ip yet ?  How about debug over tcp/ip ?

 

Thanks


Time In Netduino 3

28 July 2015 - 11:08 AM

Does the Netduino 3 remember it's time when re-boot ?  I currently have several Netduino 2 Plus units in the field and one problem I continually encounter is time stamp issues.  I have events that I record and send up to a server.  I need my events time stamped but have to rely on connecting to a time server after every boot up.  

 

One thing that I have done in the past is mark the event with an attribute of timeUpdated and if it was not updated then the event would not be sent up to the server until time was updated.  The issue here is that I update the time stamp on my event by doing a TimeSpan on my original time at boot up and the current time once updated and add the difference, but this gets ugly if there is another re-boot before the time is updated.

 

I would also like to hear how others may be handling the same issue.


MFDeploy Requirements

13 July 2015 - 04:28 PM

I typically load my Netduinos using Visual Studio.  I have someone in the field that does not have VIsual Studio and will be using MFDeploy to load with files I send him.  What requirements is there for MFDeploy to work ?  WIll he need both the .NET Microframework SDK and the Netduino SDK ?

 

Thanks

 

P.S. The devices are Netduino Plus 2 with 4.3

 

 


Inconsistent Results When Writing to SD Card

24 June 2015 - 10:49 PM

I have a static class called Logger with two methods

  1. VerifyFileExists
  2. LogToSD
public static class Logger
    {
        public static void VerifyFileExists()
        {
            try
            {
                if (!File.Exists(@"SD\Logging\log.txt"))
                {
                    if (!Directory.Exists(@"SD\Logging"))
                    {
                        Directory.CreateDirectory(@"SD\Logging");
                    }
                    FileStream _fs = File.Create(@"SD\Logging\log.txt");
                    _fs.Flush();

                }
            }
            catch(System.IO.IOException ex)
            {
                Debug.Print(ex.Message);
            }
        }


        public static void LogToSD(string strLog)
        {
            try
            {
                //FileStream fs = new FileStream(@"SD\Logging\log.txt",FileMode.Append,FileAccess.ReadWrite)
                using (var filestream = new FileStream(@"SD\Logging\log.txt", FileMode.Append,FileAccess.Write))
                {
                    StreamWriter streamWriter = new StreamWriter(filestream);
                    streamWriter.WriteLine(strLog + " - " + DateTime.Now.Ticks.ToString());

                    streamWriter.Flush();
                }
            }
            catch(System.IO.IOException exc)
            {
                Debug.Print(exc.Message);
            }
        }

    }

I call these methods from Main:

 public static void Main()
        {

            Logger.VerifyFileExists();

            Logger.LogToSD("Line One");
            Logger.LogToSD("Line Two");
            Logger.LogToSD("Line Two");
            Logger.LogToSD("Line Two");
            Logger.LogToSD("Line Two");
            Logger.LogToSD("Line Two");
            Logger.LogToSD("Line Two");
        }

I always get a Logger folder and a log.txt file, but less than half the time do I have text in my log.txt file as the result of the Logger.LogToSD calls.  Is there something wrong with my design pattern ?

 

I am running 4.3.2 on a Netduino Plus 2

 


Cellular For Netduino 2 Plus

28 April 2015 - 04:53 PM

I am looking for a recommended shield to use with the Netduino Plus 2 along with the type of Sim card that I would need.  I am in the in the USA, Midwest so there are a lot of carriers.  

 

Thanks


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.