cellphones as interactive media interfaces

wed 6:30-9:30 harvestworks

main | class links | class 1 notes | class 2 notes | class 3 notes | code+patches

liubo borissov liubo@nyu.edu
dana karwas dlk253@nyu.edu

notes

class 3


A class database has been set up for your own MySql php my admin testing. To access the database go to
http://cell.dk22.com
username: cell
password: interact

Try to add a new table and make some fields of your own.

Objects to download:

mysql object
lchunck
lreplace
serial
these objects can be found on the following websites
www.publicbeta.cx/max/
www.maxobjects.com

Topics

Bluetooth: Bluetooth is two things, a way for devices to connect to each other and a way for wireless transmission of data. Serial communication is one of the ways to exchange data over bluetooth. Keyboards and mice, etc have their own drivers. We will be setting up a serial communications port for the bluetooth enabled phone and will transfer data from the phone to the computer and back.

Phone: The sony erickson is one of the best for the AT commands, allowing for a low level of cell phone hacking as an interface controller.

Pairing: In order to have the blue tooth enabled phone communicate with the computer the phone needs to be paired with the computer. First make sure that the phone is discoverable. On the sony erickson it is on the bluetooth menu. By making the phone discoverable this allows the phone to be recognized by other devices. The computer must also have a blue tooth modem as well. When setting up a new blue tooth device and pairing it with the computer, a pass-code will be given for the phone by the computer.

Setting Up the Serial Port: A tutorial as to how to do this can be found here. THe serial is the mode of communication between the phone and the computer. In the bluetooth preferences the serial port can be set up. Dial up networking is set up by default. Add a new device and set it up as a serial port. Select it to be a modem, so the modem protocols can be used for it. Do not require pairing security because the pairing will be happening multiple times.

Z-Term and Testing Serial Device: To test out the serial device, open up the application z-term which is available for free(). Z-Term is used because it allows you to select the serial port to talk to. Terminal allows you to connect only through the internet, that is why we are using Z-Term instead. Z-Term is a serial terminal emulator.

AT commands: AT commands are commands for terminals, they are used for a very low level of testing and interfacing the cell phones.

In the max patches you will find a patch as to how to set up serial communication with your phone. When the patch opens it will start serial communication with the phone that has already been paired with your computer. This patch is for specific phone with communication with your server.

Serial is Max's version of the Z Term.
9600 is the default baude rate for the cellphone

Lchunk and Lreplace can be downloaded from max objects.com
the expression \, allows for a space to be treated as one message

more to come....