Vorschlag firmware update

Legacy OSTC's
Post Reply
Boehmy
Posts: 12
Joined: 18 Jan 2011, 20:51

Vorschlag firmware update

Post by Boehmy »

Hallo Mathias,

nun habe ich den ersten Tauchgang mit Version 1.80 gemacht, und bin wirklich begeistert. Für die kommende Firmware hätte ich einen Vorschlag zum Logbuch. Wäre es möglich ähnlich des shaerwater predator eine Grafik der Dekozeit im Tauchprofil anzeigen zu lassen?

Beste Grüße
Andi
Longli
Posts: 152
Joined: 07 Feb 2010, 16:29

Re: Vorschlag firmware update

Post by Longli »

Moin, schau dir mal das Profil in Diving Log an. da hast du was du suchst.
OSTC MK2 407
Ferdy
Posts: 143
Joined: 13 Mar 2008, 21:25

Re: Vorschlag firmware update

Post by Ferdy »

Er meint sicher die Anzeige im Display des Rechners, nicht im PC-Logbuch.
Es gibt Leute, bei denen man im Killfile sein sollte, oder man hat etwas flashc gemacht. (Henning Sponbiel in de.org.ccc)
heinrichsweikamp
Posts: 4465
Joined: 13 May 2007, 18:07

Re: Vorschlag firmware update

Post by heinrichsweikamp »

Hallo,

Vielleicht eine doofe Frage, aber wie sieht das denn beim Predator aus?

Das Logbuch und die Detailansicht wird noch etwas "angehübscht", wie genau wissen wir aber noch nicht. Daher sind konkrete Ideen immer willkommen.

Gruss,
Matthias
Chilihead
Posts: 96
Joined: 16 Oct 2010, 14:37

Re: Vorschlag firmware update

Post by Chilihead »

@ Matthias:

auf Seite 36 im Shearwater Predator Handbuch
rettet euch selbst
Boehmy
Posts: 12
Joined: 18 Jan 2011, 20:51

Re: Vorschlag firmware update

Post by Boehmy »

Jup ich meinte natürlich direkt im logbuch des ostc.
Ich mach mal ein pic und stelle es hier rein.

Beste Grüsse
Andi
Boehmy
Posts: 12
Joined: 18 Jan 2011, 20:51

Re: Vorschlag firmware update

Post by Boehmy »

anbei ein grösseres Bild von meiner Idee.
heinrichsweikamp
Posts: 4465
Joined: 13 May 2007, 18:07

Re: Vorschlag firmware update

Post by heinrichsweikamp »

Hi,

JeanDo just posted a patch showing temperature graph and deco ceiling in the logbook:

[img]http://www.heinrichsweikamp.com/file.ph ... e=OSTC.png[/img]

Cheers,
Matthias
rvs
Posts: 18
Joined: 16 Jul 2011, 21:07

Re: Vorschlag firmware update

Post by rvs »

Hi!

Yes very useful patch. Will this be integrated to v2.00stable?
--
Regards from Lake Baikal!
Sergei V. Rozinov
CMAS Instructor RUS/F00/I1/10/000619
OSTC 2C 5086
Solodiver
Posts: 397
Joined: 05 May 2010, 10:25

Re: Vorschlag firmware update

Post by Solodiver »

Cool Matthias and JeanDo - I would love to see this enhanced profile display. Also displaying the deco lines in red when the deco ceiling is broken is a good idea!

Thx,
Jan
~~~
MK2 1076

my wish list: http://heinrichsweikamp.net/forum/read.php?2,4649
Chilihead
Posts: 96
Joined: 16 Oct 2010, 14:37

Re: Vorschlag firmware update

Post by Chilihead »

looks great

@rvs: yes... :)
rettet euch selbst
cparsons
Posts: 57
Joined: 05 Jan 2009, 14:10

Re: Vorschlag firmware update

Post by cparsons »

Thought I would try compiling the latest repository and uploading it?

Got everything to compile and link ok but when I try to upload the generated hex file I get a message 'Overwriting bootloader denied'

Connected to \\.\COM3 at 19200
HEX: 37 min old, INHX32,18Fcode+cfg, total=80042 bytes.
Searching for PIC ...
Found:18F 4685
Overwriting bootloader denied
ERROR!

Any ideas anyone?
---------------------------------
Chris Parsons
OSTC 2n #2516
heinrichsweikamp
Posts: 4465
Joined: 13 May 2007, 18:07

Re: Vorschlag firmware update

Post by heinrichsweikamp »

Hi,

There seems to be code in memory address >0x17F00 in your hex file.

This is what I get (And it installs fine).

Regards,
Matthias
cparsons
Posts: 57
Joined: 05 Jan 2009, 14:10

