OG&E
Jump to navigation
Jump to search
Tarvos RFID Reader[edit | edit source]
Configuration[edit | edit source]
Connect the reader with a computer through the serial port, then setup the configures with the commands below:
reader.who_am_i() reader.login(admin, admin) reader.profile.reset_factory_default() setup.default_login_level=admin setup.protocols=ISO10374 antennas.mux_sequence=1 antennas.1.conducted_power=270 modem.protocol.iso10374.control.report_tag_as_raw_hex=true tag.reporting.report_files=tag_id time type freq rssi tag.reporting.arrive_fields=tag_id antenna time audit_record tag.reporting.depart_fields=tag_id time repeat tag.reporting.depart_time=1000 reader.profile.save(Venture_1)
Python App[edit | edit source]
SFTP[edit | edit source]
Connect the SFTP of OG&E to obtain and save the key as pop up:
sftp EXT_Train_Coal_Car@sftp.oge.com
sftp server: "sftp.oge.com"
username: "EXT_Train_Coal_Car"
password: "hgR4l!ODU4Sl"
Prepare Python 3[edit | edit source]
opkg update && opkg upgrade opkg install subversion opkg install python3 python3-modules python3-pyvenv
Install App[edit | edit source]
cd /opt svn co --force-interactive --username readonly --password secret http://svn.crm.ventureresearch.com/svn/linux/py3apps/atadecoder cd /opt/atadecoder pyvenv-3.5 venv source venv/bin/activate pip install -r requirements.txt
Start App[edit | edit source]
cp /opt/atadecoder/atadecoder.service /lib/systemd/system/atadecoder.service systemctl daemon-reload systemctl enable atadecoder systemctl start atadecoder
To check the running of the app, run the command:
journalctl -efu atadecoder
Configures[edit | edit source]
Edit the file config.toml, you can control the running of the app.
- StartReading: start or stop RFID reading
- ReadingPower: RFID radiating (reading) power in centi dBm. For example, 270 = 27 dBm
OpenUPS2 loading[edit | edit source]
See OpenUPS2-24V
USB Ethernet[edit | edit source]
Copy as complete block:
echo -e """#rename USB ethernet to usb0 for device 0b95:772b ASIX Electronics Corp. AX88772B\\nSUBSYSTEM==\"net\", ACTION==\"add\", ATTRS{idVendor}==\"0b95\", ATTRS{idProduct}==\"772b\", NAME=\"usb0\"\\n""" > /etc/udev/rules.d/75-usb-ethernet.rules
chmod 600 /etc/udev/rules.d/75-usb-ethernet.rules