Archive

Posts Tagged ‘2.5’

Binary Serialization with Micro Framework

November 17th, 2008 Elze No comments

Today I came acros this  post on the GHI Electronics forum:

I’m developing my first application with EM, but sometimes i switch from happyness  Grin to sadness  Cry, this is why:
- Read/Write method in FileStream class of EMLibrary accept only bytes array, but what if I have to write/read int/float/long arrays ?
In C++ it easy: fwrite(&AnyKindOfData, DataLenght, Elements), 
InsertValueIntoArray and ExtractValueFromArray of Utility class work only for unsigned types but not for float, and of course it is less that the best way to do this job, some idea ?

You can use binary serialization for this. As not much information is available on the web about this I’ll try to shed some light on the subject.

Read more…

WPF, Delegates and Threads

November 8th, 2008 Elze 2 comments

Introduction:
When I started programming for the .NET Micro Framework one of the things that where a bit difficult to grab was how to update WPF UI elements (Like a text control) from a thread.

It has all to do with thread safety. Threads run (semi) simultainus and so there is the change that you access the same variable at the same time. When you have you’re own variables that you want make "Thread-Safe" you can use the lock statement (MSDN). When you’re developing for WPF you can use the Dispatcher and DispatcherTimer to  "Thread-Safe" access UI controls.

Read more…

nRF24L01 Tranciever Class

October 28th, 2008 Elze No comments

An update on the previous post.. I’ve started developing the nRF24L01 Tranciever Class as I didn’t find any code for the .NET Micro Framework. It’s in an very early stage right now.

To view the current status on this project look for the "nRF24L01 Tranciever Class" project on the projects page or click on this link to go the project right away: nRF24L01 Tranciever Class Project Page

Enjoy!

Categories: Projects Tags: , ,