Communication b/w TRM240 and Arduino

I need help from professionals and experts please. I am trying to interface cellular modem TRM240 with microcontroller/ Arduino. Do i need to use the USB to TTL converter for the communication b/w TRM240 and Arduino? Any suggestions please? I need to send the SMS from the Arduino board using TRM240.

Hello,

It’s unlikely that Arduino will work with TRM240, as TRM acts as a USB client, and Arduino would need to act as USB host. Arduino would also need to supply power to TRM.
When connected, Arduino would need to support RNDIS drivers to interface with the modem to create a virtual network interface.
Since you’re only interested in sending SMS, it should also be possible to utilize the virtual AT commands port, but it’s only accessible via the USB interface.
Hope this explains it!

Best regards,

Thank you for the reply.

Actually, i need to transmit the sensor value from remote station using TRM240 . For this i was thinking to use Arduino with TRM240. But as you said that the interfacing is not possible, so may i please get any info that which microcontroller board (or any device) would be suitable for making stand alone application using TRM240 ?

I would suggest using Raspberry Pi or a similar device running Linux, as a lot of the distributions already have the drivers necessary for device operation and it fully supports USB host functionality.

Alternatively, you could check out a device like TRB141 which also has a few programmable GPIO pins and runs on RutOS, which is in turn based on OpenWRT. We provide full root access to users to utilize custom scripts and control the device in various ways.

Best regards,

Thanks for the suggestion . Actually i bought two raspberry pi picos, The second pico is connected to the TRM 240 via usb cable. It is being powered through the first pico as pico only has one USB port. I am trying to run the following code, however, i am unable to send SMS

"
#include <stdio.h>
#include “pico/stdlib.h”
#include “hardware/uart.h”

int main()
{
stdio_init_all();

printf("AT\n");
sleep_ms(3000);

printf("AT+CMGF=1\n");
sleep_ms(3000);

printf("AT+CMGS=\"+9212345678\"\n");
sleep_ms(3000);

printf("Hello\n%c",26);
sleep_ms(3000);

}

and in cmake text file i am using the below code
"
cmake_minimum_required(VERSION 3.31)

include(pico_sdk_import.cmake)
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)

project(pico-projects)

pico_sdk_init()

add_executable(gsm
gsm.c
)

target_link_libraries(gsm pico_stdlib)

pico_enable_stdio_usb(gsm 1)
pico_enable_stdio_uart(gsm 0)

pico_add_extra_outputs(gsm)
"

It might be a very specific question related to particular device i.e. raspberry pi pico but i would be thankful if you can suggest to interface with the pico.

This topic was automatically closed after 15 days. New replies are no longer allowed.