Page 96 of 106

Re: er9x development

Posted: Tue Jan 19, 2016 9:35 am
by MikeB
Yes, PPMSIM just routes the normal PPM signal to the trainer port as far as I remember.

Mike.

Re: er9x development

Posted: Wed Jan 20, 2016 9:42 pm
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

Re: er9x development

Posted: Wed Jan 20, 2016 11:06 pm
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.

Re: er9x development

Posted: Thu Jan 21, 2016 10:31 am
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...

Re: er9x development

Posted: Thu Jan 21, 2016 2:29 pm
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

Re: er9x development

Posted: Thu Jan 21, 2016 2:47 pm
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

Re: er9x development

Posted: Thu Jan 21, 2016 4:20 pm
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:

Re: er9x development

Posted: Thu Jan 21, 2016 4:48 pm
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.

Re: er9x development

Posted: Fri Jan 22, 2016 1:52 am
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

Re: er9x development

Posted: Fri Jan 22, 2016 7:11 am
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

Re: er9x development

Posted: Sun Jan 24, 2016 4:05 am
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

Re: er9x development

Posted: Sun Jan 24, 2016 7:45 am
by kaos
Gerhard:
I think we are off the topic here. a Pm sent.

Re: er9x development

Posted: Tue Jan 26, 2016 1:57 pm
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!

Re: er9x development

Posted: Tue Jan 26, 2016 4:08 pm
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.

Re: er9x development

Posted: Wed Jan 27, 2016 5:46 am
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.

Re: er9x development

Posted: Thu Jan 28, 2016 10:44 am
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!

Re: er9x development

Posted: Wed Feb 24, 2016 9:58 am
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!

Re: er9x development

Posted: Tue Mar 29, 2016 12:02 pm
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?

Re: er9x development

Posted: Tue Mar 29, 2016 12:27 pm
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.

Re: er9x development

Posted: Wed Mar 30, 2016 11:06 am
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

Re: er9x development

Posted: Wed Mar 30, 2016 3:21 pm
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.

Re: er9x development

Posted: Wed Mar 30, 2016 8:25 pm
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...

Re: er9x development

Posted: Thu Mar 31, 2016 9:38 am
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

Re: er9x development

Posted: Thu Mar 31, 2016 6:44 pm
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.

Re: er9x development

Posted: Thu Mar 31, 2016 9:40 pm
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.

Re: er9x development

Posted: Fri Apr 01, 2016 10:41 am
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.

Re: er9x development

Posted: Fri Apr 01, 2016 4:23 pm
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.

Re: er9x development

Posted: Sat Apr 02, 2016 12:00 am
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.

Re: er9x development

Posted: Sat Apr 02, 2016 9:22 am
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.

Re: er9x development

Posted: Mon Apr 04, 2016 11:47 am
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.