serial-communication

What is the difference between baud rate and bit rate?

本小妞迷上赌 提交于 2019-11-28 16:57:27
问题 I am really having hard time understanding the difference. Some say they are same, while others say there is a slight difference. What's the difference, exactly? I would like it if you explained with some analogy. 回答1: Bits per second is straightforward. It is exactly what it sounds like. If I have 1000 bits and am sending them at 1000 bps, it will take exactly one second to transmit them. Baud is symbols per second. If these symbols — the indivisible elements of your data encoding — are not

Listening to Serial Com Ports that are In use

半腔热情 提交于 2019-11-28 08:20:00
I'm dealing with some legacy systems that are using RS232 to communicate with peripherals. I'm not very experienced with COM interfacing. I have some code that can open and use COM ports, but it can't open ports that are used by other applications. I need to black box the packets so that we can use the same protocol for updated communications. Is there any way to "middle man" incoming packets to an open COM port and detect what packets are being sent? I'm using .NET, but I'm open to any type of solution. (I found this out there, but I don't think this will work for me.) I've used com0com - it

Identification of packets in a byte stream

故事扮演 提交于 2019-11-26 23:06:43
I'm having a bit of a problem with the communication to an accelerometer sensor. The sensor puts out about 8000 readings/second continuously. The sensor is plugged in to a usb port with an adaper and shows up as com4. My problem is that I can't seem to pick out the sensor reading packets from the byte stream. The packets have the size of five bytes and have the following format: High nibble Low nibble Byte 1 checksum, id for packet start X high Byte 2 X mid X low Byte 3 Y high Y mid Byte 4 Y low Z high Byte 5 Y mid Y low X, y, z is the acceleration. In the documentation for the sensor it

How to send a message from Android to Windows using USB

时光毁灭记忆、已成空白 提交于 2019-11-26 19:47:19
问题 I am a complete noob at Android, only at the level of basic (1 or 2 line) Activities activated by buttons, but I would like to create a really simple app that, when I tap the app icon, it fires and forgets a message to a listening server on my Windows 8 PC. The phone is connected as a simple media device, without Kies, via a USB cable. I can get as far as a message box lying and saying the message was sent. I need to know what kind of comms channel to use, e.g. a COM port or what, and how to

Identification of packets in a byte stream

孤街浪徒 提交于 2019-11-26 08:35:54
问题 I\'m having a bit of a problem with the communication to an accelerometer sensor. The sensor puts out about 8000 readings/second continuously. The sensor is plugged in to a usb port with an adaper and shows up as com4. My problem is that I can\'t seem to pick out the sensor reading packets from the byte stream. The packets have the size of five bytes and have the following format: High nibble Low nibble Byte 1 checksum, id for packet start X high Byte 2 X mid X low Byte 3 Y high Y mid Byte 4