MyNetSensors (closed)
-
I began to develop .NET controller for MySensors.
Now I have a controller in the form of a Universal Windows App, but you can use libraries for a console application, or for example ASP.NET. I posted the source on github.https://github.com/derwish-pro/MyNetSensors
I'll be glad if you will join the development of this project.
-
I noticed you said this should work on a Raspberry Pi running Windows 10. Have you tested this on Windows 10 IoT on a Raspberry Pi? I was having an adventure getting the serial gateway to work with the Raspberry Pi. FTDI USB to Serial driver issue.
-
I have not yet had the opportunity to check the work on the Raspberry, but I think it should work. I made a separate class that deals only with the interaction with the serial port. If you would have any problem with the Raspberry, you will only need to rewrite this class. I read about the problems FTDI and Raspberry compatibility. I also had problems with FTDI on PC. It worked on WinForms, but on a Universal App did not work. I tested different Serial-USB converters. Silicon Labs CP210 started to work without problems. FTDI did not want to work. But then randomly started working. I installed the last officially driver.
-
I have installed your source and have gotten to compile. I may not be able to jump on it right away, but I will see how it goes with Window IoT on Raspberry PI.
-
Great work @derwish . The more options people have to use MySensors the stronger and cooler it will become!
Good stuff!!
-
what visual studio version? im make a controller in .net with visual studio 2010
-
@ch3b7 said:
what visual studio version? im make a controller in .net with visual studio 2010
VS2015
-
-
@gbfromhb said:
I have installed your source and have gotten to compile. I may not be able to jump on it right away, but I will see how it goes with Window IoT on Raspberry PI.
How's it going? Got it to run?
-
@derwish sorry about the delay in getting back to you. I have it running on a Raspberry PI 2 with a 5" screen running at 800x480. I have a serial gateway plugged into Raspberry PI and there is no devices found. I suspected that this would happen there is a whole bunch of adventures with serial ports on the Raspberry PI with Windows 10 IoT.
It may be a while before I can get to this again, but I will see what I can come up with.
-
Here is that latest update on getting it to work on the Raspberry PI. The Raspberry PI is having issues with FTDI USB to Serial. There is currently no drivers officially available. It looks like some people have gotten to work with in the foreground which this app is, but not in the background (headless). I so far have not gotten it to work with MyNetSensors.
Here are the best links I have found on this issue so far.:
http://embedded101.com/Blogs/David-Jones/entryid/702/Win-10-IoT-Core-FTDI-Issue-Update
-
@gbfromhb :
Could it be that the FTDI USB to Serial issue is solved with the latest version ?
http://embedded101.com/Blogs/David-Jones/entryid/705/Win-10-IoT-Core-Raspberry-PI-2-Native-Serial-is-Live-
-
I have suspended development of this program, focusing on the web version of this project. Currently, this program is inferior to the web controller in functionality. If you show interest in this project, as a separate program for Raspberry or Windows 10 standalone, I will continue its development.
-
@derwish no. I was having the same concern about putting any time in this. I think you made the right choice. Have you looked into node.js and angular?
-
@gbfromhb So far, I was looking at node.js only superficially. How can I use node in this project? If only to completely abandon IIS?
-
@derwish Yes it would replace IIS. One of the big things is the small footprint and it would run anywhere. Microsoft seems to be putting a lot effort into getting it into the Visual Studio world. Which you know how working in Visual Studio is a great deal. Using Node.js, Express, TypeScript, Bootstrap & Angular to name a few looks very interesting to me. As you may know I'm messing around with Windows 10 IoT (core) on a Raspberry Pi. It just seems like it could turn into a nice Automation Hub, but if this is done right it could work on a lot of platforms. You could start with a headless Raspberry Pi and make it as powerful as you need.
-
@derwish I have downloaded you new code. Very nice work.
-
@gbfromhb Thank you. One of the reasons why I began to write code in .NET - there is hope that when will come out the ASP.NET5, this project will work on any OS. I am interested to deal with it. Besides, I somehow nicer to program in C# than in JavaScript.
-
It's very interesting out there with the whole JavaScript adventure. Its use is sky rocketing and is being used across the whole stack. One thing that is very interesting to watch is the adaptation of Microsoft's TypeScript and I read something the other day that the Google V8 JavaScript engine that is what Node.JS uses will have an option to use Strong data Typing. Having the data strong typed makes it a lot easier for IDE applications like Visual Studio to provide all the features you get using C#.
-
@Zelenaar Yes the latest build of Windows IoT has opened up those pins to help with getting more flexibility when working with Serial ports. Rumor has it that if I follow this example:
https://ms-iot.github.io/content/en-US/win10/samples/SerialSample.htm
and use the latest build it could work. I now have all the hardware I need. I have not yet gotten around to testing this yet. Thanks for the input.
-
@gbfromhb Well, let's see how the situation will develop. I'm interested in node.js but now I'm more invested in ASP.NET5.
-
I downloaded MyNetSensors v1.1.1 but I couldn't run "Web Server". Also I couldn't open all project code and database... I have Windows 10 Pro, Visual Studio 2015 Enterprise Edition, SQL Server 2008 Express, SQL Server 2012 and SQL Server 2014 on my computer. How can I run and see all modules of project?
-
In order to get the webserver part to work you will have to run either the console or the service (i think) i had to change some stuff in the confog files to get it working. For instance the com port was set to 9 but im using com3. I also had to add localhost to thesoftnodes and webserver urls. I also changed the "defaultconnection" in the applicationdbcontex to use the webserverdbconnectionstring in the webconfig for the webserver. But without any error messages its hard to give exact help. Mabye u can set some breakpoints and narrow it down to where it goes wrong?
-
@sky.s.kay Follow the installation instructions http://www.mynetsensors.com/Software/Install. Email info@mynetsensors.com at what stage of installation you have a problem.
-
Hardware pinouts, (missing firmware on GitHub) Arduino code? and nothing compiles in VS2015 HELP???
-
@fran52 Now I am working on version 2.0 (on Github). It will be completely redesigned. To compile the alpha version, you need ASP.NET5.
-
-
Cloned the latest code from git and I am really impressed with the new version.
I was not able to create an external database though. I think the previous version of the serial controller created this for you when you first ran.
In the latest dev version it looks like it expects it to exist. The old DB is not the same as what is expected in the new code.
I am running with the internal DB right now. Is there a sql script or something I can run to create the external DB?Thanks.
-
I'm working hard on version 2.0, and I will ready to produce a release within a week or two. The main changes is cross-platform (Windows, Linux, Paspberry Pi), completely new design, node editor, customizable dashboard, simple installation and configuration, simple API and documentation for developers.
@blissbot Thanks for the feedback. I'll be glad if you join beta testing. Please download the latest commit from github (it has important fixes), and send me email to info@mynetsensors.com. I will try to fix the connection to the external database and send you a message.