vault backup: 2024-08-26 16:27:34

This commit is contained in:
Dane Sabo 2024-08-26 16:27:34 -04:00
parent bc46e00820
commit 44ccc7c0a7
3 changed files with 64 additions and 13 deletions

View File

@ -111,7 +111,8 @@
"Malware": 99,
"DGC_ANNOYANCE_TAG": 100,
"ME2016": 101,
"python": 102
"python": 102,
"beaglebone": 103
},
"_version": 3
}

View File

@ -13,13 +13,30 @@
"state": {
"type": "markdown",
"state": {
"file": "6. Researching Techniques/Setting up a virtual python environment (venv).md",
"file": "6. Researching Techniques/Learning How to Use Github.md",
"mode": "source",
"source": false
}
}
},
{
"id": "9d764341780d405b",
"type": "leaf",
"state": {
"type": "full-calendar-view",
"state": {}
}
},
{
"id": "d0de827fb7842328",
"type": "leaf",
"state": {
"type": "graph",
"state": {}
}
}
]
],
"currentTab": 2
}
],
"direction": "vertical"
@ -85,7 +102,6 @@
"state": {
"type": "backlink",
"state": {
"file": "6. Researching Techniques/Setting up a virtual python environment (venv).md",
"collapseAll": true,
"extraContext": false,
"sortOrder": "alphabetical",
@ -102,7 +118,6 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "6. Researching Techniques/Setting up a virtual python environment (venv).md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
@ -124,9 +139,7 @@
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "6. Researching Techniques/Setting up a virtual python environment (venv).md"
}
"state": {}
}
}
],
@ -149,16 +162,17 @@
"obsidian-full-calendar:Open Full Calendar": false
}
},
"active": "a14e8baae9ae45e1",
"active": "d0de827fb7842328",
"lastOpenFiles": [
"900. Calendars/2. Research/2024-08-26 Fighting with the BeagleBone.md",
"6. Researching Techniques/Learning How to Use Github.md",
"6. Researching Techniques/Setting up Neovim for Python.md",
"6. Researching Techniques/Setting up a virtual python environment (venv).md",
"1. Daily Notes/8. August/2024-08-26.md",
"301. ME 2016 - Nonlinear Dynamical System s1/2024-08-26 Python Introduction.md",
"302. NUCE 2100/2024-08-27 Introduction.md",
"Random things I found that I should look into.md",
"99. Getting Used to Obsidian/Calendar for Obsidian.md",
"6. Researching Techniques/Setting up Neovim for Python.md",
"6. Researching Techniques/Setting up a virtual python environment (venv).md",
"1. Daily Notes/8. August/2024-08-23.md",
"Untitled",
"900. Calendars/2. Research/(Every W) HAIS Journal Club.md",
@ -185,7 +199,6 @@
"1000. Templates/New Note Template.md",
"Notes at.md",
"1. Daily Notes/8. August/2024-08-21.md",
"2. Cole Group Meeting Notes/Weekly Note 2024-08-21.md",
"2. Cole Group Meeting Notes/Weekly Note 2024-08-14.md"
"2. Cole Group Meeting Notes/Weekly Note 2024-08-21.md"
]
}

View File

@ -0,0 +1,37 @@
---
title: Fighting with the BeagleBone
allDay: false
startTime: 14:15
endTime: 16:30
date: 2024-08-26
completed: null
---
#beaglebone #hardware-in-the-loop-HIL
[[2. pymodbus On the BeagleBone]]
I spent some time trying to figure out virtual environments on the beaglebone and get the pymodbus scripts running. I was half successful. The virtual environments are now working as expected. I needed to use the requirements.txt method instead of pushing the whole virtual environment. Somehow that leaked the global packages into it. 🤷
For some reason the beaglebone is having trouble actually connecting. I'm running the server on the bone, while running the client on the PC. The client is just saying
```bash
danesabo@danesabo-laptop:~/Projects/beaglebone$ python3 simple_client.py
Setting up...
Connecting to server...
Connection to (192.168.6.2, 5020) failed: [Errno 111] Connection refused
Traceback (most recent call last):
File "/home/danesabo/Projects/beaglebone/simple_client.py", line 25, in <module>
assert client.connected
^^^^^^^^^^^^^^^^
AssertionError
```
While the server is outputting:
```bash
(venv) danesabo@BeagleBone:~/beaglebone$ python3 simple_server.py
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:pymodbus.logging:Awaiting connections server_listener
WARNING:pymodbus.logging:Failed to start server [Errno 99] error while attempting to bind on address ('192.168.6.1', 5020): cannot assign requested address
INFO:pymodbus.logging:Server listening.
```
I need to dig into why this is happening. I'm not really sure why. Either way, I suspect the default IP route might have something to do with it. Maybe there is some way I can explicitly define a network interface.