Show Posts
Pages: 1 ... 9 10 [11] 12
151  Using Arduino / Interfacing w/ Software on the Computer / Re: AT commands and GSM on: August 01, 2011, 03:29:51 am
Thanks for the tip on inserting code - I wondered how they did that  smiley-cool
152  Using Arduino / Interfacing w/ Software on the Computer / Re: AT commands and GSM on: July 31, 2011, 10:29:58 am
Hi robtillaart,

thanks for offering to help. Here is my Arduino code (cut and paste from the tutorial) I didn't make any changes:
The mobile is a siemen a60

Code:
/* SparkFun Cellular Shield - Pass-Through Sample Sketch

SparkFun Electronics Written by Ryan Owens CC by v3.0 3/8/10

Thanks to Ryan Owens and Sparkfun for sketch */

#include <NewSoftSerial.h>  //Include the NewSoftSerial library to send serial commands to the cellular module.

#include <string.h>         //Used for string manipulations

char incoming_char=0;      //Will hold the incoming character from the Serial Port.

NewSoftSerial cell(2,3);  //Create a 'fake' serial port. Pin 2 is the Rx pin, pin 3 is the Tx pin.

void setup()

{

  //Initialize serial ports for communication.

Serial.begin(9600);

cell.begin(9600);

Serial.println("Starting SM5100B Communication...");

}

void loop()

{

//If a character comes in from the cellular module...

if(cell.available() >0)

{

incoming_char=cell.read();    //Get the character from the cellular serial port.

Serial.print(incoming_char);  //Print the incoming character to the terminal.

}

//If a character is coming from the terminal to the Arduino...

if(Serial.available() >0)

{

incoming_char=Serial.read();  //Get the character coming from the terminal

cell.print(incoming_char);    //Send the character to the cellular module.

}

}


I am using Terminal v1.9b with same baud rate as the sketch to send AT commands. Communication basically works. I can send make a voice call using ATD<phonenumber>;
I can interogate the phone by AT commands also eg it tells me only PDU sms is available.

I want to send sms messages so I used a tool to translate my English message into PDU "hello world!" sent from 07790961101 to 07510189479.

The tool comes up with this:
 
Code:
AT+CMGS=25 079270976069111011000B927015109874F90000AA0CC8329BFD065DDF72363904

So next I put in AT+CMGS to the terminal and press send with the <CR> box also ticked.

Reply is:

Code:
AT+CMGS=25
>

