Viewing 2 reply threads
  • Author
    Posts
    • Lollo71Lollo71
      Participant
      @lollo71
      Post count: 11

      Hi everybody!

      In my project I need to assign standard text everytime new data are going to be input.

      The problem is that everytime I send this “default” data (set_value or set_text), the micro ESP32 faults because I think they are valued as new input, but I don’t want this.

      I have two “edit” and three “combo_box_ex” fields that I would fill with this text “-”

      
      Serial2.print("ST<{\"cmd_code\":\"set_value\",\"type\":\"edit\",\"widget\":\"mms\",\"value\":0}>ET");
      Serial2.print("ST<{\"cmd_code\":\"set_value\",\"type\":\"edit\",\"widget\":\"mmi\",\"value\":0}>ET");
      Serial2.print("ST<{\"cmd_code\":\"set_text\",\"type\":\"combo_box_ex\",\"widget\":\"mol\",\"text\":\"-\"}>ET");
      Serial2.print("ST<{\"cmd_code\":\"set_text\",\"type\":\"combo_box_ex\",\"widget\":\"mot\",\"text\":\"-\"}>ET");
      Serial2.print("ST<{\"cmd_code\":\"set_text\",\"type\":\"combo_box_ex\",\"widget\":\"med\",\"text\":\"-\"}>ET");
      
    • bowei zhangbowei zhang
      Participant
      @zbw3366
      Post count: 62

      The problem is that everytime I send this “default” data (set_value or set_text), the micro ESP32 faults.

      What does this sentence mean that I don’t understand

    • Lollo71Lollo71
      Participant
      @lollo71
      Post count: 11

      Dear Mr. Zhang, thanks for replay.

      In my project I have two widgets type “edit” and three widgets type “combo_box_ex” that has been filled with “–” by Stone-Designer (field TEXT) as soon as I switch on the display.

      The users can input theyr own values, but as soon as the users have done this operation,  I would like to have this fields filled again with “–“.

      In order to perform this operation, I’m trying to send the follow commands from my MCU (ESP32):

      Serial2.print(“ST<{\”cmd_code\”:\”set_value\”,\”type\”:\”edit\”,\”widget\”:\”mms\”,\”value\”:0}>ET”); Serial2.print(“ST<{\”cmd_code\”:\”set_value\”,\”type\”:\”edit\”,\”widget\”:\”mmi\”,\”value\”:0}>ET”); Serial2.print(“ST<{\”cmd_code\”:\”set_text\”,\”type\”:\”combo_box_ex\”,\”widget\”:\”mol\”,\”text\”:\”-\”}>ET”); Serial2.print(“ST<{\”cmd_code\”:\”set_text\”,\”type\”:\”combo_box_ex\”,\”widget\”:\”mot\”,\”text\”:\”-\”}>ET”); Serial2.print(“ST<{\”cmd_code\”:\”set_text\”,\”type\”:\”combo_box_ex\”,\”widget\”:\”med\”,\”text\”:\”-\”}>ET”);

      But my ESP32 answers with an error (xQueueGenericReceive or Semaphore error) and reset/restart. I don’t know if this is an overflow error or a serial data problem.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.