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 »

Yes, PPMSIM just routes the normal PPM signal to the trainer port as far as I remember.

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

planger
Posts: 90
Joined: Mon May 04, 2015 10:50 am
Country: France

Re: er9x development

Post by planger »

@Gerhard
There are multiple versions of the HT8 and only the latest can send the 3/6 axis info on CH7... The version is written on the pcb if I remember correctly.
Otherwise you can always use the DIY-Multiprotocol-TX-Module for this :-)
- Pascal
User avatar
kaos
Posts: 3247
Joined: Wed Dec 28, 2011 1:15 am
Country: United States

Re: er9x development

Post by kaos »

Hmmm, i have two HT8 module that plugs in the tx bay connector directly using the ppm not the trainer port. And they work fine.
planger
Posts: 90
Joined: Mon May 04, 2015 10:50 am
Country: France

Re: er9x development

Post by planger »

They work fine yes but the problem is that they introduced the 3G/6G mode on the latest models. So the old HT8 modules are not compatible...
User avatar
gerhardp
Posts: 29
Joined: Wed Nov 26, 2014 12:14 am
Country: -
Location: Bronx NY

Re: er9x development

Post by gerhardp »

kaos wrote:Hmmm, i have two HT8 module that plugs in the tx bay connector directly using the ppm not the trainer port. And they work fine.
Thanks Kaos,

I am not sure I understand what the bay connector is on the 9X.
All I have on my 9X is the trainer/simulator port and a charging plug.

Do you mean to remove the native RF module and to make a cable that plugs into the four pin module connector?
I have seen this mod being used to power the HT8 from the 9X. There are three wires involved, ground, V+ and signal.
Gerhard

User avatar
gerhardp
Posts: 29
Joined: Wed Nov 26, 2014 12:14 am
Country: -
Location: Bronx NY

Re: er9x development

Post by gerhardp »

planger wrote:@Gerhard
There are multiple versions of the HT8 and only the latest can send the 3/6 axis info on CH7... The version is written on the pcb if I remember correctly.
Otherwise you can always use the DIY-Multiprotocol-TX-Module for this :-)
- Pascal
I do have the latest version of the HT8, it has a silver label and it says Accelerometer version in a red field below the words RADIO ADAPTER.
I do use channel 7, and I have tried positive, negative and zero values. None of them have any effect on the mode. I believe 6 axis is the default.

What is the DIY-Multiprotocol module, the NRF24L01?
Gerhard
User avatar
kaos
Posts: 3247
Joined: Wed Dec 28, 2011 1:15 am
Country: United States

Re: er9x development

Post by kaos »

check this: viewtopic.php?f=48&t=3282&p=64269&hilit=ht8#p47355
Here is the Multiprotocol module: http://www.rcgroups.com/forums/showthre ... st28359298
It is a great project, I had all 4 module made, can fly just about any thing (if the code is cracked by Deviation and ported to Multimodule). Now I don't use the HT8 instead using the Multiprotocol. The NRF24L01 is one of the tx module used in the project which control many toy models. It has loonger range than the stock module/Tx.
Here is a link to which module/protocol is used in which model:
https://docs.google.com/spreadsheets/d/ ... li=1#gid=0

edit: :o :o Just realize Planger is Pascal. What am I doing the explanation for Multimodule here for! Planger/Pascal is the one who write the code. :lol: :lol:
planger
Posts: 90
Joined: Mon May 04, 2015 10:50 am
Country: France

Re: er9x development

Post by planger »

;-) DIY Multiprotocol TX Module. Every details on this page: https://github.com/pascallanger/DIY-Mul ... -TX-Module . It's well integrated with er9X and ersky9x.
User avatar
gerhardp
Posts: 29
Joined: Wed Nov 26, 2014 12:14 am
Country: -
Location: Bronx NY

Re: er9x development

Post by gerhardp »

kaos wrote: Here is a link to which module/protocol is used in which model:
https://docs.google.com/spreadsheets/d/ ... li=1#gid=0

edit: :o :o Just realize Planger is Pascal. What am I doing the explanation for Multimodule here for! Planger/Pascal is the one who write the code. :lol: :lol:
Thanks for all that good, useful information in the links, kaos and planger,

To get started, where can I get empty JR module boxes, BG or HK or ...? Cheap, of course.
Thanks Gerhard
User avatar
kaos
Posts: 3247
Joined: Wed Dec 28, 2011 1:15 am
Country: United States

Re: er9x development

Post by kaos »

