<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ocotal.iarc.uaf.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=137.229.29.100&amp;*</id>
	<title>IARC 207 Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://ocotal.iarc.uaf.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=137.229.29.100&amp;*"/>
	<link rel="alternate" type="text/html" href="http://ocotal.iarc.uaf.edu/index.php?title=Special:Contributions/137.229.29.100"/>
	<updated>2026-05-13T01:58:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://ocotal.iarc.uaf.edu/index.php?title=Radio_on_-_off_example&amp;diff=2416</id>
		<title>Radio on - off example</title>
		<link rel="alternate" type="text/html" href="http://ocotal.iarc.uaf.edu/index.php?title=Radio_on_-_off_example&amp;diff=2416"/>
		<updated>2015-10-20T00:53:55Z</updated>

		<summary type="html">&lt;p&gt;137.229.29.100: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This code can be used with CR Basic compatible Campbell Scientific data loggers to power up &amp;amp; down the radio.  To leave the radio on, in the Connect view, set the variable (user editable in this case) '''radioflag''' to ''true''.  When you are ready to leave the radio in the off state (winter for example) set the '''radioflag''' to ''false''.  Then, to further reduce power consumption you can direct loggernet to turn the radio off after the data retrieval is complete.  To do this using the cora command library on linux:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;quot;connect localhost; set-variable Radio_Accessible_Site Public commscomplete {} true; quit;&amp;quot; | /opt/CampbellSci/LoggerNet/cora_cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, from windows, put the following into a DOS batch file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;c:\Program Files (x86)\Campbellsci\LoggerNet\cora_cmd.exe&amp;quot; &amp;lt; c:\CampbellSci\cora\radio_off.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
radio_off.txt contains:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
connect localhost;&lt;br /&gt;
set-variable Radio_Acessible_Site Public commscomplete {} true;&lt;br /&gt;
quit;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What follows is the code for the CR Basic Editor. A further modification would be to make the '''TimeIntoInterval()''' commands use variables for the on &amp;amp; off times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
' Wiring:&lt;br /&gt;
' SW12V -- Radio Power&lt;br /&gt;
&lt;br /&gt;
    ''' Diagnostic Variables&lt;br /&gt;
    Public batt_volt&lt;br /&gt;
    Public Flag(8) As Boolean&lt;br /&gt;
    Public radioflag As Boolean  &lt;br /&gt;
    Public commscomplete As Boolean&lt;br /&gt;
&lt;br /&gt;
BeginProg&lt;br /&gt;
&lt;br /&gt;
  commscomplete = false&lt;br /&gt;
  radioflag=true  &lt;br /&gt;
  SW12 (1 )  ' turn on the radio&lt;br /&gt;
  Scan(30,Sec, 10, 0)&lt;br /&gt;
    '''''''''''''''''''''''''''''''''&lt;br /&gt;
    '''''''''''''''''''''''''''''''''&lt;br /&gt;
    '' Diagnostic Measurements  '''''&lt;br /&gt;
    '''''''''''''''''''''''''''''''''&lt;br /&gt;
    '''''''''''''''''''''''''''''''''    &lt;br /&gt;
    Battery(batt_volt)&lt;br /&gt;
    PanelTemp(Ptemp,_60Hz)&lt;br /&gt;
    ''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    ''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    '' Radio Control  ''''''''&lt;br /&gt;
    ''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    ''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    If radioflag=true Then SW12(1)&lt;br /&gt;
