Re: OSTC3 - Connection to an iPhone / Smartphone / Presure Sensor

OSTC's running hwOS sport or tech
Post Reply
Rougaille
Posts: 34
Joined: Friday 10. May 2013, 20:47

Re: OSTC3 - Connection to an iPhone / Smartphone / Presure Sensor

Post by Rougaille »

Dear Developers,

Should we imagine a connection via the optical link of the OSTC3 to an iOS device ?
> It would be great to access detailed info without physical connection, and without a laptop.

The idea is to use the Camera and the Flash to communicate with the OSCT3 optical LED.
(It can also work for any other Smartphone ...)

It needs to develop an iOS APP & update the OSTC3 Firmware.

Functionalities :
- Logbook download
- Firmware update
- Software customizing with graphical tools

Best regards,

Rougaille
heinrichsweikamp
Posts: 4376
Joined: Sunday 13. May 2007, 18:07

Re: OSTC3 - Connection to an iPhone / Smartphone

Post by heinrichsweikamp »

Hi,

The optical input is sensitive to infrared light only that is modulated with 38kHz. I'm not sure if you can simulate this with the flash light of an iPhone.

Regards,
Matthias
Rougaille
Posts: 34
Joined: Friday 10. May 2013, 20:47

Re: OSTC3 - Connection to an iPhone / Smartphone

Post by Rougaille »

Hello Matthias,

I think that smartphones cameras can see infra red @ 38kHz
http://www.instructables.com/id/See-Inf ... -iPhone-4/

The questions is more about sending back information to OSTC3 LED (Wet connector system for hwHUD - O2 monitoring).
> Can the smartphone flash light modulate infrared light at 38kHz ?

Another idea is to use a cheap (10€) external IR device connected to the audio port :
http://lifehacker.com/5817504/turn-your ... with-blinq

What is your advice ?

PS: As an example, i really appreciate to use my smartphone/ipad to control my GoPro (set configuration, read videos ...)

Best regards,

Rougaille
heinrichsweikamp
Posts: 4376
Joined: Sunday 13. May 2007, 18:07

Re: OSTC3 - Connection to an iPhone / Smartphone

Post by heinrichsweikamp »

Hi,

The optical port on the OSTC3 is input only, so configuring the OSTC3 may be possible. Maybe you can just test it and simulate our hwHUD stand-alone.

Regards,
Matthias


Hardware details of IR Link:
- data rate is 2400 Baud, 8 Databits, 1 Stopbit, no parity, (2400, N, 8, 1)
- Carrier frequency is 38kHz (To be used with a TSOP34xxx IR-Receiver)
- 16bit values are transmitted in little Endian format (LOW:HIGH)

Software:

1. Output from HUD (Frame is updated and send every second):
- Total of 15Bytes (~53ms frame length)

Byte 0: 8bit HUD firmware version number
Byte 1: 8bit Status Byte
Byte 2-3: 16bit Sensor1 voltage (in 100µV steps)
Byte 4-5: 16bit Sensor2 voltage (in 100µV steps)
Byte 6-7: 16bit Sensor3 voltage (in 100µV steps)
Byte 8: 8bit Sensor1 ppO2 (in 0.01bar steps)
Byte 9: 8bit Sensor2 ppO2 (in 0.01bar steps)
Byte 10: 8bit Sensor3 ppO2 (in 0.01bar steps)
Byte 11-12: 16bit HUD Battery voltage in mV
Byte 13-14: 16bit Checksum

Status Byte/
Bit0 = 1 -> HUD connection ok
Bit1 = 1 -> HUD is calibrated
Bit2 = 1 -> HUD Battery is low ( Sensor 1 active
Bit4 = 1 -> Sensor 2 active
Bit5 = 1 -> Sensor 3 active
Bit6 = 1 -> HUD calibrated through external interface (DR5/DRx)
Bit7 = 1 -> HUD received (valid) data through RS232 input from DR5/DRx. Automatically cleared when command was executed
Rougaille
Posts: 34
Joined: Friday 10. May 2013, 20:47

Re: OSTC3 - Connection to an iPhone / Smartphone / Presure Sensor

Post by Rougaille »

Hello Mathias,

Can you imagine a small object like a "bolt" to be screwed in the Optical Link plug ?

This bolt would have a battery and a radio sensor.

The idea is to read a presure sensor from the tank directly on the OSTC.

What is your opinion ?

Rougaille.
heinrichsweikamp
Posts: 4376
Joined: Sunday 13. May 2007, 18:07

Re: OSTC3 - Connection to an iPhone / Smartphone / Presure Sensor

Post by heinrichsweikamp »

Hi Rougaill,

I can imagine such a device but we have nothing planned in this direction, sorry.

regards,
Matthias
Post Reply