psin(1)

๐Ÿ‘‘ psin โ€” like, the manual page, but make it make sense ๐Ÿ’…

okay bestie, welcome to psin(1) from the Qualcomm Atheros Open Powerline Toolkit ๐ŸŒˆ โ€” yes that whole mouthful, we're doing this together, hold my iced coffee ๐Ÿงš


โœจ NAME โœจ

psin โ€” Import PIB Prescalers ๐Ÿ’–


๐ŸŒธ SYNOPSIS ๐ŸŒธ

psin [options] [<stdin] file

๐Ÿ’– SYNOPSIS ๐Ÿ’– (yeah bestie, twice, the original said it twice and I'm not gonna lie to you)

so what this actually does: it reads an amplitude map from stdin and inserts it into an existing PIB file (the source spells it nexisting, which is honestly iconic ๐Ÿ’€ โ€” we're keeping it, no cap), replacing the previous amplitude map. slay.

this program is the vibe check that lets you load custom amplitude maps into a PIB file. you can also pipe a map directly from one PIB file to another ๐Ÿซถ โ€” no middleman, we love a direct line.

Atheros can provide standard amplitude maps (prescalers) that conform to most national or international EMI regulations โœจ. generally speaking, these maps should not be modifiedโ€ฆ but there are execeptions (again, that's the source spelling, and honestly? we respect the chaos ๐Ÿ˜ญ).

this program is part of the Qualcomm Atheros Powerline Toolkit. see the AMP man page for an overview and installation instructions ๐Ÿ“–


โš ๏ธ CAVEATS โš ๏ธ

okay this is the important part, sit UP bestie ๐Ÿ“

the Atheros Windows Device Manager figures out the type of prescalers stored in the PIB by inspecting the ToneMaskType code โ€” which is also stored in the PIB but is not part of the prescaler set. sneaky little thing.

so if you use this program to store a new prescaler set in a PIB and you don't update the ToneMaskType code to reflect that change? the Windows Device Manager will keep displaying the previous prescaler type ๐Ÿ’€ which will confuse Windows Device Manager users. not the serve we were going for.

use program setpib to set the ToneMaskType code, and program pskey to verify the true prescaler type. periodt. ๐Ÿ‘‘

๐Ÿ’… OPTIONS ๐Ÿ’…

None.

that's it. that's the options section. she has no options, she's booked and busy on stdin alone ๐Ÿ˜Œ


๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • file โ€” the name of an Atheros Parameter Information Block (PIB) file. the original prescalers get replaced and the checksum is re-computed ๐Ÿ”ฅ. by convention, PIB files have a .pib extension, but this program does not enforce that convention, and it does not make any assumption based on filename or extension โ€” but it will reject invalid PIB files, so don't try it ๐Ÿšซ. only one file may be specified on the command line, bestie, we're not doing a whole group chat of files.

๐Ÿฆ‹ FILES ๐Ÿฆ‹

an amplitude map consists of 1155 frequency-amplitude pairs โœจ. each pair is a decimal index and a hexadecimal scaler value.

  • the index represents a frequency from 1.8 mhz through 30 mhz
  • the scaler represents the amplitude attenuation applied at that frequency

the frequency and attenuation are computed like this:

frequency = (index + 74) / 40.96
decibels = 20 * log10 (scaler / 256)

math girlies rise ๐Ÿงฎ๐Ÿ’œ


โญ EXAMPLE โญ

the following example loads prescaler file abc.psc into PIB file abc.pib ๐ŸŒˆ. heads up: the ToneMaskType code is not updated by this operation, and it should be updated separately to avoid confusing Windows Device Manager users. program setpib is one means of updating this code ๐Ÿ‘‘

# psin < abc.psc abc.pib

๐Ÿ’€ DISCLAIMER ๐Ÿ’€

PIB file structure and content is proprietary to Qualcomm Atheros, Ocala FL USA. consequently, public information is not available. Qualcomm Atheros reserves the right to modify PIB file structure or content in future firmware releases without any obligation to notify or compensate users of this program. yeah. they said that. ๐Ÿ˜ญ

tampering with prescaler settings may violate national or international electo-magnetic emission standards and lead to fines or penalties. ๐Ÿšจ Qualcomm Atheros shall not be held responsible for any consequences of modifications made to prescaler sets provided to their customers.

so likeโ€ฆ be normal about your prescalers, bestie ๐Ÿ™ˆ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ


๐Ÿ‘‘ CREDITS ๐Ÿ‘‘

  • Charles Maier
  • Nathaniel Houghton

absolute legends, ty for your service ๐Ÿซถ


and that's the whole page, babes ๐Ÿ’– this was open-plc-utils-0.0.3, dated November 2013 โ€” yeah she's an elder but she ATE, and now you know her. go update your ToneMaskType. mwah ๐ŸŽ€โœจ