hi sir
I try it but dont working.
byte[] xContent = Convert.FromBase64String(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("this is content")));
I cant add .rar file

  | ||||||||||||||
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.
asciiman's ContentThere have been 29 items by asciiman (Search limited from 04-June 23) #61684 WebAPI and SocketPosted by asciiman on 21 February 2015 - 03:16 PM in Netduino Plus 2 (and Netduino Plus 1) hi sir I try it but dont working.
byte[] xContent = Convert.FromBase64String(Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("this is content")));
I cant add .rar file
#61701 WebAPI and SocketPosted by asciiman on 23 February 2015 - 07:41 PM in Netduino Plus 2 (and Netduino Plus 1) hi i fix it. Content must be in " and "
for example string xContent = "asdasdfaf" ; is wrong xContent = "\"asdasdfaf\""; is true.
#61681 WebAPI and SocketPosted by asciiman on 21 February 2015 - 10:18 AM in Netduino Plus 2 (and Netduino Plus 1) hi guys
I can use "Get or Post" method with simple socket connection. I can send any parameters via url to "Get or Post" method. But i cant use [formBody] property.
What is wrong? var xSocket = new System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp); var xEndPoint = new System.Net.IPEndPoint(System.Net.Dns.GetHostEntry("127.0.0.1").AddressList[0], 80); xSocket.Connect(xEndPoint); xSocket.SetSocketOption(System.Net.Sockets.SocketOptionLevel.Tcp, System.Net.Sockets.SocketOptionName.NoDelay, true); xSocket.SendTimeout = 1000; //byte[] xContent = System.Text.Encoding.UTF8.GetBytes("this is content"); string xRequestLine = "Get /api/My/45 HTTP/1.1\r\n"; string xHeaderLines = "Host: localhost" + "\r\n" + "Accept: text/json; charset=utf-8" + "\r\n" + "Accept-Encoding: gzip, deflate" + "\r\n" + //"Content-Type: application/json" + "\r\n" + //"Transfer-Encoding: chunked" + "\r\n" + "Connection: Close" + "\r\n" + //"Content-Length: " + xContent.Length.ToString() + "\r\n" + "\r\n"; // EmptyLine xSocket.Send(System.Text.Encoding.UTF8.GetBytes(xRequestLine)); xSocket.Send(System.Text.Encoding.UTF8.GetBytes(xHeaderLines)); //xSocket.Send(xContent); #59710 TFT LCD DisplayPosted by asciiman on 14 August 2014 - 07:22 AM in Netduino 2 (and Netduino 1) hi
http://forums.netdui...ft-lcd-ili9341/
sir alesbedac
wrote this code and it works but slowly
i hope so alesbedac write new code #61106 TFT LCD (ILI9341)Posted by asciiman on 31 December 2014 - 03:46 PM in Netduino Plus 2 (and Netduino Plus 1) hi sir,
unfortunately i dont have any code. #61789 StreamReader vs FileStreamPosted by asciiman on 06 March 2015 - 09:39 AM in Netduino Plus 2 (and Netduino Plus 1) hi guys
i read this "StreamReader is a memory pig. Use FileStream directly." is this true. FileStream is light version of StreamReader.
thnx #59957 SD Unmount errorPosted by asciiman on 30 August 2014 - 08:44 PM in Netduino 2 (and Netduino 1) Hi I can read and write to SD with Netduino 2 and microSD adapter.
but when i call UnmountSD() method occurs an System.IO.IOExecption error. I am using Samsung MicroSD 2gb
#63089 Sd Card write issuesPosted by asciiman on 09 June 2015 - 01:56 PM in Netduino Plus 2 (and Netduino Plus 1) hi
Microsoft.SPOT.IO.VolumeInfo.GetVolumes()[0].FlushAll();
but you must read any document about this #59337 Reading Multi Byte from Serial PortPosted by asciiman on 22 July 2014 - 03:43 AM in Netduino Plus 2 (and Netduino Plus 1) hi
I wrote this /// <summary> /// Start of Text Transmission (STX) character /// <para>Hexadecimal: 0x02 ~ Decimal: 2</para> /// </summary> public const char STX = '\u0002'; /// <summary> /// End of Transmission Block (ETB) character /// <para>Hexadecimal: 0x17 ~ Decimal: 23</para> /// </summary> public const char ETB = '\u0017'; private static System.Collections.ArrayList _SerialInBuffer; public static void Main() { _SerialInBuffer = new System.Collections.ArrayList(); var xSerialPort = new System.IO.Ports.SerialPort("COM1", 9600, System.IO.Ports.Parity.None, 8, System.IO.Ports.StopBits.One); xSerialPort.Open(); xSerialPort.DataReceived += xSerialPort_DataReceived; } private static void xSerialPort_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) { var xSerialPort = sender as System.IO.Ports.SerialPort; byte[] xReceivedBytes = new byte[xSerialPort.BytesToRead]; xSerialPort.Read(xReceivedBytes, 0, xReceivedBytes.Length); foreach (byte xReceivedByte in xReceivedBytes) if (xReceivedByte == STX) { _SerialInBuffer.Clear(); _SerialInBuffer.Add(xReceivedByte); } else if (xReceivedByte != ETB) { _SerialInBuffer.Add(xReceivedByte); } else // ETB { byte[] tmpBytes = new byte[_SerialInBuffer.Count]; _SerialInBuffer.CopyTo(tmpBytes); _SerialInBuffer.Clear(); string xSerialCommand = new string(System.Text.Encoding.UTF8.GetChars(tmpBytes)) + ETB; string xValue = xSerialCommand.Trim(new char[] { STX, ETB }); Microsoft.SPOT.Debug.Print(xSerialCommand); } } and you must send data like this string xTransmittingData = STX + "this data will be send" + ETB #59393 Netduino Unique IDPosted by asciiman on 25 July 2014 - 01:08 PM in Netduino 2 (and Netduino 1) Hi sir,
When I use EEPROM that somebody can read and write on other EEPROM isnt it? Is EEPROM has uniqueID ? #59336 Netduino Unique IDPosted by asciiman on 22 July 2014 - 03:10 AM in Netduino 2 (and Netduino 1) Hi
is the SKU unique and cant change programmatically or firmware update
DeviceInfo:
HAL build info: 4.3.1.0, Netduino 2 (v4.3.1.0) by Secret Labs LLC
OEM Product codes (vendor, model, SKU): 34, 177, 4101
Serial Numbers (module, system):
00000000000000000000000000000000
0000000000000000
Solution Build Info: 4.3.1.0, Netduino 2 (v4.3.1.0) by Secret Labs LLC
AppDomains:
default, id=1
Assemblies:
mscorlib,4.3.1.0
Microsoft.SPOT.Native,4.3.1.0
Microsoft.SPOT.Hardware,4.3.1.0
Microsoft.SPOT.Net,4.3.1.0
#59383 Netduino Unique IDPosted by asciiman on 25 July 2014 - 08:25 AM in Netduino 2 (and Netduino 1) hi sir
thanks for your interest.
I wanna develop commercial program and I need uniqe value on N2 or N2+.
Firstly i think, I can use MAC addres on N2+. But it can changeable with MFDeploy isnt it?
?s there unique value on N2 or N2+ or what can i do?
#59826 Netduino Unique IDPosted by asciiman on 21 August 2014 - 06:28 AM in Netduino 2 (and Netduino 1) thnx #60965 Netduino 2 can't run N1(+ or not) code.Posted by asciiman on 13 December 2014 - 06:07 PM in Netduino 2 (and Netduino 1) hi Chris
I cant use ST7735 chip with Fabienroyer code. Is this possible with Neduino2+ #59873 Microframework static constructor methodPosted by asciiman on 24 August 2014 - 09:53 PM in Visual Studio Is this a bug.
In .Net Microframework, all static constructor methods fired immediately. In .Net Framework, constructor methods fired when access the class.
#59908 Microframework static constructor methodPosted by asciiman on 26 August 2014 - 05:50 PM in Visual Studio hi,
This is not good because i am reading settings from xml file in static void main { } block and then assign this values to other static members in Information.cs (class) after this I use this values when need. (Access the corresponding class) #61533 LED/LCD TFT ScreenPosted by asciiman on 06 February 2015 - 08:51 AM in Netduino Plus 2 (and Netduino Plus 1) hi sir I write this code for using HelpersFont. I completed a few days ago. public class BitmapCharacter { public byte Width; // Columns public byte Height; // Rows public ushort[] Pixels; // Includes color data } public class FontBase { public static BitmapCharacter getBitmapCharacter(char pChar, ushort pColor, ushort pTransparentColor, byte pFontHeight, ref ushort[] pFontMap, ref byte[] pFontBitmap) { byte xFontMapIndex = (byte)(pChar - 32); ushort xFontBitmapIndex = pFontMap[xFontMapIndex * 2 + 1]; byte xCharWidthPixel = (byte)(pFontMap[xFontMapIndex * 2]); // Bit or Pixel byte xColumnByteCount = (byte)(xCharWidthPixel / 8 + (xCharWidthPixel % 8 == 0 ? 0 : 1)); var xPixelArray = new System.Collections.ArrayList(); for (byte yIndex = 0; yIndex < pFontHeight; yIndex++) { UInt64 tmpInt64 = 0; // RowCount = FontHeight, ColumnCount = CharWidthPixel (64 Max) for (byte xIndex = 0; xIndex < xColumnByteCount; xIndex++) tmpInt64 = tmpInt64 << 8 | pFontBitmap[xFontBitmapIndex + yIndex * xColumnByteCount + xIndex]; for (int xColumnIndex = 0; xColumnIndex < xCharWidthPixel; xColumnIndex++) { byte xShiftCount = (byte)(xColumnByteCount * 8 - xColumnIndex - 1); if (((tmpInt64 >> xShiftCount) & 1) == 1) xPixelArray.Add(pColor); else xPixelArray.Add(pTransparentColor); } } var xBitmapCharacter = new BitmapCharacter() { Width = xCharWidthPixel, Height = pFontHeight, Pixels = (ushort[])xPixelArray.ToArray(typeof(ushort)) }; return xBitmapCharacter; } } I am using helpers font because i cant use any other font. For example created by TinyFontToolGUI.exe pls look at this
https://learn.adafru...itmap-plus-text
Every think is lastes..!
Netduino is Netduino +2
Firmware is v4.3.1.0
Netduino SDK is v4.3.1.0
Framework is v4.3.1.0(QFE2)
Visual Studio is v2013 ...!
but i cant use it.
I have two problem with helpersfont 1) I cant find larger font than Verdana14 ( or any font like helpersfont) 2) I cant write transparent font for example over any image.
I will upload video today for problems..! My english is not good sorry..! #63477 LED/LCD TFT ScreenPosted by asciiman on 13 July 2015 - 06:32 AM in Netduino Plus 2 (and Netduino Plus 1) hi
vecc solution code is working perfect.
i remember Power pin is 5v, and backligth pin is 3.3v
you need power and backlight voltage
#61334 LED/LCD TFT ScreenPosted by asciiman on 21 January 2015 - 07:59 PM in Netduino Plus 2 (and Netduino Plus 1) hi sir i am waiting long time for this.
thanks so much..!
my lcd is
it dont have touching and i dont need
But can we use Netduino Helpers Font ?
#63487 LED/LCD TFT ScreenPosted by asciiman on 13 July 2015 - 01:14 PM in Netduino Plus 2 (and Netduino Plus 1) hi dont use CD4050.
The display interface is serial, it just needs 5 wires (CS, DC, SCK, RST, SDI) for controlling. LCD_CS -- ChipSelect any Digital Pin
LCD_DC -- Data/Command any Digital Pin
LCD_SCK -- SPCK-D13
LCD_Reset -- Reset any Digital Pin
LCD_SDI(MOSI) -- SDI/SDA (Serial Data Input) MOSI-D11
LCD_SDO(MISO) -- SDO/SDA (Serial Data Output) MISO-D12 for SDCard
LCD_Led -- any Digital Pin Or any PWM Pin Or 3.3V maximum Power Supply Pin
but i am not sure Vcc is 5v. You must try 3.3v first
U can use Analog pin like Digital PIN
#61800 is Stringbuilder using ArrayList ?Posted by asciiman on 07 March 2015 - 01:50 PM in Visual Studio Hi,
?s stringbuilder using Arraylist?
http://neuromancer.i...rk-collections/
One main point to consider when using collections in a micro framework device is that of memory consumption. Each collection carries overhead — data that serves no other purpose than to facilitate the items you store in the collection. For example, inserting hundreds of items in an ArrayList will quickly use up most of the memory on a Netduino. #61242 Internet data transferPosted by asciiman on 13 January 2015 - 07:32 PM in Netduino Plus 2 (and Netduino Plus 1) Hi I wanna send and receive image from internet. Whic is the best way.
I try WCF service but it use xmlreader and xmlreader is not recommended for netduino?
#61506 How to not short circuit my Netduino ?Posted by asciiman on 04 February 2015 - 08:27 AM in Netduino Plus 2 (and Netduino Plus 1) hi Chris
Can i plug 2Amper or more to 7.5~9volt VIN power? Or what is the limit of Amper ? #59252 Help Controling Meanwell LED drivers with NetduinoPosted by asciiman on 16 July 2014 - 02:11 PM in Netduino Plus 2 (and Netduino Plus 1) . #61819 Flash / Code Storage / RAM ..etc.Posted by asciiman on 09 March 2015 - 02:52 PM in General Discussion Hi
Netduino +2 has 1MB flash + 384Kb Code Storage and 192Kb RAM (tech spec)
Is 1MB flash = 384Kb Code Storage + 192Kb RAM + ..etc.
| ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||