&lt;br /&gt;
    ' if the battery voltage is high then turn the radio on hourly &lt;br /&gt;
    If TimeIntoInterval(0,60,min) Then&lt;br /&gt;
        If batt_volt &amp;gt;= 12.4 Then &lt;br /&gt;
          SW12(1)&lt;br /&gt;
        EndIf&lt;br /&gt;
    EndIf&lt;br /&gt;
    ' if the battery voltage isn't too low, turn the radio on daily.&lt;br /&gt;
    If TimeIntoInterval(720,1440,min) Then&lt;br /&gt;
        If batt_volt &amp;gt;= 12.2 Then &lt;br /&gt;
          SW12(1)&lt;br /&gt;
        EndIf&lt;br /&gt;
    EndIf&lt;br /&gt;
    ' if the radioflag hasn't been set manually then turn the radio off 10 minutes into the hour.&lt;br /&gt;
    If TimeIntoInterval(10,60,min) OR commscomplete = true Then&lt;br /&gt;
        If radioflag = false Then &lt;br /&gt;
          SW12(0)&lt;br /&gt;
          commscomplete = false&lt;br /&gt;
        EndIf&lt;br /&gt;
    EndIf      &lt;br /&gt;
    If batt_volt &amp;lt; 12.6 Then radioflag = false&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>137.229.29.100</name></author>
		
	</entry>
	<entry>
		<id>http://ocotal.iarc.uaf.edu/index.php?title=Radio_on_-_off_example&amp;diff=2415</id>
		<title>Radio on - off example</title>
		<link rel="alternate" type="text/html" href="http://ocotal.iarc.uaf.edu/index.php?title=Radio_on_-_off_example&amp;diff=2415"/>
		<updated>2015-10-19T23:29:16Z</updated>

		<summary type="html">&lt;p&gt;137.229.29.100: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This code can be used with CR Basic compatible Campbell Scientific data loggers to power up &amp;amp; down the radio.  To leave the radio on, in the Connect view, set the variable (user editable in this case) '''radioflag''' to ''true''.  When you are ready to leave the radio in the off state (winter for example) set the '''radioflag''' to ''false''.  Then, to further reduce power consumption you can direct loggernet to turn the radio off after the data retrieval is complete.  To do this using the cora command library on linux:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;quot;connect localhost; set-variable Radio_Accessible_Site Public commscomplete {} true; quit;&amp;quot; | /opt/CampbellSci/LoggerNet/cora_cmd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, from windows, put the following into a DOS batch file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;c:\Program Files (x86)\Campbellsci\LoggerNet\cora_cmd.exe&amp;quot; &amp;lt; c:\CampbellSci\cora\radio_off.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
radio_off.txt contains:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
connect localhost;&lt;br /&gt;
set-variable Radio_Acessible_Site Public commscomplete {} true;&lt;br /&gt;
quit;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What follows is the code for the CR Basic Editor. A further modification would be to make the TimeIntoInterval commands use variables for the on &amp;amp; off times.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
' Wiring:&lt;br /&gt;
' SW12V -- Radio Power&lt;br /&gt;
&lt;br /&gt;
    ''' Diagnostic Variables&lt;br /&gt;
    Public batt_volt&lt;br /&gt;
    Public Flag(8) As Boolean&lt;br /&gt;
    Public radioflag As Boolean  &lt;br /&gt;
    Public commscomplete As Boolean&lt;br /&gt;
&lt;br /&gt;
BeginProg&lt;br /&gt;
&lt;br /&gt;
  commscomplete = false&lt;br /&gt;
  radioflag=true  &lt;br /&gt;
  SW12 (1 )  ' turn on the radio&lt;br /&gt;
  Scan(30,Sec, 10, 0)&lt;br /&gt;
    '''''''''''''''''''''''''''''''''&lt;br /&gt;
    '''''''''''''''''''''''''''''''''&lt;br /&gt;
    '' Diagnostic Measurements  '''''&lt;br /&gt;
    '''''''''''''''''''''''''''''''''&lt;br /&gt;
    '''''''''''''''''''''''''''''''''    &lt;br /&gt;
    Battery(batt_volt)&lt;br /&gt;
    PanelTemp(Ptemp,_60Hz)&lt;br /&gt;
    ''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    ''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    '' Radio Control  ''''''''&lt;br /&gt;
    ''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    ''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;br /&gt;
    If radioflag=true Then SW12(1)&lt;br /&gt;
&lt;br /&gt;
    ' if the battery voltage is high then turn the radio on hourly &lt;br /&gt;
    If TimeIntoInterval(0,60,min) Then&lt;br /&gt;
        If batt_volt &amp;gt;= 12.4 Then &lt;br /&gt;
          SW12(1)&lt;br /&gt;
        EndIf&lt;br /&gt;
    EndIf&lt;br /&gt;
    ' if the battery voltage isn't too low, turn the radio on daily.&lt;br /&gt;
    If TimeIntoInterval(720,1440,min) Then&lt;br /&gt;
        If batt_volt &amp;gt;= 12.2 Then &lt;br /&gt;
          SW12(1)&lt;br /&gt;
        EndIf&lt;br /&gt;
    EndIf&lt;br /&gt;
    ' if the radioflag hasn't been set manually then turn the radio off 10 minutes into the hour.&lt;br /&gt;
    If TimeIntoInterval(10,60,min) OR commscomplete = true Then&lt;br /&gt;
        If radioflag = false Then &lt;br /&gt;
          SW12(0)&lt;br /&gt;
          commscomplete = false&lt;br /&gt;
        EndIf&lt;br /&gt;
    EndIf      &lt;br /&gt;
    If batt_volt &amp;lt; 12.6 Then radioflag = false&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>137.229.29.100</name></author>
		
	</entry>
</feed>