er9x development

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
User avatar
MikeB
9x Developer
Posts: 15561
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB » Sat Aug 13, 2016 1:08 pm

I'm not sure. PPM16 allows for 2 modules, both using PPM, to be used together. The normal module output is "bit-bashed" on an interrupt.
If you are using PXX or DSM or MULTI, this uses a lot of processing power. Providing a second module signal could lead to users expecting to use both together and I don't think the CPU is powerful enough to do that unless both are PPM.

The obvious pin to consider is PB7. This pin should have been used for the normal module output, instead of PB0, as it has hardware timer support to give an accurate output that doesn't need to be bit-bashed.
Why it wasn't used is a mystery as it is unused on the stock board design.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 17722
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa » Sat Aug 13, 2016 1:37 pm

Because probably the guys that designed this radio don't know as much as you :) ;)

PPM16 allows to use both modules at the same time only, and you also lose trainer as far as I understand. Independent modules would be better of course. What about if thr internal could only use PPM while the external could also drive the serial, just as it is used now in ersky9x?
Would that be a problem on the m128 and m2561?
Would it be because they run at 16Mhz?
What about replacing the Xtal with a 20Mhz? Would the caps also need replacing? Would that improve things? And that should be easier than doing the telemetry mod in my opinion.
Also easy enough (hardwarewise) to change the external PPM signal to be used from PB7, If that improves the processor power problem. Then use the actual external signal as internal, but limited to PPM only.
João
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

User avatar
jhsa
Posts: 17722
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa » Sat Aug 13, 2016 1:43 pm

You might even save code ;) :) specially if the Rf Power Detection wasn't used anymore.. Not really needed, if you could define trainer as output in the firmware.. :)
Anyway, all this is just an idea..
João
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

User avatar
MikeB
9x Developer
Posts: 15561
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB » Sat Aug 13, 2016 5:07 pm

The 16MHz clock is the most likely problem, and NO you can't change to 20MHz, the chips are only rated to 16MHz.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 17722
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa » Sat Aug 13, 2016 6:48 pm

Ahaa, Didn't know that.. So, it is in theory not possible to make it work reliable then :(
Oh well, limitations are limitations :)
João
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


rav
Posts: 3
Joined: Mon Aug 15, 2016 8:52 am
Country: -

Re: er9x development

Post by rav » Mon Aug 15, 2016 8:56 am

MikeB wrote:
andrenoites wrote:The only thing I can't configure is the number of channels in the PXX D16 protocol, this is a really important feature because in a Taranis we can change from 16CH to 8CH and the frame size is reduced from 18ms to only 9ms go get a better latency,
In the disclaimer of your latest test version it shows "Correct MULTI FrSky CH_16 and CH_8"
Is this the same feature I am talking about? if not could it be possible to add this feature?
In PXX mode 16 channels are always sent at present. The MULTI fix is related to using MULTI protocol, not PXX, and is the selection between D16 mode and D8 mode.

I may well be able to add the option for only 8 channels, ersky9x (for ARM processors) does have that. My usual problem is fitting everything in to the M64 processor. I can definitely add it for '128 processors.

Mike.
MikeB wrote:Some good new for those using the M64. Pascal (planger), while working on the DIT MULTI module has found a way to reduce the CRC table (for the XJT) from 256 words (512 bytes) to 16 words (32 bytes) while having very little effect in execution time. I've put this into er9x, and tested it with a XJT module and all works OK. There is a saving of 434 bytes in total size.

Mike.

Edit: A bit more optimisation of the code increases the saving to 454 bytes!
Hi there. I'm unfortunate to have a M64 processor. Does the latest change to the CRC table mean that 8 channel mode could also be implemented for this processor or is there something else that does not allow an implementation?

User avatar
MikeB
9x Developer
Posts: 15561
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB » Mon Aug 15, 2016 11:53 am

Yes, I can get 8-channel mode in for the M64, it only needs 52 bytes it seems. It will be in the next test version.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

andrewju
Posts: 713
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: er9x development

Post by andrewju » Mon Aug 15, 2016 7:39 pm

Mike,

Is there a way to download an old version of er9x nowadays? A guy asked me to flash his radio with er9x.hex r768. He says he had a lot of success with this version in the past, so he really wants to stick with that specific release.

