Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - AKotowski

Pages: [1]
1
Support / Cant get SimbleeCloud Service to work
« on: September 18, 2017, 09:09:44 AM »
I have the Simblee example ButtonFlashModule working and can see the results on the ButtonFlash html page.  But when I try to route through a Simbleeservice their is no connection.  I have tried using the simblee service page  https://service.simbleecloud.com/, a server on my lan (192.1168.0.08) as well as trying to route this through the internet.  Are there any requirements or secrets for using a service?

A Kotowski

2
Suggestions / SimbleForMobile
« on: September 14, 2017, 10:16:37 AM »
I would like to see SFM be more robust with respect to user errors.  Currently SFM locks up for many conditions without any clue as to what is wrong.  I have learned:

1.) Dont call   SimbleeForMobile.process() too often
2.) Dont update screen elements when the phone is not connected
3.) Dont update screen elements for a screen that is no longer being displayed
4.) Elements drawn after   SimbleeForMobile.endScreen() may not display

Thanks

A Kotowski




3
Suggestions / SimbleForMobile Data acquisition
« on: September 14, 2017, 10:07:25 AM »
I would like to see SFM have the capability of writing data to the phone mass storage.  This would provide an end to end data acquisition solution without requiring the development of a complex IoT multi web page system.

4
Simblee For Mobile / SimbleeForMobile.drawSegment does not always work
« on: August 30, 2017, 12:47:29 PM »
In the attached sketch, drawSegment works as expected by providing a value and highlighting the selected segment when touched.  In more complex surroundings it does not seem to work.  In  the SimbleeUITest example the Segment on the Switch/Segment screen is a solid blue bar with no text visible.  The slave segment has numbers 1 to 4.  Selecting segments on the blue bar updates the Segment display with the selected segment and clears the slave segment.  Touching the slave segment also clears the slave segment display.  The segment functions, but the display is just a solid bar.
Is this a bug in SFM, or a problem with the code?

Code: [Select]
#include <SimbleeForMobile.h>

uint8_t segment, value;

void setup() {
  // put your setup code here, to run once:
  SimbleeForMobile.deviceName = "Segment";
  SimbleeForMobile.advertisementData = "Data";
//  SimbleeForMobile.domain = "template.simblee.com";
  SimbleeForMobile.begin();
}

void loop() {
  SimbleeForMobile.process(); 
  delay(250);
}

void ui()

  SimbleeForMobile.beginScreen(GRAY, PORTRAIT);
 
  char *titles[] = { "Zero", "One", "Two", "Three", "Four" };
  segment = SimbleeForMobile.drawSegment(25, 50, 250, titles, countof(titles), RED);
  SimbleeForMobile.updateValue(segment, 1);
 
  SimbleeForMobile.drawText(50, 100, "Value:", BLACK, 14);

  value = SimbleeForMobile.drawText(150, 100, 10, BLACK, 14);

  SimbleeForMobile.setEvents(segment, EVENT_RELEASE);

  SimbleeForMobile.endScreen();
}

void ui_event(event_t &event)
{
  if (event.id == segment) {
       SimbleeForMobile.updateValue(value, event.value);
  }
}



5
Bugs / int takes 4 bytes
« on: August 29, 2017, 08:48:28 AM »
Using simblee, integer types are calculated to 16 bits.  However the compiler allocates 4 bytes of storage.  I am storing arrays of integer and it is chewing up a lot of memory.  Is this a bug, or is there some reason ints take 4 bytes?

6
Support / Only get one Interrupt
« on: August 04, 2017, 08:09:49 PM »
I trying to get an interrupt driven input routine to work.  The problem I am having is that I only get 1 (one) interrupt when I use attachPinInterrupt.  Until I use another attachPinInterrupt I get no more interrupts.  Am I doing something wrong?

Code: [Select]
volatile int intCount =0;
int intPin = 4;
bool interrupted = false;

void setup() {
  Serial.begin(9600);                 // Enable logging of the various events during application execution
  Serial.printf("Setup\n");
   intCount = 0;
   interrupted = false;   
   attachPinInterrupt(intPin, intRoutine, LOW);
//   dynamic_attachInterrupt(intPin, intRoutine, LOW);
//   interrupts();
}
void loop() {
  Serial.printf("Loop\n");
  Serial.printf("Count: %d\n", intCount);
  if (interrupted){
      Serial.printf("Interrupted\n");
  }
  delay(1000);   
//     attachPinInterrupt(intPin, intRoutine, LOW);     
}
int intRoutine(uint32_t dummyPin){
  intCount++;
  interrupted = true;
  return 0;
}


7
Simblee For Mobile / updateRect() causes Android App to Crash
« on: July 17, 2017, 10:03:12 AM »
I writing an Android UI. Everything is working except updationg rectangles.  A single call to update a rectangle causes the app to stop with an error message on the phone.
I am using Android V 7.0, Simblee 1.1.3.  Here is the update fragment. 
Code: [Select]
      if (SimbleeForMobile.updatable){
        SimbleeForMobile.updateValue(signalField, signal_Strength*100);
//        SimbleeForMobile.updateRect(ssIndicatorField, ssindicatorX-20, ssindicatorY, int(ssLength), ssWidth);
//        SimbleeForMobile.updateRect(ssIndicator2Field, ssindicatorX-22, ssindicatorY-2, 104 , ssWidth+4);               
        SimbleeForMobile.updateColor(ssIndicator2Field, YELLOW);               
      };

If I un-comment either of the commented lines the crash occurs.

Any suggestions, comments?

THanks

Pages: [1]
anything