[Asterisk-Users] Softfax/spandsp

Steven Sokol ssokol at sokol-associates.com
Tue Mar 23 12:08:37 MST 2004


Steve

I am testing Softfax/spandsp with a Brother MFC 1870 MC.  It appears to work
properly in the default "Standard" resolution mode.  However, when receiving
a fax sent in "Fine" mode, the image is garbled.  It appears to properly
register the first 1" - 2" of the page, then the rest is junk.

I can send you a copy of the resulting TIFF if it helps.  Below is what I
was able to capture from the output from the application:

Slow carrier down
Slow carrier up
Slow carrier down
Slow carrier up
Slow carrier down
Slow carrier up
Slow carrier down
Slow carrier up
Slow carrier down
Slow carrier up
Slow carrier down
Start receiving document
Changed from phase 1 to 4
Sending ident
>>> CSI: 40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
DIS:
Preferred octets: 256
Can receive fax
Supported data signalling rates: V.27ter and V.29
R8x7.7lines/mm and/or 200x200pels/25.4mm OK
2D coding OK
Scan line length: 215mm
Recording length: A4 (297mm)
Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85
R8x15.4lines/mm OK
Minimum scan line time for higher resolutions: T15.4 = T7.7
>>> DIS: 80 00 ce f0 80 80 01
HDLC underflow in state 9
Changed from phase 4 to 3
Slow carrier up
<<< DCS: 83 00 46 a0 80 80 00
DCS with final frame tag
In state 9
DCS:
Can receive fax
Selected data signalling rate: V.29, 9600bps
R8x7.7lines/mm and/or 200x200pels/25.4mm OK
Scan line length: 215mm
Recording length: A4 (297mm)
Minimum scan line time: 10ms
Minimum scan line time for higher resolutions: T15.4 = T7.7
Get at 9600
Changed from phase 3 to 5
Fast carrier up
Coarse carrier frequency 1693.73 (10)
Fast carrier down
0 bad bits in trainability test
>>> FTT: 44
Fast carrier up
Coarse carrier frequency 1699.62 (66)
Fast carrier trained
Fast carrier down
Changed from phase 5 to 4
Start rx document - compression 1
Start rx page
>>> CFR: 84
HDLC underflow in state 5
Post trainability
Changed from phase 4 to 5
Fast carrier up
Coarse carrier frequency 1699.96 (66)
Fast carrier trained
Fast carrier down
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 250
(got 1775, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 253
(got 1733, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 254
(got 1826, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 255
(got 1731, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 268
(got 1854, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 269
(got 1927, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 271
(got 3243, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 272
(got 2016, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 282
(got 1826, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 283
(got 1731, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 285
(got 3343, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 286
(got 1737, expected 1728).
Fax3Decode1D: (FakeInput): Bad code word at scanline 287 (x 897).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 287 (got 897,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 289
(got 2311, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 290
(got 2424, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 291
(got 2416, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 293
(got 1922, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 294
(got 3160, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 295
(got 1734, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 296
(got 2065, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 297
(got 3448, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 298
(got 2243, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 299
(got 2615, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 300
(got 1781, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 301
(got 4431, expected 1728).
Fax3Decode1D: (FakeInput): Bad code word at scanline 302 (x 63).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 302 (got 63,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 303
(got 3185, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 304
(got 3163, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 305
(got 2264, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 306
(got 3043, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 307
(got 2399, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 308
(got 1952, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 309
(got 1746, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 310
(got 1737, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 311
(got 4083, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 312
(got 1882, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 313
(got 2398, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 314
(got 1729, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 315
(got 1829, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 316
(got 2158, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 317
(got 2576, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 318
(got 1846, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 319
(got 1948, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 320
(got 2238, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 321
(got 5372, expected 1728).
Fax3Decode1D: (FakeInput): Bad code word at scanline 322 (x 341).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 322 (got 341,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 323
(got 2053, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 324
(got 2037, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 325
(got 2380, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 326
(got 1836, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 327
(got 2166, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 328
(got 2125, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 329
(got 2892, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 330
(got 2328, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 331
(got 1879, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 332
(got 2804, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 333
(got 2326, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 334
(got 3114, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 335
(got 1999, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 336
(got 1871, expected 1728).
Fax3Decode1D: (FakeInput): Bad code word at scanline 337 (x 1007).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 337 (got 1007,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 338
(got 1967, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 339
(got 2386, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 340
(got 3820, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 341
(got 1786, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 342
(got 2449, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 343
(got 1782, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 344
(got 2728, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 345
(got 1794, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 346
(got 1824, expected 1728).
Fax3Decode1D: (FakeInput): Bad code word at scanline 347 (x 224).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 347 (got 224,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 348
(got 2525, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 349
(got 1918, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 350
(got 1840, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 351
(got 2461, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 352
(got 2126, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 353
(got 2648, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 354
(got 2744, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 355
(got 2302, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 356
(got 1731, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 357
(got 2228, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 358
(got 2444, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 359
(got 1756, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 360
(got 1740, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 361
(got 2813, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 362
(got 4122, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 363
(got 1744, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 364
(got 2878, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 365
(got 2068, expected 1728).
Fax3Decode1D: (FakeInput): Bad code word at scanline 366 (x 4).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 366 (got 4,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 367 (got 1523,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 368
(got 4098, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 369
(got 3106, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 370
(got 1899, expected 1728).
Fax3Decode1D: (FakeInput): Bad code word at scanline 371 (x 16).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 371 (got 16,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 372
(got 2809, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 373
(got 1957, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 374
(got 2536, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 375
(got 2677, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 376
(got 2170, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 377
(got 1813, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 378
(got 1761, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 379
(got 1808, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 380
(got 2576, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 381
(got 2744, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 382
(got 1733, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 383
(got 3434, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 384
(got 1740, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 385
(got 2304, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 386
(got 1788, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 387
(got 3230, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 388
(got 2648, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 389
(got 1765, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 390
(got 2973, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 391
(got 1912, expected 1728).
Fax3Decode1D: (FakeInput): Bad code word at scanline 392 (x 806).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 392 (got 806,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 393
(got 1923, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 394
(got 2947, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 395
(got 1730, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 396
(got 1847, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 397
(got 1738, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 398
(got 1732, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 399
(got 2130, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 400
(got 1867, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 401
(got 1755, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 402
(got 2229, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 403
(got 2563, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 404
(got 1766, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 405
(got 2769, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 406
(got 1870, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 407
(got 1744, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 408
(got 2263, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 409
(got 1785, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 410
(got 1751, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 411
(got 1733, expected 1728).
Fax3Decode1D: (FakeInput): Bad code word at scanline 412 (x 622).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 412 (got 622,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 413
(got 1758, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 414
(got 1745, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 415
(got 2643, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 416
(got 2901, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 417
(got 2290, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 418
(got 1907, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 419
(got 2366, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 420
(got 1762, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 421
(got 1820, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 422
(got 2003, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 423
(got 1932, expected 1728).
Fax3Decode1D: (FakeInput): Bad code word at scanline 424 (x 267).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 424 (got 267,
expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 425
(got 2273, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 426
(got 2139, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 427
(got 2132, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 428
(got 3936, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 429
(got 1903, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 430
(got 2225, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 431
(got 1769, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 432
(got 2172, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 433
(got 2945, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 434
(got 3106, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 435
(got 2609, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 436
(got 1860, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 437
(got 2251, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 439
(got 3118, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 440
(got 1958, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 441
(got 1834, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 442
(got 2281, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 443
(got 2622, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Line length mismatch at scanline 444
(got 1891, expected 1728).
Fax3Decode1D: Warning, (FakeInput): Premature EOL at scanline 445 (got 1066,
expected 1728).
Page 1 of /tmp/testfax.tif:
446 rows received
0 total bad rows
0 max consecutive bad rows
Changed from phase 5 to 3
Slow carrier up
<<< EOP: 2f
EOP with final frame tag
In state 5
Changed from phase 3 to 4
>>> MCF: 8c
HDLC underflow in state 8
Changed from phase 4 to 3
Slow carrier up
<<< DCN: fb
DCN with final frame tag
In state 8
Disconnecting
Changed from phase 3 to 7
    -- Hungup 'Zap/1-1'







More information about the asterisk-users mailing list