GTK+ ques

2009-07-22 Thread nipun batra
I need to develop a GUI preferably in GTK using c or PYGTK.I have little
idea about Python.
Following are requiremnts of the application:
should be GUI
Sould be real time
Should interface serial port
should display moving maps,like google earth
It is basically for Ground control station of a UAV.
How would Python+Pygtk combo work?
is python slower than c/c++ ,if then by how much?
any suggestions for the applcation?
-- 
http://mail.python.org/mailman/listinfo/python-list


Serial port access

2009-08-08 Thread nipun batra
Hi,
How can we access serial port using usb-serial converters,using python in
linux.I want to further use pyGTK for Gui development after accessing serial
data.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Serial port access

2009-08-08 Thread nipun batra
On Sun, Aug 9, 2009 at 2:11 AM, Chris Rebert  wrote:

> On Sat, Aug 8, 2009 at 12:34 PM, nipun batra
> wrote:
> > Hi,
> > How can we access serial port using usb-serial converters,using python in
> > linux.
>
> PySerial might also be an option:
> http://pyserial.sourceforge.net/index.html
>
> Cheers,
> Chris
> --
> http://blog.rebertia.com
>


pySerial mentions about serial ports but not about usb-serial.Can i do
something like convert my usb-serial to act as serial port and then use
pySerial
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Serial port access

2009-08-08 Thread nipun batra
Ok i managed to comunicate serially using pySerial,but only using Idle. but
when i use it within Geany or Gedit,i get following errors
Traceback most recent call last
File "serial.py",line 3,in module
import serial
File"/home/nipun/serial.py",line 5,in module
ser=serial.Serial()
Attribute error:module object has no attribute Serial

how can i make it work?
-- 
http://mail.python.org/mailman/listinfo/python-list


String algo

2009-08-09 Thread nipun batra
I will be receiving data serially from another pc,.i can use any sort of
marker between two packets,i will be the person sending data as well after
reading it from some devices.But packet length is not constant.
each packet has this format:
201.535a56.65b4.56c89.565d
another packet could be :
4a5b6c7d
What i need is a program to store variables such as:var_a has value 4,var_b
has value 5,for second string.
I have to read and write data continuosly using serial port.
-- 
http://mail.python.org/mailman/listinfo/python-list