Re: Vorschlag firmware update

Post by cparsons »

Thank you - all I did was clone the repository at bitbucket and amend the paths in the IDE so it would compile and link?

I used TortoiseHG but perhaps I need to do a bit more research, I normally use SVN for source control and Tortoise is new to me

Not sure why the image would use an invalid memory address, I didn't actually change any of the code (very new to PIC programming, I am a Java programmer)

Regards
---------------------------------
Chris Parsons
OSTC 2n #2516
Solodiver
Posts: 397
Joined: 05 May 2010, 10:25

Re: Vorschlag firmware update

Post by Solodiver »

Ah, I love the new log book graph display, thx!

Some remarks (to 1.96 alpha attached by Matthias):
- the depth shown in the log book is about 2% higher (deeper) than in the dive
- the temperature graph is wrong for the first couple of minutes, it goes down to zero and then suddenly up again, looks like a long spike (for about 2 minutes)
- crazy thing: Now the temperature graph looks better in the beginning, there is now just a small spike down and an other red line which looks like a broken deco ceiling (which should not be there at the beginning of the dive)
- How to read the temperature concerning the scale? I don't get any clue seeing the graph and knowing my real values from today
~~~
MK2 1076

my wish list: http://heinrichsweikamp.net/forum/read.php?2,4649
Solodiver
Posts: 397
Joined: 05 May 2010, 10:25

Re: Vorschlag firmware update

Post by Solodiver »

After playing around some more with the ne graphical log book two more remarks:

- The huge temp spike in the beginning of the dive is there again when I open the dive log again for the first time but is vanished the next accesses (as described above)
- Please have a look that the depth and deco graphs are shown correctly. I've the feeling that the max values are some meters to shallow. My max deco ceiling in my last dive has been 51m but the deco lines are not crossing the 50m line of the grid (but coming very close). Could be a display issue only but there is bigger visible gap at the max depth which seems about 5m to less (shallower) regarding the displayed max depth above the graph. As said, this depth might also be wrong as it seems about 2% more than shown in the dive but anyway, also this value is not reached in the graph. BTW: The grid seems to be calculated correctly.
OK, as this might be hard to understand here some real values:
- max depth written above the graph: 103,4
- max depth seen in the dive: around 101,x
- max depth shown in the graph around 98m
- max grid display about 102 or 103m

HTH,
Jan
~~~
MK2 1076

my wish list: http://heinrichsweikamp.net/forum/read.php?2,4649
JeanDo
Posts: 238
Joined: 06 Dec 2010, 15:43

Re: Vorschlag firmware update

Post by JeanDo »

@Jan

Yes, I noticed the first point in the temperature graph is random. Just because the first sample of the logbook never stores temperature (divisor stuff). I'll patch to start the tp° curve once we have the first valid value.

Ceiling is initialized to 0, which is always correct and dive start.

Temperature scale is currently fixed to -2°C .. +35°C. Not sure yet how to display the scale (on right border).

Also note that the depth graph skip most of the point (subsampling because the screen is too small). So there is little chance it shows your max depth.

Regards,
~~~~
JeanDo, http://ostc-planner.net, OSTC Mk.2 1455, 2N 2799, DR5 171.
cparsons
Posts: 57
Joined: 05 Jan 2009, 14:10

Re: Vorschlag firmware update

Post by cparsons »

I am still failing to generate a firmware image that will load?

I have gone to BitBucket, used the 'Get Source' link, unzipped, adjusted the paths and successfully compiled and linked, but the image still give a message 'Overwriting bootloader denied' :(

I just cannot see what the problem can be, I originally cloned the repository but cannot see if I get the source direct how I can be addressing invalid memory, surely I am compiling the same source as you?

Are there any special settings or parameters in MPLAB? (I am using 8.73a)

I have attached the image I ended up with?

Thanks
---------------------------------
Chris Parsons
OSTC 2n #2516
heinrichsweikamp
Posts: 4465
Joined: 13 May 2007, 18:07

Re: Vorschlag firmware update

Post by heinrichsweikamp »

Hello Chris,

- 18f4685_ostc_mkII.lkr linker script added?
- p2_deco.o object file added?

I use MPLAB 8.66 - unlikely but this may also have an effect. I just added the p18F4685.lib we use into the repository (Project->Directories->Library Search Path). Maybe this works for you.

Cheers,
Matthias
cparsons
Posts: 57
Joined: 05 Jan 2009, 14:10

Re: Vorschlag firmware update

Post by cparsons »

Thank you - I changed the linker script and added the p18F4685.lib file and it is now working :))

I appreciate the help, and all the hard work you put in to a superb product, 10/10

Best wishes
---------------------------------
Chris Parsons
OSTC 2n #2516
Post Reply