
Howto:
./ch9141 /dev/ttyUSB3 "..." ./ch9141 /dev/ttyUSB3 "+BLEMODE=2" ./ch9141 /dev/ttyUSB3 "+EXIT"
screen /dev/ttyUSB3 115200
./ch9141 /dev/ttyUSB4 "..." ./ch9141 /dev/ttyUSB4 "+BLEMODE=1" ./ch9141 /dev/ttyUSB4 "+EXIT"
./ch9141 /dev/ttyUSB4 "..." ./ch9141 /dev/ttyUSB4 "+CONN=03:E9:79:E5:66:E4" ./ch9141 /dev/ttyUSB4 "+EXIT"where 03:E9:79:E5:66:E4 is the mac address you wrote above.
screen /dev/ttyUSB4 115200
But, wouldnt it be nice if I could use a console app for the host side instead of a second ch9141 and serial to usb adapter, i.e., a BLE terminal app. Looked around the net and there seemed to be many of these but none that would just give me a terminal screen after connecting to the particular ch9141 protocol. I probably just missed something, but it would also be nice to have the source/build environment for the app so that I could adapt to my own particular products (eg, like adding additional encryption and custom UIs). So decided to re-embark down that dreaded road of ios/android/non-C app/UI development. But wait, I keep reading about this AI thing...


$ claude -p "please write an ios ble terminal app."Uh...WTF...after about 10min Claude just dumped on my terminal screen 6 source code files and short setup instructions to build the app here! Didnt ask me any questions. Seemed to know exactly what I was looking for. Sure there were a few hurdles* to compile and get it onto my ipad/iphone but wow! This would have taken me - an un-experienced app/swift/apple hating old school C programmer - a long time (Ive done it before for NFC).
F.U.D was followed by - hmm.. I hate writing this sort of user facing code. Its tedious and boring (unlike writing embedded systems, net protocols, device drivers). So this AI-thing may be a godsend for folk like me though a problem for some. The true implications will take months and many beers for me to comprehend.
*yeah, spent a day just trying to update my apple xcode, certificates, etc. Ended up bricking an old mac mini and then had to buy a throw away macbook neo; and then relearning counter intuitive (for me) apple device usage. Then just a few simple SWIFT coding errors by claude. But then worked!
