cxacru.txt 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Firmware is required for this device: http://accessrunner.sourceforge.net/
  2. While it is capable of managing/maintaining the ADSL connection without the
  3. module loaded, the device will sometimes stop responding after unloading the
  4. driver and it is necessary to unplug/remove power to the device to fix this.
  5. Detected devices will appear as ATM devices named "cxacru". In /sys/class/atm/
  6. these are directories named cxacruN where N is the device number. A symlink
  7. named device points to the USB interface device's directory which contains
  8. several sysfs attribute files for retrieving device statistics:
  9. * adsl_controller_version
  10. * adsl_headend
  11. * adsl_headend_environment
  12. Information about the remote headend.
  13. * adsl_config
  14. Configuration writing interface.
  15. Write parameters in hexadecimal format <index>=<value>,
  16. separated by whitespace, e.g.:
  17. "1=0 a=5"
  18. Up to 7 parameters at a time will be sent and the modem will restart
  19. the ADSL connection when any value is set. These are logged for future
  20. reference.
  21. * downstream_attenuation (dB)
  22. * downstream_bits_per_frame
  23. * downstream_rate (kbps)
  24. * downstream_snr_margin (dB)
  25. Downstream stats.
  26. * upstream_attenuation (dB)
  27. * upstream_bits_per_frame
  28. * upstream_rate (kbps)
  29. * upstream_snr_margin (dB)
  30. * transmitter_power (dBm/Hz)
  31. Upstream stats.
  32. * downstream_crc_errors
  33. * downstream_fec_errors
  34. * downstream_hec_errors
  35. * upstream_crc_errors
  36. * upstream_fec_errors
  37. * upstream_hec_errors
  38. Error counts.
  39. * line_startable
  40. Indicates that ADSL support on the device
  41. is/can be enabled, see adsl_start.
  42. * line_status
  43. "initialising"
  44. "down"
  45. "attempting to activate"
  46. "training"
  47. "channel analysis"
  48. "exchange"
  49. "waiting"
  50. "up"
  51. Changes between "down" and "attempting to activate"
  52. if there is no signal.
  53. * link_status
  54. "not connected"
  55. "connected"
  56. "lost"
  57. * mac_address
  58. * modulation
  59. "" (when not connected)
  60. "ANSI T1.413"
  61. "ITU-T G.992.1 (G.DMT)"
  62. "ITU-T G.992.2 (G.LITE)"
  63. * startup_attempts
  64. Count of total attempts to initialise ADSL.
  65. To enable/disable ADSL, the following can be written to the adsl_state file:
  66. "start"
  67. "stop
  68. "restart" (stops, waits 1.5s, then starts)
  69. "poll" (used to resume status polling if it was disabled due to failure)
  70. Changes in adsl/line state are reported via kernel log messages:
  71. [4942145.150704] ATM dev 0: ADSL state: running
  72. [4942243.663766] ATM dev 0: ADSL line: down
  73. [4942249.665075] ATM dev 0: ADSL line: attempting to activate
  74. [4942253.654954] ATM dev 0: ADSL line: training
  75. [4942255.666387] ATM dev 0: ADSL line: channel analysis
  76. [4942259.656262] ATM dev 0: ADSL line: exchange
  77. [2635357.696901] ATM dev 0: ADSL line: up (8128 kb/s down | 832 kb/s up)