- Posts: 4402
Radiolink AT9 as a platform for Deviation?
- PhracturedBlue
- Offline
I used PBM image format (same as for the F12E) so each image is only 2 colors, but I added a small extension that allows setting the foreground and background colors for each image. I then converted the Devo8 bmp files into pbm with imagmagick.
The filesystem is devofs running on the upper 256kB of the MCU. It currently takes up 61kB.
I have the rotary encoder working properly and mapped to left/right. there is no way to do a long-press on left/right, and there is no up/down, so I've temporarily mapped the trim up/down to the Up/Down buttons
The filesystem is currently read-only because If a write goes bad it could overwrite the bootloader. Once I back that up, I'll work on enabling write.
So basic functionality is now there. No protocol support yet. Figuring out how to control the interface with only 5 buttons will be the big deal. One trick would be to convert the rotary encoder from left/right to up/down when Mode is also down. IT would work, but I don't really like it.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
So you scroll by the rotary switch up and down between the fields, you press ENT to edit that particular field, then use the rotary switch again to change the value. After that you have to use the ENT (or EXT) switch to finish editing the field, so you can scroll between the fields with the rotary again.
Quite different working...
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Anyhow, I need a break before I tackle it. I'll get the AT9 checked in tomorrow.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
www.deviationtx.com/downloads-new/catego...s-at9-emulator-test1
It has roughly the same functionality as the button based build I posted in the 'Post 5.0' thread (i.e. there are lots of bugs, and it is quite easy to get stuck in a menu that you can't get out of)
But except for the fact that we have no protocol support, this is nearly ready to roll
I'll continue working on fixing the bugs in the new button code. It will take some time to work out all the issues, after which it'll be time to tackle an SPI mod so we can actually use this Tx with Deviation.
Please Log in or Create an account to join the conversation.
- anasm2010
- Offline
- Posts: 22
For the trainer port, There is a problem with the ppm signal that is negative, so we need to find a solution to inverse it. And yes I'm using the Gobish on the RC group work to do that. I hope we will find a solution.
PhracturedBlue, I think that for the TX It's better to use the PPM outout signal to control other module with the use of deviation?!
Please Log in or Create an account to join the conversation.
- HappyHarry
- Offline
- Posts: 1136
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Of course, Deviation supports PPM, so of course it could be used, I just don't plan to do it that way myself.
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- anasm2010
- Offline
- Posts: 22
Hope the AT9 will be soon deviated. For me it's the best price / quality radio ...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
You can, but I wouldn't quite yet. I am still working on fixing up the button handling further. It is mostly functional, but it is still possible to get stuck on a few pages.victzh wrote: So I can use the branch AT9 to build a version for real one? I ordered discrete logic version of add-on board, it should come around 22nd.
Also, I haven't setup a way to install the filesystem yet in the builds. it needs to be compiled into a dfu and then installed, so it REALLY won't help you as it is today until I add that part.
I'll try to get things mostly tidied up over the weekend.
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
In target/at9/Makefile.inc for $(TARGET).dfu
$(TARGET).dfu: $(TARGET).bin
$(SDIR)/target/common/devo/devofs/buildfs.py -c -i -f $(ODIR)/$(TARGET)-lib.bin -d filesystem/at9 -s 100
$(SDIR)/../utils/dfu.py --name "$(HGVERSION) Firmware" $(DFU_ARGS):$< $(DFU_LIB_ARGS):$(ODIR)/$(TARGET)-lib.bin $@
$(SDIR)/../utils/get_mem_usage.pl $(TARGET).map
and DFU_LIB_ARGS := -b 0x08040000
I did not understand how the rotary works for AT9 - only ENT, EXT and rotary's pushbutton work for me.
Please Log in or Create an account to join the conversation.
- dc59
- Offline
- Posts: 799
bbs.5imx.com/forum.php?mod=viewthread&ti...07482&extra=page%3D1
no further information at this moment , maybe they just change color
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
The devofs module is currently hardcoded to only support 64k filesystems. I will need to fix it, but for now, I just reduced the size of the fs (do a make distclean 1st)
I also had the dial set for left/right instead of up/down. It will work properly now (more or less, there is more work needed on the button handler, it doesn't detect scrolling very reliably)
I create 2 dfu file at9.dfu and at9-fs.dfu that way you can replace the firmware without rewriting the FS.
And writing to the FS is still disabled.
the emu_at9 does work, and is a good way to figure out what works and what doesn't (for instance, there is no way to access the list-boxes yet or the main-page config).
To use a text-select box, you must scroll to it, then press ENT, then you can scroll within it. It works pretty well.
But it is getting close to functional now.
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
The encoder is a bit unstable, sometimes Up or Down button which it translates to stick in pressed position.
Some channels are mixed up, but I think you know about it.
Even USB drive works, but in a bit strange mode. If you turn on the TX and plug it in without enabling USB drive the computer does not recognize it because it fails to provide device descriptors. If you first turn on USB drive then everything is OK. But if you turn off the drive it is not removed from computer listed drives.
Otherwise it is really very close to functional.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
I have 2 options for the fonts: either enhance the devofs code to keep track of multiple pointers, or separate the fs like on the Devo10 such that the media dir is kept in a separate address space. I need to give it more thought. On the positive side, I found several bugs in the devofs code today, and having fixed those, it should help the f12e/f7/f4 stability.
I'm surprised the usb drive works. it really shouldn't yet. I don't think it can break anything, but I don't recommend using it until write support has been added.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Radiolink AT9 as a platform for Deviation?