[Coco] Winsock Control Events Rs232 Pack
ptaylor2446
ptaylor2446 at gmail.com
Wed Jul 5 17:49:56 EDT 2017
I have been reading all the messages posted in this mail list and I have also been programming since 1984 and I have wrote some applications that include using Winsocket and the Winsock events.
Here is the question you added support in drivewire to support the Rs232 pack and it included check box that would disable/Enable Rs232 Pack support and a text box for max baud rate.
The same memory address for carrier detect, data received and data send would be used. The slow of incomming data can be controled using a delay or a timer event to limit the speed of the data being sent from DriveWire to the Rs232 pack but the speed for the outgoing would be be delayed.
01. You can use a Integer value would keep track of the total amount of connections and would be limited to one connetion only.
02. When the Winsocket event Dataarrival is triggered the data and the amount of bytes received is also avaiable.
03. All memory address in the Rs232 pack Data Received, Datasend and carrier detect is used.
04. Memory address for carrier detected is changed to reflect the carrier status in the Rs232 pack.
05. The flow of incomming data is controled by using either using delay or a timer event so that amount of data being sent to the Rs232 Pack does not exceed 9600 baud.
06. The outbound data leaving the Rs232 pack no delays are needed.
07. If to much data is received or try to overflow the Rs232 pack then you close the winsocket connection and make the proper changes in the Rs232 pack memory address carrier detect was lost.
Data waiting to be sent to the Rs232 pack can tempory be held in a memory until the information has been sent to the Rs232 pack.
Sent from my Galaxy TabĀ® S2
-------- Original message --------
WINSOCK Events Triggered during the events:
(Winsock Control)
Close Event
Connect Event
Connect Event (Winsock Control)
ConnectionRequest Event
DataArrival Event
Error Event (Winsock Control)
SendComplete Event
SendProgress Event
More information about the Coco
mailing list