SD-Card for Models/Logging on Stock Board
-
- Posts: 46
- Joined: Mon Jan 09, 2012 9:54 am
- Country: -
Re: SD-Card for Models/Logging on Stock Board
just wait for the m128 version and maybe set the fuses before the first flash?
Re: SD-Card for Models/Logging on Stock Board
FYI, the original m128 discussion is here:
viewtopic.php?f=48&t=1508
viewtopic.php?f=48&t=1508
Re: SD-Card for Models/Logging on Stock Board
Futaba CAMPac format might be a good idea then. Those little modules are easy to DIY, but also to find readily made either from the 2nd hand market or new from makers of "compatible" units...xnalpf wrote:A breakout board holding an abstract external memory sounds like a smart solution. Interfaced via the SPI (not the ISP!) connector it could either hold EEPROM, SD or any other flash or even non-flash memory accessed vie a standardized protocol. This might even be exchangable so might think of it as "memory cartridges" the user can exchange on demand.
http://cgi.ebay.fr/16K-CamPac-Modellspe ... 1e71767529
http://cgi.ebay.fr/64K-Modellspeicher-M ... 1e71423f02
-
- Posts: 46
- Joined: Mon Jan 09, 2012 9:54 am
- Country: -
Re: SD-Card for Models/Logging on Stock Board
Yes, i use them in my FX-18 already to extend from 12 to 24 models ;_)
*dream-on* an then a model-converter from futaba to open9x in companion....*dream-off*
*dream-on* an then a model-converter from futaba to open9x in companion....*dream-off*
Re: SD-Card for Models/Logging on Stock Board
Problem is that the original CAMPAC design is limited to 16kbit chips. For most users this might be enough - I always wanted to build a 64k campac for my FX-18 but since my DIY 16k campac gives me 24 models total and this is enough for my needs I never did. On the TH9X I am now migrating to just like derFrickler I suspect to have even more than 24 models with the on-processor 2kb EEPROM and an additional 16kbit SEEPROM like in a simple campac. But I do belive that adding support for larger SEEPROMS should be no problem.Kilrah wrote: Futaba CAMPac format might be a good idea then. Those little modules are easy to DIY, but also to find readily made either from the 2nd hand market or new from makers of "compatible" units...
http://cgi.ebay.fr/16K-CamPac-Modellspe ... 1e71767529
http://cgi.ebay.fr/64K-Modellspeicher-M ... 1e71423f02
Re: SD-Card for Models/Logging on Stock Board
*even more dream-on* and then a memory module holding a sd card that "talks" campac protocol and can be used in my good old futaba radio giving me - or better my son who inherits the fx-18 - endless model memory! *even more dream-off*derFrickler wrote:Yes, i use them in my FX-18 already to extend from 12 to 24 models ;_)
*dream-on* an then a model-converter from futaba to open9x in companion....*dream-off*
Re: SD-Card for Models/Logging on Stock Board
Old radios indeed only supported up to 16kb, but later ones went up to 64, so you do find official 1x64kb ones (instead of the old 4x16 layout).
Anyway, on the 9x 16kb will get you about 64 models plus about 8 in the internal eeprom, should be more than enough... and if not you could still have 2 CAMPacs and swap them
When you compare that to the number of models they actually store on a Futaba radio, it's interesting
The question is whether those memory chips are fast enough to be used with the 9x's filesystem. The way we write on it to get that many models in a small space might be the main issue.
Anyway, on the 9x 16kb will get you about 64 models plus about 8 in the internal eeprom, should be more than enough... and if not you could still have 2 CAMPacs and swap them
When you compare that to the number of models they actually store on a Futaba radio, it's interesting
The question is whether those memory chips are fast enough to be used with the 9x's filesystem. The way we write on it to get that many models in a small space might be the main issue.
Re: SD-Card for Models/Logging on Stock Board
One of these with a modified firmware?xnalpf wrote:and then a memory module holding a sd card that "talks" campac protocol and can be used in my good old futaba radio giving me - or better my son who inherits the fx-18 - endless model memory!
https://www.sparkfun.com/products/9530
Re: SD-Card for Models/Logging on Stock Board
I think you mix up kbit and kbyte. The original campacs had 16kbit. So 2kb which is the exact amount of EEPROM on the m64. So you just double the space with a 16kbit campac/seeprom. 64kbit should be the way to go which will add 8kb model memory so you end up with five times space - round about 40 models. That really should be enough even for derFricklers fleet (you can't call that a hangar any more )Kilrah wrote: Anyway, on the 9x 16kb will get you about 64 models plus about 8 in the internal eeprom
Re: SD-Card for Models/Logging on Stock Board
Oops yes of course!
Re: SD-Card for Models/Logging on Stock Board
That's a nice one to start with! Connect this one with a modified firmware to the TH9X and forget about any other radio. My son should be glad to have 24 model memory.
Re: SD-Card for Models/Logging on Stock Board
I think the idea of having a breakout board like the openlog one should solve this problem. The additional mcu could act as a "cache controller" to the actual memory and take care of hal. Just an idea...Kilrah wrote: The question is whether those memory chips are fast enough to be used with the 9x's filesystem. The way we write on it to get that many models in a small space might be the main issue.
Re: SD-Card for Models/Logging on Stock Board
Oh btw - I did not have a look at the sourcecode so far. Do you load the model parameters from EEPROM once after selecting the model or do you access some parameters in real time during normal operation?
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: SD-Card for Models/Logging on Stock Board
EEPROM is only read when you load a model. And written - asynchronously - when you modify something in this model.
Bertrand.
Bertrand.
Re: SD-Card for Models/Logging on Stock Board
Then I do not understand this one:
The question is whether those memory chips are fast enough to be used with the 9x's filesystem. The way we write on it to get that many models in a small space might be the main issue.
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: SD-Card for Models/Logging on Stock Board
If we use this CamPac for backup / restore models, then there is no issue, I don't think one will do these operations while flying...
The problem with SD speed becomes true when we write Logs. On sky9x it's not a problem, it's done in the low priority thread, so the mixer is not interrupted during a write. On gruvin9x board, I moved the Mixer calculations to an interrupt ; no problem as well. But on the 64A, we have used all timers (to be confirmed, I am not a HW guru at all), and it seems to me that what I did on the 2560 is impossible, it has to remain where it is.
So I don't see Logs on the stock board for now, but I am not against having a CamPac for storing more models. They would be compressed exactly as we do on stock, there would be the same kind of FAT that we have in the 1st 64 bytes of EEPROM (perhaps more depending on how many models we want to save there).
Of course this extra feature will use flash and I am not sure it will be possible to enable it on the 64A. The M128 replacement (or 2561 as Mike said) will be useful.
Bertrand.
The problem with SD speed becomes true when we write Logs. On sky9x it's not a problem, it's done in the low priority thread, so the mixer is not interrupted during a write. On gruvin9x board, I moved the Mixer calculations to an interrupt ; no problem as well. But on the 64A, we have used all timers (to be confirmed, I am not a HW guru at all), and it seems to me that what I did on the 2560 is impossible, it has to remain where it is.
So I don't see Logs on the stock board for now, but I am not against having a CamPac for storing more models. They would be compressed exactly as we do on stock, there would be the same kind of FAT that we have in the 1st 64 bytes of EEPROM (perhaps more depending on how many models we want to save there).
Of course this extra feature will use flash and I am not sure it will be possible to enable it on the 64A. The M128 replacement (or 2561 as Mike said) will be useful.
Bertrand.
Re: SD-Card for Models/Logging on Stock Board
Fair enough. That's why I came up with the idea of a breakout board hosting its own mcu. A mega8 class should be enough to handle SD management and provide that over i2c like the seeprom does. Write speed should do for 9600 bd. The already quoted SDlogger supports up to 230400 baud with a mega644 so write speed should not be a problem.bertrand35 wrote:The problem with SD speed becomes true when we write Logs. On sky9x it's not a problem, it's done in the low priority thread, so the mixer is not interrupted during a write. On gruvin9x board, I moved the Mixer calculations to an interrupt ; no problem as well. But on the 64A, we have used all timers (to be confirmed, I am not a HW guru at all), and it seems to me that what I did on the 2560 is impossible, it has to remain where it is.
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: SD-Card for Models/Logging on Stock Board
I fairly certain er9x does NOT use Timer 2 at all, just 0, 1 and 3.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: SD-Card for Models/Logging on Stock Board
You are right, it's used for gruvin9x board, but not stock! So what I did could be possible also on M128!
Bertrand.
Bertrand.
Re: SD-Card for Models/Logging on Stock Board
This is getting very interesting
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9
Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW