Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 26, 2024, 10:02:15 10:02


Login with username, password and session length


Pages: [1] 2  All
Print
Author Topic: TC65 with ccs  (Read 8334 times)
0 Members and 1 Guest are viewing this topic.
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« on: November 14, 2014, 05:55:28 17:55 »

I would like to program a TC65 module via dspic33 microcontroller. Can i find any sample about what AT commands  need to use?

also if i use the AT commands of the TC35 would it be ok?
Logged
motox
Cracking Team
Active Member
****
Offline Offline

Posts: 187

Thank You
-Given: 255
-Receive: 319



« Reply #1 on: November 14, 2014, 09:59:57 21:59 »

Five years ago I did a project with a TC65 modem and a PIC24 using C30.
The code is property of my employer, so I cannot give you the complete project.
But sure I can help you out.
Let me first explain what I did. In my project I have a PC with a LabVIEW program that opens a specific TCP port (server). The TC65 is at a remote location and when it wants to send data, it connects to that TCP/IP port and sends the data. After that it closes the connection and goes to sleep.

I implemented the necessary functions to initialize, Request SIM Credit balance, get signal strength and channel bit error rate, connect to a specific TCP port in a specified IP address, disconnect, read TCP data, write TCP data, send AT command and finally shut down.
All of this using state machines. The PIC never waste time pooling events!

There is something very important, you should always analyze every response from the modem, specially the asynchronous error responses (AKA Unsolicited Result Codes) if you want to make a robust project.
The problem is that there are a lot of different type of responses, so this is not an easy job.

The modem has hundreds of commands (never counted them). So first decide what you need to do with it. Then make an ordered list of the commands that you need to execute to perform each step. I can tell you all the essential commands if you just want to do what I did in my project.

As an example, here are some commands to stablish a GPRS connection in Portugal (these may change on a different country):
Code:
AT&C2				// Enable signal DCD
AT^SICS=0,conType,GPRS0
AT^SICS=0,apn,internet
AT^SISS=0,srvType,socket
AT^SISS=0,conID,0
AT^SISS=0,address,"socktcp://192.168.1.1:1000" // Put the IP address and TCP port number
AT^SISO=0 // It takes between 3 s to 6 s to reply "OK"

Session info: AT^SISI?<CR>
Close session: AT^SISC=0<CR>
Request SIM Credit balance: ATD*#123#;

« Last Edit: November 14, 2014, 10:04:19 22:04 by motox » Logged
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #2 on: November 14, 2014, 10:25:21 22:25 »

Thanks a lot for your respond.

I am trying to create a tracking vehicle system, so the gprs connection between TC65 and server is a priority.

First, i would like to ask, how do you connect the pic with tc65(actually is TC65i, I2C,UART,SPI??? ) and what is the minimum frequency which is needed for the microcontroller.(i mean what s the frequency from the crystal).??
Logged
motox
Cracking Team
Active Member
****
Offline Offline

Posts: 187

Thank You
-Given: 255
-Receive: 319



« Reply #3 on: November 14, 2014, 10:32:55 22:32 »

I used the UART interface.
See part of the schematic bellow.
Logged
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #4 on: November 14, 2014, 10:47:53 22:47 »

Why you use two different crystals?Also what is J7 is this the TC65?
Logged
motox
Cracking Team
Active Member
****
Offline Offline

Posts: 187

Thank You
-Given: 255
-Receive: 319



« Reply #5 on: November 14, 2014, 11:18:17 23:18 »

Yes, J7 is the connector for the TC65. My TC65 (non i version) has RS232 levels.

X1 is the main oscillator, X2 is the low power oscillator for the real time clock. X2 is always enabled even during sleep.
The complete system is powered by a battery and a solar panel.

You can use almost any oscillator frequency.
I'm using the TC65's UART at 9600 bps. Which is a very slow baud rate.

Here are some more useful commands (only need to send once if you save the config in memory):
Code:
AT+IPR=9600			// Set UART baud rate
AT\Q3 // Flow control
AT^SCFG="Tcp/WithURCs","off" // Disable Internet Service URCs (Unsolicited Result Codes)
AT&W // Save current config
Logged
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #6 on: November 16, 2014, 12:58:31 00:58 »

