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.

laik777's Content

There have been 12 items by laik777 (Search limited from 20-April 23)


By content type

See this member's

Sort by                Order  

#23357 netduino XBee Sample

Posted by laik777 on 27 January 2012 - 09:48 AM in Project Showcase

Thanks for answear. Now i copied your code from a video, but sometimes i am losing information between xbees. Do you know what is a problem? I am using xbee pros2b thanks by



#23023 netduino XBee Sample

Posted by laik777 on 19 January 2012 - 10:03 PM in Project Showcase

Hei Could you please give me a code for your example? thanks by



#16563 problem with sd card

Posted by laik777 on 10 August 2011 - 08:11 AM in Netduino Plus 2 (and Netduino Plus 1)

It works :) Thanks all for help.!!!!!!!



#16559 problem with sd card

Posted by laik777 on 10 August 2011 - 07:06 AM in Netduino Plus 2 (and Netduino Plus 1)

I am getting little closer to goal. I have now : NetduinoPlusFirmware_v4.2.0.0_RC1 Microsoft .Net micro framework Framework 4.2 My outputwindow: ******************************************** Attaching file. Assembly: SecretLabs.NETMF.Diagnostics (4.2.0.0) (184 RAM - 440 ROM - 166 METADATA) Loading Deployment Assemblies. Attaching deployed file. Assembly: NetduinoPlusApplication1 (1.0.0.0) (220 RAM - 572 ROM - 251 METADATA) Attaching deployed file. Assembly: SecretLabs.NETMF.IO (4.1.0.0) (236 RAM - 564 ROM - 279 METADATA) Attaching deployed file. Assembly: SecretLabs.NETMF.Hardware.NetduinoPlus (4.2.0.0) (272 RAM - 816 ROM - 423 METADATA) Resolving. Link failure: some assembly references cannot be resolved!! Assembly: SecretLabs.NETMF.IO (4.1.0.0) needs assembly 'mscorlib' (4.1.2821.0) Assembly: SecretLabs.NETMF.IO (4.1.0.0) needs assembly 'Microsoft.SPOT.Hardware' (4.1.2821.0) Error: a3000000 Waiting for debug commands... The program '[6] Micro Framework application: Managed' has exited with code 0 (0x0). ******************************** Do you know where is a problem?



#16533 problem with sd card

Posted by laik777 on 09 August 2011 - 08:27 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks man for help. Where did you download this firmvare v2? And you are using my References?



#16529 problem with sd card

Posted by laik777 on 09 August 2011 - 06:57 AM in Netduino Plus 2 (and Netduino Plus 1)

On your netduinoplus work my program?



#16527 problem with sd card

Posted by laik777 on 09 August 2011 - 06:36 AM in Netduino Plus 2 (and Netduino Plus 1)

I have firmware version: SolutionReleaseInfo.solutionVendorInfo: Netduino (v4.1.1.0 b1) by Secret Labs LLC And my Reference is SecretLabs.NETMF.IO_BETA1 Here is all program........

Attached Files




#16487 problem with sd card

Posted by laik777 on 08 August 2011 - 12:53 PM in Netduino Plus 2 (and Netduino Plus 1)

