Code Monkey home page Code Monkey logo

scuttle's People

Contributors

ansarid avatar brittneydugas avatar dmalawey avatar georgeexotic avatar michaeljtownsend avatar mxet avatar rmc-800 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scuttle's Issues

input/output error & overall strange behavior in Shell

Beaglebone is not cooperating in the Shell session. How can we troubleshoot this?

Steps to reproduce the problem:
Upon loggin into the beaglebone, there is a "locking failed" message.
Upon further commands such as dmesg, there is an Input/output error for any command.

Shell commands and output here:

[email protected]'s password:
Last login: Sun Feb  3 21:03:56 2019 from 192.168.8.65
zsh: locking failed for /home/debian/.zsh_history: read-only file system: readin                        g anyway
➜  ~ dmesg
zsh: Input/output error: dmesg
➜  ~ sudo dmesg
sudo: unable to open /var/lib/sudo/ts/debian: Read-only file system
[sudo] password for debian:
sudo: unable to execute /bin/dmesg: Input/output error
➜  ~ dmesg
zsh: Input/output error: dmesg
➜  ~

help! installing matplotlib

I'm attempting to install matplotlib on my blue, but it failed. Here's what happened:

debian@scuttle:/var/lib/cloud9$ pip install matplotlib
Collecting matplotlib
  Downloading https://files.pythonhosted.org/packages/1e/20/2032ad99f0dfe0f60970941af36e8d0942d3713f442bb3df37ac35d67358/matplotlib-2.2.4.tar.gz (37.0MB)
    99% |████████████████████████████████| 37.0MB 1.3MB/s eta 0:00:01Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 620, in _prepare_file
    session=self.session, hashes=hashes)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 821, in unpack_url
    hashes=hashes
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 659, in unpack_http_url
    hashes)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 882, in _download_http_url
    _download_url(resp, link, content_file, hashes)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 603, in _download_url
    hashes.check_against_chunks(downloaded_chunks)
  File "/usr/lib/python2.7/dist-packages/pip/utils/hashes.py", line 46, in check_against_chunks
    for chunk in chunks:
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 571, in written_chunks
    for chunk in chunks:
  File "/usr/lib/python2.7/dist-packages/pip/utils/ui.py", line 139, in iter
    for x in it:
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 560, in resp_read
    decode_content=False):
  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/response.py", line 432, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/response.py", line 380, in read
    data = self._fp.read(amt)
  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 63, in read
    self._close()
  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 50, in _close
    self.__callback(self.__buf.getvalue())
  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/controller.py", line 275, in cache_response
    self.serializer.dumps(request, response, body=body),
  File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/serialize.py", line 86, in dumps
    data, separators=(",", ":"), sort_keys=True,
  File "/usr/lib/python2.7/json/__init__.py", line 251, in dumps
    sort_keys=sort_keys, **kw).encode(obj)
  File "/usr/lib/python2.7/json/encoder.py", line 210, in encode
    return ''.join(chunks)
MemoryError
debian@scuttle:/var/lib/cloud9$

SICK lidar - Publish code to pull readings in Python

  1. Determine the communication method for the TiM561 over USB.
    e.g. if the communication is "serial" then what is the baud rate?
    Otherwise, determine the method, default IP address, port number, etc.\
  2. share the spreadsheet that breaks down the "telegram" from the lidar.

Simplify scuttle.py

Need to remove empty sections
Move driving commands such as "turn left" to a new file called "drive.py"
Add brief comments to explain the code for students.

self installer issue with Debian 9.9

Our SD card is flashed with version 9.9 of the appropriate Debian distribution and slf installer is no longer compatible. When part1 is run, it will throw this error and then reboot.

debian@beaglebone:/var/lib/cloud9$ cd ~
debian@beaglebone:~$ sudo bash self_installer_part1.sh
[sudo] password for debian:
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 1.01095 s, 10.4 MB/s
Already up-to-date.
Media: [/dev/mmcblk0]
sfdisk: 2.26.x or greater
Disk /dev/mmcblk0: 14.7 GiB, 15728640000 bytes, 30720000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x672a5d88

Old situation:

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 8192 30719999 30711808 14.7G 83 Linux

Created a new DOS disklabel with disk identifier 0xade4c5d5.
/dev/mmcblk0p1: Created a new partition 1 of type 'Linux' and of size 14.7 GiB.
Partition #1 contains a ext4 signature.
/dev/mmcblk0p2: Done.

