serial-communication

USB Communication between android and PC

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-07 14:37:42
问题 Background :I have tried finding help on stackoverflow, android developers, and various other resources on web. This is my last hope. I am new to communication and starting with implementation of USB. Following are my questions: 1) When I connect my phone to windows PC, which one is host? Suppose I want to create an application that can send data, am I making my phone host? 2) For the case (Windows PC and Android phone), the other one would be a peripheral or a device? are they same? 3) From

USB Communication between android and PC

人走茶凉 提交于 2021-02-07 14:32:19
问题 Background :I have tried finding help on stackoverflow, android developers, and various other resources on web. This is my last hope. I am new to communication and starting with implementation of USB. Following are my questions: 1) When I connect my phone to windows PC, which one is host? Suppose I want to create an application that can send data, am I making my phone host? 2) For the case (Windows PC and Android phone), the other one would be a peripheral or a device? are they same? 3) From

serial monitoring method to test communication via com ports without a serial communication device

╄→гoц情女王★ 提交于 2021-01-29 07:46:42
问题 I have a Verilog code simulated and synthesized on ISE design toolkit. I've got an FPGA spartan 6 device which is to be used for the implementation. But there is a problem with the device (probably a power issue) which makes the device unavailable in any of the COM ports when I connected it to my PC. So I want to check whether my Matlab code which I made for serial communication through the device does the desired job. So I need a method to test serial communication via any of the COM ports

Serial monitor showing unexpected input from Arduino Mega

↘锁芯ラ 提交于 2020-12-12 04:40:06
问题 I'm using an Arduino Mega to control a CS1237 ADC. I'm sending a signal to the clock pin and after each clock pulse, waiting 1ms and then reading the response, according to the datasheet I found (via https://github.com/SiBangkotan/CS1237-ADC-cpp-library). This seems to be working in some capacity, because when I do Serial.println() for each bit received, and for the resulting dataword, I get a 24 bit dataword that matches the 24 separate bits I got. However, when I take out the extra

Serial port communication initialization

血红的双手。 提交于 2020-12-08 13:37:46
问题 At the time we are trying to create an interface for serial communication, to be able to communicate with a microprocessor. Actually - everything works fine. Almost! To be able to communicate with our controller, we need to sync up with it. To do this, we write a string: "?0{SY}13!" , and the controller should then reply with "!0{SY}F5?" to accept the request for sync. To do this, we use a writeData function (that works - we know that by using echo ), and after that we use a readData to read

Serial port communication initialization

試著忘記壹切 提交于 2020-12-08 13:37:23
问题 At the time we are trying to create an interface for serial communication, to be able to communicate with a microprocessor. Actually - everything works fine. Almost! To be able to communicate with our controller, we need to sync up with it. To do this, we write a string: "?0{SY}13!" , and the controller should then reply with "!0{SY}F5?" to accept the request for sync. To do this, we use a writeData function (that works - we know that by using echo ), and after that we use a readData to read

Serial port communication initialization

这一生的挚爱 提交于 2020-12-08 13:36:55
问题 At the time we are trying to create an interface for serial communication, to be able to communicate with a microprocessor. Actually - everything works fine. Almost! To be able to communicate with our controller, we need to sync up with it. To do this, we write a string: "?0{SY}13!" , and the controller should then reply with "!0{SY}F5?" to accept the request for sync. To do this, we use a writeData function (that works - we know that by using echo ), and after that we use a readData to read

Accessing the SerialPort class using .Net Core 3.0

喜欢而已 提交于 2020-12-05 06:30:54
问题 I'm starting a new .NET Core 3.0 project in which I need to access the System.IO.Ports.SerialPort class. The documentation I'm reading on the class shows that it is applicable to .NET Core 3 ( see the bottom of https://docs.microsoft.com/en-us/dotnet/api/system.io.ports.serialport?view=netcore-3.0 ). However when I add a using statement to my class it isn't able to resolve System.IO.Ports. Is there some additional step that needs to be done to reference the SerialPort class for a .NET Core 3

Accessing the SerialPort class using .Net Core 3.0

拥有回忆 提交于 2020-12-05 06:29:16
问题 I'm starting a new .NET Core 3.0 project in which I need to access the System.IO.Ports.SerialPort class. The documentation I'm reading on the class shows that it is applicable to .NET Core 3 ( see the bottom of https://docs.microsoft.com/en-us/dotnet/api/system.io.ports.serialport?view=netcore-3.0 ). However when I add a using statement to my class it isn't able to resolve System.IO.Ports. Is there some additional step that needs to be done to reference the SerialPort class for a .NET Core 3

CreateFile() Serial Communication Issue [duplicate]

爱⌒轻易说出口 提交于 2020-12-03 07:41:49
问题 This question already has an answer here : How to open COMXX files(serial port) (1 answer) Closed 5 years ago . I am trying to do some serial communication through my usb port (named COM15), and I am getting an error. This is the code where the error is occurring: HANDLE myPortHandle = CreateFile("COM15", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); if (myPortHandle == INVALID_HANDLE_VALUE) { DWORD lastError = GetLastError(); cout<<"ERROR HERE! = "<<lastError<<endl; } Every