Questions tagged [uart]

A Universal Asynchronous Receiver/Transmitter (UART) is used for serial (where each bit of data is transmitted along the same connection) communications over a computer or peripheral device serial port.

UART is usually an individual (or part of an) integrated circuit used for serial communications over a computer or peripheral device serial port. UARTs are now commonly included in microcontrollers.

Simple serial link via UART uses two lines TxD and RxD, other than ground, for transmit and receive data:

Simple UART connection

It is asynchronous communication. Hence data transfer settings (number of bits, baudrate etc.) should be matched between devices wanting to communicate. The electric signaling levels and methods are handled by a driver circuit external to the UART.

More information:

1817 questions
3
votes
1 answer

A readfile buffer passing

This is probably trivial but I cannot get why I dont get the read back in my program. It seem to work fine for all the "complex stuff", and it says it has read 1 (character/byte), but I cannot get hold of it; it seems to be typ-matching problems…
user1698224
3
votes
2 answers

Disabling interrupt in interrupt handler STM32F407

I'm new here and I'm trying to solve my projects problem. I'm trying to send send data over UART from Raspberry Pi B+ to my STM32F407 and process that data in real-time. My problem is: How to actually synchronize main() thred and UART interruption…
P. Kudła
  • 105
  • 2
  • 8
3
votes
1 answer

How to (almost) prevent FT232R (uart) receive data loss?

I need to transfer data from a bare metal microcontroller system to a linux PC with 2 MBaud. The linux PC is currently running a 32 bit Kubuntu 14.04. To archive this, I'd tried to use a FT232R based USB-UART adapter, but I sometimes observed lost…
Joe
  • 3,090
  • 6
  • 37
  • 55
3
votes
0 answers

Transparent UART function for Bluetooth low Energy (BLE)

What is meant by the "Transparent UART" function in connection with BLE? I have found this expression for the Dual BT Chip RF 4677. The Datasheet say's: It supports GAP, SDP, SPP, and GATT profiles. Data is transferred over the Bluetooth link…
user5357137
3
votes
1 answer

Converting Structure to char* pointer in C

I am having a structure: struct K { char a[10]; char b[10]; }; I wish to convert this structure to a char* pointer and print the value on Uart. Uart takes char* pointer as input. My main function looks like: void main() { struct K x= {…
Pradeep Ch
  • 103
  • 3
  • 11
3
votes
1 answer

UART for MSP430FR5969

I'm new for using MSP430FR5969. I want to program my uart1 to connect the bluetooth PAN1026 with my MSP430. at the begining I send a rest mode { 0x01, 0x03,0x0c,0x00 } and the bluetooth must answer me { 0x04,0x0e,0x04,0x04,0x03,0x0c,0x00 } So I…
3
votes
1 answer

Why characters received in serial connection only after pressing enter?

I have a simple PC to board connection using serial (9600, no parity, 8 bits, no hw flow) I opened simple terminal *with teraterm) in PC and enter keys in teraterm and in board, I just do cat /dev/ttyO5 I see the pressed characters in scope, but…
ransh
  • 1,589
  • 4
  • 30
  • 56
3
votes
2 answers

Detect certain connected USB device

I'm working with a USB device in Linux and have written a library to control this device. Without going in to TOO many details, the device uses a standard UART protocol, so all I have to do is open a serial connection with open, configure the…
justynnuff
  • 461
  • 1
  • 6
  • 20
3
votes
2 answers

Best way to switch 3 bidirectional communication channels with an arduino

I'm trying to design a PCB that contains a CO2 sensor with UART interface, an Xbee module using UART and an AtMega328 chip. Because I have only a single UART on the AtMega328 I use SoftwareSerial for the CO2 module. The Xbee module is connected…
DJFliX
  • 170
  • 7
3
votes
1 answer

UART Tx mode with DMA enabled

I have written a simple device driver for UART in transmission mode with DMA enabled along with interrupt. The hardware which I am using is omap 4460 pandaboard with Linux 3.4 loaded in it. Below I am sharing the relevant parts of the code. In the…
ddpd
  • 603
  • 1
  • 10
  • 25
3
votes
0 answers

Simple UART Linux Device Driver

I am writing a simple UART device driver. I have been referring omap-serial.c as the device driver is for omap-4460 processor. Can i write it using a simple > open,close,write,read and ioctl functions? It is because I did not see these functions in…
ddpd
  • 603
  • 1
  • 10
  • 25
3
votes
1 answer

Bluetooth: Uart or SPI?

My question is : what is the best method to drive a bluetooth module(BTM-331 as an example) over UART or SPI? I am asking this in the following context. I have some analog sensors connected to a uP. The uP sends this data over spi to another uP who…
3
votes
3 answers

Newlib printf delay

I am having a strange problem with newlib's printf function, which is re-directed to uart port. The problem can be well explained with an example. printf(" hi "); ... ...//some other simple code. like a++; ... printf(" hello "); Now when I run…
Sumanth
  • 109
  • 1
  • 11
3
votes
1 answer

LPC1769 UART interrupt causing hard fault

I just enabled receive interrupts for UART3, but I get a hard fault as soon as I send it data. Here's how I'm initializing it: LPC_UART_TypeDef *uart; LPC_SC->PCONP |= 1 << 25; LPC_PINCON->PINSEL1 |= 0b1111 << 18; uart = LPC_UART3; uart->FCR =…
Isvara
  • 3,403
  • 1
  • 28
  • 42
3
votes
2 answers

Transfering an int as two bytes on the Arduino

I'm sampling at high frequencies and need to transmit the 10-bit ADC value via UART out of my Arduino. By default, it uses a byte per character. So if doing an analogRead would yield the value of "612", it would send via UART "6" as one byte, "1" as…
Daniel
  • 678
  • 1
  • 5
  • 20