I'm working with the NXP RT1170 controller, using the MCUXpresso IDE. My goal is to send and receive messages from an MQTT cloud using AT commands.
Initially, I used USB drivers for Quectel and directly sent AT commands through USB using Tera Term. By connecting the USB cable directly from my PC to the Quectel's USB port, I successfully sent AT commands to the Quectel module. This setup worked fine, and I could send and receive messages from the MQTT cloud without any issues.
Now, I'm trying to achieve the same through my RT1170 controller, which has a USB interface on my custom board . My aim is to send AT commands via this interface. I'm using "host_cdc_bm_cm7_host_cdc_bm_cm7" example,
However, when I attempt to connect the USB device (which is the EC200U module) through my program, it detects the VID and PID as PID=0xA4A7 and VID=0x525. The enumeration process is successful, and the device attaches with an interface count of only two - one for the device class and another for the communication class. The device seems to attach successfully, and I can send the 'AT' command through USB. The program indicates that the sending transfer is successful, but I'm not sure if the commands are actually reaching the EC200U module. Furthermore, when I try to receive data from the EC200U module, the reception fails.