ProTee Golf 2.0 SDK/API v1.0

The ProTee Golf interface supports external data as input. This enables hardware manufactures, enthousiasts or engineers to connect any kind of analysis equipement with ProTee Golf 2.0 to enjoy 100+ golf courses and online game play.

There are 2 ways to connect to the ProTee Golf 2.0 API. Via TCP/IP on port 1933 or via Serial communication on COM1 to COM10.

Setting up a TCP/IP connection to the localhost on port 1933 using JSON.

Example JSON Data Stream:

{"protocol":"GenericTCP", "info":{"device":"UNKNOWN", "version":"1.0.0", "club":"false", "ball":"true", "spin":"true"}, "data":{"counter":"0", "shotnumber":"0", "clubspeed":"0", "swingpath":"0", "clubface":"0", "facerelative":"0", "sweetspot":"0", "ballspeed":"10.0", "launchangle":"25.4", "ballpath":"3", "backspin":"3000", "sidespin":"-300", "axis":"2", "carry":"0"}}

Returns:

202
    Data Accepted
203
    Invalid Data

Parameters:

protocol
    Protocol identifier. Must be set to GenericTCP.
    Example: GenericTCP
device
    The name of the device sending data.
    Example: MyHardware
version
    The version number of your device.
    Example: 1.0
club
    If your device is sending club data.
    Options: true / false
    Example: false
ball
    If your device is sending ball data.
    Options: true / false
    Example: true
spin
    If your device is sending spin data.
    Options: true / false
    Example: true
counter
    Counter to track each data transmission
    Example: 1
shotnumber
    Counter to track each shot number
    Example: 1
clubspeed
    Clubspeed in MPH
    Example: 74.3
swingpath
    Swingpath in DEGREES
    Example: -3 (3 degrees out to in) or 5 (5 degrees in to out)
clubface
    Club face angle in DEGREES
    Example: -2 (closed 2 degrees) or 4 (open 4 degrees)
facerelative
    Face relative in DEGREES
    Example: 7 (7 degrees open) or -4 (4 degrees closed)
sweetspot
    Sweetspot deviation in mm
    Example: -5 (5mm left) or 2 (2mm right)
ballspeed
    Ballspeed in MPH
    Example: 100
launchangle
    Ball Launch Angle in DEGREES
    Example: 24.6 (rounds up to 25 degrees)
ballpath
    Ballpath in DEGREES
    Example: 2 (2 degrees left) or -5 (5 degrees right)
backspin
    Backspin in RPM
    Example: 3440
sidespin
    Sidepsin in RPM
    Example: -300 (300 RPM left) or 500 (500 RPM right)
axis
    Axis or Azimuth in DEGREES
    Example: 4 (4 degrees left) or -2 (2 degrees right)


Setting up a Serial connection to a Serial Port (COM1 to COM10)

Example Serial Port Data Stream:

DV=UNKNOWN,VS=1.0.0,UC=false,UB=true,US=true,CT=1,NR=1,SP=0,CF=0,FR=0,FS=0,BB=100,LA=24,BP=-2,BS=3000,SS=-150,AX=4

Returns:

Nothing

Parameters:

DV
    The name of the device sending data.
    Example: DV=MyHardware
VS
    The version number of your device.
    Example: VS=1.0
UC
    If your device is sending club data.
    Options: true / false
    Example: UC=false
UB
    If your device is sending ball data.
    Options: true / false
    Example: UB=true
US
    If your device is sending spin data.
    Options: true / false
    Example: US=true
CT
    Counter to track each data transmission
    Example: CT=1
NR
    Counter to track each shot number
    Example: NR=1
CS
    Clubspeed in MPH
    Example: CS=74.3
SP
    Swingpath in DEGREES
    Example: SP=-3 (3 degrees out to in) or SP=5 (5 degrees in to out)
CF
    Club face angle in DEGREES
    Example: CF=-2 (closed 2 degrees) or CF=4 (open 4 degrees)
FR
    Face relative in DEGREES
    Example: FR=7 (7 degrees open) or FR=-4 (4 degrees closed)
FS
    Sweetspot deviation in mm
    Example: FS=-5 (5mm left) or FS=2 (2mm right)
BB
    Ballspeed in MPH
    Example: BB=100.3
LA
    Ball Launch Angle in DEGREES
    Example: LA=24.6 (rounds up to 25 degrees)
BP
    Ballpath in DEGREES
    Example: BP=2 (2 degrees left) or BP=-5 (5 degrees right)
BS
    Backspin in RPM
    Example: BS=3440
SS
    Sidepsin in RPM
    Example: SS=-300 (300 RPM left) or SS=500 (500 RPM right)
AX
    Axis or Azimuth in DEGREES
    Example: AX=4 (4 degrees left) or AX=-2 (2 degrees right)

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk