From fabioschmidt at gmail.com Sat Feb 14 06:09:44 2009 From: fabioschmidt at gmail.com (Fabio Nicolas Schmidt) Date: Sat, 14 Feb 2009 11:09:44 -0200 Subject: [dev65] TC65 with SPI Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://castrov.dyndns.org/pipermail/dev65/attachments/20090214/c6794393/attachment.htm From romain.farkas at epfl.ch Sat Feb 14 06:43:55 2009 From: romain.farkas at epfl.ch (Romain Farkas) Date: Sat, 14 Feb 2009 14:43:55 +0100 Subject: [dev65] TC65 with SPI In-Reply-To: References: Message-ID: <87a7df4f0902140543o135f6ce4ic10db3f34a5de8bd@mail.gmail.com> 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 > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://castrov.dyndns.org/pipermail/dev65/attachments/20090214/91314c51/attachment.htm From mmazure2 at wp.pl Sat Feb 14 14:55:14 2009 From: mmazure2 at wp.pl (Marcin Mazurek) Date: Sat, 14 Feb 2009 22:55:14 +0100 Subject: [dev65] TC65 with SPI In-Reply-To: References: Message-ID: <49973DC2.3040308@wp.pl> Hello Romain. I tried to connect SD card over SPI on TC65 about year ago. I didn't made it because of timings during card initialisation. Now I am using SD card connected to RS232 via interface on PIC :) and it works, what is most importatn to me. I am very ineterested, how You made Your SD card communication on XT75, if You'll find any classes I'll be very glad to see it. Best regards Marcin Mazurek Romain wrote: >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 From fabioschmidt at gmail.com Sun Feb 15 15:28:51 2009 From: fabioschmidt at gmail.com (Fabio Nicolas Schmidt) Date: Sun, 15 Feb 2009 19:28:51 -0300 Subject: [dev65] TC65 with SPI In-Reply-To: <87a7df4f0902140543o135f6ce4ic10db3f34a5de8bd@mail.gmail.com> References: <87a7df4f0902140543o135f6ce4ic10db3f34a5de8bd@mail.gmail.com> Message-ID: 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 > 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 > >> 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