Can't read data from Royaltek GPS mouse
heaky
Posts: 2
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
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