Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 19th, 2006, 5:47 PM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The data has a form and protocol determined by agreement between the parties at each end. For instance, it could be pure ASCII text, such as might be sent to a Model 33 TTY or a glass teletype. On the other hand, it might be wrapped in a protcol containing a header followed by a message followed by a checksum or CRC. Special codes might be used to indicate the beginning and end of these sections. It depends on how serious error-free transmission and reception is. The output from a temperature-measuring device is probably relatively simple. Just get the manual for the device and read it. Sellers of these things don't require you to guess and iterate to find an answer.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 19th, 2006, 5:52 PM   #12
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
Quote:
Originally Posted by titaniumdecoy
How do the people who write the wrapper classes (such as PySerial and USPP) get access to the serial ports?
The best way to find that out is to read the actual source of the projects. They are both written in pure python, so it shouldn't be too difficult.
Game_Ender is offline   Reply With Quote
Old Jul 20th, 2006, 5:20 PM   #13
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 311
Rep Power: 3 andro is on a distinguished road
Send a message via AIM to andro
Is using C# a possiblity for this project? Serial port access in C# is really simple.
andro is offline   Reply With Quote
Old Jul 20th, 2006, 5:38 PM   #14
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by andro
Is using C# a possiblity for this project? Serial port access in C# is really simple.
With the right library, it's easy in any language:
C# Syntax (Toggle Plain Text)
  1. SerialPort port = new SerialPort("COM1", 9600);
  2. port.Open();
  3. port.Write("Hello World");
  4. port.Close();
Python Syntax (Toggle Plain Text)
  1. port = Serial(0, 9600)
  2. port.write("Hello World")
  3. port.close()
Arevos is offline   Reply With Quote
Old Jul 20th, 2006, 5:52 PM   #15
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 855
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
Quote:
Originally Posted by andro
Is using C# a possiblity for this project? Serial port access in C# is really simple.
I know almost nothing about MS products. If I'm going to use one, I need a GUI builder; so far I've been using wxPython. I found MS Visual C# via searching, which appears to be free. Do I need the .NET portion? Is .NET free? Does Visual C# have any advantages over Visual C++?
titaniumdecoy is offline   Reply With Quote
Old Jul 20th, 2006, 6:53 PM   #16
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
If you want to use .NET, I wouldn't bother with C++ .NET - it's very different to normal C++, and would be just like learning a new language. And it's more convoluted than C#.

Visual C# Express is free (http://msdn.microsoft.com/vstudio/express/), and you get a decent GUI designer. Of course, if you already use wxWidgets, you might find something like C++ or even Python easier with the right libraries.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jul 20th, 2006, 7:18 PM   #17
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 311
Rep Power: 3 andro is on a distinguished road
Send a message via AIM to andro
Quote:
Originally Posted by Ooble
If you want to use .NET, I wouldn't bother with C++ .NET - it's very different to normal C++, and would be just like learning a new language. And it's more convoluted than C#.

Visual C# Express is free (http://msdn.microsoft.com/vstudio/express/), and you get a decent GUI designer. Of course, if you already use wxWidgets, you might find something like C++ or even Python easier with the right libraries.

Ooble pretty much covered it. VC# 2005 Express is free. It has a great GUI designer. I've seen you posting Java around the forums, and C# is pretty similar to Java.

The only requirement is going to be that the machine you are running this on will need the .NET framework installed. Since you mentioned that it's going to be Windows XP, odds are it's already installed, but if not it's free anyways. I wouldn't say that it's any more restricting than having to have the JRE installed.
andro is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data logging problem from the serial port jerryleo Perl 0 Jan 10th, 2006 7:47 AM
Help in QBASIC (I think it's similar to VB) phoenix987 Visual Basic 3 May 9th, 2005 12:33 PM
Help with a QBASIC program phoenix987 Other Programming Languages 4 May 5th, 2005 12:27 PM
Script to output HDD data to serial port Europa2010AD C 2 Apr 6th, 2005 1:37 PM
Printer Port Programming shadowhunter C++ 3 Feb 28th, 2005 4:16 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:33 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC