• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
M5Stack Community
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How to turn off sounds on ATOM QR Code Reader?

Atom
2
4
1.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    konacurrents
    last edited by Apr 26, 2024, 4:12 PM

    I have the Atom QR Code reader and it's working nicely. I like the continuous mode (as I support disabled users who cannot touch buttons.)
    ATOM QR Code Kit

    Unfortunately I've tried sending the appropriate commands to turn off the sounds and nothing works. Any ideas?

    See the Full Testing Example

    The following binary commands are documented here.

    • Startup
    uint8_t wakeup_cmd       = 0x00;
    
     Serial2.begin(
            9600, SERIAL_8N1, 22,
            19);
     Serial2.write(wakeup_cmd);
    
     delay(50);
    
    • Startup "boot" sound (still makes startup sound)
    uint8_t bootSoundProhibit[]   = {0x08, 0xC6, 0x04, 0x08, 0x00, 0xF2, 0x0D, 0x00, 0xFE, 0x27};
    
    Serial2.write(bootSoundProhibit, sizeof(bootSoundProhibit));
    
    • Detection sound (still makes detection beep)
    uint8_t prohibit_prompt_sound_decode_mode_cmd[]  = {0x07, 0xC6, 0x04, 0x08, 0x38, 0x00, 0xFE, 0xEF};
    
    Serial2.write(prohibit_prompt_sound_decode_mode_cmd, sizeof(prohibit_prompt_sound_decode_mode_cmd));
    

    None of these are changing the sounds in the example I posted.
    Any help would be appreciated. (Beep sounds are not liked while
    in a quiet museum for example).

    thanks,

    1 Reply Last reply Reply Quote 0
    • F
      flypeek
      last edited by Apr 27, 2024, 11:17 PM

      Set on page 10
      https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/atombase/AtomicQR/AtomicQR_Reader_EN.pdf

      K 1 Reply Last reply Apr 28, 2024, 2:00 AM Reply Quote 0
      • K
        konacurrents @flypeek
        last edited by Apr 28, 2024, 2:00 AM

        @flypeek Ok, that might be how to perform those operations via scanning the QR code itself, but how can I send the same messages as I showed in the previous post?

        I have turned off the QR scanning of these code, partially because I don't want clients to goof it up. I also got into a mode that was hard to get out of (can't remember exactly).

        Anyway, shouldn't I be able to send the messages with the Serial2.write?

        Thanks,

        1 Reply Last reply Reply Quote 0
        • K
          konacurrents
          last edited by Apr 29, 2024, 3:45 AM

          It turns out that part of the solution is sending the host mode to the ATOM. My code above did not do that (thus none of the commands were working.)

          Not knowing the full state machine of the ATOM QR, I somehow assumed host and continuous were opposite modes - but I was mistaken.

          I'm still unclear on how to send the Setup Code Prompt that is shown in the QR code.

          So I have a version that makes no sounds - but I'm unclear if it was totally from the Serial2.write calls, and not from the scanning of that Setup Code Prompt mentioned
          here

          thanks,

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post