Story Details

  • Ggwave: Tiny Data-over-Sound Library

    Posted: 2025-02-24 18:09:19

    Ggwave is a small, cross-platform C library designed for transmitting data over sound using short, data-encoded tones. It focuses on simplicity and efficiency, supporting various payload formats including text, binary data, and URLs. The library provides functionalities for both sending and receiving, using a frequency-shift keying (FSK) modulation scheme. It features adjustable parameters like volume, data rate, and error correction level, allowing optimization for different environments and use-cases. Ggwave is designed to be easily integrated into other projects due to its small size and minimal dependencies, making it suitable for applications like device pairing, configuration sharing, or proximity-based data transfer.

    Summary of Comments ( 53 )
    https://news.ycombinator.com/item?id=43162793

    HN commenters generally praise ggwave's simplicity and small size, finding it impressive and potentially useful for various applications like IoT device setup or offline data transfer. Some appreciated the clear documentation and examples. Several users discuss potential use cases, including sneaker authentication, sharing WiFi credentials, and transferring small files between devices. Concerns were raised about real-world robustness and susceptibility to noise, with some suggesting potential improvements like forward error correction. Comparisons were made to similar technologies, mentioning limitations of existing sonic data transfer methods. A few comments delve into technical aspects, like frequency selection and modulation techniques, with one commenter highlighting the choice of Goertzel algorithm for decoding.