I wanna make a project with msp430g2553 like use heat sensor and want to read the datas from the sensor on the program that I write on C#. I know the basics of C# I can build form applications and also can use msp430 boards but i don't know how to link them each other. I ask that how can I link each other?
But I want to write the all codes C# and msp430. I don't want to prepared GUI.
I searched a little bit there is something like GIOP to do that but there is information little about that. Can you help me please.
And thanks for helps.
I agree with jdweng that you should use the UART feature from the Launchpad development board. Just find the guide for your board and look for the basic demo that outputs the "hello world" message to the serial port with connection to your PC using a terminal program such as Putty in serial mode. Then write a simple program in C# to replace the terminal program and establish that your program can read the "hello world" from the serial port. From there, you then need to change the demo to reading the sensor. I suggest you first emulate reading data from the sensor (i.e., must make up some data) and output that to the serial port, then finish your C# program with that data. Then find a suitable sensor and read the datasheet for the part. You may need to use another interface (such as SPI or I2C) to read form the sensor. This will depend on the sensor you choose. Best of luck!
Related
i have a chart pattern recognition program using neural networks written in python .instead of porting the whole code to C# ,i decided it was better to only send certain bits indicating the following :
Buy=1,Sell=-1,Do nothing=0
once they are in C-sharp ,i could relay them to a third party program (multicharts) which would continuously call the C# dll function and receive these values after a certain time interval .
my question is ,is there a way to relay these bit's to C# and pack all of this in a dll ,which gets read by the 3rd party program ?
the whole reason i want to port to C# is because multicharts only reads in dll's and i dont think python has them.
sorry for being naive ,i don't have very good grip on C# .
Your options are as follow,
Use a TCP socket, bind it to a port and listen for data in C# while the python application sends all data to it. C# has some great features for sockets such as System.Net.TcpClient
and
System.Net.TcpServer.
Your other option is that if the C# application only needs to be run once it receives information from the python program and then it can die, you could have the python program start the C# one and pass it parameters containing the information that you need transmitted.
By the looks of it your question only asked if there was a way to communicate, these are probably the best two. Please let me know if I can help anymore.
I am looking to transfer a binary file via RS232. I need to do this to 5000 different devices (no joke). I could do them one-by-one through a terminal program but that will take a lot of time.
So, I am writing a C# program that will be able to automate the process. I am looking at using XMODEM protocol and command line parameters to start the process. I have been looking for this for a few hours now and far my results have turned up little. I tried using uCON but that takes some sort of scripting language.
I was wondering if anyone in the community here might know of a solution to transfer a file over RS232 and program it in C#. Whether it is from a protocol (XMODEM) or a program that accepts command line or some other custom solution, doesn't really matter to me.
Ok so I was able to confirm that the code found on the website( ghielectronics.com/community/codeshare/entry/825) was able to work. The issue was was that I did not know how long it would take the computer to transfer the file. I thought that it would be quick. However, after further testing, it actually takes about 30 sec to 1 min depending on the file size.
This C# code snippet allows anyone to transfer a binary file over the Serial Port using the XMODEM protocol. This is done in code and a terminal is not needed which fits the requirements that I needed for the project.
Can anyone provide sample code or guide to read temperature sensor (DHT22 or DS18B20) data which is plugged on Rpi2. I would like to read data from c# library.
I am able to work with Touch & Motion sensor using c# script. I tried so many samples and my own code to read temperature sensor data but no luck for that.
Hope someone has try it before!
I used the library from https://www.hackster.io/porrey/dht11-dht22-temperature-sensor-077790 to get readings from the dht22 and dht11. Those sensors are pretty picky.
Then I got a BMP085 and was able to get reliable readings from it with samples for the I2C hookup. This was pretty easy and stable.
I don't think they have the low level stuff in place to use the DS18B20 in Windows yet (early dec 2015). Something about the timing for the one wire protocol used. I assume it will be added at some point.
So you probably want to grab the library from huckster.io and add that to your project right now.
has anyone had any dealings with the above mentioned printer or one like it? I have been handed the task of introducing this printer into our c# project and am not sure where to start. I have created a sample .lbl file using Averys recommended software to get all of the dimensions correct. (Nicelabel SE)
the printer is connected to the PC via Network.
here is a Sample Image of the project that I am trying to create, I have spoken to one of the engineers at Monarch and he is helping me with creating a base file to send to the printer, and having some of the data as a variable.
ideally it would be good if I could launch a dos program which would handle this for me, but I seem to really be pulling at straws here.. I have seen the Zebra SDK, but im not sure if this printer is compatible.
Thanks.
I have spoken to the Guys from Avery and they built a template for me to use, and with a variable section in the code I was able to put in my own settings to get the required output.
To send the file to the printer I was able to use the LPR Service in windows using a batch file.
First I'd like to say that long time reader of this site! Has saved me a lot from some problems that I've run in to while learning how to develop applications (specifically in c#).
Now on to the problem I am facing. I am currently developing an application that will set the speed and the power supply unit values on the EPSON TM-T88V to the values of 13 and 3 (speed and PSU). I have been using the provided commands located here on EPSON's Site. I am able to communicate with the printer by sending simple commands such as cut paper and line feed using hex in c# (using RawPrinterHelper), So I know I am able to connect to it. When I attempt to enter the user setup by using the values provided in their website, the printer seems to just "lock up". I have to rest the printer after about 2 minutes for me to be able to use it again. Thankfully, it doesn't seem like its writing anything at all to the printer, which is probably why it hasn't failed yet.
Does anyone have any experience changing settings to POS printer (specifically EPSON) who could help me with this? Usually there's a tool that will allow you to just send a .txt file with HEX values (like TPGs), but I cannot seem to find anything like that for EPSON POS printers. Any help would be greatly appreciated! Thank You
Try to reset a printer (ESC #) before start a user settings commands. It helped for me in the same case.