Macchina and GSM connection

How to get Macchina connected to the internet via a GSM shield.

There are several GSM shields out there, all with very similar features. We decided to use this one, since it was easy to get ahold of.

Available here:

http://www.seeedstudio.com/depot/gprs-shield-v20-p-1379.html?cPath=19_20

and again, amazingly enough, at RadioShack (?!) although this is an older version:

http://www.radioshack.com/product/index.jsp?productId=16518376

First thing to do is set up the hardware.

Insert a SIM card. [More on this later]

Next, decide on how to connect the shield to the Macchina.

The Seeedstudio shield doesn't reach the spare hardware serial lines on the Macchina, so you'll need to run two jumper wires from the shield to TX1 and RX1 on the Macchina. Having spare hardware UARTs is nice, as the other option is software serial, which takes up valuable flash, RAM, and CPU cycles.

Now it is time to set up the libraries:

We're working from library built for a different GSM shield, but it works very well with this shield after some slight modification. It can be found here:

https://code.google.com/p/gsm-shield-arduino/

Just get the latest from Downloads. The Readme file is pretty good, and the examples are also good places to start.

Macchina has the same pinout as the Mega 2560, so you'll want to make sure the "#define 2560" lines are uncommented in HWserial.h and GSM.h, and comment out the "#define UNO" line in GSM.h.

One more thing: There's a rather crucial error in the httpPOST() method in inetGSM.cpp. Lines 101-103 should be:

gsm.SimpleWrite("\r\n\r\n");
gsm.SimpleWrite(parameters);
gsm.SimpleWrite("\r\n\r\n");

I don't know if they dealt with some really permissive servers or what during their development, but most servers need a double carriage return + newline after the HTTP header, and not just newlines. I'll submit a patch to them with the fix, or add an issue to the project.

Once these step are done, we can start coding. To be continued...

Comments

Outstanding article! I want people to know just how good this information is in your article. Your views are much like my own concerning this subject. I will visit daily your blog because I know. It may be very beneficial for me. Ramen en deuren

Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! محامي

This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you. Airco

Wow, What an Outstanding post. I found this too much informatics. It is what I was seeking for. I would like to recommend you that please keep sharing such type of info.If possible, Thanks. Airco Antwerpen

Hey, I am so thrilled I found your blog, I am here now and could just like to say thank for a tremendous post and all round interesting website. Please do keep up the great work. I cannot be without visiting your blog again and again. Aanleg tuin

Great post but I was wondering if you could write a little more on this subject? I’d be very thankful if you could elaborate a little bit further. Thanks in advance! Zonnepanelen kopen

Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. Warmtepomp

Remarkable article, it is particularly useful! I quietly began in this, and I'm becoming more acquainted with it better! Delights, keep doing more and extra impressive! Tuinontwerp

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Airco prijs

Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. Ontwerp tuin

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. Airco installateur Limburg

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Airco installatie

Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. If possible, such as gain knowledge, would you mind updating your blog with additional information? It is very useful for me. Aanleg zwemvijver

I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. Warmtepompen

Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback. Bio zwemvijver

I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. Airco Hasselt

