Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

Telit Cinterion IoT Developer Community

UART to FTP pipe - example Java MIDlet

Showcase, June 30, 2016 - 4:01pm, 5225 views

Description:

This is a short the FTP example project which uses the free Ftp2Me library (http://ftp2me.sourceforge.net/) with only some minor modifications.

After start the application starts listening on the ASC0 interface. All the data received is stored to the module's file system. After the end of file sequence (defined by the user - 3 characters repeated 4 ***** each) the data is sent to the FTP server as file. Some status information is also sent back on UART. Additionally there is debug output sent to system out. After all files are sent (the number of files is configured in the jad file) the application closes.

Some more information can be found in the source files.

Configuration:

Some parameters can be configured in the jad file:

UART_COM: COM0

UART_baudrate: 115200

FTP_NUMBER_OF_FILES: 3

EOF_Char_1: q

EOF_Char_2: w

EOF_Char_3: e

FTP_IP: 192.168.1.10

FTP_port: 21

FTP_user: user

FTP_password: pass

 

Download File FTPDemo.zip (zip | 110.72 KB)

Author

Bartłomiej Gemalto Moderator's picture
Bartłomiej Gemalto Moderator