Introducing: TelemetrEZ

All mods related to the frsky telemetry series of the firmware
nielsbusch
Posts: 3
Joined: Mon Sep 24, 2012 11:23 am
Country: -

Re: Introducing: TelemetrEZ

Post by nielsbusch »

I just installed the Telemetrez and a Thermal Scout. It works awesome. Super happy to have a real vario. Thanks a lot Steven + contributors. I also have the firmware delay, but it really isn't an issue for me.

aesmith
Posts: 56
Joined: Fri Jan 13, 2012 10:26 am
Country: -

Re: Introducing: TelemetrEZ

Post by aesmith »

Sorry for a basic question, but to use this board do you select the Frsky version of Open9X or er9X, or does it need a special version? I'm not clear whether this board does the "pin swapping" needed by the normal DIY Frsky mod, or whether it makes it unnecessary by passing the data via a different route.

Thanks, Tony S
----------------------------
Tony S
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Introducing: TelemetrEZ

Post by Kilrah »

You need the frsky version, the "standard" one doesn't have any telemetry code. ER9x auto-detects the TEZ board, on open9x you need to also tick the "telemetrez" option when you download the firmware via C9X.
aesmith
Posts: 56
Joined: Fri Jan 13, 2012 10:26 am
Country: -

Re: Introducing: TelemetrEZ

Post by aesmith »

Thanks. Time to get it ordered I think.
----------------------------
Tony S
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Introducing: TelemetrEZ

Post by Rob Thomson »

aesmith wrote:Thanks. Time to get it ordered I think.
You will like it. Simple, and very effective.
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!

ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

Hi,

I am trying to upload the firmware v58 to my TelemetrEZ so I can try out a rotary encoder. I have a usbtiny from ladyada and I am using avrdude on a linuxbox. I added gohsthb's conf file for the attiny1634 to the avrdude.conf file but when I run avrdude it writes and then after verification gives the following error:

avrdude: verification error, first mismatch at byte 0x0002
0x39 != 0x20
avrdude: verification error; content mismatch

Any ideas about what to do next would be appreciated. As a note, the usbtiny programs the Turnigy 9x I have just fine.

Regards,

Eusebio
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Introducing: TelemetrEZ

Post by gohsthb »

You copied the version from the google code page right? What version of avrdude?
-Gohst

Sent from my LG-P999 using Tapatalk 2
ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

Yes, I copied your version from the code page. avrdude version 5.11.1

Eusebio
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Introducing: TelemetrEZ

Post by gohsthb »

How are you powering the telemetrez? I don't see anything about your programmer powering the circuit. With mine I use a dragon programmer and provide power through the programming header, while the 9x is turned off.
-Gohst
ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

The ladyada usbtiny has a jumper to power the target during the programming. I use that jumper set to power the target and with the 9x Tx I have no problem reflashing with the Tx power button OFF.

Eusebio
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Introducing: TelemetrEZ

Post by gohsthb »

Hmmm, sorry I don't know then. Maybe some one else can think of some thing. It fails in exactly the same place each time?
-Gohst

Sent from my LG-P999 using Tapatalk 2
ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

I've tried it several times and I get the following error each time:

avrdude: verification error, first mismatch at byte 0x0002
0x39 != 0x20
avrdude: verification error; content mismatch

Anyway, thanks for your time Gohst. I will let this rest over the weeked since I will be out of town. I'll pick it up next week and if I find any fix I'll post back.

Again, thanks for your time.

Regards,

Eusebio
User avatar
Gaijin
Posts: 26
Joined: Fri Jan 11, 2013 7:20 pm
Country: -

Re: Introducing: TelemetrEZ

Post by Gaijin »

S_mack / forumites

Love what you are doing for the 9x, I've had a SP since 2.1 and now I can integrate my Telemetry feeds without having to jam an FLD-02 on there, Nice...

SO, lots of info in this thread but a bit tricky to track it all down, following is everything I have collated so far, I'd like to add the eeprom chip, a rotary encoder (knob not 4 way switch replacement) and a bluetooth module to pass the telemetry feed to a FRSky dashboard on my tablet/phone for logging / voice.

Talk down to me, I love to hack and have some knowledge but I'm not by training an electronics guy

Would this be a suitable eeprom, I selected it from the list posted a few pages back, but I have no idea about the speed it needs to operate at, do I need anything else to add to the board?

http://www.digikey.co.uk/product-detail ... ND/3516005

Next up, the rotary encoder, here I have literally no idea of the size or design required to replace one of the existing rotary pots, the pinout seems quite clear from the IO list below, which of these would be suitable?

http://www.digikey.co.uk/product-search ... %20encoder

Finally, bluetooth, I have one of the cheap Bluetooth RF Wireless Serial Module RS232 With Backplane TTL left over from a multicopter project, can I hook this straight up or do I need something else?
Where IO16 Is marked as bluetooth do I simply need to connect the RXD pin to this, can I safely tap the Gnd & VCC lines to supply it?

