Bits / Tone σε γραμμή ADSL (over ISDN)

Στο βιβλίο/σημειώσεις “Δίκτυα Υπολογιστών” της Γ’ ΕΠΑ.Λ., στο κεφ. 2.3 Μετάδοση Βασικής και Ευρείας ζώνης, παρουσιάζεται μια εικόνα η οποία απεικονίζει τον αριθμό των δυαδικών ψηφίων (bits) που κωδικοποιούνται σε κάθε κανάλι 4,3125 kHZ για όλο το εύρος ζώνης μιας γραμμής ADSL2+ over ISDN (μετάδοση ευρείας ζώνης) χρησιμοποιώντας την κατάλληλη τεχνική διαμόρφωσης (Discrete MultiTone).

dsl-bits02

Μια τέτοια εικόνα, με σημαντική διαγνωστική αξία για την διερεύνηση προβλημάτων σε γραμμές ADSL, μπορεί να μας δώσει το DSL Modem Tool (DMT). Το διαγνωστικό αυτό εργαλείο στηρίζεται στην εγγενή υποστήριξη διαγνωστικών ελέγχων που διαθέτουν ορισμένα chipset που χρησιμοποιούνται για την υλοποίηση ADSL Modem όπως το Broadcom BCM63xx.

Ο TP-Link TD-W8960NB είναι ένα σύστημα BCM963xx το οποίο περιλαμβάνει και άλλον περιφερειακό εξοπλισμό για την υλοποίηση ενός ολοκληρωμένου ADSL2/2+ Modem, 4-port Fast Ethernet, 300Mbps Wireless N IEEE802.11n Access Point, USB Router. Χρησιμοποιώντας έναν τέτοιο δρομολογητή, από τη γραμμή εντολών του, μπορούν να εκτελεστούν οι αντίστοιχες διαγνωστικές εντολές και τα αποτελέσματά τους να παρουσιαστούν ως διαγράμματα κάνοντας χρήση εργαλείων διαγραμμάτων όπως το gnuplot.

Τα βήματα:

  • Σύνδεση στον Router:

george@perseus:~$ telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
BCM96358 xDSL Router
Login: admin
Password:
>

  • Εκτέλεση της κατάλληλης διαγνωστικής εντολής adsl info [–state] [–show] [–stats] [–SNR] [–QLN] [–Hlog] [–Hlin] [–HlinS] [–Bits] [–linediag] [–reset] [–vendor] [–cfg]

> adsl info --Bits
adsl: ADSL driver and PHY status
Status: Showtime
Retrain Reason: 1
Max: Upstream rate = 1032 Kbps, Downstream rate = 12864 Kbps
Path: 0, Upstream rate = 1021 Kbps, Downstream rate = 10701 Kbps

Tone number Bit Allocation
0 0
1 0
2 0
3 0
......
508 4
509 0
510 0
511 0
>

