Author Topic: UDP Proxy  (Read 10673 times)

h106frp

  • Hero Member
  • *****
  • Posts: 1909
    • View Profile
Re: UDP Proxy
« Reply #30 on: November 08, 2018, 05:49:17 PM »
Thank you PiBoso, that should expand the posibilities a bit  :)

h106frp

  • Hero Member
  • *****
  • Posts: 1909
    • View Profile
Re: UDP Proxy
« Reply #31 on: November 08, 2018, 08:25:19 PM »
Even explicity setting info=0 I appear to occasionaly get packets from lap and split sent.

h106frp

  • Hero Member
  • *****
  • Posts: 1909
    • View Profile
Re: UDP Proxy
« Reply #32 on: November 08, 2018, 10:27:30 PM »
Any ideas on how to handle 'char' as the strings appear to be non-padded so how many bytes are they?

Its OK, found that in processing the correct reprentation of the string search token is "\0" for null :)
« Last Edit: November 09, 2018, 06:10:34 PM by h106frp »

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2721
    • View Profile
Re: UDP Proxy
« Reply #33 on: November 09, 2018, 10:37:21 AM »
Even explicity setting info=0 I appear to occasionaly get packets from lap and split sent.

Thank you for the report.
Plugin updated.
Obviously your ambition outweighs your talent

maggikk22

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: UDP Proxy
« Reply #34 on: January 06, 2019, 11:48:02 AM »
Hi,

I'm trying to stream the event, session, lap and split data.
I'm especially interested in getting the current laptime (and possibly the best lap time).

For the session, the structure is the following:
Code: [Select]
typedef struct
{
int m_iSession;
int m_iConditions;
float m_fAirTemperature;
float m_fTrackTemperature;
char m_szSetupFileName[100];
} SPluginsBikeSession_t;

I can get the air temperature and track temperature by parsing bytes 4 by 4 from position 13 (for air) and 17 (for track)

For the lap, I have an issue:

Code: [Select]
typedef struct
{
int m_iLapNum;
int m_iInvalid;
int m_iLapTime;
int m_iBest;
} SPluginsBikeLap_t;


I get the right lap number by parsing from position 5. But I always get 0 for the lap time (position 13) and the best time (position 17).
Can someone tell me why I get 0 instead of the right value??

« Last Edit: January 06, 2019, 12:17:58 PM by maggikk22 »

h106frp

  • Hero Member
  • *****
  • Posts: 1909
    • View Profile
Re: UDP Proxy
« Reply #35 on: January 06, 2019, 11:54:37 AM »
Pretty sure its a bug - found and reported the same issue

maggikk22

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: UDP Proxy
« Reply #36 on: January 06, 2019, 01:06:54 PM »
ok thank you!
I found a solution:
I get the current lap time by resetting a timer everytime the lap number changes.