#1 2014-12-03 07:57:00

markqvist
Administrator
Registered: 2014-12-01
Posts: 114

Updates on the new firmware

Yesterday I got the first version implementation of the new firmware working. This has already had some huge gains on resource usage on the processor. Currently, only kiss mode is implemented, but other than that, everything is working. Here are the numbers:

The firmware is now only 5426 bytes (down from 15126 bytes in BertOS based implementation). RAM usage without packet buffers allocated is only 267 bytes! This allows for packets of over 850 bytes! Yay! I'm looking into some clever stuff to increase this number even further (in part using the FTDI chips hardware buffers as well), but it's becoming more an exercise in "can it be done?", so I won't give that high priority. For now I think I will set the max packet size to 620, which is the default TCP MSS + AX.25 overhead. That should be plenty to do anything related to APRS, and should also make it possible to encapsulate TCP/IPv4 packets through AX.25.

I will upload an experimental build here later, if anyone wants to try it out!

Offline

#2 2014-12-03 11:38:00

PA3BAS
Member
Registered: 2014-12-01
Posts: 20

Re: Updates on the new firmware

If you need a guineapig, i'd be happy to help you out.  I understand that with testing unexpected things can happen.


On a different side: is it possible for you to change my name on this forum? I would like it to be just PA3BAS if that is possible. I wasnt paying attention when subscribing...;)

Last edited by PA3BAS (2014-12-03 11:45:25)

Offline

#3 2014-12-03 23:16:54

markqvist
Administrator
Registered: 2014-12-01
Posts: 114

Re: Updates on the new firmware

Done! Your name is changed smile

Great, I definitely want guineapigs wink I will let you know very soon, will post here in this thread. It was my plan to have it up today, but then a lot of urgent work came in instead, so I didn't get any time to doing it! I just want to test a few more things before I upload it .

Offline

#4 2014-12-04 06:11:44

Stefan
Member
From: Switzerland
Registered: 2014-12-01
Posts: 8
Website

Re: Updates on the new firmware

Sounds great :-) I assume, without the "clever stuff", the firmware should still run on a 328P based board without FTDI Serial hardware, right?

Offline

#5 2014-12-04 16:14:07

markqvist
Administrator
Registered: 2014-12-01
Posts: 114

Re: Updates on the new firmware

Yes, it will of course work on a normal 328P as well without any FTDI stuff involved. Compatibility and portability is the key smile I'm not even sure if I will implement it though, but if I do, the firmware will automatically detect whether or not to use it, so no worries there! RAM usage is much lower in this version, so it's not really necessary. It was more one of those "can it be done" things smile

Either way, here is a preview build of the firmware:

http://unsigned.io/firmware/alpha/Micro … -alpha.hex

As you can imagine, it might have bugs, weirdness and all sorts of evil inside it, so be careful smile And if you find bugs, please let me know, so I can squash them!

Edit: Important! Forgot to mention that the serial baud-rate for this one is 115200!!

Last edited by markqvist (2014-12-04 17:28:32)

Offline

#6 2014-12-13 19:43:23

SQ7MRU
Member
Registered: 2014-12-13
Posts: 1

Re: Updates on the new firmware

Hello,
Great Project. Will it be possible to use GPS support and a KISS modem on one AVR MCU ?

Regards
Pawel, SQ7MRU

Offline

#7 2014-12-14 10:40:49

markqvist
Administrator
Registered: 2014-12-01
Posts: 114

Re: Updates on the new firmware

It should be possible to fit it in there, yes. As of now the compiled size of the firmware with KISS support is only 5726 bytes, so there should be plenty of room to fit GPS code as well!

Offline

Board footer

Powered by FluxBB