TelemetrEZ IO

Pin Number Pin Name TelemetrEZ mark Function
1 PA6 IO1 20ms Toggle output Debug
2 PA5 IO2 Main Function Toggle output Debug
3 PA4 IO3 Goes high after PPM signal lost Debug
4 PA3 IO4 I2C data Serial EEPROM
5 PA2 IO5 I2C Clock Serial EEPROM
6 PA1 AIL Switch
7 PA0 THR Switch
8 Gnd Gnd
9 Vcc Vcc
10 PC5 IO10
11 PC4 IO11 Rotary Encoder Switch Rotary Encoder
12 Reset Reset
13 PC2 IO13 Rotary Encoder B Rotary Encoder
14 PC1 PPM_in
15 PC0 IO15 Rotary Encoder A Rotary Encoder
16 PB3 IO16 Bluetooth Bluetooth
17 PB2 TX1 Frsky Side
18 PB1 RX1 Frsky Side
19 PB0 TX0 9x Side
20 PA7 RX0 9x Side

Thanks in advance
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Introducing: TelemetrEZ

Post by gohsthb »

Ek123, one more thing to try. Unplug the frsky module. That is on the same pins that are used for programming. Maybe it is interfering.
-Gohst

Sent from my LG-P999 using Tapatalk 2
ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

Gohst,

Quick reply and a note...I didn't connect the TelemetrEZ to the 9x but tried to upload the v58 hex file with no connections at all (except the programmer) to the TelemetrEZ. I didn't think it was necessary to connect it up to the 9x.

A Note: I was comparing your hex file to the one Steve has appended to the avrdude.conf in his t1634 zip file which you can find in a post of his on page 21. I notice two differences and because I am a rank novice at all this (less than a novice--is that possible?) I don't have a clue if they are important. In the chip_erase line you have 0's in some places and he has x's. In the memory "eeprom" section you have 512 for the 'size' and he has 256. I note that the avr freaks file seems to have 256 also and x's. I haven't tried the hex file from Steve's post. I'll have to try tomorrow sometime.

Eusebio
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Introducing: TelemetrEZ

Post by gohsthb »

I have no idea why his chip erase line differs from mine. The eeprom memory size should be 256. I haven't had to program the eeprom, so I never noticed this. I will change mine to 256. Have you tried adding -B 10 to your avrdude line? The tiny1634 is running at 1MHz, perhaps your programmer is running too fast for it?
-Gohst
ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

Well I don't know what to do except maybe buy another programmer. I changed the values in avrdude.conf to correspond to those of Steve's file found in the zip of the previous page.

Here is what I type for the programming command:

sudo avrdude -v -c usbtiny -p t1634 -P usb -B 10 -U flash:w:telemetrEZ.hex:a

The resultant output is:


avrdude: Version 5.11.1, compiled on Oct 30 2011 at 10:37:28
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "/etc/avrdude.conf"
User configuration file is "~/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : usb
Using Programmer : usbtiny
Setting bit clk period : 10.0
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 002:005
AVR Part : ATTINY1634
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 5 4 0 no 256 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 16384 32 512 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

Programmer Type : USBtiny
Description : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported

avrdude: Setting SCK period to 10 usec
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9412
avrdude: safemode: lfuse reads as E2
avrdude: safemode: hfuse reads as DF
avrdude: safemode: efuse reads as 7
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: Setting SCK period to 10 usec
avrdude: reading input file "telemetrEZ.hex"
avrdude: input file telemetrEZ.hex auto detected as Intel Hex
avrdude: writing flash (3216 bytes):

Writing | ################################################## | 100% 9.09s



avrdude: 3216 bytes of flash written
avrdude: verifying flash memory against telemetrEZ.hex:
avrdude: load data flash data from input file telemetrEZ.hex:
avrdude: input file telemetrEZ.hex auto detected as Intel Hex
avrdude: input file telemetrEZ.hex contains 3216 bytes
avrdude: reading on-chip flash data:



Reading | ################################################## | 100% 6.02s



avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0002
0x39 != 0x20
avrdude: verification error; content mismatch

avrdude: safemode: lfuse reads as E2
avrdude: safemode: hfuse reads as DF
avrdude: safemode: efuse reads as 7
avrdude: safemode: Fuses OK

avrdude done. Thank you.

-----------------------------------------------

I don't have a clue!

Eusebio
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Introducing: TelemetrEZ

Post by gohsthb »

Interesting almost everything looks ok
I'm not sure what it didn't like here "avrdude: programmer operation not supported" Because it never says what operation it tried.

-Gohst
ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

I noticed that also and I tried different options. The statement was always there.

Eusebio

I think I'll pick up a cheapy usbasp and see if I get any better luck with it.
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ReSt »

Don't know if that helps.

I had a similar problem some days ago with an Arduino 328 that I'm going to use for the voice module.
Bootloader and userprogram had been flashed some days ago and everything worked.

