Re: [go-nuts] Re: problems receiving data from a GPS

2016-07-20 Thread Michael Jones
Final version: https://play.golang.org/p/nb-KHcw9vS From: Michael Jones Date: Wednesday, July 20, 2016 at 1:50 AM To: EdgarAlejandro Vintimilla , golang-nuts Cc: Subject: Re: [go-nuts] Re: problems receiving data from a GPS Glad it is now working for you! By the way, the length of

Re: [go-nuts] Re: problems receiving data from a GPS

2016-07-20 Thread Michael Jones
are three other 3-digit solutions, and the longest solution has 39 digits. From: on behalf of EdgarAlejandro Vintimilla Date: Tuesday, July 19, 2016 at 10:24 PM To: golang-nuts Cc: Subject: Re: [go-nuts] Re: problems receiving data from a GPS thanks guys I was converting the data to

Re: [go-nuts] Re: problems receiving data from a GPS

2016-07-19 Thread EdgarAlejandro Vintimilla
thanks guys I was converting the data to hex incorrectly https://play.golang.org/p/35Wgkrh4Rq now its equal to python On Tuesday, July 19, 2016 at 6:41:42 PM UTC-5, Michael Jones wrote: > > In response to the call to help at every level of developer background, > here an expository solution

Re: [go-nuts] Re: problems receiving data from a GPS

2016-07-19 Thread Michael Jones
In response to the call to help at every level of developer background, here an expository solution line by line. Don’t click if this is your homework. https://play.golang.org/p/UOf38Uh-MT All that is left is to understand the data payload formats. Michael -- You received this mes

Re: [go-nuts] Re: problems receiving data from a GPS

2016-07-19 Thread Michael Jones
t 12:55 AM To: golang-nuts Subject: [go-nuts] Re: problems receiving data from a GPS Usually in these cases it helps to bring up the diff between the bytes: So the things I noticed here, * the data definitely is not ASCII * it looks like some GPS protocol, find the spec how to properly pa

[go-nuts] Re: problems receiving data from a GPS

2016-07-19 Thread Egon
Usually in these cases it helps to bring up the diff between the bytes: So the things I noticed here, * the data definitely is not ASCII * it looks like some GPS protocol,

[go-nuts] Re: problems receiving data from a GPS

2016-07-18 Thread EdgarAlejandro Vintimilla
In GO I get this data buf := make([]byte, 1024) buf: [64 64 153 0 4 50 49 51 71 76 50 48 49 52 48 49 53 49 56 55 0 0 0 0 0 16 1 233 24 140 87 64 25 140 87 68 88 10 0 136 2 0 0 182 29 0 0 4 0 0 0 4 0 7 100 1 17 19 0 3 0 1 17 7 16 23 43 59 76 94 160 0 244 82 243 16 7 0 0 0 0 73 68 68 95 50 49 5

[go-nuts] Re: problems receiving data from a GPS

2016-07-17 Thread Egon
What is the difference in the data that you receive? On Monday, 18 July 2016 05:42:36 UTC+3, EdgarAlejandro Vintimilla wrote: > > now I have this, but still not the correct results > > package main > > import ( > "fmt" > "net" > "os" > //"strconv" > //"bytes" > //"io/ioutil" >

[go-nuts] Re: problems receiving data from a GPS

2016-07-17 Thread EdgarAlejandro Vintimilla
now I have this, but still not the correct results package main import ( "fmt" "net" "os" //"strconv" //"bytes" //"io/ioutil" //"net/http" "reflect" //"strings" ) const ( CONN_HOST = "" CONN_PORT = "" CONN_TYPE = "tcp" ) func main() { // Listen fo

[go-nuts] Re: problems receiving data from a GPS

2016-07-17 Thread Egon
On Sunday, 17 July 2016 21:42:26 UTC+3, EdgarAlejandro Vintimilla wrote: > > Hi, I have a GPS that sends me data through a connection TCP > > the data it sends me are in ASCII, and I have to convert it to HEX > > for example in python I'm doing this > > BUFFER_SIZE = 1024 > conn, addr = s.