Hey all, thanks for all the help.
I will go out in the morning and check all the equipment, have heard
too much advice from too many with python experience to ignore the
fact that something is likely screwed up in my settings or baudrate.
will be back in touch later as i check it out.
sk
On Mon,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
shawn bright wrote:
> Forgot some info,
> i hooked the device up and used a serial terminal and got back stuff like this
> !^V$G(R)±LL,3602.0960,N,10229.2959,W,r$4013,V*2E
> some of the above is what i am looking for.
>
Ok, that looks bad. You have s
Forgot some info,
i hooked the device up and used a serial terminal and got back stuff like this
!^V$G(R)±LL,3602.0960,N,10229.2959,W,r$4013,V*2E
some of the above is what i am looking for.
settings are the same as in my python script
thanks for any help,
shawn
On Mon, Nov 3, 2008 at 3:49 PM, J
On Mon, Nov 3, 2008 at 4:08 PM, shawn bright <[EMAIL PROTECTED]> wrote:
> yes, they look like this
> ��
>
> so i used your print repr(chr(ord(i))) and got this
Note that that's the same thing as just printing repr(i).
> so, what do i do now?
> and thanks for the info, by the w
yes, they look like this
��
so i used your print repr(chr(ord(i))) and got this
'\x00'
'\x06'
'\x00'
':'
'\x80'
'\x1f'
'\x16'
'g'
'J'
's'
'\xde'
'\xc0'
'J'
's'
'\xde'
'\xc0'
'\xce'
'\xcc'
'\x06'
'\n'
'\x00'
'\x00'
' '
'\xaf'
'J'
's'
'\xde'
'\xc0'
so, what do i do now?
and than
On Mon, 03 Nov 2008 08:48:44 -0600, shawn bright wrote:
> ok, i have another question:
> if i run this:
> #!/usr/bin/env python
> f = 'test_out'
> f = open(f, 'r').read()
> for i in f:
> print ord(i)
>
> I get this:
> 0
> 6
> 0
> 58
> 128
> 31
> 22
> 103
> 74
> 115
> 222
> 192
> 74
> 115
> 22
On Mon, 03 Nov 2008 08:48:44 -0600, shawn bright wrote:
> ok, i have another question:
> if i run this:
> #!/usr/bin/env python
> f = 'test_out'
> f = open(f, 'r').read()
> for i in f:
> print ord(i)
>
> I get this:
> 0
> 6
> 0
> 58
> 128
> 31
> 22
> 103
> 74
> 115
> 222
> 192
> 74
> 115
> 22
ok, i have another question:
if i run this:
#!/usr/bin/env python
f = 'test_out'
f = open(f, 'r').read()
for i in f:
print ord(i)
I get this:
0
6
0
58
128
31
22
103
74
115
222
192
74
115
222
192 (deleted some in the email for brevity)
if i do
for i in f:
print chr(ord(i))
i get the same
Hey all, sorry, but am i supposed to be using 'rb' to read this?
thanks
sk
On Sun, Nov 2, 2008 at 11:50 AM, shawn bright <[EMAIL PROTECTED]> wrote:
> Thanks all,
> Yeah, checked the settings, and when i have the thing talk to a
> program that just prints out whatever the serial port reads, It was
Thanks all,
Yeah, checked the settings, and when i have the thing talk to a
program that just prints out whatever the serial port reads, It was
looking fine.
Incorrect baudrate was my first problem, and did cause weirdness,
escpeially on the latter end of the message, but this isn't the same
proble
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
shawn bright wrote:
> Hey there all,
>
> I have a gps device that talks to the computer over a serial port.
> i am using the pyserial module and getting values in.
Here are the relevant bits of a serial to tcp/ip app that I use. Most
likely you have
shawn bright schreef:
Hey there all,
I have a gps device that talks to the computer over a serial port.
i am using the pyserial module and getting values in.
Here is my delima,
i am supposed to read a message in that starts with a $ (this is all ascii).
but when i do a ser.read(16) and i try t
First, thanks for you time with me on this.
When i said weird characters, i meant that they were not characters
you would find on a keyboard.
Like one of them is a black diamond with a question mark in it. there
are some weird block characters, occationally a letter, etc..
did not clarify why i wr
shawn bright wrote:
Hey there all,
I have a gps device that talks to the computer over a serial port.
i am using the pyserial module and getting values in.
Here is my delima,
i am supposed to read a message in that starts with a $ (this is all ascii).
but when i do a ser.read(16) and i try to
Hey there all,
I have a gps device that talks to the computer over a serial port.
i am using the pyserial module and getting values in.
Here is my delima,
i am supposed to read a message in that starts with a $ (this is all ascii).
but when i do a ser.read(16) and i try to print it to a screen,
15 matches
Mail list logo