CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > MetalWorking Machines > Haas Mills


Haas Mills Discuss Haas machinery here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-20-2008, 09:18 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road
Xmodem thruput?

080220-1009 EST USA

I have posted this question on cnczone and so far no one has provided feedback. So I will try here.

I am current looking at Xmodem communication to and from HAAS using Hyperterminal.

Settings at HAAS 115.2 kbaud, 8 data bits, parity none, 1 stop bit, and obviously Xmodem which means no hardware, or Xon-Xoff, or DC codes.

Same settings at IBM PC in HyperTerminal and FIFOs disabled.

Sending from HAAS to PC the rate is about 2700 characters per second with no retries. The theoretical maximum thruput should be 115200/(1+8+1) = 11,520 characters per second. This has to be reduced by the overhead of header, checksum, and ACK --- 128 / (3+128+1+1) = 0.962 . So theoretical max is 11,520 * 0.962 = 11,082. Thus, thruput efficiency is 2700 / 11,082 = 24.4 %.

I do not remember the value but the other night I ran a test from HyperTerminal to HAAS. The efficiency was much better, but I believe below 50%.

My test file for transmission was about 170,000 bytes.

Is all the problem at HAAS, or partial, or not at all? How much of the problem is HyperTerminal?

Can anyone else confirm my results, and/or with a different communication program?

In non-Xmodem mode thruput is quite close to theoretical maximum using Cimco Edit.


Then I added additional information.

Continued experiments:

The transfer rate from HyperTerminal to HAAS is about 4000 bytes/second or 4000/11082 = 36% efficiency. Much better than in the other direction, but not good.

With a different sending program my thruput was 6870 or an efficiency of 62%.

I believe the next step is to monitor with a scope and see how much delay exists from the end of a packet until HAAS sends an ACK byte to the sender. This should provide us with information on the maximum possible thruput with our 2000 HAAS receiving.


Maybe one of our HAAS factory people will respond.

.
Reply With Quote

  #2   Ban this user!
Old 02-20-2008, 09:59 AM
 
Join Date: Nov 2003
Location: USA
Posts: 231
Haas_Apps is on a distinguished road
RS-232 Communications

Originally Posted by gar View Post
080220-1009 EST USA

I have posted this question on cnczone and so far no one has provided feedback. So I will try here.

I am current looking at Xmodem communication to and from HAAS using Hyperterminal.

Settings at HAAS 115.2 kbaud, 8 data bits, parity none, 1 stop bit, and obviously Xmodem which means no hardware, or Xon-Xoff, or DC codes.

Same settings at IBM PC in HyperTerminal and FIFOs disabled.

Sending from HAAS to PC the rate is about 2700 characters per second with no retries. The theoretical maximum thruput should be 115200/(1+8+1) = 11,520 characters per second. This has to be reduced by the overhead of header, checksum, and ACK --- 128 / (3+128+1+1) = 0.962 . So theoretical max is 11,520 * 0.962 = 11,082. Thus, thruput efficiency is 2700 / 11,082 = 24.4 %.

I do not remember the value but the other night I ran a test from HyperTerminal to HAAS. The efficiency was much better, but I believe below 50%.

My test file for transmission was about 170,000 bytes.

Is all the problem at HAAS, or partial, or not at all? How much of the problem is HyperTerminal?

Can anyone else confirm my results, and/or with a different communication program?

In non-Xmodem mode thruput is quite close to theoretical maximum using Cimco Edit.


Then I added additional information.

Continued experiments:

The transfer rate from HyperTerminal to HAAS is about 4000 bytes/second or 4000/11082 = 36% efficiency. Much better than in the other direction, but not good.

With a different sending program my thruput was 6870 or an efficiency of 62%.

I believe the next step is to monitor with a scope and see how much delay exists from the end of a packet until HAAS sends an ACK byte to the sender. This should provide us with information on the maximum possible thruput with our 2000 HAAS receiving.


Maybe one of our HAAS factory people will respond.

.

Gar,
There seems to be a lot of information missing about your tests. How long is your cable, are you using a switch box somewhere in the connection, are there any potential sources of electrical interference? I don't think you will ever reach 100% efficiency.

Many years back I had set up some serial communications (Xon/Xoff 2400bps) to BTR's on some older machines with tape readers. Everything worked great. One day I had heard on the local news that we might experience some interference with satellite communications from some solar activity. I really did not think much of it until I had to attempt to send programs to machines multiple times. Your communications could be getting interference from sources beyond your control.
Reply With Quote

  #3   Ban this user!
Old 02-20-2008, 10:37 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

080220-1129 EST USA

Haas_Apps:

Cable length has nothing to do with the observered results.

I indicated that in non-xmodem mode that thruput is near theoretical maximum.

What I failed to mention in the post was that there were no indicated retries. Thus, no packet errors.

The un-named program used to send to HAAS at 6800 bytes/second is a DOS program run on a DOS machine.

There is latency somewhere. Is any of it at the HAAS end?

.
Reply With Quote

  #4   Ban this user!
Old 02-20-2008, 05:19 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

080220-1708 EST USA

An experiment from this afternoon:

Monitoring data flow with a scope. Sending program was HyperTerminal.

All of the thruput latency problem is at the sending end (computer) when sending to HAAS.

The theoretical time to send one packet is:
(1/11.52)(3+128+1) = 0.0868 * 132 = 11.45 MS. On the scope I measured about 5.8 x 2 = 11.6 MS which correlates very well.

The delay from the end of the packet to the ACK from HAAS varied from 0.4 to 1.0 MS. Thus, for the longest delay to ACK the total time is 12.45 MS, and for 128 bytes that is a maximum possible effective thruput of (1000/12.45)*128 = 80.23 * 128 = 10,281 bytes per second. Something is grossly wrong at the sending end for there to be about 32 - 12.45 = 19.55 MS of wasted time.

.
Reply With Quote

  #5   Ban this user!
Old 02-21-2008, 09:53 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

080221-2253 EST USA

I downloaded a version of TeraTerm, 3.1.3.0, and I did not get it to communicate with HAAS in Xmodem. I only attempted to send to HAAS. It does not look like a good program for me to try to explain to someone via phone on how to use the program.

I did some more controlled experiments with our DOS program sending to HAAS. Packet to packet time was 12.2 to 13.5 MS by scope measurement. If we assume an average of 13 MS, then the thruput is 1000/13 = 76.9 packets per second, or 128*76.9 = 9846 bytes per second. This is 11.45/13 = 88% of theoretical maximum thruput at 115.2 kbaud and 8N1 for setup.

Next I will run a timed test on a large file.

Our DOS program links with HAAS very quickly. A couple seconds. And you can start communication from either end. HAAS puts out a NAK every second until link occurs. HyperTerminal takes a very long time to link. Seems like minutes. TeraTerm never linked.

.
Reply With Quote

Sponsored Links
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help!- XModem Problem with Uploading paulpeter Haas Mills 2 01-30-2008 09:07 PM




All times are GMT -5. The time now is 06:51 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361