Some time later, I tried to flash the 'user program' and avrdude failed with the verify step. Every time. Independent of the interface (USB/ICSP)
Reading the flash memory to a file showed, that AVRDUDE had not written the new file at all. The old content was still unchanged, so the verify error was correct.

After an 'erase chip' and reloading the boot loader everything is fine again. I can flash the user program via USB and/or ICSP.


Reinhard
ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

Don't know if this will help anyone figure out my problem but I managed to borrow a jtagmkII from someone and I got it up and running under windows. Using AVRStudio 6, the upgraded firmware recognizes ATtiny1634. When I tried to write / verify using isp I got the following message (please note I rigged up a cable to the 10 pin header on the TelemetrEz from the jtag header--I found the pinout conversion on the net. Seems to be OK I think):

Verifying Flash...Failed! address=0x0000 expected=0x0c actual=0x00

Don't know what this means--I've been googling around but so far nothing I've found seems to get me going in the right direction. Does anyone have an idea?

Thanks,

Eusebio


BTW, I was powering up the target TelemetrEZ board with ~ 3.3V at pin 2 on the ISP header. Nothing else was connected. I suppose that's fine? What don't I get here??
ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

Well, I suppose I did something stupid because I decided I would try plugging the TelemetrEZ board to it's connectors in the Tx. The Tx had no battery connection. Anyway, I plugged it in and tried to flash it but the ATtiny wasn't found. When I disconnected the board from the Tx and tried to hook it up to either the jtag or usbtiny no luck! Does it make sense to buy a chip and remove the one on board or is something else on the board fried?

Thanks,

Eusebio
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Introducing: TelemetrEZ

Post by gohsthb »

So you plugged it into the tx, but no battery in the tx? A programmer should not be able to break a chip. More likely the program is screwed up.
-Gohst
When using the Jtag programmer, did it want to set the fuses to enable debug wire?

Sent from my LG-P999 using Tapatalk 2
ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

Hi Gohst,

The jtag programmer didn't try to set anything. When powered up it found the t1634. At one point I purposely picked a different target device to program in the GUI and when I tried to erase the t1634 flash I got an error message from the GUI letting me know that the ID wasn't what was expected. It seems it found the t1634 fine. Anyway, I don't know what killed the t1634 (other than my fooling around) but I'm pretty sure it's dead. Neither of the controllers I have can talk to it. I really don't know what happened, I just plugged it into the Tx according to the instruction pictures on the smartieparts website (I have a version 1 Tx but I doubt if that matters) and that was that!

I ordered a few t1634 chips from Digikey. This is a learning process for me and I am very far down on the curve and, like all learning now, it can be expensive! I just hope the tuition I pay is more like state college and not private Ivy league!

Regards,

Eusebio
ek123
Posts: 21
Joined: Mon Aug 27, 2012 9:13 pm
Country: -

Re: Introducing: TelemetrEZ

Post by ek123 »

Gohst,

Sent you a PM.

Eusebio
User avatar
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Introducing: TelemetrEZ

Post by gohsthb »

r60 is now up on the code page. I finally got a Bluetooth module and tested it. Now I have telemetry data on my phone too! Check the wiki for directions on how to set it up. Next up, testing a rotary encoder.
-Gohst

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

Re: Introducing: TelemetrEZ

Post by MikeB »

Do you need a few changes to er9x for the rotary encoder from the TEZ?

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: Introducing: TelemetrEZ

Post by gohsthb »

I need er9x to accept the rotary encoder value and it's push button value. The packet now looks like 0x1b 0x03(# of data) <ail thr positions> <rotary encoder value> <rotary encoder switch>. The rotary encoder switch is 1 if pressed, 0 otherwise.
Also you have an er9x '128 version, I am hoping to test that out.
-Gohst

I think I figured out how to add it in er9x. It seems to be working fine anyway. See the attached diff file. :D
Attachments
tezRotary.diff.txt
(1.48 KiB) Downloaded 260 times
User avatar
Gaijin
Posts: 26
Joined: Fri Jan 11, 2013 7:20 pm
Country: -

Re: Introducing: TelemetrEZ

Post by Gaijin »

Wow gohsthb, you're on a roll!

I'm not so clear on hooking up the bluetooth, do I need to use a logic level converter or frskylite with the telemetrez?

Which pin to which?

Can you link to the wiki page in case I'm looking in the wrong place
User avatar
Promix
Posts: 109
Joined: Wed Dec 28, 2011 10:23 am
Country: -

Re: Introducing: TelemetrEZ

Post by Promix »

Regarding Bluetooth, I found this one somewhere in my parts box. Can I use it with TelemetrEZ and Android phones ?
http://bluecontroller.com/index.php?cid ... 8-BTM~pino
Thanks

btw, it has an AVR on board for special applications.

This is an open source bootloader:
http://code.google.com/r/michaeldreher4 ... ontroller/

Don`t know if this is useful :|

Post Reply

Return to “FRSky Telemetry Mods”