Αποθήκευση (με αντιγραφή/επικόλληση) των δεδομένων σε αρχείο π.χ. bits.dat, φροντίζοντας να κάνουμε σχόλιο (#) την πρώτη γραμμή και να αφήσουμε μια κενή γραμμή μετά το Tone number #64 για διαχωρισμό των UpLink Tones απο τους DownLink Tones

  • Απεικόνιση των δεδομένων σε γράφημα με το gnuplot

george@perseus:/media/george/backup/temp$ gnuplot

G N U P L O T
Version 5.0 patchlevel 0 last modified 2015-01-01

Copyright (C) 1986-1993, 1998, 2004, 2007-2015
Thomas Williams, Colin Kelley and many others

gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')

Terminal type set to 'qt'
gnuplot> load "dsl-bits2.gp

Και το περιεχόμενο του script “dsl-bits2.gp” για την απεικόνιση των δεδομένων σε γράφημα:

#
#2.3 Μετάδοση Βασικής και Ευρείας ζώνης
#
#Δευ 31 Αύγ 2015 12:44:10 μμ EEST
#BCM96358 xDSL Router
#Login: admin
#Password:
# >
# > adsl info --Bits
#adsl: ADSL driver and PHY status
#Status: Showtime
#Retrain Reason: 1
#Max: Upstream rate = 951 Kbps, Downstream rate = 12652 Kbps
#Path: 0, Upstream rate = 861 Kbps, Downstream rate = 10424 Kbps
#
#
reset

set yrange [0:16]
# x-axis in kHz
# set xrange [0:512*4.3125]
# x-axis in tone number
set xrange [0:512]
set title "Bit Loading / Δυαδικά ψηφία ανά τόνο"
#set xtics (0,32,64,128,256,384,511)
set grid ytics lc rgb "#bbbbbb" lw 1 lt 0
set grid xtics lc rgb "#bbbbbb" lw 1 lt 0
set xlabel "Tone (in bin number)"
set ylabel "Bits per Tone"
set style fill solid
# uncomment the following command to use frequency (kHz) instead of data Bin number (Tone) in X-axis, remember to modify set xrange
#plot "bits.dat" index 0 using ($1*4.3125):2 with boxes title "BpT UpStream" lc "red",'' index 1 using ($1*4.3125):2 with boxes title "BpT DownStream" lc "blue"
# uncomment the following command to use data Bin number (Tone) instead of frequency (kHz) in X-axis, remember to modify set xrange
plot "bits.dat" index 0 using ($1):2 with boxes title "BpT UpStream" lc "red",'' index 1 using ($1):2 with boxes title "BpT DownStream" lc "blue"

  • Αποθήκευση του διαγράμματος ως εικόνα PNG ή SVG κατάλληλη για περαιτέρω επεξεργασία με πρόγραμμα επεξεργασίας διανυσματικών γραφικών όπως το inkscape. Ακολούθως μπορεί να χρησιμοποιηθεί για την τεκμηρίωση της αναφοράς επιδόσεων, περιγραφής προβλημάτων και εκτίμησης πιθανών λύσεων / διορθωτικών ενεργειών.

Gnuplot window 0_167

Παρατηρήσεις:

Ένας τέτοιος δρομολογητής, υποστηρίζει μια ποικιλία εντολών στο CLI, όπως οι παρακάτω:

> ?
?, help, logout, exit, quit, reboot, adsl, xtm, brctl, cat, loglevel, logdest, virtualserver, ddns, df, dumpcfg, dumpmdm, meminfo, syslog, psp, echo, ifconfig, kill, ping, ps, pwd, sntp, sysinfo, tftp, wlctl, arp, defaultgateway, dhcpserver, dns, lan, lanhosts, passwd, ppp, restoredefault, route, save, swversion, wan

Πιο συγκεκριμένα, η adsl εμφανίζει μια ποικιλία διαγνωστικών πληροφοριών, όπως φαίνεται από τη σύνταξή της, με αρκετά σημαντική την δυνατότητα εκτίμησης του SNR της γραμμής συναρτήσει της συχνότητας (ή για κάθε tone number).

> adsl
Usage: adsl start [–up] [–mod <a|d|l|t|2|p|e|m>] [–lpair <(i)nner|(o)uter>]
[–trellis <on|off>] [–snr <snrQ4>] [–bitswap <on|off>] [–sesdrop <on|off>] [–sra <on|off>]
[–CoMinMgn <on|off>] [–i24k <on|off>] [–phyReXmt <on|off>]
adsl stop
adsl connection [–up] [–down] [–loopback] [–reverb]
[–medley] [–noretrain] [–L3] [–diagmode] [–L0]
[–tones]
adsl configure [–mod <a|d|l|t|2|p|e|madsl>] [–lpair <(i)nner|(o)uter>]
[–trellis <on|off>] [–snr <snrQ4>] [–bitswap <on|off>] [–sesdrop <on|off>] [–sra <on|off>]
[–CoMinMgn <on|off>] [–i24k <on|off>] [–phyReXmt <on|off>]
bert [–start <#seconds>] [–stop] [–show]
adsl afelb [–time <sec>] [–tones] [–signal <1/2/8>]
adsl qlnmntr [–time <sec>] [–freq <msec>]
adsl inm [–start <BB_THRESH 10*dB> <INMAITO> <INMIATS>] [–stop] [–show]
adsl diag [–logstart <nBytes>] [–logpause] [–logstop] [–loguntilbufferfull <nBytes>] [–loguntilretrain <nBytes>]
adsl info [–state] [–show] [–stats] [–SNR] [–QLN] [–Hlog] [–Hlin] [–HlinS] [–Bits]
[–linediag] [–reset] [–vendor] [–cfg]
adsl –version
adsl –help
>

 

Κατηγορίες: ΔΙΚΤΥΑ ΙΙ | Γράψτε σχόλιο

Ibanez DD1000 Digital Delay brought back to life

ibanez-dd

A vintage (1985) Digital Delay, DD 1000, from Ibanez, bought “used” with one delay channel not functioning. The unit bought by a friend to be used (at least the working part of the unit) with an electric guitar.
After a conversation I had with him I decided to give it a try to see what is malfunctioning and if it is repairable to proceed with a repair.
I searched the net for any info, especially a service manual or schematic but nothing found free, except at MusicParts.com (http://www.musicparts.com/products.asp?Company=Ibanez) for $20.

ibnzDD1000-shortUP

Under the case of the unit there are two identical boards with different component population. It is a classic Japanese design and implementation circa mid eighties with discrete through-hole components and op-amps (a good sign for repairability of the unit).

ibnzDD1000-shortDN

But under the board (solder layer) there is an SMT chip (IC28, 60 pin QFP) the MC4101F. I didn’t find any datasheet for this IC and I think it is a multifunction audio signal processor including A/D, D/A conversion, effects and memory management function for storing a digitized audio signal to an external memory and reading it back delayed to produce delay effects. It seems to be the most critical part of the unit so I had to verify its proper operation.
At http://mirosol.kapsi.fi/2014/03/ibanez-dfl-digital-flanger/ I found info about another unit the Ibanez DFL Digital Flanger that is built around the same chip. I downloaded (free) its schematic from http://www.schematicsunlimited.com/i/ibanez to study the function of MC4101F.

I feed at the input of the unit (back panel connector) a signal (sine 440Hz/700mVpp) and traced it on the board. FET Q1 seems to be an electronic switch that injects the delayed signal with effects to mixed output path when “Effect” key is activated in the front panel.

effect_switch

 

input

INPUT signal (440Hz, 700mVpp)

fault

Effect switch active. Output at Q1 drain pin. No signal – only noise

I feed at the input of the unit, again, a signal (sine 440Hz/700mVrms) and traced it on the board until it enters MC4101F (IC28 pins 41, 42, 45). At pin 16, IC28 outputs a signal (in some form of pulse modulation) to write it in the external RAM (IC27 uPD4164, pin 2). This signal driven to an audio amplifier can be heard through a connected loudspeaker and the 440Hz tone can be recognized. Doing the same at the output of the RAM (IC27 uPD4164, pin 14) nothing heard (only some low level noise). MC4101F is heart-beating but ram chip seems malfunctioning.
uPD4164 is a DRAM chip organized as 64k x 1bit now obsolete but very popular at early home computing days (ZX spectrum, ORIC, IBM PC etc). I found an IBM PC compatible having enough 4164s, all installed in ic sockets. So I used it as a donor. In the DD1000, IC27 was direct soldered with no socket, so I cut its pins and desoldered by hand all individual pins with a soldering iron and a sucker. Then soldered a 16pin DIL socket. (CAUTION) Silk screen shows DRAM chips placement with wrong orientation. I installed the socket and the new IC according to the orientation of the removed chip. A good practice for this is to take a photo before any repair attempt and refer to it when in doubt.

mem_in

Power up and voila! Digital Delay channel “A” works again.

good

Effect switch active. Output at Q1 drain pin. Good signal

delta-total

Input signal vs datastream at IC27 p.2 DRAM input

delta-stack

Details of datastream in relation with the input signal (yellow line). It seems to be “DELTA” modulated pulses

 

Misc info:

main components pinouts: ibanez-dd1000
Ibanez DFL schematic with notes regarding DD1000: ibanez-dfl_dd

Κατηγορίες: Mods/Repairs | Γράψτε σχόλιο

Kenwood TS-570DG MARS/CAP mod

The main reason of this mod is to extend TS-570’s TX range beyond radio amateur bands in order to support MARS/CAP operation in US.

After March 29, 2009, the available spectrum in 40m amateur band (IARU Region 1, SVland) extended from 7,000-7,100 MHz to 7,000-7,200 MHz. TS-570 has to be modified according to MARS/CAP mod in order to be able to operate in this part of the band.

Googling can find detailed descriptions of the mod procedure.

e.g. http://www.hampedia.net/kenwood/ts-570dg-mars-cap-modification.php or http://www.kb2ljj.com/data/kenwood/ts-570.htm

Here are some more detailed photos of the mod

73 de SV2DOF

Κατηγορίες: HAM RADIO, Mods/Repairs | Ετικέτες: | Γράψτε σχόλιο

Cisco 800 console port repair

Back in 2009, a cisco 876W console port had failed.
The symptom
The router when connected to a serial terminal (PC with a terminal emulator) reported boot-up messages but had no response to any key-stroke.
The problem
No ROM monitor mode and no possibility to reset a forgotten password.
Possible cause of failure
… seemed to be an accidentally connection of console port to the ISDN line.
Fault finding and Repairing
The router would had one or more ICs as RS-232 line drivers/receivers and some of them would failed.

  • The router opened. 
  • Top cover removed.
  • Metal screen removed also.
  • At the back right corner is located a Maxim MAX3243E RS-232 Transceiver 
  • After tracing the PCB connections to the console port founded the SMD resistor R133 of 220 Ohms to be “open-circuit”
  • Part of the schematic as traced manually
  • Replaced with an identical resistor and console port is functioning again.
Κατηγορίες: Mods/Repairs | Ετικέτες: , , | Γράψτε σχόλιο

Kenwood TM-D700 goes bluetooth

Pocket APRS

Ένας υπολογιστής παλάμης (PDA) συνήθως διαθέτει δυνατότητα επικοινωνίας Bluetooth με άλλες συσκευές ενώ οι ραδιοερασιτεχνικοί πομποδέκτες διαθέτουν παραδοσιακά, σειριακές θύρες, είτε πραγματικής στάθμης RS-232 είτε TTL.

Τη δυνατότητα διασύνδεσής τους, έρχονται να δώσουν προσαρμογείς, σε μέγεθος USB Flash disk, από σειριακή σε Bluetooth, των οποίων οι τιμές έγιναν αρκετά προσιτές τελευταία (Φεβ 2008, 48 Ευρώ).

Ένας τέτοιος προσαρμογέας, ο FireFly Bluetooth Serial Adapter (RN-240F) από την Roving Networks έφτασε στα χέρια μου μέσω της datasphere wireless

Για το όλο εγχείρημα και τα αποτελέσματά του μπορείτε να δείτε στο http://users.sch.gr/gxry/?HAM_RADIO:APRS:Pocket_APRS

Τα νεώτερα έχουν να κάνουν με την επιτυχή συνεργασία τους με την Packet Engine PPC και το AGWTracker PPC του SV2AGW.

Στο configuration του προσαρμογέα, όπως περιγράφεται στο αρχικό εγχείρημα με το APRS/CE,

προστίθεται ένας βραχυκυκλωτήρας μεταξύ των ακίδων 6 και 8 (κάθετα στους άλλους).

Υπενθυμίζεται ότι η Packet Engine PPC συνεργάζεται με TNC που λειτουργούν σε KISS mode

Τα αποτελέσματα, χρησιμοποιώντας ένα PDA Mio P560:

73 de SV2DOF

Κατηγορίες: HAM RADIO | Γράψτε σχόλιο