This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Problems with 1wire sensors
#1
Hi all..

In later builds I seem to be unable to access the temperatures from my 1-wire sensors.
They show up just fine in the 1W flip in OpenPlotter, and I give them somewhat appropriate names for propulsion.engine.temperature, environment.inside.temperature and so on..

But, I cannot find them in SK Diagnostic. None of them.

Browsing the api I see them, though the engine temperature is listed as "temperature", not the correct(?) "propulsion":{"ENGINE":{"Temperature"

{"vessels":{"urn:mrn:imo:mmsi:258202080":{"mmsi":"258202080",
"propulsion":{"ENGINE":{"exhaustTemperature":{"value":284.275,"$source":"OPsensors.1W.EXHAUST","timestamp":"2017-05-19T06:37:16.516Z"},
"temperature":{"value":284.9,"$source":"OPsensors.1W.ENGINE","timestamp":"2017-05-19T06:37:17.395Z"}}},
"environment":{"inside":{"temperature":{"value":273.15,"$source":"OPsensors.1W.INSIDE","timestamp":"2017-05-19T06:37:18.349Z"}}


I was trying to use the engine temperature in the NMEA 0183 builder, but it seems impossible to get the readings there as well.

Any suggestions?
Regards, 
Arne :-)    
S/Y Tiarora
Reply
#2
openplotter version?
any error in debug mode?
Reply
#3
(2017-05-21, 07:58 PM)Sailoog Wrote: openplotter version?
any error in debug mode?

0.11.7 alpha

Debug mode:

SK Diagnostics gives these:
no unit for  navigation.gnss.differentialReference
no unit for  navigation.gnss.horizontalDilution
no unit for  navigation.gnss.geoidalSeparation
no unit for  navigation.gnss.satellites
no unit for  navigation.gnss.quality

No error for NMEA 0183 Diagnostic..
Regards, 
Arne :-)    
S/Y Tiarora
Reply
#4
I have reproduced your settings and all is working for me. Your tree is right:

{
  "vessels": {
    "urn:mrn:imo:mmsi:258202080": {
      "mmsi": "258202080",
      "propulsion": {
        "ENGINE": {
          "exhaustTemperature": {
            "value": 284.275,
            "$source": "OPsensors.1W.EXHAUST",
            "timestamp": "2017-05-19T06:37:16.516Z"
          },
          "temperature": {
            "value": 284.9,
            "$source": "OPsensors.1W.ENGINE",
            "timestamp": "2017-05-19T06:37:17.395Z"
          }
        }
      },
      "environment": {
        "inside": {
          "temperature": {
            "value": 273.15,
            "$source": "OPsensors.1W.INSIDE",
            "timestamp": "2017-05-19T06:37:18.349Z"
          }
        }
      }
    }
  }
}

no erros on debug and available on NMEA 0183 generator. I don't understand what is happening to you Huh
Reply
#5
Seems to me I have to roll over and play dead here... :-|

Last night I tried several things, no go, even in SignalK instrumentpanel the 1-wire values came up empty.
Anyways, today I updated everything, from OpenCPN to Raspbian and booted the RPi. And now, when I try it is working just as it should.  
I'm so sorry for bothering you, next time I might test a couple of times more before complaining.... or of course the same thing as I always tells MY end users: "Have you rebooted your computer? I'm not doing anything before you have."


BUT: While I have your attention:

My Raymarine ST2000+ autopilot has an NMEA0183 input which I thought to use for getting it to hold a course related to apparent wind.
It seems though, that it ONLY recognizes the kind of archaic "VWR" sentence which I'm not really up to create in NMEA generator?

VWR - Relative Wind Speed and Angle
                 1  2  3  4  5  6  7  8 9
                 |  |  |  |  |  |  |  | |
$--VWR,x.x,a,x.x,N,x.x,M,x.x,K*hh<CR><LF>

Field Number:
  1. Wind direction magnitude in degrees
  2. Wind direction Left/Right of bow
  3. Speed
  4. N = Knots
  5. Speed
  6. M = Meters Per Second
  7. Speed
  8. K = Kilometers Per Hour
  9. Checksum
Especially the left/right of bow, how do you make that?

Tips?
Regards, 
Arne :-)    
S/Y Tiarora
Reply
#6
(2017-05-22, 07:51 PM)Arne Wrote: VWR - Relative Wind Speed and Angle
                 1  2  3  4  5  6  7  8 9
                 |  |  |  |  |  |  |  | |
$--VWR,x.x,a,x.x,N,x.x,M,x.x,K*hh<CR><LF>

Field Number:
  1. Wind direction magnitude in degrees
  2. Wind direction Left/Right of bow
  3. Speed
  4. N = Knots
  5. Speed
  6. M = Meters Per Second
  7. Speed
  8. K = Kilometers Per Hour
  9. Checksum
Especially the left/right of bow, how do you make that?

Tips?
NMEA0183 generator has its limits. You are right it isn't able to create this sentence. VWT is already outdated but VWR isn't, MWV works.
It also can't convert Kelvin to Farenheit.

Are you sure ST2000+ will use NMEA as wind direction system? Or does it only work with wind from seatalk. I would check this before put much effort in creating this sentence.
Reply
#7
As far as I can see from the docs, it should. On page 47 in the Owner Handbook:

NMEA cabling
If required, you can connect a NMEA navigator or wind instrument to the tiller
pilot. It can then use this information for Track and WindTrim modes.

Recognized NMEA data
The following table lists the recognized NMEA sentences.
Code:
Information                    NMEA 0183 data
Cross Track Error              APB, APA,RMB, XTE, XTR
Bearing to Waypoint            APB, BPI, BWR, BWC, BER, BEC, RMB
Distance to Waypoint           WDR, WDC, BPI, BWR, BWC, BER, BEC, RMB
Waypoint Number                APA, APB,BPI, BWR, WDR, BWC, WDC, RMB, BOD, WCV, BER, BEC
Speed Through Water            VHW
Apparent Wind Angle and Speed  VWR

I bought a secondhand Raymarine Seatalk/NMEA interface box (E85001) on eBay recently, come to think of it, it may do what I need here from the values I already get out of OpenPlotter.  Undecided
Regards, 
Arne :-)    
S/Y Tiarora
Reply
#8
I have plans to make the NMEA 0183 generator more flexible to allow all kind of conversions and operations.
Marking this thread as solved, open a new one if you need for your NMEA 0183 issue. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)