- Netduino Forums
- → laik777's Content
laik777's Content
There have been 12 items by laik777 (Search limited from 23-September 23)
#23357 netduino XBee Sample
Posted by laik777 on 27 January 2012 - 09:48 AM in Project Showcase
#23023 netduino XBee Sample
Posted by laik777 on 19 January 2012 - 10:03 PM in Project Showcase
#16533 problem with sd card
Posted by laik777 on 09 August 2011 - 08:27 AM in Netduino Plus 2 (and Netduino Plus 1)
#16559 problem with sd card
Posted by laik777 on 10 August 2011 - 07:06 AM in Netduino Plus 2 (and Netduino Plus 1)
#16563 problem with sd card
Posted by laik777 on 10 August 2011 - 08:11 AM in Netduino Plus 2 (and Netduino Plus 1)
#16529 problem with sd card
Posted by laik777 on 09 August 2011 - 06:57 AM in Netduino Plus 2 (and Netduino Plus 1)
#16527 problem with sd card
Posted by laik777 on 09 August 2011 - 06:36 AM in Netduino Plus 2 (and Netduino Plus 1)
Attached Files
- SDCardTest.zip 143.46KB 44 downloads
#16473 problem with sd card
Posted by laik777 on 08 August 2011 - 09:41 AM in Netduino Plus 2 (and Netduino Plus 1)
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
#16482 problem with sd card
Posted by laik777 on 08 August 2011 - 11:57 AM in Netduino Plus 2 (and Netduino Plus 1)
#16483 problem with sd card
Posted by laik777 on 08 August 2011 - 12:05 PM in Netduino Plus 2 (and Netduino Plus 1)
#16487 problem with sd card
Posted by laik777 on 08 August 2011 - 12:53 PM in Netduino Plus 2 (and Netduino Plus 1)
#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)
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:)
- Netduino Forums
- → laik777's Content
- Privacy Policy