[dev65] TC65 with SPI

Fabio Nicolas Schmidt fabioschmidt at gmail.com
Sun Feb 15 15:28:51 MST 2009


Daniel and Romain. Thanks for the reply.

My problem was solved when I created 3 classes, each one with its own AT
Parser. I Instantiate ATCommand and never close it. I made this classes with
static methods, and initialize them when my program starts. I believe you
can use ATCommand.release to "instantiate" ATCommand, but I´ve not tried
using it.

Hardware with GPS I´ve still worked too, with a XT65. I started working on
them to receive a help paying my university, so I did a project called
"Vehicle Tracking and Monitoring using GPS", where I did a very rudimentary
Java software, where it basically only open a Socket connection and receive
command form a remote computer. On this computer I developed a software
Using LabView. This software controlled the XT65. Very simple. Sometimes I
got some errors from java, but it worked fine.

I don't know if I can post photos, but I will try.. This photos are
historical. Two years ago I tested my XT65 using a protoboard. After testing
it I built a PCB with all necessary components, as you can see in the
photos.

Have you ever needed to program a thread to execute on a specific day?
Explaining:

I Have a .txt file on the module"s file system. I read it (its data is
separated with ";"). This txt file is like a system.ini file, where I keep
the software configuration. Into this text I have the month, day, hour and
minute that I want a thread to execute. I couldn't find how do it, does
anyone have did it before?

The second thing I am doing is Writing this TXT file using an external
software, where this external software transfers this .txt file with the
settings into the module's file system. I couldn't find on siemens manual
how transferring files over AT interface, but using a Serial Port Monitor
software I discovered that the MES (Module Exchange Suite) sends the
"AT^SQWE=3" AT command and opens an OBEX system. It sends all files using
this.

I've still studied what it sends and I can write the file on the module, but
if someone have the OBEX protocol it would be fine, because what I'm doing
is pretty what we call "gambiarrra", or "the Brazilian way for doing things"
(laughs).

Thanks.

Fábio.
+55 47 8418-2000




2009/2/14 Romain Farkas <romain.farkas at epfl.ch>

> Hey Fabio,
> I've tried to interface a SD card to the XT75 which has basically I guess
> the same SPI interface. After quite some time I gave up because there was no
> way I could have some serious control on the timing of the SPI frames. But I
> was able to write and read some data from the SD card. If you're interested
> I can try to find the source code...
>
> But I guess it would be much easier with an external microcontroller.
>
> BR
>
> Romain
>
> 2009/2/14 Fabio Nicolas Schmidt <fabioschmidt at gmail.com>
>
>> Hello.
>>
>> It was very hard to find this forum that talk about TC65 and his variants.
>> You have no idea how much I break my head doing some simple things with TC65
>> and Java.
>>
>> Have somebody still used SPI with Java? How do you implemented SPI
>> communication into your Java Application? I had some errors while oppening
>> and closing SPI, but they are still solved.
>>
>> The problem was that I was not able to keep a SPI connection oppened,
>> because during SPI communication I had to send some AT commands, and using
>> other AT Parsers was not working. And oppening and closing SPI channel lot
>> of times was returning me some exceptions, like "cant send at command,
>> ongoing data connection".
>>
>> So, I called Cinterion Support ant they explained me to make three
>> classes, one for each AT parser. I made they Static, so I instanciate each
>> at parser into each AT class, then I open the SPI connection into one of
>> this class and mantain it oppened until the end of the program.
>>
>> Can you tell some of yours experiences? I think this is very important to
>> impove our abilities using it.
>>
>> Sorry about my English errors, I´m from Brazil.
>>
>> Thanks.
>>
>> --
>> Fábio Nicolas Schmidt MSN fabioschmidt at gmail.com
>>
>> _______________________________________________
>> dev65 mailing list
>> dev65 at castrov.cuug.ab.ca
>> http://castrov.dyndns.org/cgi-bin/mailman/listinfo/dev65
>>
>>
>


-- 
Fábio Nicolas Schmidt MSN fabioschmidt at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://castrov.dyndns.org/pipermail/dev65/attachments/20090215/8ef2bb25/attachment.htm 


More information about the dev65 mailing list