communication

How do you communicate between eclipse declarative services and Views (ContentProviders)

[亡魂溺海] 提交于 2019-12-03 08:29:00
Say you have an eclipse plugin with various views, these views should display data from some OSGi bundle that pushes data to the Views. Rather than have every view communicate with the OSGi bundle, I have an intermediate Facade class that acts as a blackboard for the views and manages communications between the views and the other OSGi bundle--well, that's the theory. The problem comes about because the ui bundle (with the Views and the Facade) communicate with the other bundle (call it the DataStore) using Declarative Services. Since the Data Store receives asynchronous data updates from yet

Dart Isolates As Workers

帅比萌擦擦* 提交于 2019-12-03 07:43:35
Edited to make the question more clear. I am trying to work with Isolates (or Web Workers) in Dart. The only ways I can find to communicate between the main and isolate threads are send and call & then from the main thread. But that's a nice way for the main thread to pass some data to the isolate. What's if I want the isolate to be the one who generates information? Like a game engine that does all the physics in a worker and then sends an updated world information to the main thread? In JavaScript you can send data at any time. Is there an efficient way in Dart? Or do I still have to wait

communication between browser tab

南笙酒味 提交于 2019-12-03 07:34:34
i've an html page (main.html) opening a new tab in the same domain using javascript with window.open("newtab.html") method. In the new tab users do something ending his activity clicking a button. At this point I would like to send a message to the opener window. I tried with postMessage but from new tab I can't have a reference to the opener. From new tab I'd like something like but I've "ko" var w = window.opener; if (w) { w.postMessage("hi", "http://10.150.10.43"); } else { alert("ko"); } What is the best way to send message from the secondary tab/window to the main one (in the same domain)

Binary communications protocol parser design for serial data

匆匆过客 提交于 2019-12-03 07:30:09
I'm revisiting a communications protocol parser design for a stream of bytes (serial data, received 1 byte at a time). The packet structure (can't be changed) is: || Start Delimiter (1 byte) | Message ID (1 byte) | Length (1 byte) | Payload (n bytes) | Checksum (1 byte) || In the past I have implemented such systems in a procedural state-machine approach. As each byte of data arrives, the state machine is driven to see where/if the incoming data fits into a valid packet a byte at a time, and once a whole packet has been assembled, a switch statement based on the Message ID executes the

A way to convert byte stream to packet stream in C89 on an embedded device [closed]

谁说胖子不能爱 提交于 2019-12-03 07:28:17
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I’m working on with an embedded device that is connected to PC using rs232 (rs232 over USB). I’m thinking about developing my own

Calculating modbus RTU 3.5 character time

半城伤御伤魂 提交于 2019-12-03 03:26:26
am new to Modbus and developing an application using Modbus RTU. I would like to know how to find out the RTU message frame separation time. In the Modbus RTU specification, It mentions 3.5 chars time, but there is no more data about how i can decide this intervals. and wat are the steps to calculate the separation time? Take a look at page 13 of the Modbus Serial Line Protocol and Implementation Guide V1.02 At the bottom you will find a remark explaining the inter-character time-out (t1.5) and inter-frame delay (t3.5) values. For baud rates over 19200 values are fixed. For slower baud rates

How does cpu communicate with peripherals?

半腔热情 提交于 2019-12-03 01:58:24
问题 i assume cpu has direct access to motherboard's BIOS and RAM.(correct me if i'm wrong) But how does cpu communicate with other hardware like hdds, expansion cards, peripherals, other BIOSes etc.? I know about OS and its drivers, but they are software- they're in RAM. How does cpu communicate with all this hardware on hardware level? Isn't it limited to only motherboard's BIOS and RAM? 回答1: In older architectures, peripherals were accessed via a separate mechanism to memory access with special

Difference between HTTPS and SSL

◇◆丶佛笑我妖孽 提交于 2019-12-03 00:36:57
问题 What is the difference between HTTPS and SSL? I read about them and found following: HTTPS : HTTPS is a combination of HTTP with SSL/TLS. It means that HTTPS is basically HTTP connection which is delivering the data secured using SSL/TLS. SSL : SSL is a secure protocol that works on the top of HTTP to provide security. That means SSL encrypted data will be routed using protocols like HTTP for communication. I am wondering where is the difference between these two? Or both are identical? 回答1:

Any successful profibus communications from .NET?

前提是你 提交于 2019-12-02 22:59:45
Has anyone successfully talked profibus from a .NET application? If you did, what device/card did you use to accomplish this, what was the application, and did you use any kind of preexisting or available code? We've not used Profibus, but have used DeviceNET (another CAN based protocol), Ethernet/IP and ControlNet which all have similar challenges. We've been doing this since the late 1990's and therefore rely mainly on our own generated code using off-the-shelf hardware. The companies that have shown longevity during that period that I remember are:- AnyBus (HMS, www.anybus.com ) we've

Keil编译:Fatal error: Communication timed out: Requested 20 bytes,received 0 bytes ! session aborted

匿名 (未验证) 提交于 2019-12-02 22:56:40
我的原因是keil下载程序的驱动用错。 硬件平台是STM32F407,而我用的是 。 修改如下Utilities->Settings->把 换成 “”换成 就好了。 文章来源: Keil编译:Fatal error: Communication timed out: Requested 20 bytes,received 0 bytes ! session aborted