01.02.2014 Views

Bluetooth Commands - wless.ru

Bluetooth Commands - wless.ru

Bluetooth Commands - wless.ru

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2 – AT <strong>Commands</strong><br />

FTP Server<br />

Setting the Connection Mode in ATSW25 to 8 will cause the device to behave as an FTP Server. As the server,<br />

the device will not initiate any connections but will accept one connection at a time from a client. The FTP<br />

server functionality of the module is limited: the client can push files to the device, but it cannot browse for or<br />

download files.<br />

FTP Server Push Example Using Broadcomm Stack<br />

Enable FTP Server Mode:<br />

Sent:<br />

Reply:<br />

Sent:<br />

ATSW25,8,1,0,0<br />

OK<br />

ATURST<br />

On a PC, open “<strong>Bluetooth</strong> Places” and search for devices. After the device is found, double click<br />

it and verify its service to be “OBEX FTP on ”. Copy the file. Then go back to<br />

the <strong>Bluetooth</strong> places window and paste the file on the FTP Service Icon. The PC will then make<br />

a connection to the device, push the data, and then disconnect.<br />

Reply:<br />

FTP CONNECT,123456789012<br />

PUSH START,New Text File.txt,00000039 //Length is in HEX<br />

This is a test file for FTP server. <br />

Have a nice day. <br />

PUSH COMPLETE<br />

FTP DISCONNECT<br />

Multi-Tech Systems, Inc. SocketWireless <strong>Bluetooth</strong> AT <strong>Commands</strong> (S000360G) 54

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!