I tried the Google Code, but I don't see an option to download an older version of a file anymore...

ReSt
Posts: 1451
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: er9x development

Post by ReSt » Mon Aug 15, 2016 8:32 pm

I do have the full source code of r766 available that also contains the compiled files for er9x.hex, er9x-ardupilot.hex, er9x-frsky.hex, er9x-frsky-noht.hex, er9x-jeti.hex, er9x-nmea.hex and er9x-noht.hex.

Reinhard

Edit:

I even found r767 and r776 on a backup disk

User avatar
jhsa
Posts: 17722
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa » Mon Aug 15, 2016 9:16 pm

I used to keep all versions. Give an hour or so and I check.. :)

João
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

andrewju
Posts: 713
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: er9x development

Post by andrewju » Mon Aug 15, 2016 9:22 pm

In fact, I used to store the firmwares on my PC as they got released. I had quite a large collection. But that was a long time ago. Then I realized I never have a need to go back to a previous version. Also, there was an option on GoogleCode to download any version from the past... So I decided to only keep the recent version on my PC. Ehhh... :(

Reinhard, I'll drop you a PM now.

Thanks!


Update:
João, looking forward to hear good news from you! :)

User avatar
MikeB
9x Developer
Posts: 15561
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB » Mon Aug 15, 2016 9:44 pm

I exported the googlecode repository to Github, you may find it here: https://github.com/MikeBland/er9x.
The only problem is matching the Github commits to the er9x commits, but if you select a particular commit, and look at the file "make.log" together with the "changelog.txt" and the "stamp-er9x.h" files you can work out the rev number the commit belongs to.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 17722
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa » Mon Aug 15, 2016 9:44 pm

I have r768, but at that time I already had my radio modded for telemetry, so I only have the frsky version. Please find it attached :)
I still have my first version. It is r153. I think Mike was still not there :) That is how long I've been here. At least 6 years now :D :mrgreen:
I kept all versions until r782 ;)

João
Attachments
er9x-frsky_r768.zip
(67.42 KiB) Downloaded 61 times
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

User avatar
MikeB
9x Developer
Posts: 15561
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB » Mon Aug 15, 2016 10:48 pm

r768 looks to be:
Commits on Jul 29, 2012
Voice welcome bug fixed, FAS100 voltage added, CS added AND facility,…

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 17722
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa » Mon Aug 15, 2016 11:27 pm

yeah, my file is from Jul 30 at 00:14, so I think that is it ;) :)

João
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

andrewju
Posts: 713
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: er9x development

Post by andrewju » Tue Aug 16, 2016 7:08 am

Gents, thanks a lot!

I got it! :)

rav
Posts: 3
Joined: Mon Aug 15, 2016 8:52 am
Country: -

Re: er9x development

Post by rav » Tue Aug 16, 2016 10:29 am

MikeB wrote:Yes, I can get 8-channel mode in for the M64, it only needs 52 bytes it seems. It will be in the next test version.

Mike.
Great, thanks!

rav
Posts: 3
Joined: Mon Aug 15, 2016 8:52 am
Country: -

Re: er9x development

Post by rav » Tue Aug 23, 2016 8:00 am

I have found this repository, but the code there is quite old: https://github.com/MikeBland/er9x
Is there a new repository for the current development?

User avatar
MikeB
9x Developer
Posts: 15561
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB » Tue Aug 23, 2016 8:09 am

That is the repository. The "Master" branch holds the code when I do a release, the "next" branch holds the most recent committed code.
I need to do a new commit, I'll see about doing one later today. I should do them more often, but I haven't got into the habit of doing them when I change a couple of things!

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

JanRy
Posts: 19
Joined: Mon Dec 28, 2015 8:59 pm
Country: -

Re: er9x development

Post by JanRy » Wed Aug 24, 2016 7:45 am

Thanks Mike, I'll be waiting patiently for the latest updates.I am using a serial LCD and have to compile myself to get it working (with added delays in lcd_init)

JanRy
Posts: 19
Joined: Mon Dec 28, 2015 8:59 pm
Country: -

Re: er9x development

Post by JanRy » Wed Aug 24, 2016 9:27 am

Looks like 'Next' was just updated. Thanks Mike.

allan320
Posts: 1
Joined: Fri Aug 26, 2016 4:38 pm
Country: -