what do you mean with the function  for "Request SIM Credit balance, get signal strength and channel bit error rate"

I am looking for a schematic of the module something with a clear view of the pins.
Logged
motox
Cracking Team
Active Member
****
Offline Offline

Posts: 187

Thank You
-Given: 255
-Receive: 319



« Reply #7 on: November 16, 2014, 02:11:35 14:11 »

Signal strength is similar to the 5-bar phone signal in your cellphone. It represents the received power level of the wireless signal.
Bit error rate is the quality of the reception.
These are different things, e.g. you can have a strong signal but with lot of noise.

SIM credit balance is the available credit in your card. This only applies to prepaid cards. Probably the code *#123# only works in Portugal. But you should find a similar code in the country.

Extra info:
Did you know that prepaid cards were invented in Portugal by TMN in 1995!  Tongue
Logged
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #8 on: November 16, 2014, 04:52:31 16:52 »

How to create a function for test the "Signal strength" and "Bit error rate"  ?

look like little difficult to me.
can you give me more guideline
Logged
motox
Cracking Team
Active Member
****
Offline Offline

Posts: 187

Thank You
-Given: 255
-Receive: 319



« Reply #9 on: November 16, 2014, 11:25:53 23:25 »

To execute a command just send it through UART. In case of the signal quality the command is: AT+CSQ. The TC65 will reply those values through UART.

Document “AT Command Set”, version 2.000, page 202:
8.5 AT+CSQ Signal quality
The  AT+CSQ  execute command indicates the received signal strength  <rssi>  and the channel bit error rate <ber>.
Syntax:
Code:
Exec Command:
AT+CSQ
Response(s):
+CSQ: <rssi> , <ber>
OK

Can you connect your TC65i to a USB-RS232 converter?
The easiest way to test the TC65 is using a PC with a terminal program to send the commands manually.
Logged
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #10 on: November 17, 2014, 12:00:53 00:00 »

I don't have the module yet.(I will have it in the week ).

Btw i checked your schematic and i think something is going wrong.

for example  pins 1and 4 are the gnd (for tc65i module) but in your schematic you connected these pins to R2IN and T2OUT of the rs232 Transceiver.

something wrong or  i don't understand something?
Logged
motox
Cracking Team
Active Member
****
Offline Offline

Posts: 187

Thank You
-Given: 255
-Receive: 319



« Reply #11 on: November 17, 2014, 01:34:36 01:34 »

TC65 and TC65i are different.
J7 is a double row connector for flat cables (like the IDE connector). That cable connects to the DB9 of the TC65 (see attached picture).
Logged
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #12 on: November 18, 2014, 01:46:52 13:46 »

I am thinking something like this :

http://uk.farnell.com/mc-technologies/tc65i-x-gpio-terminal/mod-quadband-gpio-java-terminal/dp/2250671


what do you think?
Logged
motox
Cracking Team
Active Member
****
Offline Offline

Posts: 187

Thank You
-Given: 255
-Receive: 319



« Reply #13 on: November 18, 2014, 02:49:56 14:49 »

I cannot find the data sheet of this version with the external connections.

Personally I think the TC65 it’s too expensive. You can buy much cheaper options.

For example, something based on the SIM900 from SIMcom.
$35: http://imall.iteadstudio.com/im140318007.html
Logged
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #14 on: November 18, 2014, 02:53:40 14:53 »

I prefer to stay to TC65. what is the best module for this device?
Logged
motox
Cracking Team
Active Member
****
Offline Offline

Posts: 187

Thank You
-Given: 255
-Receive: 319



« Reply #15 on: November 18, 2014, 03:03:16 15:03 »

It’s difficult to say, I guess they are all good. You just have to find the one that fits most to your application.
Logged
cncbasher
Junior Member
**
Offline Offline

Posts: 91

Thank You
-Given: 107
-Receive: 51


« Reply #16 on: November 18, 2014, 04:02:11 16:02 »

you dont say if this is a hobby or a commercial project ,
iv'e done quite a lot of gps tracking systems over the years , so it depends on the level you want to work at
but take into consideration airtime fees , and connection times to a minimum , in the early days we used the sms control channels
as it was the cheapest for cost .