New situation:

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 8192 30719999 30711808 14.7G 83 Linux

The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
Syncing disks.
reboot

Motor driving "signal handler error" or Segmentation Fault

This output is given in concurrence with a disconnection of the beaglebone and a non-responsiveness to further commands.

/usr/local/lib/python3.5/dist-packages/rcpy-0.5.0-py3.5-linux-armv7l.egg/rcpy/init.py:127: UserWarning: > Installing signal handlers
warnings.warn('> Installing signal handlers')

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.327422] Internal error: : 1028 [#1] PREEMPT SMP ARM

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.457984] Process python3 (pid: 1141, stack limit = 0xd1816218)

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.464104] Stack: (0xd1817e18 to 0xd1818000)

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.468482] 7e00: 00000001 00000000

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.476700] 7e20: 00000000 d1817e7c db49b500 c081df48 db49b520 00000000 00000000 dc7d9210

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.484917] 7e40: d1817e74 d1817e50 c081b72c c081df54 c1504dc8 00000000 dc4e6f94 db49b500

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.493134] 7e60: 00000002 dc5f3280 d1817eb4 d1817e78 c081be7c c081b618 00000000 00009c40

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.501351] 7e80: 00000000 00000000 00000001 322c3fc2 00000002 c081be00 dc7d9200 00000000

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.509568] 7ea0: 00000000 d1817f68 d1817ecc d1817eb8 c092f108 c081be0c c092f0e0 dc7d9200

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.517786] 7ec0: d1817ee4 d1817ed0 c03855c4 c092f0ec 00000002 dc7d9200 d1817f1c d1817ee8

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.526004] 7ee0: c0384c10 c0385580 00000000 00000000 db702988 c0384b18 dc4f3840 a6e18aec

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.534222] 7f00: d1817f68 00000000 a6e18aec 00000002 d1817f34 d1817f20 c02f9258 c0384b24

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.542439] 7f20: 00000002 dc4f3840 d1817f64 d1817f38 c02f943c c02f923c c031b088 c031bbd0

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.550655] 7f40: c1504dc8 dc4f3843 00000000 00000000 dc4f3840 a6e18aec d1817fa4 d1817f68

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.558872] 7f60: c02f96a4 c02f9394 00000000 00000000 00000002 322c3fc2 00000005 00000001

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.567089] 7f80: 00000010 00000000 00000004 c01090e4 d1816000 00000000 00000000 d1817fa8

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.575306] 7fa0: c0108f00 c02f9654 00000001 00000010 00000009 a6e18aec 00000002 a6e39620

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.583522] 7fc0: 00000001 00000010 00000000 00000004 beccb290 0000000b 0000000c 0000000d

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.591739] 7fe0: 00000000 beccb1d0 00000000 b6f303d0 000b0030 00000009 00000000 00000000

Message from syslogd@scuttle at Mar 1 22:46:44 ...
kernel:[ 649.670935] Code: e5980000 e6ffa07e eb049325 e5985028 (e1d570b0)

Purge confusing lines from all python files

I'm requesting a script to be written to discover and remove this line before any git-pushes.

#!/usr/bin/python3

This is not code that I want to teach in the classroom. It has been recurringly generated and does not serve a purpose.

Flow credentials file is encrypted in NodeRed

When trying to deploy the accelerometer chart in NodeRed of Lab 2, it gives us the following bug:

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

It also opens a new tab with the following message:
error
Everything is setup correctly and everything is properly installed on the BeagleBoard, but we can't figure out why we can't create our accelerometer chart in NodeRed.

BBB system space Issue

mxet 300 space issue

I get this Issue when I try to use apt-get install "program name" to download programs. Any idea on checking and managing the BBB system storage.

Bash self_installer correction

In the guide on how to install the self_installer it says you should see the tilde sign again but since the last line in that file is sudo reboot you would not see anything as you first have to reconnect via SSH?

Add a licence for a project?

Hi! Thanks for making this project and sharing it!

I'll be featuring it in the next issue of Weekly Robotics. I've noticed that there is no project licence anymore in the project (there was a commit that removed it). As far as I know projects behind licence default to "All Rights Reserved" meaning that theoretically no one should use your work.

Cannot get cv to work

when we tried to run:
sudo bash start_mjgp_streamer.sh L3_image_filter.py
we are receiving this error.

Screen Shot 2019-10-31 at 10 20 15 AM

import cv2 error

