Search found 29 matches

by romeotango
Tue Jan 28, 2020 12:27 pm
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 33010

Re: asynycio as_GPS

Code: Select all

        
        seg0 = segs[0][1:]  # discard $
        segx = seg0[2:]  # Discard 1st 2 chars
        segs = segs[:-1]  # and checksum
Error in last line?
segs = segx[:-1] # and checksum[/code]
................!!.............
by romeotango
Mon Jan 27, 2020 6:43 pm
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 33010

Re: asynycio as_GPS

I love this lambda constructs, but have some problems to create them...

Just started to implement PUBX in my fork.
I will publish it to you, when it is tested.
You are really fast!
by romeotango
Mon Jan 27, 2020 2:35 pm
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 33010

Re: asynycio as_GPS

['GNRMC', '105120.00', 'A', '5207.48262', 'N', '00838.29766', 'E', '0.473', '', '220120', '', '', 'A', '6F'] The sentence i printed ist already the cleaned version, i checked the output before and it ist correct. @romeotango Evidently my GPS never sends empty fields, so I never saw this error. I thi...
by romeotango
Mon Jan 27, 2020 7:33 am
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 33010

Re: asynycio as_GPS

@gersch07 The first step in dealing with RAM is to precompile your libraries from -.py to -.mpy Look upwards in thread for the windows-exe. Worked, but not to good. And testing and codechanging is very time-consuming. I used the docker-container mentioned above. Was a bit of work to install the corr...
by romeotango
Mon Jan 27, 2020 7:17 am
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 33010

Re: asynycio as_GPS

@pythoncoder Yeah, that works just like you said it would. But unfortunately with my device it does not recognize position messages, the callback is not called. My first step was do add these not supported sentences GNGLL and GPGLL to the list. Now all records can be handled by the parser. The NMEA ...
by romeotango
Thu Jan 23, 2020 5:45 pm
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 33010

Re: asynycio as_GPS

The mistake is actually ridiculous, but isn't that (always) very common? ;) Here is my solution: #1 My GPS modules send sentences which are not included here yet. I have added them. # Key: currently supported NMEA sentences. Value: parse method. self.supported_sentences = {'GPRMC': self._gprmc, 'GLR...
by romeotango
Sun Jan 19, 2020 7:40 pm
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 33010

Re: asynycio as_GPS

Hello, I can't think of a reason for this, but I think that somehow this if statement if isinstance(s_type, int) and (s_type & self.cb_mask): does not return True and therefore the callback is not called. I tried again today with another GPS receiver, but the result was without success. Somehow I ca...
by romeotango
Thu Jan 16, 2020 6:39 pm
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 33010

Re: asynycio as_GPS

Probably that is because it is your code from the tutorial :P
And your fast_io Version.

Will try the other uasyncio's ...
by romeotango
Thu Jan 16, 2020 11:51 am
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 33010

Re: asynycio as_GPS

The keyboardInterrupt is intended as a temporary solution for evaluation Write errors on the SD card are over. I formatted the card again in LoPy, obviously there was a discrepancy in access between micropython and ftp. So done. Thank You for your patience. Overall I like the callback function very ...
by romeotango
Tue Jan 14, 2020 6:29 pm
Forum: ESP32 boards
Topic: asynycio as_GPS
Replies: 56
Views: 33010

Re: asynycio as_GPS

Thank you for this fast reply.
If i use True instead, it is no difference.
I thought it has any silly error from me inside, that inhibits the running as expected.
Rainer