serial-port

Sending DATA to FPGA

守給你的承諾、 提交于 2021-01-28 10:28:32
问题 I am working on a project which requires data to be sent FROM PC TO FPGA,which processes the data and sends it BACK TO PC. The board I am using is Atlys™ Spartan-6 FPGA Development Board. The data is to be sent as 1 byte , because 1 byte is processed at each rising edge of the clock. Could you please suggest me ways of sending data to FPGA ? Thanks 回答1: Pick some method of communication that you have access to IP (intellectual property) cores for. For example, if you can readily access a UDP

How to get a Linux panic output to a USB serial console when system has also a display adapter

房东的猫 提交于 2021-01-28 08:29:39
问题 I am having troubles with a Linux kernel panic which I need to investigate further. When it happens, the kernel panic output always goes to the display adapter only and is shown on the monitor. I need to have the kernel panic output to a serial USB console, not only on the display adapter. In the situation where the panic happens there is no monitor available. I have a serial USB console working, can log in from there and I also see some kernel messages there sometimes. However when I provoke

How to read serial with interrupt serial?

蓝咒 提交于 2021-01-28 03:20:35
问题 I'm trying to read NMEA message in Linux. But I can't get a completely message: 54.441,V,,,,,0.00,0.00,010720,,,N*42 $GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32 $GPGGA,020954.441,,,,,0,0,,,M,,M,,*43 $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPGSV,1,1,00*79 $GLGSV,1,1,00*65 $GPGLL,,,,,020954.441,V,N*71 $GP The first line and last line is the one message but it have been splited. I thing, It's cause by sleep 1 second. And It's not right at all. I think I should use interrupt serial. My

C# .NET serial port connects, doesn't read or write

对着背影说爱祢 提交于 2021-01-27 20:32:11
问题 I'm using C# and .NET 4.5, with the Visual Studio 2012 compiler/IDE to open and interact with a serial port. My code is designed to connect to the QSB quadrature-to-USB converter from US Digital. Here is the code that I'm using to open the port and connect. this.Port = new SerialPort(); this.Port.BaudRate = 230400; this.Port.PortName = "COM9"; this.Port.Parity = Parity.None; this.Port.Handshake = Handshake.None; this.Port.DataBits = 8; this.Port.StopBits = StopBits.One; this.Port.Open();

Custom parser for node-serialport?

我怕爱的太早我们不能终老 提交于 2021-01-27 20:05:36
问题 With incomming data like STX(0x02)..Data..ETX(0x03) I can process data by byte sequence parser : var SerialPort = require('serialport'); var port = new SerialPort('/dev/tty-usbserial1', { parser: SerialPort.parsers.byteDelimiter([3]) }); port.on('data', function (data) { console.log('Data: ' + data); }); But my actual incomming data is STX(0x02)..Data..ETX(0x03)..XX(plus 2 characters to validate data) How can I get appropriate data? Thanks! 回答1: Since version 2 or 3 of node-serialport,

select() does not seem to work on TTY

眉间皱痕 提交于 2021-01-27 17:04:20
问题 I'm currently writing a program that needs to communicate with an AT interface over an UART interface (the operating system is Linux). But I'm having trouble using select() on the file descriptor. For some reason select does not consider the file descriptor to be ready for reading, but To narrow down the problem I have used the following program. int main() { char buffer[BSIZE]; fd_set rfds; int ret; struct termios cnf; struct timeval tv; fd = open("/dev/ttyO1", O_RDWR); // Have also tried to

How do I add QSerialPort Module into CMake?

自闭症网瘾萝莉.ら 提交于 2021-01-27 11:57:59
问题 I want to add QSerialPort Module into CMake. From my understanding, I need to add QT += serialport into *.pro. I only want to use CMake. So I try simple CMake file to compile but it has error. The QtCore is working as qDebug can display without any issue. The error I am getting is: undefined reference to `QSerialPort::QSerialPort(QObject*)' undefined reference to `QSerialPort::~QSerialPort()' undefined reference to `QSerialPort::~QSerialPort()' This is the simple main.cpp file. #include

Create a virtual serial port connection over TCP

邮差的信 提交于 2021-01-20 15:33:39
问题 I am developing an application that should be able to write to a virtual serial port and receive data through the same port from remote clients over network. The application runs on a linux server. I am new in using serial ports and I have some questions on this topic. Clients The client can establish a TCP connection to a server. When we setup a client, we have to provide the IP address of the server, a tcp port (usually 8080) and a virtual com port. The client then will automatically try to

Create a virtual serial port connection over TCP

梦想与她 提交于 2021-01-20 15:32:28
问题 I am developing an application that should be able to write to a virtual serial port and receive data through the same port from remote clients over network. The application runs on a linux server. I am new in using serial ports and I have some questions on this topic. Clients The client can establish a TCP connection to a server. When we setup a client, we have to provide the IP address of the server, a tcp port (usually 8080) and a virtual com port. The client then will automatically try to

Create a virtual serial port connection over TCP

北城以北 提交于 2021-01-20 15:32:11
问题 I am developing an application that should be able to write to a virtual serial port and receive data through the same port from remote clients over network. The application runs on a linux server. I am new in using serial ports and I have some questions on this topic. Clients The client can establish a TCP connection to a server. When we setup a client, we have to provide the IP address of the server, a tcp port (usually 8080) and a virtual com port. The client then will automatically try to