Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sporadic bad message format #2

Open
pdeschen opened this issue Apr 3, 2012 · 0 comments
Open

Sporadic bad message format #2

pdeschen opened this issue Apr 3, 2012 · 0 comments
Labels

Comments

@pdeschen
Copy link
Owner

pdeschen commented Apr 3, 2012

From time to time, message get splits between two poll. Should I look for \r along with \n?

error! { message: 'bad message format',
  cause: '{"class":"SKY","tag":"GSV","device":"/dev/ttyUSB0","xdop":2.11,"ydop":1.30,"vdop":3.10,"tdop":2.74,"hdop":2.00,"gdop":4.88,"pdop":3.70,"satellites":[{"PRN":2,"el":36,"az":254,"ss"',
  error:
   { stack: [Getter/Setter],
     arguments: [],
     type: 'unexpected_eos',
     message: [Getter/Setter] } }
error! { message: 'bad message format',
  cause: ':45,"used":true},{"PRN":4,"el":81,"az":288,"ss":41,"used":true},{"PRN":10,"el":39,"az":174,"ss":0,"used":false},{"PRN":12,"el":29,"az":313,"ss":39,"used":true},{"PRN":13,"el":5,"az":108,"ss":0,"used":false},{"PRN":17,"el":61,"az":101,"ss":44,"used":true},{"PRN":20,"el":24,"az":47,"ss":0,"used":false},{"PRN":23,"el":12,"az":80,"ss":0,"used":false},{"PRN":27,"el":5,"az":256,"ss":0,"used":false},{"PRN":28,"el":11,"az":165,"ss":0,"used":false}]}\r',
  error:
   { stack: [Getter/Setter],
     arguments: [ ':' ],
     type: 'unexpected_token',
     message: [Getter/Setter] } }
@pdeschen pdeschen added the bug label Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant