# Electron: CLI Serial Monitor in Workbench (Windows 10)

**URL:** <https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444>\
**Category:** Getting Started\
**Tags:** electron\
**Created:** [October 1, 2019, 12:23am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444 "2019-10-01T00:23:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkkelso](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@dkkelso](https://community.particle.io/u/dkkelso)\
**Post date:** [October 1, 2019, 12:23am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/1 "2019-10-01T00:23:48Z")

</div>

Good evening,

I’m working on a project with the electron, but cannot seem to get any traction.

I’m using Workbench on Windows 10. I’ve flashed the LED blink tutorial and watched the light blink. Now I’m moving on to integrating other things, but I cannot seem to get Serial output to work using Workbench.

I’m connected through the USB that I use to flash. Windows device manager shows COM4 in use in ports. When I jump into the CLI inside VSCode: particle serial monitor states serial monitor opened successfully… then nothing.

The only thing the code does is Serial.begin(9600) in setup() then in loop() Serial.println(“Test”); delay(5000).

That’s it. But there isn’t anything coming across serial. Firewalls all disabled. Windows Defender disabled. I’ve tried cycling through the modes. Blinking blue. Nothing. Anything else: nothing.

Any ideas where I’m going wrong here? Is the usb that allows local flashing input only?

---

<div class="post-metadata">

**Author:** ![picsil](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/picsil/32/21737_2.png) [@picsil](https://community.particle.io/u/picsil)\
**Post date:** [October 1, 2019, 12:32am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/2 "2019-10-01T00:32:06Z")

</div>

particle serial monitor does not automatically connect / disconnect, so you’re probably just missing the message. Also, it takes a few seconds from the time setup() runs and you enable serial until you can see messages on the console.

I’d suggest two things. First use nmon (search the forum here for it), and second add a delay of 3-5 seconds to setup().

---

<div class="post-metadata">

**Author:** ![picsil](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/picsil/32/21737_2.png) [@picsil](https://community.particle.io/u/picsil)\
**Post date:** [October 1, 2019, 12:33am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/3 "2019-10-01T00:33:37Z")

</div>

Post your full code here and we can help more.

---

<div class="post-metadata">

**Author:** ![dkkelso](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@dkkelso](https://community.particle.io/u/dkkelso)\
**Post date:** [October 1, 2019, 12:59am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/4 "2019-10-01T00:59:03Z")

</div>

void setup()  
{  
Serial.begin(9600);  
}

void loop()  
{  
Serial.println(“test”);  
delay (5000);  
}

---

<div class="post-metadata">

**Author:** ![dkkelso](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@dkkelso](https://community.particle.io/u/dkkelso)\
**Post date:** [October 1, 2019, 1:01am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/5 "2019-10-01T01:01:55Z")

</div>

I believe I have found the problem, which will probably kill this project.

I’ve been working with the antennae off. So blinking green light.

And it won’t do anything like that.

But I connected the antennae to get “breathing cyan” (or whatever color light bluish green is), and I get serial output.

Is this normal behavior? Because a board that works with a cellular connection is great. A board that only works in the presence of a cellular connection is useless, for us.

---

<div class="post-metadata">

**Author:** ![picsil](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/picsil/32/21737_2.png) [@picsil](https://community.particle.io/u/picsil)\
**Post date:** [October 1, 2019, 1:06am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/6 "2019-10-01T01:06:15Z")

</div>

> [@dkkelso](#):
>
> I’ve been working with the antennae off.

Do you mean with the antenna disconnected? If so, this can permanently damage the Boron. You should never attempt connection (which is automatic by default) without an antenna connected. If you want to run without a cellular connection look into SYSTEM\_MODE(MANUAL); on this forum.

---

<div class="post-metadata">

**Author:** ![picsil](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/picsil/32/21737_2.png) [@picsil](https://community.particle.io/u/picsil)\
**Post date:** [October 1, 2019, 1:10am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/7 "2019-10-01T01:10:18Z")

</div>

> [@dkkelso](#):
>
> But I connected the antennae to get “breathing cyan” (or whatever color light bluish green is), and I get serial output.

This is because you are operating in SYSTEM\_MODE(AUTOMATIC); which is the default. It will block your code until Cellular connection is established (hence blinking green). Without an antenna installed it likely will never establish a connection, and the signals will reflect back down the RF line, damaging your device over time. Either connect an antenna, or use SYSTEM\_MODE(MANUAL); and only attempt cellular connection when an antenna is attached.

---

<div class="post-metadata">

**Author:** ![dkkelso](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@dkkelso](https://community.particle.io/u/dkkelso)\
**Post date:** [October 1, 2019, 1:14am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/8 "2019-10-01T01:14:40Z")

</div>

Electron. Not Boron.

Why would the default mode be a damaging mode when shipped with a disconnected antennae?

---

<div class="post-metadata">

**Author:** ![picsil](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/picsil/32/21737_2.png) [@picsil](https://community.particle.io/u/picsil)\
**Post date:** [October 1, 2019, 1:34am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/9 "2019-10-01T01:34:47Z")

</div>

Electron or Boron is the same in this regard. Particle ships products meant to be easy to use, and part of that is making the default mode 1) use an internal SIM, 2) connect to the cloud automatically, and 3) provide an easy to use cloud service. All of the documentation warns not to run without an antenna attached. This is not an issue specific to Particle. Any RF system transmitting without an antenna attached will get reflections and can possibly be damaged.

Particle ships a small antenna with their devices. Just connect it. It’s small.

---

<div class="post-metadata">

**Author:** ![dkkelso](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@dkkelso](https://community.particle.io/u/dkkelso)\
**Post date:** [October 1, 2019, 1:42am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/10 "2019-10-01T01:42:51Z")

</div>

It definitely didn’t jump out at me, can you show me where in the documentation?

Admittedly, how easy is “easy to use” if one has to read 1,000 pages of technical documentation?

Would it be possible for me to submit a code suggestion, more of a “smart default mode,” where the damaging action is performed at most a maximum number of times, before it stops doing that, and enters non-blocking, non-damaging mode until reset?

That would seem like a simple, win-win and minor code change.

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [October 2, 2019, 7:45am UTC](https://community.particle.io/t/electron-cli-serial-monitor-in-workbench-windows-10/52444/11 "2019-10-02T07:45:55Z")

</div>

> [@picsil](#):
>
> particle serial monitor does not automatically connect / disconnect

Correct, but `particle serial monitor --follow` does 😉
