B4R Question Data Received not processing

Discussion in 'B4R Questions' started by pokhraj_d, Oct 30, 2018.

  1. pokhraj_d

    pokhraj_d Member

    Hello All,
    I am using GPS module to receive data from additional softwareserial port.
    I am able to receive data properly.
    But the data I received not processing. Log is showing 0[Zero] value.

    Private Sub calculateLat(Received_raw_nmea() As Byte)
    Log(Received_raw_nmea) ===> Here showing the value [Two lines]
    Dim index As Int=0
    '    'Checking for Available Status
        For Each s() As Byte In bc.Split(Received_raw_nmea,",")
    If index=3 Then
    Dim latbeforeparse() As Byte= s
    Log(latbeforeparse) ===>Not showing any value
    End If
    Sub astream_newdata(rawnmea() As Byte)
    If bc.IndexOf2(rawnmea,"$GPRMC",0)> -1 Then
    End If
    1000'Delay to feed the data to the function
    End Sub
    The only strange thing is , when I am receiving the value I am getting two lines as below:

    $GPVTG,,T,,M,0.175,N,0.324,K,A*2 ==> This is the extra line I am getting

    Could you please advice why I am getting two lines, even if I am searching only for $GPRMC, and why no value is coming.
  2. Erel

    Erel Administrator Staff Member Licensed User

    The GPS sends all kinds of messages. You should check the first value and see whether the message is the one you want to parse.
  3. pokhraj_d

    pokhraj_d Member

    Resolved..... I am able to get the data as expected:)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice