This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

System advice

Other Parts Discussed in Thread: MSP430FR5728

Hi,

I am looking at building a system using a MSP430FR5728 and a telit modem with an RS232 interface. I believe that I should be able to use any of the UARTs via a level shifter for this purpose. However I have not programmed at such a low level before and am wondering what libraries are supplied and how long realistically it will take to get the modem up and running. I am familiar with these modems but using pppd or network manager on linux to talk to them. I have not dealt with them in a non OS environment. All advice appreciated,

Many thanks

a

 

  • There's not much code needed for using the UARTs. You'll need to set up the clock system for a known and stable frequency, configure teh uart baudrate and then simply write a byte to teh T Xbuffer if it is flagged empty, or read a byte from teh RX buffer if a flag tells you that one arrived. More sophisticated setups use interrupts for sending and receiving, up to a ring buffer that allows you to do the transfers in the background and just use functions like getchar or putchar for initiating the transfers.

    There are so many ways to do this, that a library would either not fit your needs best or be so big and bloated that you won't use it.

    The next step, dealing with the modem, is rather mid-level stuff, and I don't knwo whether anyone has already dealt with this before. I don't know the modem, but if it is using some hayes-like command set, ti shouldn't be too difficult to configure and make it dieal. It's sending simple command string then and receiving a few status bytes.

    The only difficult thing is the nework layer then, if you want to implement it to - it means implementing the pppd funcitonality and then the IP and TCP layers.
    PPP on an MSP is a nice idea. I doubt, however, that the necessary code and buffers will fit into this chips rather limited flash (IIRC 16k). Not impossible, but tight.

  • Thanks for the response, much appreciated, I had been looking at using the http://www.telit.com/en/products/gsm-gprs.php?p_id=12&p_ac=show&p=2 which has an embedded TCP/IP stack as well as an FTP client, so I was hoping that I could package up my data and FTP it onto my www site. I'll have a good check through the modem doc but from what your saying this looks achievable? I already have some experience of using a similar modem and controlling its power supply via GPIO to achieve a low power state, it also makes for a last resort reset as well.

  • Well, I fear that adding an FTP client too will be too much for the 16k flash and the 2k ram. I guess there will be larger FR chips soon. You can, however, start with the development, and port the code later to a bigger chip.

    However, the integrated python interpreter of these telit modems should allow you to put the whole networking stuff into the modem and just feed it the raw data for uploading.

  • Indeed, thats what im thinking, many thanks for your help

**Attention** This is a public forum