JObexFTP from Ricardo Schmidt

WARNING: All the Cinterion related content from this blog will be removed to go to the javacint wiki soon. Please get used to going there.

Ricardo Schmidt made a great multi-platform TC65 control and file management tool called JOBextFTP. This can be used for anyone whose Module Exchange Suite (MES) doesn’t work or doesn’t work correctly.

The biggest effort is put on managing the OBEX file transmission protocol, but it also does offer some simple methods that can be integrated in your development process, like “turnOn”, “turnOff”, “getTime”, “runApp”.

I’m really sorry but I didn’t take the time to test it as I’m currently not making some TC65 development. But it looks very operational to me.

Maybe I should start a list of useful TC65 softwares. I can already see this one to help you deploy programs and files locally and my SMSOTAP to help you deploy programs remotely.


Update: JObexFTP 2.4
Thu, Feb 24, 2011 at 00:51

Hello,

You recieved this email due your interest in JObexFTP.

JObexFTP have new cool features!
Now we can:
– move files and folder with mv command
– change mode of files and folder with chmod command
– see the total disk space and the free space.

Checkout the changelog from the past 2 releases:

JObexFTP 2.4
– Added disk information in about command
– Added move (mv) operation
– Added change mode (chmod) operation
JObexFTP 2.3
– Improved ObexClose.
– Improved estability.
– Faster operations.
– Code clean up.
– Fixed getContents of binary OBEXFile

Thank you for the attention!


Update: New interface
Sat, Jan 29, 2011 at 08:12

Hello,

You received this email due your interest in JObexFTP.

New utilities: emulator and cmd_autoexec_off.sh
New TC65SH UI: An improved user interface based on TC65SH 1.2.0
Makefile: just type `make && sudo make install` and call it by
`jobexftp` from anywhere in your linux. (It also installs the rxtxlib)

Using JObexFTP emulator with your IDE your going to send files to
module, execute and follow their output, all in the IDE. Stack Traces
are automatically parsed by IDE and shown in a programmer friendly way.
Check out attached screen shot.
JObexFTP emulator also turns on your device if is not yet, and attempts
to leave data mode if no response to at commands (just using echo and
cat).

binaries, libraries and sources available to download in github
https://github.com/3esmit/JObexFTP/

Any feature request, issues, experiences or improvements with JObexFTP
please contact me, I will be pleased in have your feedback.

Thank you for the attention,
Ricardo Guilherme Schmidt

Update : JObexFTP version 2.0
Ricardo Schmidt sent an other mail about his project on the javacint group, on Oct 22, 2010 at 14:51 :

Hello community,

I’ve just released JOBEXFTP 2.0 (beta), which brings tons of
improvements from last version due total refactoring of code. Its
better then never, check out sources!
Now the transfers are stable and 60% much faster. If you are a maniac
object oriented programmer, you going to love it, since it follow many
project patterns as listeners, notify, encapsulation.
The program API is a truly Java library, with easy Obex FTP calls.
Full information available in project README.

The project is released under LGPL and need your feedback.

Access: http://www.github.com/3esmit/jobexftp

Here is the email Ricardo Schmidt sent me on the 17 December 2009 :
I modified and formated some parts of the original mail.

Hello Florent,

With Ondrej ObexTool sources, that I met through your blog, I made up a new tool (think OO). So I made a library to help developers make multiplatform easy communication with TC65 and simmilar modules.
I’m already using it in a desktop configuration program for my M2M application and it just works great.
It have some TODOs and maybe some bugs, but it have a nice object oriented programming. Also I abused of the exceptions, becouse this project is not just an application, but also a library. You can use it to develop your configurator programs, its very easy to do with it.
The code is fully in english, but in future I pretend make it multilanguage. For now it just garantees that TC65 is going to work with it, but I belive TC65i and XT75 should work as TC65, since it under the same AT “platform”.

Some nice features in the library :

  • Auto turns on/off the module
  • If for some previous crash it stayed in DATAMODE, it sends the +++
    until it get the COMMANDMODE again.
  • You can choose for seeing verbose messages and for seeing the AT
    communication.
  • You can send a String as a file to the module.
  • You recieve a file as a String from module (since writing a file is easy).
  • Working in windows platf (under test)

Some nice features in the application :

  • Argument configurable on/off module, verbose and show atcomand.
  • Download, upload and list files just in one connection (no limit) ex.: jobexftp /dev/ttyACM0 -u arq1.ext arq2.ext arq3.ext arq4.ext -l -d filetodown.ext -V -A
  • Option to just stdout the file. (sometimes we just need to see the
    contents)

TODOs:

  • Documentation (kinda important)
  • Auto run jars (in library is ready, just for app)
  • Choose folder to send the file (easy task)
  • MacOSX adaption (maybe its already working, I dont have any macs to test)
  • Multilanguage

The listing comes in the XML from library, I think that this should be treated just in the applications, since the xml is very good for programming analyse.

Hope you like it.

You can get the latest sources from project kenai : http://www.kenai.com/projects/jobexftp

Kenai is NetBeans integrated, and it uses subversion. This project is opensource under GPL (application) and under LGPL (library).

Thank you for the attention,
Ricardo Schmidt

Here is an other message Ricardo sent on the 18 March 2010 :

Hello developers,

Due to the kenai closing, and to have the best control version system, JObexFTP have moved to github.com.
Now we can manage projects better with git control version. If you dont know Git, you should!
The Kenai’s JObexFTP will be closed soon, the repository is already deleted.
Note: The old JObexFTP versions are lost due to new commit.
Please consider joining my project.

What is JObexFTP?
Its a fully opensource library (and application) to transfer files from/to obex server.
You can use it in any J2SE application to enable java communication to module without third party app. You can also use it as a MES in unsupported cinterion plataforms like Linux.
For now it just supports cinterion modules due to ATCommand spec.
It needs RxTx library to have the serial communication.

JObexFTP news:
Now we have fully OO obex objects (files/folders).
The downloading files is speeded up.

Under development:
Human readable folder listing
Multilanguage

Known issues:
Deleting multiple files is buggy and needs reconnection. (Its also buggy in windows MES, but here is a way more buggy)
In Windows sometimes it takes more time to have obex ready to read folder listing (I hate you microsoft)

4 thoughts on “JObexFTP from Ricardo Schmidt”

  1. Hi,
    to get jobexftp work with XT65 it is necessary to add something like the following code:
    else if (s.indexOf(“T65”) > -1) {
    LOGGER.log(Level.FINE, “Found T65 device.”);
    setDevice(OBEXDevice.TC65);
    return;
    }

    At about line 195 of com.lhf.obexftplib.io.ATConnection.
    Ah: thanks all for your efforts making cinterion programmable from linux!!
    Salud

  2. Hi,
    I would like to know if is possible to use JObexFTP under Windows XP.
    When I invoke the command: java -jar JObexFTP.jar COM29 -l
    I have a problem because the COM port doesn’t visible.
    How I can show the path of the COM port like as /dev/ttyUSB0 under Linux?

    Thank

  3. Hey Florent,
    I’m working with EGS5 from cinterion, and also have big issues using MES, usually it doesn’t work properly neither with Serial or USB ports.
    Does JOBextFTP work with it?

Leave a Reply

Your email address will not be published. Required fields are marked *