Skip to main content

JW8507 is a device of optical attenator

Project description

JW8507

LICENSE

JW8507 lib

This package is the library for device JW8507 or JW8507A JW8507 Product Main Page

Product Overview

JW8507 Multichannel Bench-top Optical Attenuator is a special test equipment designed by Joinwit for current optical transceiver and optical network integration test. JW8506 has a high-density design that significantly small size. The multi-channel stand-alone Optical attenuator channel provides higher test data throughput and test rate. The device also provides variety communication interface, can be integrated with many Joinwit products. JW8507 is the ideal solution of Optical Network, Optical transmission field to light sensitivity, error rate, attenuation test of the 40G / 100G optical module.

Product Features

  1. Individual VOA modules
  2. More efficient testing and data processing ability
  3. Support for optical output locking
  4. Support internal OPM
  5. Maximum + 27dBm input optical power
  6. Provides RS232 interface
  7. Provide variety software protocols for easy system integration

Basic Usage

from jw8507 import JW8507

if __name__ == "__main__":
    jw = JW8507("/dev/cu.PL2303G-USBtoUART2110")
    if jw.open():
        dev_ver = jw.read_device_version()
        print(dev_ver)
        len_list = jw.read_optical_length(1)
        print(len_list)
        len_list = jw.read_optical_length(2)
        print(len_list)
        dev_status = jw.read_current_status(1)
        print(dev_status)
        dev_status = jw.read_current_status(2)
        print(dev_status)

        # set chnnel 1 to 1.1db
        jw.set_attenuation(1100, 1)
        # set chnnel 2 to 1.1db
        jw.set_attenuation(1100, 2)
        time.sleep(5)

        # totally disconnet optical connection
        jw.dis_connection()
        time.sleep(15)


        # restore optical connection, attenattion is 0db
        jw.clear_attenuation(1)
        jw.clear_attenuation(2)
        time.sleep(5)
        # jw.set_attenuation(2200) # set chnnel 1 to 1.1db
        if jw.close_full_screen():
            print("succ close full screen!")
        jw.close()
    else:
        print(f"open serial port:{opat_port} failed!")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

jw8507-0.1.2-cp311-cp311-win_amd64.whl (57.2 kB view details)

Uploaded CPython 3.11Windows x86-64

jw8507-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (366.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

jw8507-0.1.2-cp311-cp311-macosx_10_9_universal2.whl (120.7 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file jw8507-0.1.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: jw8507-0.1.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 57.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.4

File hashes

Hashes for jw8507-0.1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e6fe71f71974df9610da8504a6d4eee05d31bf74ab8b3b6318e0cb90d0284eec
MD5 7cf330018aa0f33845cb3220cd645767
BLAKE2b-256 7a7f502ea53645bb01adc4533718f5518013c1d8596d167efd251dc7ae6010ac

See more details on using hashes here.

File details

Details for the file jw8507-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for jw8507-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d60339570ecae3114d0653e9ef61c2559ae7f3989c92853aea1ae5bc2a40804
MD5 ab16195c1c1854fc8a6886cb8a0ef88f
BLAKE2b-256 bb57e1727e35f748c1370f1fa08ee3b8ae154fc7b6bd6707c43ba4006606470d

See more details on using hashes here.

File details

Details for the file jw8507-0.1.2-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for jw8507-0.1.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 bcd1fdf36e20c056918b3ae7fab52c73bed506b9b51fe99c76a1edc3cc1a511f
MD5 93d81d998147d153fe51d41664fb23d7
BLAKE2b-256 c8d82d237ce1eb259f3c131a0d7e9bda2ea484a433d82bcff71d7c9adff646d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page