weixin_39608478 2020-11-29 20:29
浏览 0

uart readline() corrupts code.

This is normal gps data NMEA statements from a ublox receiver as put into putty by Atmel Studio modified example code for polling USART:

$GPGSV,4,113,01,59,077,33,03,10,13,29,06,02,206,,07,56,10,53,063 $GPGSV,4,2,1,08,13,050,,09,04,189,1,11,50,046,25,13,09,30,26,06F $GPGSV,4,3,1317,40,265,43,19,19,249,0,22,12,105,,28,45,335,3,066 $GPGSV,4,4,13,3073,277,42,054 $GLGSV,,1,07,73,50,343,29,79,2,140,39,80,68,108,34,8,28,025,27,07B

This is output from the same receiver, using Circuit Python uart.Readline() b'$GNGNS.164126&00,262\xb2/29556,F,08013.\xb27997,W,FFFN,17.\xbe/66,7.9,-27.1,9\xae?.<000,V0A\r\n'

As you will notice, there is a mix of ascii and binary/corrupted data.

该提问来源于开源项目:adafruit/circuitpython

  • 写回答

5条回答 默认 最新

  • weixin_39608478 2020-11-29 20:29
    关注

    updating the sercom.c and sercom.h drivers in asf, did not resolve this issue.

    评论

报告相同问题?