Questions tagged [serial]

In serial communication data is transmitted as a sequence in time. Main advantage: much less wires needed. Main disadvantage: Higher bandwidth for the same throughput.

Filter by
Sorted by
Tagged with
-1
votes
1answer
42 views

Initializing the serial ports for transferring data

I'm trying to use the serial port (COM) to send/receive data over the serial device and also want to use the serial port in polling mode. I use the following code to initialize the serial port. <...
0
votes
1answer
49 views

Long Range (100m) USB(PC) to USB (microController USB module) Communication

I have a system that communicates between PIC32MX250F256D (USB module) and PC via USB (2 meters apart). And I need to increase the range of this communication to 100 meters. Due to typical 5m limit of ...
0
votes
1answer
69 views

Sniffing an RS-485 communication

I am trying to sniff a serial communication between two devices. One of them sends a command (6 bytes + 2 bytes CRC), the other one responds (4 bytes + 2 bytes CRC). My computer monitors the exchange ...
3
votes
2answers
86 views

Why do most Arduino boards need a USB - serial adapter?

I know that some Arduinos have built-in USB functionality which means they can act as USB devices as well as being programmed directly. I also know that most Arduinos use an additional ...
0
votes
2answers
1k views

Serial bi-directional (one-wire half-duplex) digispark device works however answers itselfs

I followed this guide to create an one wire bi-directional (debug) device for a Digispark (Attiny85): https://digistump.com/wiki/digispark/tutorials/debugging (see section Bi-directional Serial ...
0
votes
1answer
345 views

Simpler code than bit banging to get multiple serial hardware working with 8051

I created a circuit like the following: I have sub-circuits that all take serial data as input and do miscellaneous processing with it. Most of the sub-circuits are just light displays. I want to ...
0
votes
1answer
24 views

Viewing the Arduino Serial Monitor while ATMega328P is powered by batteries

Is it possible to view the serial monitor of the ATMega328P (with the Arduino Nano Bootloader) while the arduino is powered by an external power supply? I'm trying to troubleshoot my program, and it ...
0
votes
1answer
167 views

4-bit memory serial to parallel memory register circuit question

I am building a 4-bit serial to parallel memory register and I feel like so far I have gotten things right, but I'm unsure of where to connect the CLR connections. Could someone have a look at my ...
1
vote
1answer
2k views

stm32f0 uart1 rx interrupt

I have stm32f030f4p6 Microcontroller and using iar Compiler , library cmsis , After confige Uart1 the RXNE , FE and CMF bits return 1 whereas not recieve or send was done if I dont set RXNE bit to 0 ...
-1
votes
2answers
54 views

How Serial Port Loopback Test work internally/underneath? [closed]

Actually I've asked my question on StackOverflow, but I really think it belongs here. Here it is anyway: When doing a Serial Loopback Test on a USB Port (assume COM1) using Hyperterminal or any other ...
-1
votes
1answer
50 views

Would this circuit interface be a safe interface between full duplex and half-duplex UARTs of different logic levels? [duplicate]

I'm primarily a SW developer who dabbles with electronics. I needs to interface my SoC's HW full-duplex UART with an SDI-12 compliant sensor, without burning either of them and hopefully without ...
2
votes
0answers
32 views

Does this digital line-encoding/keying scheme have a name?

"1" is a single low pulse of length T, followed by a single high pulse of length T "0" is a single low pulse of length 2T, followed by a single high pulse of length 2T This is similar to BFSK, ...
0
votes
1answer
43 views

Reading status of switches over LAN

I need to design a circuit that reads the status of 6 switches and makes the status available over LAN for a professional project. The design should be implemented in hardware (no microprocessor.) My ...
1
vote
1answer
628 views

Making own Chromebook debug cable (SuzyQable)

I wanted to debug my chromebook so I was looking for SuzyQable which enables to activate debug features on chromebook. Unfortunately this cable is hard to get in my location so after noticing this ...
0
votes
2answers
270 views

LIN to RS485 and back to LIN

I am currently communicating between two microcontrollers using a single pin and the LIN protocol over a short distance of 0.2m. Now I would like to extend the distance up to 5m by differentially ...
-1
votes
1answer
50 views

Communicating a microcontroller or IC with a computer without using serial communication [closed]

I want to be able to communicate any sort of microcontroller/ic with my computer without using the serial port. Such as consumer products like the logitech g502 mouse. It doesn't have any serial ports ...
1
vote
2answers
81 views

