Earlier today I came across an excellent bit of wizardry by
Rasmus Andersson called
PeerTalk. It's a Objective-C library allowing you to communicate between your iPhone and your Mac over the USB dock cable using TCP sockets.
My immediate thought was that if this really only depended on having USB host mode capability at the far end, the same mechanism should be able to be used to talk to something like the BeagleBone, or the Raspberry Pi, not just your Mac. This would allow you connect your phone directly to the micro controller board and to drive hardware directly, a lot like the Redpark cable but bypassing Apple's External Accessory framework.
 |
Yup, this is going to be useful... |
So I started digging around inside the source code to see if it depended on anything that was going to be specific to OS X, it became apparent that PeerTalk was mostly some really nice socket code sitting on top of the USB Multiplex Daemon (usbmuxd). This bit of software is in charge of talking to your iPhone over USB and coordinating access to its services by other applications. Effectively this is what iTunes and Xcode use to talk to your phone when you plug it into your Mac's USB port.
So any device that wants to talk to the iPhone using this method needs usbmuxd. Fortunately for me there are a number of people that have worked oout how to talk to the iPhone from Linux, and there is a working usbmuxd for Linux.
 |
The BeagleBone |
As well as a few other dependences which aren't present on the stock Ångström Linux distribution on my BeagleBone, or even packages via opkg, building usbmuxd on my BeagleBone requires libusb and cmake. So before building usbmuxd, I had to build cmake, which meant resolving some problems with the stock compression libraries that shipped with Ångström.
However several hours later. after enough waiting around for software to build to convince me that before doing any serious development on the BeagleBone I really had to build an ARMv7 toolchain on my Mac to cross-compile things instead of building them directly on the board....
 |
