Author Topic: BGS2-E Modem  (Read 3904 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr.D2Topic starter

  • Newbie
  • Posts: 7
BGS2-E Modem
« on: November 24, 2013, 12:44:19 am »
Hello Hello eevblog!

I'm doing a Telemetry Balon control system and i need some help with the communication.
We are supposed to implement a Cinterion BGS2-E Modem and extablish the communication via SMS.

So, looking through the datasheet, and the AT commands file (wich is 500pages long   :-//)  i still have some questions...

datasheett pdg - http://www.ultran.ru/sites/default/files/bgs2_hd_v01301.pdf
AT Commands pdf - http://ultran.ru/sites/default/files/bgs2-e_atc_v01301.pdf

So, the add-on board was not developed by me, and so, the add-on board only have (taking aside the BATT+, GND, ON, EMERG_RST, V180, V285, GPIO5(led indicator) and some other GPIO's that i didnt really found a meaning for them, and the I2C ports...

The only way i can communicate, "I think", witch the module is using I2C, but i have those two problems.



1st one-
Its not listed nowhere where we can send mensages (i think they say the TX and RX by UART? but i'm not shure), and if they say that, i don't have those pins available for me, as u can see in the picture.
Also, if I2C works i can“t search for his address in the datasheet, when i use CTR+F and it dosent seem to be in the I2C serial comunication part (or i missed it)

SO, how do i comunicate with it.

2ndtopic...
Other thing i can't find is some kind of self test command...

Please respond to this, i don't need you to really anwser(what would be the fun in that) but if u do, its no problem. I just need some pointers...

I tried to search for some C examples in the internet but mehhh....

This device is for use with a MSP430 (but that dosen't really matter for the questions i asked...

Best regards, any questions plz ask away
« Last Edit: November 24, 2013, 01:03:13 am by Mr.D2 »
 

Offline Maxlor

  • Frequent Contributor
  • **
  • Posts: 565
  • Country: ch
Re: BGS2-E Modem
« Reply #1 on: November 24, 2013, 01:06:53 am »
Those modules are controlled over a serial port. If you can't find them on the schematic, look again, maybe they named it slightly differently. In that partial image you inserted, I can see RX/TX on the left, that looks like a start.

The GPIOs/I2C that the module has, you can control that with AT commands once you have the serial interface up and running (but you'll probably just ignore them.) They won't do anything before that.
 

Offline Mr.D2Topic starter

  • Newbie
  • Posts: 7
Re: BGS2-E Modem
« Reply #2 on: November 24, 2013, 01:13:57 am »
[...], I can see RX/TX on the left, that looks like a start.

Those RX/TX are from the GPS add-on module. But i will check and confirm all the GPIO's that i have available tomorow and will post. It's very late already
 

Offline Mr.D2Topic starter

  • Newbie
  • Posts: 7
Re: BGS2-E Modem
« Reply #3 on: November 24, 2013, 07:49:11 pm »
Hey, so i just checked and yeah,

The module has the 2 serial ports, the ASC0 and the ASC1 but none of them are connected to the pins from the add-on board.
Probably i will need to make a new one.

I will seize the opportunity to ask:
When i get the ASC0 communication up and running, to send the commands (for exemple the send sms command AT+CMGS) i just send via serial port (in GSM alphabet ATCMGS? or AT+CMGS?)

Thanks and best regards
 

Offline Maxlor

  • Frequent Contributor
  • **
  • Posts: 565
  • Country: ch
Re: BGS2-E Modem
« Reply #4 on: November 24, 2013, 11:14:12 pm »
Huh, weird board you have there, if it doesn't have the means to actually control the modem. But anyway, yes, the command is AT+CMGS including the +.

Getting the AT commands right can be a bit tricky, because the syntax can change slightly depending on which network you use (fields may not be used), and some commands have delays that might trip your software up. Plus there are the URCs (Unsolicited Result Codes) which make parsing the modem's output even more difficult (I disabled those and polled it instead in my last project.) So I suggest that before you write code, just hook up a computer with a serial terminal to the modem and type in all the commands you need manually, to get a feel for it.

Good luck!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf