News for hackers. Stuff that matters.
Re:Quietnet: Chat client that works over near-ultrasonic sound by songzme on Wednesday January 08, 2014 @01:25PM (#7025381)
Can this be accomplished on mobile devices? This could be a clever trick to implement interesting multiplayer games on train rides, airplanes, where wifi is not available.

From a quick research, it seems that iPhones are not able to play ultrasonic sound: "iPhone 4s is rated for 20Hz - 20,000Hz, which means it cannot generate ultrasonic frequencies." - http://stackoverflow.com/questions/10034346/ios-how-to-produ...

Re:Quietnet: Chat client that works over near-ultrasonic sound by sp332 on Wednesday January 08, 2014 @01:42PM (#7025514)
Those "ratings" mean the sound will be distortion-free +/- 3dB over that range. You can still make some noise higher or lower than that, it will just be more distorted. I know iPhones support audio formats with at least 96 kHz sample rate, so you should be able to play half that or 48 kHz sounds without too much trouble. It might have some kind of band-pass filter built in, but the ratings won't tell you.
Re:Quietnet: Chat client that works over near-ultrasonic sound by mbenjaminsmith on Wednesday January 08, 2014 @09:10PM (#7028309)
> Those "ratings" mean the sound will be distortion-free +/- 3dB over that range.

No it doesn't. All speaker drivers act as bandpass filters. On the ends of their frequency ranges those +/-3dB points are generally their -3dB points. For most speaker drivers their low frequency cutoff will be caused by the resonance of their motor, dropping off rapidly after that point. The upper frequency limit will be caused by the inductance of their motor's coil with a similar drop off above it.

It's unlikely that the iPhone speaker could reach 48kHz. If you look at expensive high frequency units (tweeters) they'll generally top out at 20-30k. A lot of headphone drivers (which are more similar to what's in the iPhone) barely make it to 20k.

> You can still make some noise higher or lower than that, it will just be more distorted.

Again, nothing about distortion here. A speaker driver will output sound outside of its -3dB points, but, obviously it's going to be much quieter (-3dB is already half as quiet).

Re:Quietnet: Chat client that works over near-ultrasonic sound by GrantS on Wednesday January 08, 2014 @03:26PM (#7026328)
Not ultra-sonic but this app sends photos from iPhone to iPhone using the speaker and microphone.

https://itunes.apple.com/us/app/acoustic-picture-transmitter...

Fun to play around with and think of the possibilities of using sensors in unintended ways.

Re:Quietnet: Chat client that works over near-ultrasonic sound by e12e on Wednesday January 08, 2014 @10:44PM (#7028612)
Essentially a modem (with zmodem/sz-rz functionality)?
Re:Quietnet: Chat client that works over near-ultrasonic sound by jbanon on Wednesday January 08, 2014 @01:44PM (#7025535)
This operates within that range at 19K, which is well above what most adult humans can hear: https://github.com/Katee/quietnet/blob/master/options.py#L2

That's not to say it would work on an iPhone.

Re:Quietnet: Chat client that works over near-ultrasonic sound by mseebach on Wednesday January 08, 2014 @01:41PM (#7025498)
I would suspect those environments to be much too noisy for that to work.
Re:Quietnet: Chat client that works over near-ultrasonic sound by amitparikh on Wednesday January 08, 2014 @01:55PM (#7025611)
Unless it's noisy at or near the desired communication frequency, it is trivial to isolate the signal and completely mute out the noise.

In this example, at ~19 kHz, a properly configured high-pass filter could easily remove any human-talking sounds.

Re:Quietnet: Chat client that works over near-ultrasonic sound by mseebach on Wednesday January 08, 2014 @02:06PM (#7025707)
I'm not worried about humans talking, I'm worried about the ambient noise of the train/plane itself.
Re:Quietnet: Chat client that works over near-ultrasonic sound by krazydad on Wednesday January 08, 2014 @05:36PM (#7027326)
Agreed. This particular app starts to fail badly when the AC is on my current room. Airplanes are much, much, worse.