How to do Bidirectional multiplex switch signal over two wires?

I'm trying to remote control the doors in my stand-alone garage over two wires. There's three operate switches in the house, and three SPDT position switches on the doors. I think I want to end up ...
2
votes
2answers
59 views

Can I improve serial data signal using reversed output on a twisted pair?

This is a serial data communication with one or several transmitters and one or several receivers. From the transmitter I have one serial data output (D+) and a second, reversed serial data output (D-...
2
votes
2answers
242 views

Are there any advantages to an inverted serial prototocol?

Why would someone implement an inverted serial protocol? Are there advantages in doing so? One obvious disadvantage seems to be that an extra device needs to be included in a circuit if the ...
1
vote
1answer
85 views

What kind of serial encoding is this?

I'm involved in some reverse engineering of a device I need to interface with. With what little I know, and being able to capture a single data transmission, I think I've narrowed down the encoding ...
9
votes
1answer
6k views

MIDI IN : many circuits

I'm building a MIDI IN to serial port RX cicruit (for Raspberry Pi, or Arduino, or anything else...) using a 6N138 optoisolator. But I find many different circuits, I don't know why there are so ...
-1
votes
3answers
117 views

How to read serial data from usb device using arduino? [closed]

I am pretty new to programming and electronics. I have a orion star 211 pH meter with usb and rs232 outputs. I want to record the pH change with time using an arduino but the first problem is reading ...
0
votes
2answers
55 views

Can an ATMega328p be bricked such that it cannot be programmed but still works?

I cannot update the program on my ATMega328p-AU (with the old version of the Arduino nano bootloader burnt to it). Oddly enough I can still talk to the program running on the uC (query and read out ...
0
votes
1answer
115 views

PIC18F26J50: how to use printf in C18

I'm trying to use the printf family of functions in C18 for a PIC18F26J50. In my system, the output should go through the UART and show up in RealTerm. Here is my ...
0
votes
1answer
39 views

Unable to drive MCU pin high

I'm trying to drive a MCU input with a RS-485 driver chip, specifically the SP3485 on the SparkFun RS-485 transceiver breakout. When I connect the MCU pin directly to the 3.3V power rail, the pin ...
0
votes
0answers
34 views

How do I set up serial communication between two Holybro Telemetry Radios?

I have two USB Holybro 915 MHz Telemetry Radios. These are usually used with Mavlink for communication between drones and ground stations, but I would like to use them to send small amounts of data - ...
0
votes
1answer
80 views

How to convert from 2 data line full duplex to 1 data line half duplex?

I'm trying to design a circuit that can convert from a two wire full duplex (think SPI), with one transmit line and one receive line, to a one wire half duplex (think i2c), with bidirectional ...
1
vote
1answer
43 views

Reading UART from device that has floating ground

I am powering an ESP32 over a less-than-ideal power line, that has 4 Ohms of resistance. In order for 5V to arrive at the device, I apply 7V to the power line, such that when 250mA of current are ...
0
votes
4answers
83 views

What is the exact difference between synchronous and asynchronous serial transmission?

I'm having a hard time understanding the exact distinction between synchronous and asynchronous serial because different sources have confusing description. For example, some source say a separate ...
2
votes
1answer
95 views

Steal 5v from USB Module in 3v Mode

My project includes an ESP8266 (runs at 3.3v) and a USB C-Serial breakout. The USB module can optionally run at either 5v or 3v, and there's are solderable jumper pads to make that switch. Here's ...
0
votes
0answers
22 views

How to store data in Keithley2400 buffer during measurements and retrieve through rs232?

I am trying to do an IV measurement (source current, sense voltage) store into the Keithley2400 buffer and retrieve the measured data (voltage and current) into my python program variable 'data'. <...
0
votes
2answers
745 views

In serial communication, is the RX pin pulled high by default?

I would like to establish one way uart serial communication between an Arduino 5V and an ESP32 3.3V module. The communication would be ESP32 TX pin ---> Arduino RX pin I wouldn't use the second serial ...
0
votes
1answer
61 views

Which ASCII character could interrupt communication?

Which ASCII character could interrupt or terminate or otherwise disturb communication on the reciever part. Not including acknowledgment, handshakes, identification or other programmed protocols. ...
2
votes
2answers
3k views

Trying to read serial communication from smart meter with Arduino

First my compliments for this wonderful site. I'm hoping to find an answer to my problem. I've checked to find answers, however was not able to find it. My background is somewhat technical, only with ...
0
votes
2answers
359 views

Unexpectedly drawing power over serial tx/rx? What to do?

I have this TTL-to-USB-serial device (supposedly from WINGONEER, who doesn't seem to have any documentation on how to use it): https://www.amazon.com/gp/product/B06XY18XLL I'm using it to hook up ...
1
vote
3answers
155 views

Virtual port for serial communication

This s a newbie question. When receiving serial data from a microcontroller by a PC program I need the microcontroller to be nearby and it needs to be connected to a USB port and send the data via ...
0
votes
1answer
69 views

Connecting Three 12V DC Water pumps to the same power source

I am new to all this and I am sure this is a very basic question, but wanted to ask before I fry some pumps up. I have a relay, which is controlled by my raspberry pi, switching the pump on and off. ...
1
vote
0answers
35 views

How to access Realtek SMI interface without a dedicated processor?

I'm working with Realtek's RTL8367 switch IC. Background: I am having trouble with throughput being unbalanced. If I run iperf between two ports in one direction I get a different throughput if I ...
0
votes
0answers
130 views

RS-485 Master -> Slave Arduino *not sending or receiving* **SOLVED - BROKEN HARDWARE**

I am using an arduino mega as a slave and arduino uno as a master in hopes to eventually make an ROV. But as of right now im having issues with getting the serial communication between the arduinos to ...
1
vote
2answers
74 views

how to choose level shifters for serial / UART

I have so far been using some MAX3323EEPE chips for shifting between 3.3V and 5V logics on serial / UART communications. This is quite some stuff to solder on a PCB, and the chip is a bit expansive. I ...
1
vote
2answers
166 views

Use half-duplex or full-duplex RS-485?

I have a master microcontroller that can control 4 slave microcontrollers. Each slave microcontroller is connected to 3 sensors. The master microcontroller asks to retrieve the value of a specific ...
0
votes
0answers
73 views

How to identify the serial console port pads on device

I want to identify the serial console port pads on the board. The place for male header connector(yellow arrow) have 6 pads. Usually it’s not difficult to identify Rx, Tx, GND pins with a multimeter, ...
0
votes
1answer
66 views

Multiple UART devices on Raspberry Pi

I want to connect multiple devices which are communicating through UART to Rapsberry Pi3b+. Given that Raspberry has only 1 set of Tx-Rx pins, I am unable to do so. I am designing a PCB so I have the ...
0
votes
1answer
30 views

NRF Uart With sim868

I have a problem in the UART communication between NRF52832 and SIM868 module. The problem is the data sent by NRF doesn't be interpreted by SIM868. To see that i did tow tests: First one, I added ...
1
vote
3answers
125 views

How does the UART communication detect the true idle in this case?

When explaining UART communication it is told that the receiver will start sampling the data one start bit after the first falling edge. The falling edge occurs when TX goes from idle state to zero as ...
0
votes
1answer
167 views

STM32: Interrupt latency for serial protocol implementation

I am implementing a synchronous serial interface (SDLC) using an STM32. My original implementation for the RX side is running on a ARM7 which uses the FIQ to set an interrupt on the clock line, in ...
0
votes
1answer
41 views

How to get a serial reading from an Ultrasonic Rangefinder on a Raspberry 3 B+?

I'm trying to set up a Maxbotix Ultrasonic Rangefinder (LV-EZ0) with a Raspberry Pi 3 B+. I've tried all the tips I could find: raspi-config disable serial interfacing for shell, but keep it on ...
23
votes
3answers
4k views

UART signal is “rounded”

I am trying to debug a UART driver for the STM32F405. It does not work above a certain baud rate (about 50 kBd). I connected it to a logic analyzer with analog capability, and I saw that the signal is ...
0
votes
1answer
89 views

WAVGAT Pro Mini, no serial output

I ordered some Pro Minis however get some WAVGAT clone thingies. The first problem was it is running too slow (4x slower) when compiling with default "Pro or Pro Mini" board profile. Serial however ...
0
votes
1answer
89 views

Problems with UART in ATmega

I've been programming my atmega 328p to automate my coffe machine. The timer is set using the bluetooth module HC-06, or by a set of configuration buttons that I'm gonna develop yet (the full code is ...

1
2
3 4 5
23