miniterm | browser terminal emulator designed to be | Portfolio library
kandi X-RAY | miniterm Summary
kandi X-RAY | miniterm Summary
Miniterm is an in-browser terminal emulator designed to be used as a portfolio for lazy developers.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of miniterm
miniterm Key Features
miniterm Examples and Code Snippets
Community Discussions
Trending Discussions on miniterm
QUESTION
I am trying to get a simple Serial Port connection between dotnet 5 and a Marlin based printer board which is running some variant of a micro controller (LPC1768FBD100 https://www.arrow.com/en/products/lpc1768fbd100551/nxp-semiconductors).
I can open a connection to the board using other tools, send a "M503\n" command and receive a response, the tools I've used successfully are
- Pronterface (Windows)
- Arduino Serial Monitor (Windows)
- miniterm (Linux)
- putty (Windows)
So I know the board to be functioning correct in both Linux and Windows, but when attempting from .net, I am yet to succeed in getting any response back from the board. I have uploaded a simple tool in .net 5 that connects to a serial port and allows you to TX / RX strings,
https://github.com/devoctomy/SerialPortTester
I have tested this code in Windows and Linux, same port settings, no response back. I have also tested this exact code against a simple echo program running on an Arduino Uno board and it all works as expected, but for the life of me I can't get anything back from the other board.
I'm wondering if there's something about serial comms that these other apps are doing that I just don't know about. I'm using the same port settings which are shown in device manager across the board when testing in Windows, and also the same settings when testing in Linux.
In Linux the board comes up as ttyACM0, which is how my Arduino Uno is also mounted.
Any suggestions? I'm sure this isn't a "Marlin" issue, as only one of the other tools I've tested with is specific for Marlin and the Arduino serial monitor is about as basic as you can get. There's something I'm not doing in the .net code I think...
I've also tried someone elses old .net code and it also doesn't get a response back from this board, but does from my Arduino Uno running the echo program.
https://www.codeproject.com/Articles/23656/Termie-A-Simple-RS232-Terminal
Nick.
Edit:
I'm currently looking to see if it's just .net and the underlying mechanisms that is effected here and have found this page,
https://www.sparxeng.com/blog/software/must-use-net-system-io-ports-serialport
I've modified my tester code to access to base stream for sending / receiving data just in-case, but this has not fixed the issue.
...ANSWER
Answered 2021-Feb-21 at 18:20Okay I got it, I knew I was missing something,
QUESTION
I am trying to use miniterm to execute Lua commands on my NodeMCU. I don't think there's any problem with my chip or cable because I can code the chip using Arduino IDE. While using miniterm, I believe we are supposed to get a interactive command prompt, but I never get that. Some articles have suggested pressing the ENTER button or resetting the NodeMCU, but that hasn't worked as well. I believe I have successfully installed the USB to UART CP2102 driver (from Silicons Lab). Any suggestions as to what else I can do?
This is my 'miniterm.py' command output. The unknown symbols continue whenever I press the ENTER key...
...ANSWER
Answered 2020-Sep-08 at 09:34You need to configure Miniterm to use 115'200bps instead of 9600bps.
See https://nodemcu.readthedocs.io/en/latest/upload/
The NodeMCU serial interface uses 115'200bps at boot time. To change the speed after booting, issue
uart.setup(0,9600,8,0,1,1)
. If the device panics and resets at any time, errors will be written to the serial interface at 115'200 bps.
The gibberish you see are the SDK bootloader messages which come at 74'880bps.
QUESTION
That's the code I've wrote so far is:
...ANSWER
Answered 2020-Jul-12 at 16:27What you want is to use Popen
as it allows you to access the stdout while the command is running. subprocess.run
executes a command and waits for it to finish.
Try this
QUESTION
I tried to remove a package with pip
in a Jupyter notebook but it never finishes and I have to eventually restart the kernel without it uninstalling. I tried:
ANSWER
Answered 2020-Feb-07 at 00:21Not sure about Jupyter notebook but Jupyter lab has a terminal environment that you can access from the Jupyter environment. I made the switch some months back and it was worth it.
QUESTION
My program is supposed to emulate external device that is usually connected via COM port (/dev/ttyUSB0). The program opens a pty and waits for commands. Here is the code:
...ANSWER
Answered 2019-Feb-03 at 12:10Any ideas how to fix that?
I don't know which kind of Unix you have. I just tried to reproduce your problem under Linux; but pasting lines work fine on my computer so I cannot reproduce the problem.
If your Unix variant has a system call tracer (Linux: strace
, SunOS/Solars: truss
, FreeBSD: strace
, MacOS: dtruss
(?)), I'd trace the system calls:
QUESTION
Was using the below command from terminal to read the serial output -
...ANSWER
Answered 2018-Apr-08 at 23:30serial.tools.miniterm
is a rather special tool not simply using stdout
for output. It's a terminal emulation with special features (using termios
) . Putting such an application in background you won't see any output.
You have two options:
- Handle timeout via python as you've done
- Don't use
miniterm
. Just printing what`s received via serial is easy.
QUESTION
I have a GSM modem 'D-Link DWM-157'. I want to use this modem to send SMS and USSD codes. To send sms I use smstools3 and everything is OK. The goal of sending USSD code is to retrieve the balance in order to recharge the SIM card. To send USSD codes I want to use smstools3 as well. The problem is that when I send a USSD code from port /dev/ttyUSB0, I have to receive it's answer from /dev/ttyUSB1 port!! I asked on smstools forum about this behavior and they told me some modems used two ports for sending and receiving USSD codes. I don't think there is such an option in smstools3 to send a USSD code via a specific port and receive it's answer from a different port (I asked about this on their forum, but they have not replied yet). So I want to write a simple program to continuously listen to a port (i.e. /dev/ttyUSB1), receive and parse the answers of USSD codes. The USSD codes are sent by smstools3 but the answers are received by my program. To do this, I wrote the following code:
...ANSWER
Answered 2017-Oct-02 at 18:05I could not find a suitable way or more precisely a sample pure python code to resolve this issue, so I fixed my problem in another way. I use the following bash command (code) to receive the results of sending USSD codes:
QUESTION
This might be a silly question, however, I don't know what is happening.
I have a simple script who fetches google time and I need to set it to the time
global variable. So, inside the receive
event, I print the time fetched and it works properly.
The problem is the variable time
always as empty when called outside the event. Here is the code:
ANSWER
Answered 2017-May-20 at 01:52It looks like the scope is fine. Check out the order the output prints.
conn:connect
and con:on
take functions because they are asynchronous. getTime()
simply returns before they are called.
QUESTION
I have a
- Variscite VAR-SOM-AM33 SoM and dev board (VAR-AM33CustomBoard)
and I'm trying to get UART3 to work with a
- Sparkfun FTDI Basic Breakout - 3.3V TTL UART to USB adapter (http://sfe.io/p9873)
Summary of the puzzling part: I am also working on a custom SoM carrier board based on this Variscite dev board and I know that UART0 works perfectly when I cut the traces and hook up my Sparkfun UART/USB. So there is clearly a difference in how UART0 is configured verses UART3.
SoftwareI have used this exact FTDI USB adapter on many projects and it always works great. Here's what I've tried to enable UART3 on the dev board:
TI Web-Based PinMux Configuration for AM335x (http://dev.ti.com/pinmux)- UART3 with RXD and TXD only
- UART pins
- C15 is RXD, No Pull (unlike UART0 by the way)
- C18 is TXD, Pull Down (just like UART0 by the way)
After wandering around the enormity of the default kernel serial 8250 stack, I eventually stumbled upon the omap-serial.c
driver. I wanted to see if it would magically fix my problem or in the least, be less code to sift thru (being a single .c file).
So I configured the kernel (make menuconfig) to disable 8250 and enable CONFIG_SERIAL_OMAP found in Device Drivers->Char Drivers->Serial Drivers.
Yocto Kernel Device Tree ConfigurationThe TI Pinmux generates this code which I add to my Yocto environment's kernel device tree:
...ANSWER
Answered 2017-Mar-13 at 16:27UART3 is being held high because it is also connected to a RS-485 chip's (LTC2852) pin 1. Luckily the board designers knew what they were doing and attached a 0 Ohm resistor (R83) on that line, so removing it frees up UART3's RX line.
As for UART1 on the custom board, the problem is that UART1 is connected on the SoM itself, to a WiFi/Bluetooth chip. This isn't obvious because Variscite doesn't release SoM schematics. They do, however, have a somewhat vague note in the carrier board schematics "Enable UART1 when on-SOM Bluetooth is not mounted".
On the carrier board, UART1 is connected to a SN74AVC4T245 bus transceiver which is turned on/off via a GPIO. The problem is that UART1 actually functions perfectly when interfaced with the bus transceiver. So testing on the dev carrier board, UART1 works perfectly and nobody is the wiser. Its only when you remove the bus transceiver that UART1 doesn't work.
In the end, my only conclusion is that the bus transceiver is tolerant to handling a logic level of 2.5V - 3.3V whereas ordinary UART devices are not.
QUESTION
I have a ESP8266MOD ESP-12-E hooked up to a USB-to-UART module. When I try to communicate with the module I get some intelligible output then an error message and the communication is closed.
For ai-thinker-0.9.5.2-115200 and espressif-nonos-2.0.0-SDK (this is not the actual name of the file):
...ANSWER
Answered 2017-Feb-18 at 20:47The problem was with the power supply for the ESP8266 unit. Instead of supplying 3.6V from the USB-to-UART module, i used another voltage source providing 3.3V, possibly higher current also. Note that the module must be supplied with 3.0V - 3.6V and it may use a few hundred milliamps, so the old supply was a little bit over 3.6V and it might have not been able to provide the required current.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install miniterm
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page