Both self_installer_part1.sh and self_installer_part2.sh were run and cv2 was not installed in the user library. This issue persists across multiple teams.

Screenshot (19)

RFID Question

I am using the RFID code provided in the basics section of GitHub to read tags. I am able to read the tag and then use the data provided in a if statement to tell if it is the one that I am looking for. I however also need to be able to tell that if there is no tag that is being read. Does the code return a variable that can be read in order to determine this? Pictured below is the code that I am using the R variable is one that I pass to my function and is the tag that is being searched for.

sn,data = rfid.read_rfid() T = sn if T == R: status = 3 elif T != R: status = 2

Beaglebone does not connect via SSH anymore

Not sure why but out of nowhere my beaglebone will not connect via ssh over usb. I checked my drivers but all are up to date and functioning. Wifi SSH still works when connected. I reflashed it but maybe someone else will run into this problem as well. I did change the wifi SSID and turned tethering on. Thats the only noticeable change I made but after that I was still ssh'ing via usb. Next day ssh via usb was not working.

Thanks

Issue using L1_servo.py

Hardware setup:
Beagle Bone Blue connected via 12V barrel jack to wall outlet for power.
Continuous servo connected in correct wiring configuration to servo1 position on BeagleBone Blue

Software Setup:
uncommented while loop in L1_servo.py returns the following in the console:
/usr/local/lib/python3.5/dist-packages/rcpy-0.5.0-py3.5-linux-armv7l.egg/rcpy/__init__.py:116: UserWarning: > Robotics cape initialized warnings.warn('> Robotics cape initialized') /usr/local/lib/python3.5/dist-packages/rcpy-0.5.0-py3.5-linux-armv7l.egg/rcpy/__init__.py:127: UserWarning: > Installing signal handlers warnings.warn('> Installing signal handlers') ERROR: in rc_pru_shared_mem_ptr could not open /dev/mem: Permission denied Need to be root to access PRU shared memory ERROR in rc_servo_init, failed to map shared memory pointer Traceback (most recent call last): File "L1_servo.py", line 10, in <module> import rcpy.servo as servo File "/usr/local/lib/python3.5/dist-packages/rcpy-0.5.0-py3.5-linux-armv7l.egg/rcpy/servo.py", line 2, in <module> from rcpy._servo import * SystemError: initialization of _servo failed without raising an exception Initiating cleanup... Done with cleanup

Troubleshooting steps taken:
Ran the following command which successfully actuated the servo: sudo rc_test_servos -s 1.5
Ran check_installed.sh and let it run to completion, no problems.
Issue persists, assistance required. Thank you.

name 'lidar' is not defined

Lidar is not defined even when it is defined.
We have verified the system recognizes it.
We are using the TiM781 lidar.
After playing around we believe it is a read/write issue but could be wrong.

Running the L1_lidar file gave us this error. It is in the same location as the pysicktim file.
The vendor id and product id are also exactly the same.

debian@scuttle:~/basics/pysicktim$ python3 L1_lidar.py Traceback (most recent call last): File "L1_lidar.py", line 48, in <module> lidarData = polarScan(54) File "L1_lidar.py", line 19, in polarScan lidar.scan() #take reading File "/home/debian/basics/pysicktim/pysicktim/pysicktim.py", line 351, in scan send('sRN LMDscandata') File "/home/debian/basics/pysicktim/pysicktim/pysicktim.py", line 196, in send lidar.write(2|usb.ENDPOINT_OUT,"\x02"+cmd+"\x03\0",0) NameError: name 'lidar' is not defined

Cannot SSH via wifi or USB to Beaglebone

We were working with scuttle in Thom 101 and using the latest image scuttle_v1. When powered with the battery pack, the beaglebone network did not show up, and couldn't ssh via cloud9 or putty. While the beaglebone was powered via USB to a laptop and using putty to ssh to the address 192.168.7.2, a connection never occurred and would time out, same for cloud9.

X11 Forwarding from BBB Issue

When trying to ssh using X11 forwarding, we get an error message:
X11 forwarding request failed on channel 0

We have tried to modify the sshd_config file by changing the lines to:
X11Forwarding yes
X11UseLocalhost no

We do not know how to allow X11 forwarding to show the captured frame from OpenCV.

USB Audio Issue

I lose connection from the gamepad and the speaker stops working when I run L3_drive_mt.py with both the USB dongle and a USB audio input device connected to the USB hub.

These are the steps to reproduce this error.

