serial-port

Moneris Semi Integrated Solution Not Working

主宰稳场 提交于 2020-01-15 15:27:04
问题 I am quite frustrated at this point, and I thought I would post this as a last resort. I am in the process of developing a C# .NET 4.5 app that will communicate via USB to a Moneris payment device. Its a Moneris ICT-250 and Moneris refers to this as a "semi-integrated" application. I have been trying to send over a test payment to get the device to work using the Serial Port class but nothing seems to be working. For starters, Moneris does provide a simulator to get up and running. I can

serial port configuration using boost ASIO

。_饼干妹妹 提交于 2020-01-15 14:24:21
问题 I am configuring serial port using boost asio. but why below code is giving error? If I comment set_option it works fine. below code gives error serial_config.cpp:13: error: expected unqualified-id before numeric constant In file included from /home/chirag/boost_install/include/boost/asio/serial_port_service.hpp:25, from /home/chirag/boost_install/include/boost/asio/basic_serial_port.hpp:30, from /home/chirag/boost_install/include/boost/asio.hpp:25, from serial_config.cpp:1: /home/chirag

serial port configuration using boost ASIO

一个人想着一个人 提交于 2020-01-15 14:23:34
问题 I am configuring serial port using boost asio. but why below code is giving error? If I comment set_option it works fine. below code gives error serial_config.cpp:13: error: expected unqualified-id before numeric constant In file included from /home/chirag/boost_install/include/boost/asio/serial_port_service.hpp:25, from /home/chirag/boost_install/include/boost/asio/basic_serial_port.hpp:30, from /home/chirag/boost_install/include/boost/asio.hpp:25, from serial_config.cpp:1: /home/chirag

Print output of AT command

流过昼夜 提交于 2020-01-15 11:45:27
问题 I am using python to communicate with GSM modem connected in my ttyUSB port. import serial from curses import ascii ser=serial.Serial('/dev/ttyUSB0', 9600, timeout=3) command = ser.write('AT+CMGR=3\r\n') print command Now to communicate with my modem, I pass AT commands from python, I need to print the output of the complete command string. How do I do it? 回答1: If you mean how to get output from the modem, use read , readline or readlines methods of ser . See tutorial. 回答2: First, an AT

Arduino + Proccesing code error “disabling_serialevent()”

本小妞迷上赌 提交于 2020-01-15 08:20:24
问题 I have some problems in my code, i can run it because i always get this error message Error, disabling serialEvent() for COM3 null import processing.serial.*; Serial port; String c = " "; String d = " "; String data = " "; PFont font; int index = 0; void setup() { size(2024, 1024); port = new Serial(this, "COM3", 9600); port.bufferUntil('.'); font = loadFont("run.vlw"); textFont(font, 60); } void draw() { background(150, 50, 200); fill(46, 20, 2); text(c, 70, 175); fill(46, 20, 2); text(d, 70

Slow WPF Textbox

两盒软妹~` 提交于 2020-01-14 19:25:08
问题 I am developing a simple serial data viewer that will be used to watch the data being transmitted to one of a computer's serial ports. I wrote a test application using C# and WPF; it simply places the most recently read line into a textblock. However, it skips every-other line. My theory is that new data is being put into the textblock before WPF renders the window. However, I've tried every combination of thread priorities I can think of and, at best, the application shows every other line;

Weighbridge data output format [closed]

蓝咒 提交于 2020-01-14 06:47:10
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I'm developing a weighbridge software for my client using vb.net 2008. As I don't have a weighbridge device to test, I don't know the output data format which is sent to COM port by the weighbridge device. So please tell me how can I resolve the problem and get the weight value

How come GetDefaultCommConfig() Doesn't Work with Bluetooth SPP Devices?

橙三吉。 提交于 2020-01-14 06:31:57
问题 I maintain an application that, amongst other things, provides a list to the user of available serial port devices on the host computer. This application makes use of the GetDefaultCommConfig() function in order to verify that devices in its list of serial port names are valid. I have received notice that my application does not work with Bluetooth serial ports. While debugging this issue today, I found that the GetDefaultCommConfig() function does not return a successful value when called

How come GetDefaultCommConfig() Doesn't Work with Bluetooth SPP Devices?

本小妞迷上赌 提交于 2020-01-14 06:31:10
问题 I maintain an application that, amongst other things, provides a list to the user of available serial port devices on the host computer. This application makes use of the GetDefaultCommConfig() function in order to verify that devices in its list of serial port names are valid. I have received notice that my application does not work with Bluetooth serial ports. While debugging this issue today, I found that the GetDefaultCommConfig() function does not return a successful value when called

How do you send an extended-ascii AT-command (CCh) from Android bluetooth to a serial device?

↘锁芯ラ 提交于 2020-01-14 05:57:07
问题 This one really has me banging my head. I'm sending alphanumeric data from an Android app, through the BluetoothChatService, to a serial bluetooth adaptor connected to the serial input of a radio transceiver. Everything works fine except when I try to configure the radio on-the-fly with its AT-commands. The AT+++ (enter command mode) is received OK, but the problem comes with the extended-ascii characters in the next two commands: Changing the radio destination address (which is what I'm