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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

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.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

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

Re: er9x development

Post by jhsa »

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: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

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

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

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 »

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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

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.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
andrewju
Posts: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: er9x development

Post by andrewju »

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: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: er9x development

Post by ReSt »

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: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

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: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: er9x development

Post by andrewju »

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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

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.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

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 312 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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

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

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

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: 784
Joined: Tue Aug 21, 2012 7:29 am
Country: Russian Federation
Location: Moscow

Re: er9x development

Post by andrewju »

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 »

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 »

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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

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.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
JanRy
Posts: 38
Joined: Mon Dec 28, 2015 8:59 pm
Country: -

Re: er9x development

Post by JanRy »

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: 38
Joined: Mon Dec 28, 2015 8:59 pm
Country: -

Re: er9x development

Post by JanRy »

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 »

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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

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.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
bob195558
Posts: 2377
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 »

9Xtrteme SD Card Placement
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.
Er9x on 9x radio, with Smartieparts Programmer and TelemetrEZ Board.
ErSky9x on Taranis, Sky9x, 9Xtreme radios.
3D-Printing: (https://openrcforums.com/forum/viewforum.php?f=129).
zipray
Posts: 24
Joined: Sun Sep 04, 2016 9:05 am
Country: -

Re: er9x development

Post by zipray »

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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

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.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
zipray
Posts: 24
Joined: Sun Sep 04, 2016 9:05 am
Country: -

Re: er9x development

Post by zipray »

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 »

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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

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.
erskyTx/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 »

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”