You can get it here: http://www.ebay.com/itm/171715192100?_t ... EBIDX%3AIT
that is Horizon Hobby's ebay store. If my memory is correct, you can buy several boxes at HH and save some shipping fee.
I doubt you will get anything cheaper than that. But you can also use your stock Flysky module box, you can even use the A7105 module inside. Just remove one chip from the module and the binding button pcb which you don't need. Reuse that 5V reg from the bind button pcb. add a 3.3 v reg. Hook up the pro mini, you are done.;) I think you can squeeze a NRF24L01 in there too.
see the pic here: http://www.rcgroups.com/forums/showpost ... count=1618
User avatar
gerhardp
Posts: 29
Joined: Wed Nov 26, 2014 12:14 am
Country: -
Location: Bronx NY

Re: er9x development

Post by gerhardp »

planger wrote:;-) DIY Multiprotocol TX Module. Every details on this page: https://github.com/pascallanger/DIY-Mul ... -TX-Module . It's well integrated with er9X and ersky9x.
I can do that, thanks for the link Pascal,

I would go the OSH PARK Multiprotocol board route using the shopping list. The JR module box is already on order.
Originally I would be only interested in the A7105 module, which I can harvest from a WL V911 TX that I have.

And then I would add the NRF24L01 module for the Hisky support. That should all fit into a JR box, shouldn't it?
Makes you wonder what is wrong with that Hisky HT8 module that it can't pass a +/- value on CH 7?

Originally I thought I would modify the 9X module bay to have a small coax connector to the module boxes.
So that way I could keep a single antenna on the 9X regardless which module was in the bay.

But I couldn't find the parts on Digikey. So today I was working on my wife's Lenovo T60 replacing the cooling fan.
And there it was on the WiFi board, tiny coax connectors, about 1.5 mm I would say, and the male cable connectors.

The schematic says Arduini, but the Github page says ATMEGA328. Which is it?
Gerhard
User avatar
kaos
Posts: 3247
Joined: Wed Dec 28, 2011 1:15 am
Country: United States

Re: er9x development

Post by kaos »

Gerhard:
I think we are off the topic here. a Pm sent.
Leesicin
Posts: 31
Joined: Tue Nov 10, 2015 8:27 am
Country: -

Re: er9x development

Post by Leesicin »

Hi Mike, how are you?
Did r820 support SBUS (I still testing your last Test version with SBUS :).
So, I'm testing SBUS protocol with NAZE32 rev5 (orginal Abusmark, firmware Baseflight), and it's work! In configurator I see all channels (8CH - as I unerstand Baseflight support only 8 channels) , and sticks reaction fine. And motors spining. But I find issue (maybe it's not SBUS issue) , when I unplug battery and then plug it back, I see all channels and all react as must, BUT motors not spining!!! :( They just beeping one time and nothing :(.
After reflashing and adjust all settings, motor spining, But after unplug-plug battery - they don't spinning.
Have you any Ideas with this?
Also I testing APM 2.8 (china clon) , and SBUS work fine (but I don't arming yet, will test it today).
Do you have any information about using SBUS from other users?
Thanks in advance!
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, r820 includes SBUS protocol.
I have no idea about the "unplug the battery" problem! I can only guess it is not armed any more.
No one else has reported they are using SBUS, although the MULTI protocol now uses almost the same protocol, so shares the code, and that is working OK.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Leesicin
Posts: 31
Joined: Tue Nov 10, 2015 8:27 am
Country: -

Re: er9x development

Post by Leesicin »

I'ts fine with r820, I'll flash it today. Piople don't know what they loosing :). And they don't whant to test new featurs, they likу finished solution. Later I'll finish tests and push It to rcgroups. Also not a lot of piople understand what is SBUS, they know it's Futaba and nothing more.
About my problem, you will be Fun - all armed without any problem! More fun - I switch off SBUS and push PWM - the same problem :) Plug-unplug - motor not started. So I reflash NAZE32 with old firmware, and all work WELL (but with PWM yet)! So this is not SBUS problem, this is Baseflight problem. Then I flashed Cleanflight and all working (with PWM)! Today I will check with SBUS, and will report you. Thanks for r820 (and 821 ) :) Best whishes.
Leesicin
Posts: 31
Joined: Tue Nov 10, 2015 8:27 am
Country: -

Re: er9x development

Post by Leesicin »

Hi Mike! It was problem with Baseflight firmware, Now all OK! All Work! I flight at home with SBUS!!! You My HIRO :) Later will check outside. Thanks a lot!
Leesicin
Posts: 31
Joined: Tue Nov 10, 2015 8:27 am
Country: -

Re: er9x development

Post by Leesicin »

