Cell tower near block

147 views
Skip to first unread message

goot...@gmail.com

unread,
Feb 5, 2016, 11:38:56 AM2/5/16
to Automate
Hi,
I want use the cell tower near block but the decision is permanently YES when I'm on an new location. I get never NO.

          :
   Cell tower near? ----------------+
  gsm:xxx::yyy   [X]                |
 OUTPUT VARIABLES: Test             |
          |                         |
 Show notification "Yes"  Show notification "No"
       Test: ""                     :
          :
   
Additionally I checked the output with a variable Test, but the value is empty. What can I do for a correct decision?

Henrik "The Developer" Lindqvist

unread,
Feb 5, 2016, 8:29:31 PM2/5/16
to Automate, goot...@gmail.com
You should select all nearby cells, not a single one. Otherwise it may trigger during a cell switch.

However i've found bugs in it, caused by both Android and Automate issues, which makes it less reliable. Working on fix now.

goot...@gmail.com

unread,
Feb 6, 2016, 5:41:19 AM2/6/16
to Automate, goot...@gmail.com
Yes, all two nearby office cells are selected. But outside of these cells I never get NO. 
I assume the output of the cell tower near block is an array. The output length #Test of this variable is permanently 0. Maybe a bug. For your information, the Mobile network preferred? block send the output 6.

Henrik "The Developer" Lindqvist

unread,
Feb 6, 2016, 1:44:23 PM2/6/16
to Automate, goot...@gmail.com
The NO path of Cell tower near block will not assign the "nearby cells" output variable.

A value of 6 from the preferred mobile network means 2G/3G.

goot...@gmail.com

unread,
Mar 17, 2016, 3:30:23 AM3/17/16
to Automate, goot...@gmail.com
Thanks for the revised update in 2016-02-29. I have set one and all near radio towers. But now the block decision is always NO. The decision is never YES.

Henrik "The Developer" Lindqvist

unread,
Mar 17, 2016, 3:21:34 PM3/17/16
to Automate, goot...@gmail.com
I'll investigate. Enable the "debug logging" option in Automate settings, then you'll see which cells is found nearby for every "update".

goot...@gmail.com

unread,
Mar 18, 2016, 3:45:46 AM3/18/16
to Automate, goot...@gmail.com
The log output is:
2016-03-18 08:20.37.344 INFO 142@1: Flow beginning
2016-03-18 08:20:37.348 INFO 142@26: Cell tower near?
2016-03-18 08:20:37.382 DBUG 142@26: Initial cells: []
2016-03-18 08:20:37.383 INFO 142@33: Notification show
...

Henrik "The Developer" Lindqvist

unread,
Mar 18, 2016, 3:48:46 PM3/18/16
to Automate, goot...@gmail.com
Initial cells: [] means Android hasn't found or isn't reporting any nearby cells.
On Marshmallow devices you may need to enable the system Location settings, otherwise it won't work. I see i've forgot to mention that in the doc.

goot...@gmail.com

unread,
Mar 20, 2016, 6:00:45 AM3/20/16
to Automate, goot...@gmail.com
The installed Android version is 5.0. Not Marshmallow. The interesting thing is that in CELL TOWERS I see everywhere new cell towers, currently gsm:547:4ba:1834. I have marked it. But the answer of the block "Cell tower near?" is furthermore No.

Henrik "The Developer" Lindqvist

unread,
Mar 20, 2016, 2:43:03 PM3/20/16
to Automate, goot...@gmail.com
Note that the block will only proceed when none of the selected cells is no longer in range, or one of them suddenly come in range, i.e the "state changes".

If you wish to perform a scan which proceeds at every change, don't select any cells.

goot...@gmail.com

unread,
Mar 21, 2016, 4:11:00 PM3/21/16
to Automate, goot...@gmail.com
The PROCEED option is set to Immediately. I assumed that the block immediately continues when the radio tower is present with Yes and if not available with No.

The current flowchart shows: 

       Cell tower near?
     PROCEED: Immediately
CELL TOWERS: V gsm:547:4ba:1834 [x] ----NO---+
             . gsm:55d:4a8:2d6a [x]          |
               |                             |
              YES                            |
               |                             |
       Show notification             Cell tower pick?
       Title:                      Cell towers:
       "cell tower yes"            V gsm:547:4ba:1834 [ ]

Now I get never the message "cell tower yes" but I get the question "Cell tower pick?" with tower ID and a full dark radio icon.
According to your suggestion I have additionally unselect every cell one by one. But the result is the same. I get ever the "Cell tower pick?" question.
What must I do that I get the message "cell tower yes"?

Henrik "The Developer" Lindqvist

unread,
Mar 21, 2016, 5:34:55 PM3/21/16
to Automate, goot...@gmail.com
Using proceed Immediately may be problematic since the "nearby" cells is constantly changing, all of them aren't found instantly.

If you long-tap to clear the "Cell towers field", then use it to find nearby cells, you'll see that it usually takes quite some time before new cells stops appearing.
Reply all
Reply to author
Forward
0 new messages