uart

UART initialisation: Prevent UART to pull RTS high

你说的曾经没有我的故事 提交于 2019-12-12 12:07:09
问题 I'm writing a RS485 driver for an ARM AT91SAM9260 board on Linux. When I initialise the UART, the RTS signal line gets high (1). I guess this would and should be the standard behaviour in RS232 operation mode. In RS485 mode however this is not wanted. I'm using the standard functions provided by the arm-arch section to initialise the UART. Therefore the significant steps are: at91_register_uart(AT91SAM9260_ID_US2, 3, ATMEL_UART_CTS | ATMEL_UART_RTS); //consisting of: // >> configure/mux the

JavaME RaspBerryPi UART can't receive data from RS485

天大地大妈咪最大 提交于 2019-12-12 10:19:37
问题 I try to connect my raspberry pi (with raspbian weezy) with a strip LED module. To do this, I use the UART connection of RBPi in order to communicate with RS485 strip connection. My trouble : I can (yes I can) send data but I don't received ACK or anything else. However my strip LED module send data frame to the RBPi (I can see it on oscilloscope). EDIT : I think it's due to the following error that appears when the program opened UART connection. NO : The following error is due to an non

UART register is not debugging to terminal

和自甴很熟 提交于 2019-12-12 04:59:04
问题 This is a UART transfer between two atmega328p controllers. I am trying to confirm that the data is being properly passed by printing a variable from the data struct on the receiving controller. My terminal is not displaying any information. I can only confirm that the code is being reached from my LED calls, where I enable portB. I am fairly sure my BAUD rate is correct (51 for 8mhz). Also confident the hardware is hooked up properly. Any recommendations on how to debug further to find the

Module does not receive data through UART, TinyOS Progeamming

偶尔善良 提交于 2019-12-12 04:56:06
问题 Module does not receive data through UART, help with TinyOS Postby Telosb » Tue Jul 15, 2014 6:47 Dear Memebers, i am new to the tinyos programming. I am working with the KMoteB from: http://www.tinyosmall.com/product_p/100-101.htm I use the YETI2 Plugin and the TinyOS compiler. The problem is, that if i send data via printf through the Serial Interface to the computer, i am able to receive it as sended. On the other hand the PC-to-Mote Communication does not work. The RX LED light up, but

Facing Difficulties in Data Transfer over UART with DMA on MSP430

心已入冬 提交于 2019-12-12 03:57:18
问题 I am collecting 2.4KB(600 bytes * 4) of data from sensors over my MSP430 Controller. And I am using dma to transfer that data over UART to my Linux Processor.Transfer Happens at every 100ms Timer. My DMA setting is as below. DMACTL0 = DMA0TSEL__UCA0TXIFG; DMA0SA = &buff; DMA0DA = &UCA0TXBUF; DMA0SZ = 600; // Block size in bytes DMA0CTL = DMADT_4 | DMASBDB| DMASRCINCR_3 | DMAIE| DMALEVEL_L; // Rpt, inc DMA0CTL|= DMAEN; and my ISR for DMA is as below, __interrupt void DMA_VECTOR_ISR(void) {

Linux Serial Port: missing data on input

蹲街弑〆低调 提交于 2019-12-12 02:17:23
问题 #include <fcntl.h> #include <termios.h> #include <unistd.h> #include <errno.h> #include <cerrno> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fstream> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <cstdlib> #include <ctime> using namespace std; typedef struct termios ComSet; int main() { int acm=-1; acm=open("/dev/ttyACM0",O_RDWR | O_NOCTTY); if(acm == -1) { cout<<"Error Opening ttyACM0"<<endl; exit(1); } else {

Serial port (UART) c++ read

纵然是瞬间 提交于 2019-12-12 01:33:23
问题 I have a small problem with read-in function in the c++. I'm trying to read in data available on UART's RxD port. when running this code I'm getting result (read <0) hence it displays me an error msg error in read. what should be done to be able read in and display the data from read. I'm sure that there's data available on RxD port I have checked it with oscilloscope. #include <iostream> #include <termios.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/signal.h>

Why LCP negotiation over PPPoS session doesn't start via LWIP, between STM32F7 and Telit GL865 GSM Modem?

笑着哭i 提交于 2019-12-11 18:34:31
问题 I am using Telit GL865 GSM Modem with STM32F7 nucleo development board. I make them communicate via USART1. Firstly, I configure the modem with AT commands as below; after that, modem starts to send LCP packages and since I cannot handle them, NO CARRIER message occurs at the end. What I am not sure is that am I applying the right AT commands since it is different than the link I am sharing: https://github.com/espressif/esp-idf/blob/master/examples/protocols/pppos_client/main/pppos_client

List UART -> COM converter in Windows Device Portal

我怕爱的太早我们不能终老 提交于 2019-12-11 17:13:48
问题 I have Raspberry Pi 3 plate with connected USB to UART (COM) converter. The power led on the USB stick is ON. I can not find the converter in Windows Device Portal . In both: connected and disconnected states I see just two UART related records in Device Manager: (ID:ACPI\BCM2835\0, Class:System, Manufacturer:Microsoft, StatusCode:25165834) >BCM283x Mini UART Serial Device (ID:ACPI\BCM2836\0, Class:Ports, Manufacturer:Microsoft, StatusCode:25182218) >ARM PL011 UART Device Driver (ID:ACPI

Is there a way to change USB device descriptor on computer side?

依然范特西╮ 提交于 2019-12-11 16:55:55
问题 I am designing a peripheral that draws power from USB port while communicating with a program on Windows. I am planning to use a cheap IC for it (CH340G), however it's configured to open the port in low power mode by default, by setting the MaxPower parameter to 0x30 (96 mA) and it cannot be configured from the IC side. I would save a lot of money if I could change this parameter from computer side. Can this be done, or should I look for another chip? 回答1: No, USB descriptors are read from