communication

Java RXTXcomm lib to connect to /dev/ttyACM0

瘦欲@ 提交于 2020-02-03 09:27:45
问题 I'm using RXXTX java lib to connect to serial ports. I'm using this lib with no problems connecting to /dev/ttyUSB0 (1,2,3,etc). But when I want to connect to /dev/ttyACM0 the port its not found. CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier("/dev/ttyACM0"); the Exception is thrown: gnu.io.NoSuchPortException at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:218) I already listed all the ports but no success. 回答1: Processing and USB ports /dev

.NET stop waiting for a database event which does not arrive

让人想犯罪 __ 提交于 2020-01-25 10:54:06
问题 I'm working on a really big project developed by two teams, one (mainly) for the database, and one (where I am) mainly for the GUI and helper classes as an interface between GUI and DB. Obviously, there are errors in communication, and - of course - we can't assume 100Mbit bandwidth & super-fast server computer. Language is C# .NET, target "framework" is WPF and Silverlight. When a user clicks a button, the GUI asks the DB (through helper classes) for information. Let's say... pizza types.

<Corrected> IO-Link master sending only two M-sequence octet

纵饮孤独 提交于 2020-01-25 06:50:10
问题 I use TIOL111 IO-Link device transceiver. I have written the initial part of a communication protocol with M-sequence type 0, but Master several times send sonly two request (with address 0x02 and 0x03). All responses are correct. When I connect Balluff I/O Module (BNI IOL-...) master sends messages with addresses in turn 0x02 0x03 0x04 0x05 0x06 ..., but when I connect my device up to same port, it is sending only the first two. I use TIOL111 IO-Link device transceiver. Does somebody know

PermissionSet - Request Failed error

[亡魂溺海] 提交于 2020-01-22 01:52:52
问题 I have few projects communicating using ChannelSink, ServerSink and ClientSink. I've upgraded the projects from .NET 2.0 to .NET 4.0. Before the upgrade everything worked fine. Now, when I try to communicate , - for a specific message - my OnReceiveMessage isn't called and throwing the following exception: System.Security.SecurityException: Request failed Server stack trace: at System.Array.InternalCreate(Void* elementType, Int32 rank, Int32* pLengths, Int32* pLowerBounds) at System.Array

IO-Link master sending only two M-sequence octet [closed]

核能气质少年 提交于 2020-01-16 11:59:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed yesterday . I have write initial part of comunnication protocol with M-sequence type 0, but Master several times send only two request (with address 0x02 and 0x03). All responses are correct. When I connect Balluff I/O Module (BNI IOL-...) master sends messages with addresses in turn 0x02 0x03 0x04 0x05 0x06 ..., but when I

Angular 7 service communication between components

别来无恙 提交于 2020-01-16 09:07:49
问题 I'm creating wizard with steps. I have two components which has no parent-child relationship: Footer component with submit button which is redirecting to the next step. Form component which has validation on some inputs. I created also a service for communication between those 2 components above. What I want to achieve is to invoke method on footer submit button which will check if form from component number 2 is valid. If yes, we can go to next step, if not, I need to invoke validation

Perl - Communicating with a fork/exec'ed process

房东的猫 提交于 2020-01-16 07:08:21
问题 I'm designing a server that will initialize by fork / exec 'ing four "managers" (themselves server processes) and will then accept connections from clients, fork / exec 'ing "slaves" to communicate with the clients. During their lifetimes, the slaves will establish connections with the managers and send them work requests. My question is about starting up the managers. Each one may take some time to initialize (minutes) and I don't want the master server to proceed to accept clients until

Missing flow control data (0x13) from reading device data stream

青春壹個敷衍的年華 提交于 2020-01-14 03:40:08
问题 I have written a Linux app to read & write binary data to a remote device over a USB port that is emulating a serial port. When I read data from the device, I have a USB sniffer that shows a binary data stream like this (0x01, 0x0A......0x13), but when my program reads the bytes, the 0x13 is not in the byte stream - this is the XOFF char, but I am not using XON/XOFF flow control (I think). Tried both open read and write, as well as fopen fread and fwrite in binary mode, same result. Any ideas

How to execute methods from a running service from broadcast?

≯℡__Kan透↙ 提交于 2020-01-14 01:40:14
问题 on a broadcast I want to call a non static method from Service XYZ. The Service is start by the receiver on boot. Has someone a idea to run methods from this running service? One solution in this forum is to make the method static and use a singleton pattern to execute. But is there another method? Maybe with a binder? //EDIT for example i have the following clases: public class MyService extends Service{ ..... public void method(){ //TODO } } public class MyBroadcastReceiver extends

How do two android applications talk to each other?

做~自己de王妃 提交于 2020-01-12 05:56:44
问题 What is the general communication architecture for two android applications? Case 1: I have two android applications, a) One is a server that waits for client request, process the request( read data from some sqlite db) and return the results to the client. This server application runs on its own independent android phone. b) The second is the client that sends the request to the server application in (a) and it too runs on its own independent android phone. Question is, do the two