Shop OBEX P1 Docs P2 Docs Learn Events
Can't read data from Royaltek GPS mouse — Parallax Forums

Can't read data from Royaltek GPS mouse

heakyheaky Posts: 2
edited 2004-11-21 16:25 in BASIC Stamp
Hello,

I connected this usb mouse (royaltek RGM2000)·to a usb female port, breakout of a computer, so i can use the wires to connect this mouse to my bs2.
There are 4 wires; red, black, white and green.
I connect the red one to VDD.
The black to VSS.
The white also to VSS
and the green to P0.
The powerled on the GPS is on.

Then i use the following code:

' {$STAMP BS2}
' {$PBASIC 2.5}
MyByte VAR Byte
PAUSE 250
DEBUG CLS
Main:
SERIN 0, 16884, 1500, No_GPS_Data, [noparse][[/noparse]MyByte]
DEBUG MyByte
GOTO Main
No_GPS_Data:
DEBUG "No Data"
GOTO Main

I try several ways, but i get the message "No Data".
The port parameter is correct, this mouse use 4800N.

Please can somebody help me,

thanks in advance,

Sneaky Heaky

Comments

  • heakyheaky Posts: 2
    edited 2004-11-21 16:25
    I saw the table for Baudmodes. I must use 16572 as baudmode. I was hoping this was the solution. But still no luck...
Sign In or Register to comment.