Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send text to Serial Port #926

Closed
formulahendry opened this issue Mar 31, 2017 · 11 comments
Closed

Send text to Serial Port #926

formulahendry opened this issue Mar 31, 2017 · 11 comments
Labels
Milestone

Comments

@formulahendry
Copy link

formulahendry commented Mar 31, 2017

Temporary solution


Arduino IDE and Deviot could send text to Serial Port. It seems like platformio-core cli does not support that. I plan to add this function into the PlatformIO VSCode extension. Not sure whether this function will be added in platformio-core cli in the near future, otherwise I may want to use other library to implement that. 😄

@formulahendry formulahendry changed the title Send text to Serial Port [Feature Request] Send text to Serial Port Mar 31, 2017
@ivankravets
Copy link
Member

Please sorry, what do you mean? Have you seen pio device monitor?

@formulahendry
Copy link
Author

Oh, really sorry. I have tried pio device monitor before but did not find it support to send text when it is running. Thanks for pointing out!

@cybergogo
Copy link

Hi, i'm looking for the same basic option that Arduino IDE offers. Have tried to find that in the pio device monitor section but nothing seems to look like what we need, which is to pass commands to our devices (arduino or ESPs):

`$ platformio device monitor

--- Available ports:
--- /dev/cu.Bluetooth-Incoming-Port n/a
--- /dev/cu.Bluetooth-Modem n/a
--- /dev/cu.SLAB_USBtoUART CP2102 USB to UART Bridge Controller
--- /dev/cu.obd2ecu-SPPDev n/a
Enter port name:/dev/cu.SLAB_USBtoUART
--- Miniterm on /dev/cu.SLAB_USBtoUART: 9600,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
Hello PlatformIO!

--- Ctrl+] Exit program
--- Ctrl+T Menu escape key, followed by:
--- Menu keys:
--- Ctrl+T Send the menu character itself to remote
--- Ctrl+] Send the exit character itself to remote
--- Ctrl+I Show info
--- Ctrl+U Upload file (prompt will be shown)
--- Toggles:
--- Ctrl+R RTS Ctrl+E local echo
--- Ctrl+D DTR Ctrl+B BREAK
--- Ctrl+L line feed Ctrl+A Cycle repr mode

--- Port settings (Ctrl+T followed by the following):
--- p change port
--- 7 8 set data bits
--- n e o s m change parity (None, Even, Odd, Space, Mark)
--- 1 2 3 set stop bits (1, 2, 1.5)
--- b change baud rate
--- x X disable/enable software flow control
--- r R disable/enable hardware flow control
--- exit ---`

Maybe i'm missing something, help would be greatly appreciated.

@ivankravets
Copy link
Member

@cybergogo please note that @pyserial currently does not support sending bulk of data. See my issue/feature request pyserial/pyserial#388

We plan to add "Serial Monitor" and other instruemnts to PIO Home soon. A temporary solution is to use free tool Coolterm http://freeware.the-meiers.org/

@cybergogo
Copy link

@cybergogo please note that @pyserial currently does not support sending bulk of data. See my issue/feature request pyserial/pyserial#388

We plan to add "Serial Monitor" and other instruemnts to PIO Home soon. A temporary solution is to use free tool Coolterm http://freeware.the-meiers.org/

Thanks for the reply. I With hope it gets integrated asap, it would help us a loooooot :-)

@glrs
Copy link

glrs commented Jun 1, 2019

@cybergogo I come a bit late to that, but I just faced this issue. Eventually, I was able to send data to my arduino through the pio serial monitor. I did so, by pressing ctrl+t (opening the menu), followed by another ctrl+t. Then I just typed what I wanted to send and hit enter. It worked. However, I could not see the command I was typing. This is still a bad design and error prone.

@ivankravets how is things with this issue?

@ivankravets
Copy link
Member

Depends on pyserial/pyserial#388

@ivankravets ivankravets reopened this Jun 1, 2019
@ivankravets ivankravets changed the title [Feature Request] Send text to Serial Port Send text to Serial Port Jun 1, 2019
@ivankravets ivankravets added this to the 4.3.0 milestone Mar 17, 2020
@ivankravets
Copy link
Member

Please upgrade to the latest version via pio upgrade --dev and re-test with send_on_enter filter. See docs https://docs.platformio.org/en/latest/core/userguide/device/cmd_monitor.html

Does it work?

@brianfaires
Copy link

Working for me. Would love to see the text as it's typed, but send_on_enter working in VScode pio plugin.

@ivankravets
Copy link
Member

Does it work if you use --echo flag in a combination with filters?

@brianfaires
Copy link

Yes, echo flag works! This is my first week with PIO, I can't believe how long I was using the Arduino IDE... Thanks for the quick responses and contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants