Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Cycling Power for a Cellular Modem


Biosphere2 May 22, 2012 09:54 AM

I have a stream gauging station currently using a Raven XT cell modem to download the data to our office. The problem is that when Verizon does work on their tower the modem has to be reset so the new IP address can be obtained. This is a problem, since the field site is 3 hours away.

I am going to wire the power for the modem to the SW12 port on the CR1000 and am looking for the best instruction to cycle power. I was thinking something like this:

SlowSequence
If TimeIntoInterval(0,50,3)
SW12 (0)
SW12 (1)
EndIf
This will turn the modem off then on every 50 minutes.

I'd like to give the modem 5-10 seconds between power off and power on though. Any ideas?


Dana May 22, 2012 04:48 PM

Try using the Delay instruction between the two SW12 instructions, choosing the Processing Task as the task to delay. Make sure the scan rate of the slow sequence is slow enough to accommodate the delay.

You may want to review the help for SW12 in regards to how the instruction is processed when run in PipelineMode vs SequentialMode.

Dana W.


aps May 22, 2012 04:48 PM

A simple variation on your idea should work, as below, but you need to check that the modem should not be warned about cutting off the power - some do and whilst it will be OK most of the time, you can get delays in reconnecting or even internal memory corruption with some hardware. Sorry but we do not sell the Raven XT in Europe - our US office should help.


SlowSequence

Scan (1,min,0,0)
If TimeIntoInterval(0,50,min)
SW12 (0)
delay(1,5,sec)
SW12 (1)
EndIf
Nextscan

Log in or register to post/reply in the forum.