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.

MSP430F2618: MSP430F2618

Part Number: MSP430F2618

Greetings.

We have a data logger based on the MSP430Fx2xx processor using a GSM modem for remote access.

Our GSM code is old 2.5G with GPRS. We are upgrading to 4G. The 4G modem uses the AT command set.

We connect to remote servers using TCP/IP, UDP, and ftp protocols.

All our code is in C.

It would be useful to me if someone could point me to 4G sample code using the AT commands.

MSP430 code would be ideal but code for other processors would still be useful.

My concern is good structure and modularity for long term maintenance.

If I have left out any important details, please ask.

J.Casey.

EE proficient in C.

  • Hi J Casey,

    If I'm understanding correctly the MSP is just used as a data logger, so it should just be storing relevant data from the other connected device (or interfacing with external storage). In this case I would look at the types of information you're logging and what the equivalent would be for the new command set. If you're storing commands or data itself and how to extract that. Looking at what communication interface is being used in the current system is also important. Is it I2C? SPI? UART? If the new modem and the old one use different communication interfaces then you will have to change the communication interface in your code to match.

    Sadly, we do not have specific example code for your application requirements but I would look at what your system is really utilizing the device for and what changes would need to be made to fit your new modem.

    Regards,

    Luke

  • Hello Luke and thank you for your reply.

    The logger accumulates measurements from attached RS232 instruments in its on-board SD card. The MSP has an internal program to do the collection and storage.

    periodically the accumulated data is streamed out to a remote server via the GSM modem.

    The modem is connected to the processor UART (cmos voltage level), and another part of the MSP program makes the connection, opens sockets, operates the FTP handshaking etc.

    Our logger and its MSP program also have a user interface - an RS232 connected VT100 terminal through which we enter IP settings, subnet mask, gateway IP, port numbers etc.

    This system has been in use for a long time and needs to be upgraded to 4G.

    What I really would like is a communications stack with the modem RS232 and AT commands at the lowest level, and the upper level would receive our measurement data as ASCII strings. In between, the MSP program would implement the IP protocols according to the stored IP address, port numbers etc.

    This has already been programmed for 2.5G, and I can program the upgrade without difficulty. My purpose in looking for sample code is to structure it according to best programming practice. My previous code - while it works - is not well structured and is therefore hard to maintain.

    Regards.

    JC

  • I am trying to upload a graphic, but insert-image/video fails with the message "This file is not allowed to be inserted'' Maybe someone can help me add a graphic to illustrate my design? The insert tool button throws a text box dialog, but not a file navigator dialog. 

  • It is important to note that the TCP/IP stack is already implemented in my modem, the Telit ME910 in this case. My MSP program will only be making requests to it. But I feel that my software to generate those requests whould be structured in layers like the TCP/IP stack itself. 

    I hope this is of some help.

  • Hi Joesph,

    It might be the file type that causes the issue. If you click Insert -> image/video/file -> upload then it should open a file navigator.

    For the implementation it sounds like you would need to parse the commands then write and send the proper ones back using UART. The device itself doesn't utilize any IP/TCP Stack so it sounds like you have a custom solution in the previous iteration. I would set a flow-chart or something similar with how the current iteration works and use that to port to the 4G variant.

    Regards,

    Luke

  • Hi Luke.

    Here is my graphic mentioned earlier. It represents the logger structure.

    I think the attached document from the modem manufacturer shows me what to do. The flow chart starting page 10 is what I need to code. If you have no further suggestions I shall mark this solved.

    Thank you for your replies.Telit_2G_3G_4G_Registration_Process_Application_Note_r3.pdf

**Attention** This is a public forum