#1). Connect the gamepad dongle and the USB audio to the USB hub and make sure the hub is connected to the BeagleBone.
#2). Run L3_drive_mt.py and check the functionality of the wheel control by moving the joystick. This should work fine.
#3). Press a button, such as button (X), to make SCUTTLE talk. May hear SCUTTLE say something once, but will cause gamepad to stop controlling wheels or send any more commands for speaking.
#4). Will have to open up a new terminal to cancel as this prevents me from stopping the program via ctrl^C.
#5). No error outputs are produced.

folder maintenance (utilize addons folder)

Let's move into the "addons" folder:

  • joystick folder
  • cayenne folder
  • pygame development folder
  • color-tracking folder

Let's also:

  • rename any demo program to be demo_description.py

Servo motor control problem

Using two servos to control a robotic arm. I am currently trying to get one servo running, but as soon as I run the code nothing moves. My code is essentially based off what was provided in this github. I also tried running rc_test_servos too, and it still not move.

I keep on getting the "Installing signal handlers" warning. I have already done the two updates.
sudo apt-get update
sudo apt-get install librobotcontrol

My code is posted below

import python libraries

import time, math
import getopt, sys

import rcpy library

This automatically initizalizes the robotics cape

import rcpy
import rcpy.servo as servo
import rcpy.clock as clock

set state to rcpy.RUNNING

rcpy.set_state(rcpy.RUNNING)

Create servo

clck = clock.Clock(baseservo, 0.02)

try:

# enables all servos
servo.enable()

# start clock
clck.start()

# keep running
while rcpy.get_state() != rcpy.EXITING:

	baseservo.set(1.3)

except KeyboardInterrupt:

pass

finally:

# stop clock
clck.stop()

# disable servos
servo.disable()

# say bye
print("\nBye Beaglebone!")

ADC initialization error?

I am currently just trying to run rc_test_servo. I am testing the code before I plug in a servo. Once I run the code below, this is the error I receive.

debian@scuttle:/var/lib/cloud9$ rc_test_servos -c 1 -p 0.0
ERROR in rc_adc_init, failed to open iio adc interface
Failed to write to 'state.settings'. EROFS: read-only file system, open '/var/lib/cloud9/.c9/state.settings' .

Driving Servos over the Barrel Connector

I tried soldering the DC barrel power to the LiPo connector input which worked to still power the BeagleBone Blue when using only the DC barrel to supply power. When I connected some servos and ran rc_test_servos -s 1.5 the BeagleBone shut off immediately after the command was run. I unpluged and then plugged the beaglebone back in the lights came back on but the beaglebone refused to boot. I tried the SD card in another BeagleBone and the SD still works fine.

Point is we need a different solution for powering the servos from the beaglebone using just the dc barrel plug.

L2_color_target.py producing an error

code will run properly for several iterations of the standalone loop but will fail the process the 'None' value at some point and produce the following error:

Traceback (most recent call last):
File "L2_color_target.py", line 53, in
if target[0] == None:
TypeError: 'NoneType' object is not subscriptable

"x = target[0]" & "if x == None:" were changed in order to attempt to solve the math error, however, it was unsuccessful.

Share skeleton code for Speech-to-Text

Please include:

  1. Libraries installed (or libraries referenced, which we already installed)
  2. Links to the API or documentation
  3. Commands or minimal code to get started
  4. Description of hardware used to accomplish the task

Create video on checking barrel plug voltage

We need a video to show the functions of rc_test within SSH.

Please include instructions for the fewest commands to check the barrel plug voltage, for safety.

Let's mention it can be run also in cloud9

If we need to include a libary (adafruit BBIO?) then we need to mention it's required, even if it was already installed in self_installer.sh

RFID Reader Help

We are trying to use the RFID reader and are not sure what we are doing wrong. We wired the device as shown in the diagram and followed the code setup from the L1_rfid.py file. We then tried to write and read a tag however it does not appear to work and wanted to ask for advice. Below are samples of the code we ran.Thank you

