XJT Module

Hardware Support for the 9XR
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: XJT Module

Post by Kilrah »

If you look at the binding mode table in the x8r manual you'll see one is D8. I know you get limited telemetry with that, and not sure the sbus port is active.

Sent via mobile

User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: XJT Module

Post by LTMNO »

Thx. That was the guide I was referring to which looks confusing as x-series rx fall under the D16 group. Strange.


Sent from my iPhone using Tapatalk
Custom 9x with M64/Telemetry Mod
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XJT Module

Post by MikeB »

The X8R will bind to a DJT, in D8 mode.

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: XJT Module

Post by LTMNO »

I tried to bind to my x8r to my Xjt and was not successful...
Screenshot 2014-04-18 14.33.36.jpg
Screenshot 2014-04-18 14.35.12.jpg
Custom 9x with M64/Telemetry Mod
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XJT Module

Post by MikeB »

I just did it.
XJT, set switch 1 UP, select D series mode.
X8R connect servo signals 7 & 8 together.
Power on X8R, red LED is on solid.
Hold button on KJT pressed in and power on Tx, skip past all warnings
Bind completes, red LED on Rx flashing fast.
Power all off, remove jumper from X8R.
Power all back on, control servos!
I have the protocol set to PXX, D8 mode, but it should work in PPM as well.

Switched to PPM, and that works as well.
SBUS output appears to be working.

I think I have r89, although it may be a test version I was trying, on the TEZ, and the THR and AIL switches are working.

Further testing will follow.

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: XJT Module

Post by LTMNO »

Well, I got the D8 Mode working.. but my CPPM Converter seems to be still not quite 100%.
I am going to try to remove it from the picture and see what happens.
As for the the R89, that doesn't seem to work for me, it gets rid of the AIL/THR Switch Warnings and enables them.. but i can't turn them on and off.
Then the screen starts to go wonky when i try.
Perhaps you can send me your test version and I can test that out see if it works any better?
Custom 9x with M64/Telemetry Mod
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XJT Module

Post by MikeB »

The 57600 baudrate is a bit fast for the TEZ, since its processor is only running at 8 MHz. This means the baudrate is out by a couple of percent. The M64 is better, at 16 MHz, but its baudrate is also a bit out, the other way. I haven't got reliable data transfer at 57600 between them. I have a couple of ideas to try, but there may still be a problem with the data from the XJT to the TEZ as well.

To guarantee reliable operation, we may need to add a ceramic resonator, at 12 MHz, with modified code therefore. This would allow accurate generation of the baudrate, the internal oscillator could drift a bit.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: XJT Module

Post by gohsthb »

The internal oscillator off the tez is adjusted by the ppm stream from the m64. It should be as accurate as the m64.
-Gohst

Sent from my LG-D801 using Tapatalk
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XJT Module

Post by MikeB »

But what if we are in PXX mode?

I've changed the baudrate generation in er9x to error in the same direction and now I can get the switch data recognised. This was with some hard coding in the TEZ to force it to send at 57600, while in D mode. If I allow it to auto detect X mode, it only sends a few packets, then stops sending, and after around 9 seconds the heartbeat pulse on IO-E stops.

I had to do another change. While doing the detect for a D series module, interrupts on timer 0 were enabled, so the timeout was never detected as the interrupt cleared the flag.

Still looking to see why it all dies after 9 seconds.

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: XJT Module

Post by LTMNO »

If you need me to test a version with er9x. Happy to do so with my x8r and xjt in mode d8 or d16. Thx for trying out a solution. Much appreciated.


Sent from my iPhone using Tapatalk
Custom 9x with M64/Telemetry Mod
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XJT Module

Post by MikeB »

Its taken me most of the morning to find the major bug. It's in the file "iotn1634.h". BOTH GPIOR0 and GPIOR1 are defined as the same address, GPIOR0 should be at 0x14, not 0x15!
I'm now moving on to see if I can get it all working and tested.

I'll get back on this later today now.

Mike.

Edit: Quick test and I have THR and AIL switches with telemetry from a X8R/XJT. Need to test the DJT later.
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: XJT Module

Post by LTMNO »

Fantastic Mike. Many thx! Look forward to testing.


Sent from my iPhone using Tapatalk
Custom 9x with M64/Telemetry Mod
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XJT Module

Post by MikeB »

Well, it seems to be mostly working OK. Are you using a '64 or a '128 processor. I need to post a test version of er9x to go with the TEZ update due to the slight baudrate change.
I've added some code that should measure the time from one PXX frame to the next. this should be exactly 9.000 mS. This is then used to adjust the clock to keep the baudrate correct. I've still to test this change.
The only real problem now, I think, is if you use the Tx without amodule, the TEZ thinks it is a XJT (as in not a DJT). We can probably do something about this, as the XJT should be sending SPort polling data, so if we are in XJT mode, and don't see any polling, we must be in no module mode.
Unfortunately, we then don't know what speed to run at. If we are at the wrong speed, the switch data won't get to er9x, so er9x could be hung at the switch alarm, and not sending any pulses. without the pulses and without a module, the TEZ doesn't know what speed er9x wants.

I could add an acknowledgement of the switch data back to the TEZ. That way, if the TEZ doesn't see an acknowledgement, it can assume it is at the wrong baudrate, and switch to the other one. Something to add, but needs to be done carefully so an acknowledgement is only sent if there is a TEZ, and we need to consider TEZ boards that haven't had an update, what will they do with the acknowledgement?

I'll post test versions a bit later.

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: XJT Module

Post by LTMNO »

i am running the M128 with XJT External Tx with X8R Rx.
I have R86 running on the Tez, so testing your version of Tez Firmware would be good too.

Thanks
Custom 9x with M64/Telemetry Mod
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: XJT Module

Post by MikeB »

OK, test versions now posted here: viewtopic.php?f=23&t=994&p=75890#p75890.

Probably worth continuing on that thread now as it is about the TEZ.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
bbergovoy
Posts: 11
Joined: Sun Aug 03, 2014 6:21 am
Country: -

Re: XJT Module

Post by bbergovoy »

im following

Post Reply

Return to “Turnigy 9XR radio”