Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone RS232 data transfer over WiFi/BT

I would like to write a simple app that displays weight values sent from a scale.

The scale sends data (with a defined protocol) through RS232 port: considering that I cannot connect the iPhone to the Serial port, I was thinking to use a RS232/WiFi adapter (or RS232/BT adapter).

The iPhone should act as a Master and the scale a Slave: the iPhone sends a command (a simple text string) to the scale and the scale answers with the weight value.

Is the WiFi/BT a possibile solution to exchange the serial data between the iPhone and the scale ?

If yes, how can I establish the connection with the scale and then exchange the data with it ?

I'm a newbie so I would need very basic information and possibly some links to tutorials or sample code to understand how to write this app.

Thanks.

like image 251
Corrado Avatar asked Nov 13 '22 18:11

Corrado


1 Answers

Have you heard about using the audio jack as a receiver of data?

iPhone @ 1200BAUD

like image 78
dan Avatar answered Dec 24 '22 15:12

dan