I have tested with DirectoryInfo rootDirectory = new DirectoryInfo(@"\SD\"); still not working.....



#16483 problem with sd card

Posted by laik777 on 08 August 2011 - 12:05 PM in Netduino Plus 2 (and Netduino Plus 1)

I have now deleted from references: SecretLabs.NETMF.IO And debugging is successufully. Output window: ************************* #### Exception System.IO.IOException - CLR_E_INVALID_DRIVER (1) #### #### Message: #### Microsoft.SPOT.IO.NativeIO::GetAttributes [IP: 0000] #### #### System.IO.Directory::Exists [IP: 0015] #### #### System.IO.DirectoryInfo::get_Exists [IP: 0007] #### #### SDTest.Program::RecurseFolders [IP: 0005] #### #### SDTest.Program::Main [IP: 000c] #### A first chance exception of type 'System.IO.IOException' occurred in Microsoft.SPOT.IO.dll The thread '<No Name>' (0x1) has exited with code 0 (0x0). Done. Waiting for debug commands... The program '[16] Micro Framework application: Managed' has exited with code 0 (0x0). ********************************************* Any idea?



#16482 problem with sd card

Posted by laik777 on 08 August 2011 - 11:57 AM in Netduino Plus 2 (and Netduino Plus 1)

When is debugging ask me: There were deployment errors.continue? i choose no. And then i receive in output window An error has occurred:please check your hardware. any suggestion?



#16473 problem with sd card

Posted by laik777 on 08 August 2011 - 09:41 AM in Netduino Plus 2 (and Netduino Plus 1)

I have problems with sd card.
I am using NetduinoFirmware_v4.1.1.0_Beta1

Micro sd:
1GB
sd-C01G TAIWAN

My References in Visual Studio:
Microsoft.SPOT.Hardware
Microsoft.SPOT.IO
Microsoft.SPOT.Native
mscorlib
SecretLabs.NETMF.Hardware
SecretLabs.NETMF.Hardware.Netduino
SecretLabs.NETMF.Hardware.NetduinoPlus
SecretLabs.NETMF.IO
System
System.IO


Look i tried with this code:
**************************************
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using System.IO;
using SecretLabs.NETMF.IO;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;
using Microsoft.SPOT.IO;

namespace SDTest
{


public class Program
{
public static void Main()
{
DirectoryInfo rootDirectory = new DirectoryInfo(@"\\SD\\");

RecurseFolders(rootDirectory);
}

private static void RecurseFolders(DirectoryInfo directory)
{
if (directory.Exists)
{
Debug.Print(directory.FullName);

foreach (FileInfo file in directory.GetFiles())
{
Debug.Print(file.FullName);
}

foreach (DirectoryInfo subDirectory in directory.GetDirectories())
{
RecurseFolders(subDirectory);
}
}
}
}

}
*************************************

and in output window i receive this:

**************
There were deployment errors.
Device not found or cannot be opened-USB:NetduinoPlus
***********************************************

Please if someone could help me .

Thanks in advance



#15677 how to a read temperature from the web

Posted by laik777 on 19 July 2011 - 02:35 PM in Netduino Plus 2 (and Netduino Plus 1)

Hey
I am new here.
I would like to know how to read a temperature from the web.

This is my program to read the temperature and it s working well:

using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;

namespace i2c_bus_temp
{
    public class Program
    {
       public static void Main()
       {
           byte[] buffer_read = new byte[2];
           byte[] buffer_write = new byte[1];


           I2CDevice.Configuration config = new I2CDevice.Configuration(0x48, 100); // naslov naprave v   hexa,binarno je1001000, zadnji trije določajo A2 A1 A0.
          I2CDevice RTC = new I2CDevice(config);

           buffer_write[0] = 0x00;

           I2CDevice.I2CReadTransaction tran_read = I2CDevice.CreateReadTransaction(buffer_read);
           I2CDevice.I2CWriteTransaction tran_write = I2CDevice.CreateWriteTransaction(buffer_write);


           while (true)
           {
               I2CDevice.I2CTransaction[] tran = new I2CDevice.I2CTransaction[] { tran_write };

               int data = RTC.Execute(tran, 100);

               Debug.Print("\nThe number of data transfered is: " + data.ToString());

               tran = new I2CDevice.I2CTransaction[] { tran_read };

               data = RTC.Execute(tran, 100);

               int tempH;
               int tempL;
               tempH = buffer_read[0]*8;  
               tempL = buffer_read[1]/32;
               Debug.Print("\nThe number of data transfered is: " + (tempH+tempL)/8.0 +" °C");
               Thread.Sleep(1000);
           }


       }

    }
}

I will be hapy if someone could connect my temperature to the web with using this program:

using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;
using Blinq.Netduino.Web;

namespace ServerExample
{
    /// <summary>
    /// Example for using the Blinq.Netduino.Webserver class
    /// </summary>
    public class Program
    {

     
       static InputPort bb = new InputPort(Pins.ONBOARD_SW1, false, Port.ResistorMode.Disabled);

      
       static WebServer server = new WebServer(80);

       public static void Main()
       {
           bool buttonState = false;

          
           server.CommandReceived += new WebServer.CommandReceivedHandler(server_CommandReceived);
           
           server.AllowedCommands.Add(new WebCommand("button", 0));

         
           server.Start();

       }

      
       private static void server_CommandReceived(object source, WebCommandEventArgs e)
       {
           Debug.Print("Command received:" + e.Command.CommandString);
           switch (e.Command.CommandString)
           {
               
               case "button":
                   {
                      
                       e.ReturnString = "<html><body><p>Butoon je v stanju: " + !bb.Read() + "</p></body></hmtl>";
                       break;
                   }
           }
       }
    }
}


Thanks in advance:)




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.