Re: er9x development

Post by allan320 » Fri Aug 26, 2016 4:49 pm

I have installed the SmartieParts extreme board, backlight and speaker, all working fine and a brilliant product by the way.
I cannot find anything that tells me where the SD card is fitted. Only then can I use voice files?

allan320

User avatar
MikeB
9x Developer
Posts: 15561
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB » Fri Aug 26, 2016 6:13 pm

The first image on this post: http://www.rcgroups.com/forums/showthread.php?t=2536318 shows the micro SD card holder and an outline of a micro SD card showing where to insert the card.

This post has the voice files you need to put on the Sd card: viewtopic.php?f=7&t=7715.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
bob195558
Posts: 1836
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: er9x development (SD Card and Folder Directories)

Post by bob195558 » Fri Aug 26, 2016 7:52 pm

9Xtrteme SD Card Placement.jpg
9Xtrteme SD Card Placement
Also see here for more 9Xtreme info help: (viewtopic.php?f=95&t=7182)
and (http://www.smartieparts.com/shop/index. ... cts_id=378).
Micro SD Card list of Folder Directories, see here: (viewtopic.php?f=35&t=9034#p116984).

Bob B.
Last edited by bob195558 on Tue Sep 06, 2016 2:48 pm, edited 3 times in total.
ErSky9x on Taranis, Sky9x, 9Xtreme, Er9x on 9x with Smartieparts Programmer with TelemetrEZ Board
(http://openrcforums.com/forum/viewtopic.php?f=95&t=7182).
CR10 3D Printer: (http://openrcforums.com/forum/viewtopic.php?f=85&t=10702)

zipray
Posts: 23
Joined: Sun Sep 04, 2016 9:05 am
Country: -

Re: er9x development

Post by zipray » Tue Sep 06, 2016 12:39 pm

I have installed a Multiprotocol-TX-Moduleand on my 9xr。It 's always drops the when i using DSMX binding to compatible receiver。
SVN: er9x-r820 loaded
Version: V1.542-Mike

User avatar
MikeB
9x Developer
Posts: 15561
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB » Tue Sep 06, 2016 2:09 pm

I don't think this is a problem with er9x. Assuming you are using MULTI as the protocol, try binding using different RxNum values.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

zipray
Posts: 23
Joined: Sun Sep 04, 2016 9:05 am
Country: -

Re: er9x development

Post by zipray » Tue Sep 06, 2016 3:43 pm

Thanks Mike.I found the way to modify NumRX first, different receiver to avoid using the same NumRX, secondly, I change the option number is, my compatible satellite receiver with 8, F701 receiver with 7, support DSMX choose DSMX.
MULTI added some protocol, and optimized.My module using serial works, MULTI firmware upgrade if necessary?

CharlesLee
Posts: 2
Joined: Mon Dec 12, 2016 2:19 am
Country: -

Re: er9x development

Post by CharlesLee » Mon Dec 12, 2016 4:35 am

Hello, I try er9x FW recently in my flysky th9x, it was just awesome. I want to learn about the code but have no idea on how to start to read the code.
I just read the user manual , but it still be too difficult for me to read the code. Can you guys give me some advices on the code structures?

User avatar
MikeB
9x Developer
Posts: 15561
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB » Mon Dec 12, 2016 10:43 am

Have you done much programming in C or C++ ?
Do you know much about the Atmel Mega processors?
The code will be a bit difficult to read in places as I've done a lot of things to make it smaller.

I think you will need to start in er9x.cpp and find main(), then read from there.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

CharlesLee
Posts: 2
Joined: Mon Dec 12, 2016 2:19 am
Country: -

Re: er9x development

Post by CharlesLee » Tue Dec 13, 2016 12:13 am

MikeB wrote:Have you done much programming in C or C++ ?
Do you know much about the Atmel Mega processors?
The code will be a bit difficult to read in places as I've done a lot of things to make it smaller.

I think you will need to start in er9x.cpp and find main(), then read from there.

Mike.
Hi Mike, you said you've done a lot of things to make it smaller, was that the reason why er9x changed ? (I used to download an elder version of it, which has tens of menus pages and you can switch among them by the potentiameters. But the latest one just contains few)

Post Reply

Return to “er9x”