then I put in the PDU part with a ctrl-z at end (#026#)

ie:
Code:
AT+CMGS=25
>079270976069111011000B927015109874F90000AA0CC8329BFD065DDF72363904#026#

then send

the reply is:
Code:
> Ýå’º‚ʺ²‚²ÊŠŠ‚Šþ‚ʺ‚ŠŠ‚ʺ¢2Ê‚‚(§LQ¢˜65DDF72363904#013
ERROR


A mixture of strange characters. The funny thing is it returns different ones on almost every attempt.


I was expecting something like:

Code:
CMGS
079270976069111011000B927015109874F90000AA0CC8329BFD065DDF72363904

OK


and an SMS arriving later at the destination phone on my desk.
I have also tried writing the #026# as just <ctrl-z> and <ctrl+z>, none of those work either.

Using the appropriate AT command I can retrieve PDU sms from the phone to the terminal and when I convert the encoded message
back I get the right result in the PDU conversion tool.


Cheers


153  Using Arduino / Networking, Protocols, and Devices / Re: AT commands sending a text message PDU, Siemens A60 on: July 29, 2011, 10:32:18 am
Hi,

I copied over to interfacing.
154  Using Arduino / Interfacing w/ Software on the Computer / AT commands and GSM on: July 29, 2011, 10:31:23 am
Hi,

 [moved from networking]

I've got my Arduino communicating via a terminal emulator with a siemens A60 mobile phone. I can make calls etc... ok.

I think my A60 only supports PDU and not text mode

Code:
AT+CMGF ? +CMGF: 0 OK

If I try to set PDU then text mode I get:

Code:
AT+CMGF =0 OK

 AT+CMGF =1 ERROR

I found this tool http://stud.usv.ro/~amurariu/SMS%20and%20PDU%20format.htm which is supposed to translate text to PDU, but I'm not sure..

I tried a simple message like hello world and got this from the tool:

Code:
AT+CMGW=23 07910447946400F011000A9270042079330000AA0BE8329BFD06DDDF723619

I substituted my own phone numbers and used AT+CMGS to send the message direct. Also after reading a GSM dev manual of AT commands I put in this to the terminal:

Code:
AT+CMGS=23<CR>

07910447946400F011000A9270042079330000AA0BE8329BFD06DDDF723619<ctrl-Z>

(The manual gave this format: AT+CMGS=<length><CR><pdu><ctrl-Z>)

It printed what looks like gobbledegook and then ERROR, but checking the Hex box on the terminal lets it output some hex numbers

Can anyone please help?


PS I know I could get a phone that supports text mode but I would like to use this one as it was free and I already hacked the cable etc.. Also I may learn more if I try using this more difficult method.
155  Using Arduino / Networking, Protocols, and Devices / AT commands sending a text message PDU, Siemens A60 on: July 29, 2011, 06:27:02 am
Hi,

I'm not sure if this is best place to post this - please let me know.

I've got my Arduino communicating via a terminal emulator with a siemens A60 mobile phone. I can make calls etc... ok.

I think my A60 only supports PDU and not text mode (re: AT+CMGF ? +CMGF: 0 OK) If I try to set PDU then text mode I get: AT+CMGF =0 OK then AT+CMGF =1 ERROR

I found this tool http://stud.usv.ro/~amurariu/SMS%20and%20PDU%20format.htm which is supposed to translate text to PDU, but I'm not sure..

I tried a simple message like hello world and got this from the tool: AT+CMGW=23 07910447946400F011000A9270042079330000AA0BE8329BFD06DDDF723619

I substituted my own phone numbers and used AT+CMGS to send the message direct. Also after reading a GSM dev manual of AT commands I put in this to the terminal:

AT+CMGS=23<CR>

07910447946400F011000A9270042079330000AA0BE8329BFD06DDDF723619<ctrl-Z>

(The manual gave this format: AT+CMGS=<length><CR><pdu><ctrl-Z>)

It printed what looks like gobbledegook and then ERROR, but checking the Hex box on the terminal lets it output some hex numbers

Can anyone please help?


PS I know I could get a phone that supports text mode but I would like to use this one as it was free and I already hacked the cable etc.. Also I may learn more if I try using this more difficult method.




156  Topics / Device Hacking / Re: Siemens A60 but problems dialling a number - problem Solved on: July 29, 2011, 02:27:19 am
It was a really silly mistake I made. I left off the semi colon at the end of the string.  smiley-red

Happy thogh now it works. My first real hack and I'm going on to make an Arduino alarm for my garden shed which is 1/2 a mile away and has no power.

At least now the alarm can tell me of an event.  smiley-grin
157  Topics / Device Hacking / I Think I've Hacked a Siemens A60 but problems dialling a number on: July 28, 2011, 11:19:37 am
Hi,

I've got a Siemens A60 (GSM/GPRS) phone hooked up to an Arduino (mostly using tutorial http://tronixstuff.wordpress.com/2011/01/19/tutorial-arduino-and-gsm-cellular-part-one/ which I know is actually for a shield, but I thought it a good starting point) I used the siemens charger cable and soldered in the Rx, Tx pins I got info on from pinouts.ru

The Arduino is communicating with the phone because I can send AT commands via the terminal program from the tutorial http://sites.google.com/site/terminalbpp/. When I dial the phone, data gets sent via the Arduino to the terminal. Also I can terminate calls via the terminal.

When I turn on the phone I don't get all the SIND messages shown on the tutorial, which is a concern. When I try AT+SIND=? i get  ERROR. When I try to set a GSM band I get and error
When I dial a number on the terminal: ATDphonenumber I get a NO CARRIER message.
setting the default network operator (orange) works fine and I can just dial out using the phone keyboard even when still attached to the Arduino.


 I feel as though I'm close to getting it, but I am a beginner in this stuff, and it's time to ask the experts.

Can anyone help?
158  Using Arduino / Project Guidance / Re: move rod 30 cm back and forward in a straight line on: July 26, 2011, 06:48:09 am
Hi,

Would, say, a touch-activated switch at each end of the full travel to act as a stop signal work? This might give control at 0 and 30cm.

In addition, what if the toy wheel without the motor have pegs or paddles on them that can flick a rod which acts as a switch from 0 to 5v. There are two of them so you might be able to get the Arduino to count "clicks" forward and backwards, that way it could know approx where it is, with the end stops to reset the counting of clicks to 30 or 0. See attachment - it's a bad drawing. The pegs should be equally spaced and the spring looks like a bit of string, but it gives an idea of what I mean.
159  Using Arduino / Project Guidance / Re: move rod 30 cm back and forward in a straight line on: July 26, 2011, 06:18:40 am
Hi,

I'm a newbie too and I've been thinking about your project. It sounds like one of those Mythbuster-type problems you see on the discovery channel, where they test McGyver episodes for realism etc...

If I wanted to build a cheap thing that moves a lightweight rod I would use a setup like in this attachment, I've seen the Mythbuster guys do this. You would need to play with the spacing of the free rolling wheels and maybe support the rod more. You might need thin tyres on the wheels to provide friction. I used some simple code from this site to play around with a toy motor:
http://ardx.org/CODE03. I'm not an expert but I think you can modify the code to have it gradually start up and gradually slow down. As someone said a stepper motor might be good but I don't know what to do with that.

 I also thought you could gear the motor so you can control things more easily or make the so called free-rolling wheels less free-rolling so they are semi-braked (technical term smiley)  a bit like driving with the parking brake half on, when you take your foot of the accelerator and put the clutch in,  you don't free-roll.

Anyway that's all I can think of right now. Hope it helps.



Good luck
160  General Category / General Discussion / Re: What to start with? on: July 25, 2011, 08:21:48 am
Sorry I botched that URL

here it is again:

http://www.oomlout.co.uk/starter-kit-for-arduino-ardx-p-183.html
161  General Category / General Discussion / Re: What to start with? on: July 25, 2011, 08:17:36 am
I just started out with Arduino too (about 4 weeks ago) I got a bread board kit from Oomlout [url][http://www.oomlout.co.uk/starter-kit-for-arduino-ardx-p-183.html]. I found it useful because I don't know much electronics and have a bit of Java under my belt, which helps with the Arduino IDE side of things. It comes with lots of experiments and all the bits. There is a version without and Arduino too I believe - if you've already got one.

Cheers
162  Using Arduino / Installation & Troubleshooting / Re: Home-made Arduino works with Duemilanove 328 but not Uno 328 chip on: July 24, 2011, 08:03:58 am
Many Thanks madworm that's really helpful.

I can move forward again now.

163  Using Arduino / Installation & Troubleshooting / Home-made Arduino works with Duemilanove 328 but not Uno 328 chip on: July 24, 2011, 04:59:08 am
Hi,

I made a circuit board and populated it with a minimal Arduino design from Oomlout (schematic attached). I am programming it using the Arduino environment (022 Alpha) and a FTDI TTL-232R-3V3 usb to TTL serial cable 3.3/5v . It works fine with the Duemilanove chip, although I have to press reset again after clicking upload to board - a workaround I found on the Arduino troubleshooting guide. I switched chips to one with an Uno bootloader (328-pu)  chnged boards in Arduino environment but did not work, even pressing reset after upload did not work. I couldn't find anything else on the troubleshooting page . LED blinking on board ok, error message in Aduino IDE is stk_500getsync(): not in sync: resp=0x00 and stk500_disable: protocol error, expect=0x14, resp 0x51

can anyone please help?
Below is my system spec also - Thanks....

OS Name   Microsoft® Windows Vista™ Home Premium
Version   6.0.6002 Service Pack 2 Build 6002
System Manufacturer   Dell Inc.
System Model   Studio 540
System Type   X86-based PC
Processor   Intel(R) Core(TM)2 Quad  CPU   Q8200  @ 2.33GHz, 2336 Mhz, 4 Core(s), 4 Logical Processor(s)
BIOS Version/Date   Dell Inc. 1.0.6, 03/11/2008
SMBIOS Version   2.5
Hardware Abstraction Layer   Version = "6.0.6002.18005"
Installed Physical Memory (RAM)   4.00 GB
Total Physical Memory   3.00 GB
Available Physical Memory   1.55 GB
Total Virtual Memory   6.21 GB
Available Virtual Memory   4.30 GB
Page File Space   3.29 GB



164  Topics / E-Textiles and Craft / Re: conductive rubber on: July 11, 2011, 10:52:16 am
Hi,

I have been playing around with conductive fabric and smart materials from this Educational website:


http://www.mindsetsonline.co.uk/index.php?cPath=16_574

They have a conductive lycra which I havn't tried but looks interesting. Maybe it could be incoporated into a matrix of natural latex rubber solution, the type you get from arts and craft suppliers

165  Topics / Device Hacking / Re: Old NOKIA mobile phone hacking on: July 11, 2011, 01:28:53 am
Many thanks for the link

that website is brilliant for all sorts of stuff

Pages: 1 ... 9 10 [11] 12