# Monitor one Serial1 not reading needed data

**URL:** <https://community.particle.io/t/monitor-one-serial1-not-reading-needed-data/68556>\
**Category:** Hardware\
**Tags:** monitor-one\
**Created:** [October 31, 2024, 10:30pm UTC](https://community.particle.io/t/monitor-one-serial1-not-reading-needed-data/68556 "2024-10-31T22:30:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpalmer](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mpalmer](https://community.particle.io/u/mpalmer)\
**Post date:** [October 31, 2024, 10:30pm UTC](https://community.particle.io/t/monitor-one-serial1-not-reading-needed-data/68556/1 "2024-10-31T22:30:18Z")

</div>

I am using a Monitor 1 to communicate with a RS232 to TTL adapter. Tx is tied to Tx and Rx to Rx. I connected to a CP2102n at the same baud rate, and same UART configuration with no software or hardware flow control. The CP2102 was able to read the data from the RS232 device with no issues, and the Monitor 1 was able to read data from the CP2102 with no issues, but the Monitor 1 will not read from the RS232 device. Here is a snippet of code:

```auto
SerialBuffer<32768> serBuf(Serial1);

void setup() {
  Serial1.begin(115200, SERIAL_8N1);
  serBuf.setup();

  TrackerConfiguration config;
    config.enableIoCanPower(true);
    config.enableIoCanPowerSleep(true);
  Log.info("Serial1 and CAN_PWR enabled.");

  Edge::instance().init(config);
}

void loop() {
  char c = serBuf.read();
  char nodata = -1;
  if (c != nodata) {
    std::string msg = std::string("Serial Data: ") + std::string(c);
    Log.info(&msg[0]);
  }
}

```

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [October 31, 2024, 11:20pm UTC](https://community.particle.io/t/monitor-one-serial1-not-reading-needed-data/68556/2 "2024-10-31T23:20:05Z")

</div>

I'm confused about how you connected that, could you post a diagram?

What did you use for the RS232 to TTL adapter when you removed the CP2012 and how did you power it?

---

<div class="post-metadata">

**Author:** ![mpalmer](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mpalmer](https://community.particle.io/u/mpalmer)\
**Post date:** [October 31, 2024, 11:26pm UTC](https://community.particle.io/t/monitor-one-serial1-not-reading-needed-data/68556/3 "2024-10-31T23:26:23Z")

</div>

This is the RS232 Adapter I am using:

> **[Amazon.com: HiLetgo 5pcs RS232 to TTL Converter Module COM Serial Port Board...](https://www.amazon.com/HiLetgo-MAX3232-Converter-Module-Serial/dp/B00LPK0Z9A)**
>
> This product is widely used in radio modification, mobile phone brush machine, XBOX360 brush machine, GPS, car testing, DVD brush machine, hard disk repair, set-top box upgrades. Microcontroller programmed. The main parameters: Control chip:...

I have the Tx of the M1 to Tx of adapter, Rx to Rx, Gnd to Gnd, and Vcc of adapter to 3.3V (I don't have a diagram at the moment)

The CP2102 USB to UART adapter was just used to confirm the 232 device and adapter were communicating over UART as expected. and then to ensure that Serial1 was working on M1.

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [November 1, 2024, 7:51am UTC](https://community.particle.io/t/monitor-one-serial1-not-reading-needed-data/68556/4 "2024-11-01T07:51:56Z")

</div>

If I'm understanding this correctly, it works when you use the CP2012 to communicate with the target device. And also when you use the CP2012 to communicate with the Particle device.

The Particle device is the DTE, and CP2012 is usually the DCE, so they can communicate. But since both the Particle device and your target device are DTE, you need a RS232 null modem adapter between them for those two to communicate because neither device is a DCE. Basically the DB9 null modem just crosses pins 2 and 3 if you are not using flow control.

---

<div class="post-metadata">

**Author:** ![mpalmer](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mpalmer](https://community.particle.io/u/mpalmer)\
**Post date:** [November 1, 2024, 2:30pm UTC](https://community.particle.io/t/monitor-one-serial1-not-reading-needed-data/68556/5 "2024-11-01T14:30:41Z")

</div>

Thank you for your help! I was able to get it figured out. I had a null modem cable but the issue was with the RS232 device not initializing communication so it had to be one on the M1 side.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [May 3, 2025, 2:31am UTC](https://community.particle.io/t/monitor-one-serial1-not-reading-needed-data/68556/6 "2025-05-03T02:31:09Z")

</div>

Closed on May 3, 2025, 2:31am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