this may be of some help , in the meantime
http://people.ece.cornell.edu/land/courses/ece4760/FinalProjects/s2012/bdt25_edr46/bdt25_edr46/
Logged
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #17 on: November 18, 2014, 04:39:47 16:39 »

motox,  i need to find a complete module with good documentation for TC65 just to program the TC65.
(I start to think to use the module that you used. i can found a lot of datasheets).

This is my first commercial try , i feel little confused
Logged
LzEn
Junior Member
**
Offline Offline

Posts: 78

Thank You
-Given: 48
-Receive: 86


Lazy Efficient


« Reply #18 on: November 18, 2014, 05:31:48 17:31 »

The link you posted to Farnell shows the price @ £175.02. This is way too expensive for any commercial gps system. Unless there is something I am missing.
Logged

~ Laziness Is The Mother Of Efficiency ~
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #19 on: November 18, 2014, 11:09:17 23:09 »

I was thinking to use this module for programming /testing the TC65 module and then to move to something more cheaper(with TC65). Or event better to buid a pcb using the tc65
Logged
LzEn
Junior Member
**
Offline Offline

Posts: 78

Thank You
-Given: 48
-Receive: 86


Lazy Efficient


« Reply #20 on: November 19, 2014, 06:57:10 06:57 »

If you are familiar with C programming I would recommend to you Quectel modules with OpenCPU technology. The concept is that you buy the GSM module from Quectel and then you can write your own application using GCC tools and flash it to the module itself. That way you do not need any external components everything is built-in.

Also since you were asking before about Over The Air upgrade, the OpenCPU provides FOTA(Firmware Over The Air) feature using the provided SDK.

Here is a snippet from their website:
Quote

●  Reduce the product development period.
●  Simplify the circuit design and reduce the cost.
●  Decrease the product’s size.
●  Decrease the power consumption.
●  Upgraded via OpenCPUTM FOTA.
●  Enhance the intellectual property protection with the Anti-copy technology.
●  Improve the performance-to-price ratio and enhance the competitive strength.

And here are some related links:
* LINK
* LINK
* LINK

I know the above is not directly your approach, but you might want to give it a look.

Regards
Logged

~ Laziness Is The Mother Of Efficiency ~
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #21 on: November 19, 2014, 11:48:49 11:48 »

I choose this module beacuse of java integrated. With this feature the  "Over The Air upgrade" willbe more easy . (I think)
Logged
motox
Cracking Team
Active Member
****
Offline Offline

Posts: 187

Thank You
-Given: 255
-Receive: 319



« Reply #22 on: November 19, 2014, 07:32:16 19:32 »

My advice is to buy something like this:
http://www.aliexpress.com/store/product/SIM968-C-Quad-Band-GSM-GPRS-33tracking-99-acquisition-channel-GNSS-receiver/605000_1954238087.html

For 23USD you get a GPRS modem with a GPS/GLONASS receiver.
For the upgrades, just integrate a simple serial flash upgrade routine into your program.
Logged
LzEn
Junior Member
**
Offline Offline

Posts: 78

Thank You
-Given: 48
-Receive: 86


Lazy Efficient


« Reply #23 on: November 20, 2014, 07:04:51 07:04 »

My advice is to buy something like this:
http://www.aliexpress.com/store/product/SIM968-C-Quad-Band-GSM-GPRS-33tracking-99-acquisition-channel-GNSS-receiver/605000_1954238087.html

For 23USD you get a GPRS modem with a GPS/GLONASS receiver.
For the upgrades, just integrate a simple serial flash upgrade routine into your program.

Actually SIM has a GSM module with integrated GPS and it is cheaper than the one provided in your link. It is called SIM908 and here is a LINK if you want to check it out.

But Tom is looking for something with Java support, so these options are out.
Logged

~ Laziness Is The Mother Of Efficiency ~
Tom1234
Junior Member
**
Offline Offline

Posts: 60

Thank You
-Given: 13
-Receive: 3


« Reply #24 on: November 21, 2014, 04:49:36 16:49 »

Guys i would use the TC65 (TC65i).
I am not searching for any other module.
so please give me any suggestion regarding this GSM module.
Logged
Pages: [1] 2  All
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC