baud-rate

I/O exception error when using serialport.open()

China☆狼群 提交于 2019-12-17 15:46:25
问题 FINAL UPDATE It was our firmware the whole time. Embarrassing to a degree, but I'm happy we can move forward and I can put learning Java off for another day. My answer is below. UPDATE So I have more or less given up on this. I think it is a bug that goes down to the API, but I have neither the time, resources nor skill-set to get to the bottom of it. I think there exists some hardware to whom Windows just gives the middle finger. I have downloaded Eclipse, switched to Java and will try to

How to set a custom baud rate on Linux?

折月煮酒 提交于 2019-12-17 10:26:56
问题 I want to communicate over my serial port on Linux to a device with a non-standard-baud rate that is not defined in termios.h . I tried the "baud rate aliasing"-method from this post, but when I execute my C-program (I’ve named it "testprogram"), Linux says "testprogram sets custom speed on ttyS0. This is deprecated." I did some search on Google, and it seems that there is another (newer?) method to change the baud rate to a non-standard-value: On http://sourceware.org/ml/libc-help/2009-06

How to set a custom baud rate on Linux?

回眸只為那壹抹淺笑 提交于 2019-12-17 10:26:41
问题 I want to communicate over my serial port on Linux to a device with a non-standard-baud rate that is not defined in termios.h . I tried the "baud rate aliasing"-method from this post, but when I execute my C-program (I’ve named it "testprogram"), Linux says "testprogram sets custom speed on ttyS0. This is deprecated." I did some search on Google, and it seems that there is another (newer?) method to change the baud rate to a non-standard-value: On http://sourceware.org/ml/libc-help/2009-06

How to set baud rate to 307200 on Linux?

对着背影说爱祢 提交于 2019-12-17 06:10:09
问题 Basically I'm using the following code to set the baud rate of a serial port: struct termios options; tcgetattr(fd, &options); cfsetispeed(&options, B115200); cfsetospeed(&options, B115200); tcsetattr(fd, TCSANOW, &options); This works very well. But know I have to communicate with a device that uses a baud rate of 307200. How can I set that? cfsetispeed(&options, B307200); doesn't work, there is no B307200 defined. I tried it using a MOXA Uport 1150 (that's actually a USB-to-serial converter

Custom Baud Rate, redux

本小妞迷上赌 提交于 2019-12-13 16:32:31
问题 I am having exactly the problem detailed at Custom baud rate -- SetCommState() fails with baud=921600 but succeeds with baud=115200 -- albeit on Windows 7 64-bit and with a couple of other odd circumstances, as follows: 1) The port I'm talking to, is a USB-to-UART adapter from Silicon Labs, with their driver but (as I understand it; don't quote me) re-signed to identify itself as from my company (we redistribute it with our hardware product which requires it). The COM port appears in Device

Baud rate limits in software and serial communication with an external device

☆樱花仙子☆ 提交于 2019-12-12 16:42:58
问题 I am using a USB port port operating as a virtual COM port to achieve serial communication with an external device using MATLAB or Visual Basic 6. I am facing baud rate limitations depending on the software I use to communicate with the device. MATLAB (2018a) has no problems because it can set high baud rates. Visual Basic 6 on the other hand faces limitations on the baud rates that can be set in the software. In terms of solutions, I have looked into this to set a higher baud rate in Visual

C# .Net Serial DataReceived Event response too slow for high-rate data

烂漫一生 提交于 2019-12-12 10:44:26
问题 I have set up a SerialDataReceivedEventHandler, with a forms based program in VS2008 express. My serial port is set up as follows: 115200, 8N1 Dtr and Rts enabled ReceivedBytesThreshold = 1 I have a device I am interfacing with over a BlueTooth, USB to Serial. Hyper terminal receives the data just fine at any data rate. The data is sent regularly in 22 byte long packets. This device has an adjustable rate at which data is sent. At low data rates, 10-20Hz, the code below works great, no

Auto baud rate detect for STM32L0

江枫思渺然 提交于 2019-12-10 14:55:51
问题 I can't get auto-baud rate detection to work on the STM32L0 . I'm using the hardware abstraction layer (HAL). My initilization code is: /* USART1 init function */ void MX_USART1_UART_Init(void) { huart1.Instance = USART1; huart1.Init.BaudRate = 300; huart1.Init.WordLength = UART_WORDLENGTH_9B; huart1.Init.StopBits = UART_STOPBITS_1; huart1.Init.Parity = UART_PARITY_EVEN; huart1.Init.Mode = UART_MODE_TX_RX; huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; huart1.Init.OverSampling = UART

Why In Manchester encoding, the bit rate is half of the baud rate?

China☆狼群 提交于 2019-12-10 09:28:08
问题 I think baud rate is the rate of the symbols, and if each symbol contains n bit, then the bit rate should be n x baud rate In Ethernet( Manchester encoding) ,if bit rate is half of the baud rate, then a symbol contains 1/2 bit ? As far as I know, bit rate should at least not less than symbol rate (baud rate). About the relationship of baud rate and bit rate, my understanding have no problems, yet when it comes to the Manchester code, it's totally counterintuitive, could anyone explain about

How to set the baud rate for Macs in a terminal

无人久伴 提交于 2019-12-06 20:07:52
问题 Is it possible to set the baud rate for Macs in a terminal? If yes, how to set the baud rate in terminal through the terminal? I am trying to talk to the Mac using an Arduino (open source microcontroller), an XBee (wireless communicator) to type in the terminal through the serial monitor. The only problem I am having is the baud rate of the serial monitor and terminal are different. I can easily change the baud rate for the serial monitor in the Arduino, but I do not know what the baud rate