Hi Mike,
I flight with SBUS and APM2.8!!! All Fine!!! Copter 450 mm, Distance more 500 meters! about 2,5 hours total flight time (8 packs of bataries)!!! All great!!!
Make some video of PPM and SBUS (from osciliscope). Will give you link later!
nrw505
Posts: 11
Joined: Mon Mar 28, 2016 11:19 am
Country: -

Re: er9x development

Post by nrw505 »

Hi Mike,

Probably a stupid question, but I can't figure it out:

I'm trying to compile a clone of https://github.com/MikeBland/mbtx and while it seems to compile fine, I get a blank LCD on boot.

I'm using "make REVX=1" to build for a 9XR PRO

When I install the .bin from ersky9xr_rom.zip on viewtopic.php?f=7&t=4676 it works fine.

What am I missing?
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 »

You need "REVB=1" as well. I use:
make REVB=1 DEBUG=1 STAMP=1 PHASES=1 REVX=1
although I believe only the REVB and REVX are now needed.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
nrw505
Posts: 11
Joined: Mon Mar 28, 2016 11:19 am
Country: -

Re: er9x development

Post by nrw505 »

Thanks Mike!

That's got me to having the splash screen and the startup switch position check working, but as soon as I put all my switches in order and the throttle to zero, it looks like it's resetting over and over (screen flashes and speaker clicks), but the transmitter module seems to stay powered up.

Any chance you can send me a compiled .elf so I can compare with what I'm compiling to and figure out what I'm doing different?

Thanks
Nigel
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 »

Not immediately as I will need to revert to the Github master branch to build from the same sources you are using.
What compiler (and version) are you using?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: er9x development

Post by LTMNO »

MikeB wrote:Yes, r820 includes SBUS protocol.
I have no idea about the "unplug the battery" problem! I can only guess it is not armed any more.
No one else has reported they are using SBUS, although the MULTI protocol now uses almost the same protocol, so shares the code, and that is working OK.

Mike.
I am using SBUS... no problems.. all is good. ;-)
I see a few posts later its fixed...
Custom 9x with M64/Telemetry Mod
nrw505
Posts: 11
Joined: Mon Mar 28, 2016 11:19 am
Country: -

Re: er9x development

Post by nrw505 »

MikeB wrote:Not immediately as I will need to revert to the Github master branch to build from the same sources you are using.
What compiler (and version) are you using?

Mike.
I am using arm-none-eabi-gcc 5.1.0 and arm-none-eabi-binutils 2.23.1

Thanks
Nigel
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 using an earlier compiler, I'm not certain which at present. This may be the cause of your problem. I know openTx had some problems due to using a later compiler that generated code in a different order.

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

Please try a test. Start the radio in "maintenance mode" (horizontal trims held apart at power on), and see whether the radio keeps rebooting.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
nrw505
Posts: 11
Joined: Mon Mar 28, 2016 11:19 am
Country: -

Re: er9x development

Post by nrw505 »

MikeB wrote:Please try a test. Start the radio in "maintenance mode" (horizontal trims held apart at power on), and see whether the radio keeps rebooting.

Mike.
Radio boots fine in maintenance mode. Exiting maintenance mode results in the firmware loading as usual, with the same rebooting behaviour - i.e. splash screen animates, switch & stick check waits for everything to be OK, then starts rebooting.
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 guessing you may be getting a watchdog reset. In the function "mainSequence()", you will find the code:

Code: Select all

	perMain( no_menu ) ;		// Allow menu processing
	if(heartbeat == 0x3)
	{
    wdt_reset();
    heartbeat = 0;
  }
Try adding an extra wdt_reset(); as below

Code: Select all

	perMain( no_menu ) ;		// Allow menu processing
   wdt_reset();
	if(heartbeat == 0x3)
	{
    wdt_reset();
    heartbeat = 0;
  }
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
nrw505
Posts: 11
Joined: Mon Mar 28, 2016 11:19 am
Country: -

Re: er9x development

Post by nrw505 »

No change I'm afraid. I've also changed the optimisation CFLAGS from -Os to -O0 in case the wdt_reset was getting optimised out somewhere, but again no change.
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 »

This will take a significant investigation to find. What you may need to do is use the COM2 port (available as RS232 levels on the Futaba connector) to send debug data out to see how far through the code you are getting.
Do you have the telemetry cable for COM2 to be use via the Futabe connector?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
nrw505
Posts: 11
Joined: Mon Mar 28, 2016 11:19 am
Country: -

Re: er9x development

Post by nrw505 »

I don't, but I'm sure I can hack something together.

I shall have a poke around and see what I can trace through to.

Post Reply

Return to “er9x”