Sample of the Setup code
`debian@scuttle:$ git clone https://github.com/ansarid/MFRC522-python
fatal: destination path 'MFRC522-python' already exists and is not an empty directory.
debian@scuttle:
$ cd MFRC522-python
debian@scuttle:~/MFRC522-python$ sudo python3 setup.py install
/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
running install
running bdist_egg
running egg_info
writing dependency_links to mfrc522.egg-info/dependency_links.txt
writing mfrc522.egg-info/PKG-INFO
writing requirements to mfrc522.egg-info/requires.txt
writing top-level names to mfrc522.egg-info/top_level.txt
reading manifest file 'mfrc522.egg-info/SOURCES.txt'
writing manifest file 'mfrc522.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/mfrc522
copying build/lib/mfrc522/MFRC522.py -> build/bdist.linux-armv7l/egg/mfrc522
copying build/lib/mfrc522/init.py -> build/bdist.linux-armv7l/egg/mfrc522
copying build/lib/mfrc522/SimpleMFRC522.py -> build/bdist.linux-armv7l/egg/mfrc522
byte-compiling build/bdist.linux-armv7l/egg/mfrc522/MFRC522.py to MFRC522.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/mfrc522/init.py to init.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/mfrc522/SimpleMFRC522.py to SimpleMFRC522.cpython-35.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying mfrc522.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying mfrc522.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying mfrc522.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying mfrc522.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying mfrc522.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/mfrc522-0.0.7-py3.5.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing mfrc522-0.0.7-py3.5.egg
Removing /usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg
Copying mfrc522-0.0.7-py3.5.egg to /usr/local/lib/python3.5/dist-packages
mfrc522 0.0.7 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg
Processing dependencies for mfrc522==0.0.7
Searching for spidev==3.4
Best match: spidev 3.4
Processing spidev-3.4-py3.5-linux-armv7l.egg
spidev 3.4 is already the active version in easy-install.pth

Using /usr/local/lib/python3.5/dist-packages/spidev-3.4-py3.5-linux-armv7l.egg
Finished processing dependencies for mfrc522==0.0.7`

Sample of trying to write
debian@scuttle:~/basics$ sudo python3 L1_rfid.py Place RFID on RFID writer. ^CTraceback (most recent call last): File "L1_rfid.py", line 33, in <module> write_rfid("Hello World!") # Write "Hello World!" to RFID File "L1_rfid.py", line 16, in write_rfid reader.write(text) # Write data to RFID File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/SimpleMFRC522.py", line 92, in write File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/SimpleMFRC522.py", line 96, in write_no_block File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/MFRC522.py", line 260, in MFRC522_Request File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/MFRC522.py", line 206, in MFRC522_ToCard File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/MFRC522.py", line 160, in Write_MFRC522 KeyboardInterrupt

Sample of trying to read
debian@scuttle:~/basics$ sudo python3 L1_rfid.py ^CTraceback (most recent call last): File "L1_rfid.py", line 24, in <module> sn, data = read_rfid() # Read card serial number and data and store to sn and data variables File "L1_rfid.py", line 12, in read_rfid id, text = reader.read() # Read RFID Serial Number and Data File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/SimpleMFRC522.py", line 42, in read File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/SimpleMFRC522.py", line 65, in read_no_block File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/MFRC522.py", line 260, in MFRC522_Request File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/MFRC522.py", line 223, in MFRC522_ToCard File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/MFRC522.py", line 175, in ClearBitMask File "/usr/local/lib/python3.5/dist-packages/mfrc522-0.0.7-py3.5.egg/mfrc522/MFRC522.py", line 163, in Read_MFRC522 KeyboardInterrupt

Beagle does not connect to TamuLink on startup (anymore)

Description of Problem

First, I checked internet connectivity and cannot connect to google.

debian@scuttle:~/basics$ ping google.com
ping: google.com: Temporary failure in name resolution

Next, I tried to use connection manager to reconnect to the wifi:

debian@scuttle:~/basics$ sudo connmanctl
[sudo] password for debian:Error getting VPN connections: The name net.connman.vpn was not provided by any .service filesconnmconnmanctl>

Solution found after some troubleshooting:

Request the system to turn off connection manager.

debian@scuttle:~/basics$ sudo service connman stop
[sudo] password for debian:

Request the system to turn on the connection manager:

debian@scuttle:~/basics$ sudo service connman start
(no feedback is given here)

Enter connman and scan wifi again.

connmanctl> scan wifi
Scan completed for wifi

Follow usual steps (show services, turn on agent, and connect).

connmanctl> services
*AO tamulink-wpa         wifi_8030dc035d88_74616d756c696e6b2d777061_managed_ieee8021x
    TAMU_Visitor         wifi_8030dc035d88_54414d555f56697369746f72_managed_none
connmanctl> agent on
Agent registered
connmanctl> connect wifi_8030dc035d88_74616d756c696e6b2d777061_managed_ieee8021x

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.