GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • S

      How much notifications append without to open Gui-O

      Announcements
      • • • Sato
      38
      0
      Votes
      38
      Posts
      3.5k
      Views

      S

      Hie @kl3m3n
      Thank you

      I know, I've googled it.
      The Autostart option I haven't found on my phones yet, but I'll keep looking because that could solve the issue.
      Yesterday I tried to open Gui-O when the index was at 121, and I found that the App had frozen, but I was still getting the notifications from your script.
      I'll turn on logcat and send it to you later, maybe you can see something that will help.

      Best regards

    • S

      Tap on Push notification to connect automaticly

      Comments & Feedback
      • • • Sato
      37
      0
      Votes
      37
      Posts
      3.3k
      Views

      S

      Hello @kl3m3n,

      Works good, thank you

      Regards

    • E

      Some issues and possible improvements

      Report Bugs
      • • • enniom
      36
      0
      Votes
      36
      Posts
      3.1k
      Views

      K

      @enniom Why are you setting ASR to 0.5, if no device has 0.5 ratio? Which is your development device?

      Kl3m3n

    • K

      Announcing IoT push notifications

      Announcements
      • • • kl3m3n
      32
      0
      Votes
      32
      Posts
      3.0k
      Views

      S

      @kl3m3n,

      Have updated to 1.0.7.1 the Samsung Android 10 and it no changed the Application UUID
      Good!

      Don't know why my cellphone Android 12 have changed the UUID on update
      Next version update i will look if it happens again

      Regards

    • B

      ESP8266 & Arduino & GUI-O automatic pairing

      Frequently Asked Questions (FAQ)
      • • • Bernard
      31
      0
      Votes
      31
      Posts
      4.7k
      Views

      K

      @Bernard Very nice! 🙂 It is always a good feeling when you solve a problem yourself! 👍

    • S

      Graphic Bar Chart-2

      Comments & Feedback
      • • • Sato
      22
      0
      Votes
      22
      Posts
      2.6k
      Views

      K

      @Hub

      I am happy you find the improvements useful!

      Thanks.

      Regards,
      Klemen

    • D

      Label, Text input, alignment

      Comments & Feedback
      • • • DenesL
      18
      0
      Votes
      18
      Posts
      879
      Views

      K

      @DenesL I would like to keep ALP values (and consistency) reserved for future use (maybe vertical alignment, etc.).

      Thanks for the suggestion though.

      Regards,
      kl3m3n

    • K

      Announcing GUI-O design tool

      Announcements
      • • • kl3m3n
      17
      0
      Votes
      17
      Posts
      1.1k
      Views

      K

      GUI-O design tool updated to v0.0.3:

      added support for TCP/IP communication added support for widgets reordering (drag-and-drop) each widget now displays its UID parameter other minor improvements
    • S

      NFC function

      Comments & Feedback
      • • • Sato
      16
      0
      Votes
      16
      Posts
      995
      Views

      S

      Hi kl3m3n,

      Well done, congrats!

      So, now will see to implement it in my programm

      THANK YOU

      Best regards

    • B

      How does GUI-O's auto-connect work in BLE?

      Comments & Feedback
      • • • bmillier
      15
      0
      Votes
      15
      Posts
      1.0k
      Views

      B

      @kl3m3n That was quick! Yes, your code which restarts the advertising in the onDisconnect routine is much better. I believe I tried putting it there first but I don't think it would compile ("not in scope" error). Then I checked out that Kolban demo and just did it his way.
      You must be a pretty good programmer to be handling all aspects of this by yourself. Even programmers that do both MCU programming and either smartphone or PC applications, are often not good writers- i.e. their documentation is poor. Your's is excellent.
      FYI. I have used an IOS app called TechBasic which is something like GUI-O in that it lets you communicate with MCUs via Bluetooth. It is, however, a Basic interpreter running on the IOS device. So, its a bit more versatile but you do the actual programming/development on the IOS device itself. That's not ideal. The TechBasic app itself starts up like a PC IDE for Basic programming, and you can compose/edit or select & run your Basic programs from there.. So, it's not really a stand-alone app that a non-programmer can use easily. The auto-connect feature of GUI-O is quite superior in this respect.
      Also, as far as I know, IOS only works in the BLE mode- not the legacy Bluetooth SPP mode. I happen to like that the Android OS lets you use legacy Bluettoth/SPP.
      So, I agree- you are right to be hesitant about an IOS app. There would be a lot of adaptation you would likely have to do.
      Again- thanks for your attention and efforts on my forum posts.😊

    • A

      Please add some new supported USB devices

      Wishlist
      • • • al1fch
      15
      0
      Votes
      15
      Posts
      867
      Views

      A

      Hi !
      Strange, indeed !

      Same problem when setting Serial.Begin(9600) beside of Serial.begin(115200) in BasicUSB code

      (On LOLIN S2 mini Serial is USBCDC Serial, Baud may be changed , not frame )

      I Will test another ESP-32 board, TTGO one, with USB connector switchable between UART w CH340 and native USB

      No special tuning with Serial USB Terminal anc BasicUSB code , ok with 115200 or 9600bauds, ESP answer to @init is OK.

      Best Regards,
      Alain

    • D

      GUI-O does not work with RPI Pico over USB serial

      General Discussion
      • • • devmonkey
      15
      0
      Votes
      15
      Posts
      627
      Views

      K

      @devmonkey Version 1.0.93 is out.

      Regards,
      Kl3m3n

    • S

      Read the MAC address

      Comments & Feedback
      • • • Sato
      14
      0
      Votes
      14
      Posts
      1.0k
      Views

      S

      Hi @kl3m3n,

      I have not scrolling down, now i see it. Thank you

      Best regards

    • S

      Know the UUID of the connected Gui-O

      Comments & Feedback
      • • • Sato
      14
      0
      Votes
      14
      Posts
      725
      Views

      K

      @sato said in Know the UUID of the connected Gui-O:

      Hi @kl3m3n,

      appUserName works great. Thanks

      Best regards

      Thank you for the feedback.

    • S

      Hello Gui-O - I'm alive

      General Discussion
      • • • Sato
      14
      0
      Votes
      14
      Posts
      685
      Views

      S

      Hello @kl3m3n,

      You are right, tested it now with two Esp32 and it works.

      Thanks
      Regards

    • S

      How to implement Push notifications

      Comments & Feedback
      • • • Sato
      13
      0
      Votes
      13
      Posts
      812
      Views

      S

      Hi @kl3m3n,

      Fantastic!
      I already updated by Google Play the new version. When you have some example code, please send it, I can start testing on my microcontroller.

      Thanks. Great feature from Gui-O

      With best regards

    • V

      GUI-O with Nano 33 BLE and the ArduinoBLE Library

      Comments & Feedback
      • • • VNB
      12
      0
      Votes
      12
      Posts
      754
      Views

      K

      @VNB said in GUI-O with Nano 33 BLE and the ArduinoBLE Library:

      There were two minor problems.
      1.) The Slider Control knob always stayed at 100% even if it is set to a low brightness. That was fixed by adding the following instruction in the "led drive" section.
      sendMsg("@brightness VIS:1 VAL:val\r\n");

      The code:

      @VNB said in GUI-O with Nano 33 BLE and the ArduinoBLE Library:

      sendMsg("@brightness VIS:1 VAL:val\r\n");

      is not correct (as you've already pointed out), since the val is a non-numeric string that GUI-O cannot convert to numeric string.

      This is correct:

      @VNB said in GUI-O with Nano 33 BLE and the ArduinoBLE Library:

      sendMsg("@brightness VIS:1 VAL:"+ String(val) + "\r\n");

      as the String constructor converts the val into numerical representation.

      This code should not be necessary, since the value originates from CB, which should already have the correct position. The issue seems to originate from somewhere else, but I cannot see the problem...

      Regards,
      kl3m3n

    • S

      TA Widget support different Text colors

      Comments & Feedback
      • • • Sato
      11
      0
      Votes
      11
      Posts
      511
      Views

      S

      Hi @kl3m3n,

      Fine, Thank You

      Regards

    • S

      Need help parsing..

      Comments & Feedback
      • • • Sato
      11
      0
      Votes
      11
      Posts
      630
      Views

      S

      Hi @gammda,

      Thank you. For this project, this time i not use Bascom, i use ESP32 and Arduino.
      The code form Kl3m3n works fine.

      Best regards

    • M

      Issue on sending Widget on init

      General Discussion
      • • • mathieu
      11
      0
      Votes
      11
      Posts
      437
      Views

      K

      @mathieu Hi!

      I have sent the initialization code to your e-mail (I have included your full commands there, but not here on the forum).

      Basically, the commands are sent in a non-blocking fashion one-by one:

      #include <BLEDevice.h> #include <BLEServer.h> #include <BLEUtils.h> #include <BLE2902.h> #include <pgmspace.h> const char* const commands[] PROGMEM = { "|LB UID:lb0 X:20 Y:10\r\n", ... ... ... }; const size_t numCommands = sizeof(commands) / sizeof(commands[0]); namespace uuid { static const char *SERVICE_UUID = "6E400001-B5A3-F393-E0A9-E50E24DCCA9E"; static const char *RX_CHARACTERISTIC_UUID = "6E400002-B5A3-F393-E0A9-E50E24DCCA9E"; static const char *TX_CHARACTERISTIC_UUID = "6E400003-B5A3-F393-E0A9-E50E24DCCA9E"; } // namespace uuid // forward declare parser for incoming messages void parseGuioMsg(const String &msg); // setup done flag bool setupDone = false; // init active flag bool initActive = false; // send command period in msec static const unsigned long sendCommandPeriod = 50; // custom handling of server callbacks class CustomBLEServerCallbacks: public BLEServerCallbacks { void onConnect(BLEServer* pServer) { Serial.println("Connected!"); }; void onDisconnect(BLEServer* pServer) { Serial.println("Disconnected!"); // fix provided by BM // restart advertising after disconnect, otherwise GUI-O cannot re-connect if(setupDone) { // restart advertising on disconnect delay(500); pServer->startAdvertising(); } } }; // custom handling of characteristic callbacks class CustomBLECharacteristicCallbacks: public BLECharacteristicCallbacks { void onWrite(BLECharacteristic *pCharacteristic) { std::string msg = pCharacteristic->getValue(); // parse message string parseGuioMsg(String(msg.c_str())); } }; // global ptr BLECharacteristic *pTxCharacteristic; void setup() { // debug output Serial.begin(115200); // create device BLEDevice::init("BasicBLE_NUS"); // create server and register callback BLEServer *pServer = BLEDevice::createServer(); pServer->setCallbacks(new CustomBLEServerCallbacks()); // create service BLEService *pService = pServer->createService(uuid::SERVICE_UUID); // crate Tx characteristic and add descriptor pTxCharacteristic = pService->createCharacteristic(uuid::TX_CHARACTERISTIC_UUID, BLECharacteristic::PROPERTY_NOTIFY); pTxCharacteristic->addDescriptor(new BLE2902()); // crate Rx characteristic and register callback BLECharacteristic *pRxCharacteristic = pService->createCharacteristic(uuid::RX_CHARACTERISTIC_UUID, BLECharacteristic::PROPERTY_WRITE | BLECharacteristic::PROPERTY_WRITE_NR); pRxCharacteristic->setCallbacks(new CustomBLECharacteristicCallbacks()); // start the service and start advertising pService->start(); pServer->getAdvertising()->start(); // setup done flag setupDone = true; } void loop() { static size_t currentCommandIndex = 0; static unsigned long lastCommandTime = 0; if (initActive) { if (currentCommandIndex < numCommands) { if (millis() - lastCommandTime > sendCommandPeriod) { lastCommandTime = millis(); // retrieve and send the command char commandBuffer[256]; strcpy_P(commandBuffer, (char*)pgm_read_ptr(&commands[currentCommandIndex])); sendMsg(commandBuffer); Serial.print("Sending: "); Serial.println(commandBuffer); currentCommandIndex++; } } else { initActive = false; // hide loading screen sendMsg("@hls\r\n"); } } } /***************************/ /* IMPLEMENT YOUR GUI HERE */ /***************************/ void sendMsg(const String &msg) { pTxCharacteristic->setValue(std::string(msg.c_str())); pTxCharacteristic->notify(); delay(50); } void parseGuioMsg(const String &msg) { if(msg.startsWith("@init")) { Serial.println("GUI-O app is requesting INITIALIZATION!"); // clear screen and set background sendMsg("@cls\r\n"); sendMsg("@guis BGC:#FFFFFF\r\n"); sendMsg("|SORI UID:sori2 HID:sori ORI:2 SEN:0\r\n"); // wait for orientation change (alternatively catch GUI-O screen orientation change event...) delay(500); // show loading screen sendMsg("@sls\r\n"); initActive = true; } }

      Can you please test it and see if it works for you?

      You can try extending sendCommandPeriod if you have any issues... Also you can comment out the @sls and @hls commands to see exactly what is going on...

      Best regards,
      Kl3m3n