开发者

1090mhz receiver and MySql Database

I have a 1090mhz receiver. What it receives its not very important right now. But you can have a look at it here . It outputs strings of hex data over a USB port. So far so good. What i want to do is create a c# program that will retrieve the data from the port, do a little decoding which i can handle my self and then store it in a Mysql database which is runnin开发者_JAVA技巧g on my pc. I have basic knowledge of c#. So my questions are the following :

  • How can I retrieve the data from the virtual serial port using c#
  • How can I store the contents of variables in to a Mysql database using c#

If possible provide any link with examples or step by step tutorials or something.


For reading from the serial port, check out the documentation on MSDN for the SerialPort class:

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx

For writing to MySql, I'd google for "MySql C#". There are at least a few pages that will help you bootstrap yourself.

Or look into using a DB ORM like NHibernate with MySql.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