The iPhone talking directly to my BeagleBone using PeerTalk |
...I managed to get a simple "hello" from my iPhone to the BeagleBone and then via screen to my Mac using port forwarding and that old stand by, telnet.
While I was hacking away on getting this working, I wasn't alone. David House was looking down some of the same back alleyways to get PeerTalk talking to his Raspberry Pi, and we batted the problem back and forth on Twitter while waiting for code to compile well into the night...
The next step is to put together a client on the BeagleBone sitting on top of usbmuxd that'll talk natively to the PeerTalk on iOS. Since I've got the source code of both ends, this isn't going to be too hard. I'll probably put something together in Python.
More soon...
Update: Following on from this I pushed forward till I managed to blink the BeagleBone's heartbeat LED from the iPhone which is, more-or-less, the "Hello World" stage of any hardware hack...
Angstrom does include 'cmake' and 'libusb'. Try:
ReplyDeleteopkg update
opkg install libusb-1.0-0
opkg install libusb-1.0-dev
opkg install cmake
I was able to easily follow the usbmuxd README to then build the library.
Interesting, that must have happened in the last couple of days then because they certainly weren't there a week ago...
ReplyDeleteopkg update ; opkg install cmake libusb-1.0-dev
ReplyDeleteangstrom@discovery:~/website/feeds/v2012.05/ipk/eglibc$ ls -la armv7a/base/cmake_2.8.5-r2.3_armv7a.ipk
ReplyDelete-rw-r--r-- 1 angstrom angstrom 4002160 2012-05-20 14:00 armv7a/base/cmake_2.8.5-r2.3_armv7a.ipk
Has been there for over 2 months now
As I said above, interesting. It didn't show up when I went looking for it...
DeleteTry this to add it to your feeds.
ReplyDeleteWith this command.
$echo “src/gz angstrom201205 http://feeds.angstrom-distribution.org/feeds/v2012.05/ipk/eglibc/armv7a/base/” >> /etc/opkg/angstromArmv7a201205.conf
Then
$opkg update && opkg install cmake
asd2
ReplyDeleteThere was a time when we were just a bunch of students, it was long ago when the actual online writing services didn’t exist and we were facing the problem of writing the assignments ourselves https://topswriting.com/review/ewriters, soon online services popped out but the prices were still not suitable for a student’s budget, that’s when we figured out it is an action time for making an affordable annotated bibliography writing service for students.
ReplyDeleteWord connections isn't just a solitary pursuit; it thrives on community engagement and collaboration. Players can compete against friends, join online tournaments, or participate in cooperative challenges where collective brainstorming leads to new discoveries.
ReplyDeleteBeagleBone explored innovative uses for technology, much like how slope unblocked pushes the boundaries of online gaming. Its integration of agility and strategy captivates players globally.
ReplyDeletePeerTalk and the BeagleBone harmonizes coding and creativity akin to friday night funkin's rhythmic beats. It explores interactive tech through BeagleBone's capabilities, appealing to both tech enthusiasts and gamers alike.
ReplyDeleteGeometry Dash Guide: Master the Rhythm Game Everyone's Talking About
ReplyDeleteGeometry Dash is a fast-paced rhythm-based platformer developed by RobTop Games that challenges players with precision timing and reflexes. Released in 2013, it has since become one of the most popular mobile and PC games in the indie platformer genre.
🔥 What Is Geometry Dash?
Geometry Dash is a side-scrolling platformer where players guide a square-shaped character through levels filled with obstacles — all synchronized to energetic music. With one-touch controls, you jump, fly, and flip your way through an intense rhythm-based environment.
🟢 Available on: iOS, Android, Windows, macOS
🟢 Gameplay Type: Rhythm-based action platformer
🟢 Developer: RobTop Games
🎮 Key Features of Geometry Dash
🎵 1. Rhythm-Synced Gameplay
Every movement you make must match the beat of the soundtrack. The music isn’t just background — it’s your guide.
🧩 2. Multiple Game Modes
Play as different forms (cube, ship, UFO, wave, etc.), each with unique mechanics, adding variety to each level.
🛠️ 3. Built-In Level Editor
Create, customize, and share your own levels with millions of players worldwide. Explore endless user-generated content!
🌟 4. Customization Options
Unlock icons, colors, and trails by completing levels and collecting secret coins.
📈 5. Increasing Difficulty
From beginner-friendly levels to "Demon" difficulty, there's always a new challenge.
🚀 How to Get Started with Geometry Dash
If you're new to the game, follow this simple path to master it:
Download Geometry Dash Lite (free) or the full version for full access.
Start with official levels like Stereo Madness and Back on Track.
Use Practice Mode to memorize and refine your moves.
Collect coins and unlock achievements to personalize your icon.
Try user-generated levels for unlimited fun and difficulty options.
🧠 Why Practice Mode Matters
Practice Mode allows you to place checkpoints during gameplay, making it easier to learn difficult parts. This mode is essential for improving reflexes and mastering the toughest levels.
🛠️ Geometry Dash Level Editor: Fueling Creativity
The Level Editor is a game-changer. It empowers players to build complex levels with effects, triggers, and custom music. This feature has led to an ever-growing library of custom levels, keeping the game fresh and exciting.
Visit the Geometry Dash Wiki to learn tips and tricks for designing your own level.
🌍 Geometry Dash Community & Competitions
Join an active community that:
Shares thousands of new levels daily
Organizes tournaments and races
Recognizes top creators and players
Hosts events on platforms like Game.tv
Whether you're a casual player or a speedrunner, there’s a place for you in the Geometry Dash community.
💡 From Beginner to Pro: Leveling Up
Start with Easy levels and work your way up.
Master each form (cube, ship, wave) before advancing.
Watch tutorials from pro players on YouTube.
Attempt Demon levels only after consistent practice.
🕹️ Why Geometry Dash Remains a Classic
Geometry Dash continues to thrive because of:
Regular updates and new content
Active creator community
Challenging, addicting gameplay
No in-app purchases in the full version
✅ Final Thoughts: Is Geometry Dash Worth Playing?
Absolutely! If you're looking for a game that sharpens your reflexes, rewards creativity, and delivers hours of fun, Geometry Dash is for you. Whether you're playing for the music, the challenge, or the community — this game hits all the right notes.
🔎 SEO Keywords Integrated:
Geometry Dash
Geometry Dash guide
Geometry Dash tips for beginners
How to play Geometry Dash
Geometry Dash level editor
Geometry Dash community
Rhythm-based platformer