Website ini berisi informasi tukang taman gresik kami jasa tukang taman gresik dapat menjadi sebuah pilihan yang tepat untuk Anda, kami adalah jasa desain dan pembuatan taman gresik terbaik yang sudah digunakan banyak orang untuk menghiasi taman di rumahnya kami bekerja bersama tim ahli tidak pernah mengecewakan klien kami dan kami juga sangat profesional https://www.greenlandscapeasri.com/2021/06/tukang-.html. Anggapan orang dalam pembuatan taman itu memang sangat mudah padahal Jika kita benar-benar ingin membuat sebuah tukang taman blitar yang indah perlu ada pertimbangan tahap awalan dalam pembuatan taman mulai dari desain taman 3D hingga jasa desain dan pembuatan taman blitar bisa memvisualisasikan sesuai dengan keinginan Anda dengan konsep taman yang kita inginkan terwujud https://www.greenlandscapeasri.com/2020/09/tukang-taman-blitar-jasa-pena.... Mungkin bagi anda akan terasa sulit untuk mengetahui harus mulai dari mana untuk mencari tukang taman pasuruan yang handal anda bisa membaca pada artikel milik jasa desain dan pembuatan taman pasuruan supaya tidak kebingungan dalam memilih jasa yang handal serta yang terbaik anda harus sangat teliti karena kami merupakan jasa yang sangat teliti https://www.greenlandscapeasri.com/2020/09/tukang-taman-pasuruan.html. Namun itu tidak harus rumit! sebagai kontraktor jasa tukang taman probolinggo depan rumah landscape taman depan rumah minimalis, lanskap taman rumah teres, landscape taman belakang rumah yang penuh dengan hasrat tanpa henti untuk meningkatkan sebuah kualitas lingkungan hijau pada hunian anda, jasa desain dan pembuatan taman probolinggo bisa anda percayai di untuk menghiasi rumah anda karena jasa tukang taman probolinggo sudah berhasil menyelesaikan banyak project taman https://www.greenlandscapeasri.com/2020/09/Tukang-Taman-Pobolinggo.html. Jasa tukang taman sidoarjo ini merupakan sebuah situs website terlengkap yang menyediakan layanan jasa desain dan pembuatan taman sidoarjo dengan menyediakan Juga fasilitas dasar desain taman 3D, untuk melihat desain taman 3D silahkan anda lihat milik https://www.greenlandscapeasri.com/2020/09/tukang-taman-sidoarjo-jasa-pe.... Apa saja kapasitas kami sebagai jasa tukang taman mojokerto ! Ya memang kita perlu menjelaskan apa saja kapasitas kami sebagai jasa tukang taman di kota banjarnegara kami sebagai kontraktor jasa desain dan pembuatan taman mojokerto selalu mengutamakan sebuah mutu dengan kualitas hasil pekerjaan serta Memberikan suatu Garasi Jika ada pekerjaan kami yang tidak sesuai bahkan jika ada tanaman yang mati kami akan memberikan suatu garansi pekerjaan https://www.greenlandscapeasri.com/2020/08/tukang-taman-mojokerto-jasa-t.... Dalam hati anda pasti berpikir Apakah jasa tukang taman malang yang kami pilih memang benar-benar profesional memiliki pengalaman jam terbang yang tinggi? pertanyaan itu memang sering Saya dengar dan Wajar saja anda sebagai klien pasti bertanya apakah jasa desain dan pembuatan taman malang yang kami pilih benar-benar memiliki pengalaman dalam pembuatan taman, kami menyediakan team penata taman atau jasa penata taman di malang yang sangat terampil, dan menggunakan bahan berkualitas terbaik, dan komitmen sejati terhadap layanan https://www.greenlandscapeasri.com/2020/10/jasa-tukang-taman-malang-jasa.... Kami mengundang anda untuk mengenal kami tukang taman kediri dan memanfaatkan semangat dan keahlian kami dalam pembuatan taman. jelajahi situs kami atau hubungi kami jasa desain dan pembuatan taman kediri handal bisa anda percayai untuk mendesain taman rumah anda https://www.greenlandscapeasri.com/2020/10/jasa-tukang-taman-kediri-jasa.... Jasa tukang taman jombang - penyedia jasa tukang taman di kota jombang khususnya dengan pengalaman perencanaan pembuatan taman dan bekerja selama berpuluh puluh tahun pada bidang pertamanan menjadi modal utama bagi kami, kami bertanggung jawab dalam hal pekerjaan yang kami kerjakan serta mengutamakan disiplin setiap project jasa desain dan pembuatan taman jombang, jasa pembuatan taman jombang selalu mengutamakan kepuasan konsumen adalah menjadi modal utama buat kami untuk selalu tetap berkarya https://www.greenlandscapeasri.com/2020/09/tukang-taman-jombang-bergaran.... Bukan hanya itu saja selain mengerjakan tukang taman bojonegoro kami juga mengerjakan dekorasi kolam tebing atau kolam air terjun, kolam koi, kolam minimalis, relief 3d, seni ornamen dll, kami mengutamakan kualitas jasa desain dan pembuatan taman bojonegoro karena hasil dari pembuatan taman kami benar-benar selalu kami perhatikan maka anda jangan ragu untuk menggunakan kami kunjungi https://www.greenlandscapeasri.com/2020/07/tukang-taman-bojonegoro-jasa-....

Pages