Check if UART1 is enabled on BeagleBone Black / Debian Programming Software Development by cjohnweb … is the code to enable UART1 with Python on the BeagleBone Black Rev. C running Debian: #!/usr/bin/python # Enable UART1 so… Debian 7 Wheezy - LS not acting as expected Programming Software Development by cjohnweb …Interface over SSH - on Debian 7 Wheezy running on a BeagleBone Black Rev B6 - and I am running into an unexpected problem… for your help, suggestions and time!! From SSH: root@beaglebone:~/folder# ls -halt total 12K drwxr-xr-x 3 root…6 root root 4.0K Aug 15 17:33 .. root@beaglebone:~/folder# ls -l total 4 drwxr-xr-x 2 root… Advice on web interface for sensor data? Programming Software Development by rzeune … expert advice on putting an app together. I have a Beaglebone Black (BBB, a credit card sized Linux platform) that collects bursts… Can't find information on socket.recv(bufsize[, flags]) Programming Software Development by cjohnweb … work I am taking on some development stuff on the beaglebone black and I have to learn Python. I've had a… Python CPU Performance Analysis Programming Software Development by cjohnweb … with a similar web interface. The unit runs on a beaglebone black rev b6, which runs Debian 7 wheezy. I'm basically… Re: Debian 7 Wheezy - LS not acting as expected Programming Software Development by cjohnweb I missed the last line, Line 19: `root@beaglebone:~/folder#` Re: Debian 7 Wheezy - LS not acting as expected Programming Software Development by Taywin Do you have any file inside the directory? You didn't try to access the directory at all. I have found only a weird case when the system runs out of inodes. Maybe you need to look into increasing the inodes number? Re: Debian 7 Wheezy - LS not acting as expected Programming Software Development by rubberman Leave off the trailing '/'. IE: ls -l python* Assuming that the directory is not a soft-link, then you will see the contents of the directory (or directories). Re: Debian 7 Wheezy - LS not acting as expected Programming Software Development by cjohnweb Taywin, I did not have files inside the directory! That was the issue - it was working but not as I expected: it was trying to list the contents of the pythonversion directory, since it was empty, I got nothing. (And sorry, it took me a couple weeks to get back to your guys here.) That was it - I was trying to list the contents of the python\* … Re: Advice on web interface for sensor data? Programming Software Development by Ewald Horn I've had tremendous success using a bit of a cheat - I have a Python script that fires and generates HTML pages that are served on a Raspberry Pi (very similar to your setup) that includes JSON data required to draw charts with http://www.chartjs.org/ - This job fires every few minutes, and I have an auto-refresh directive on the pages, so they … Re: Advice on web interface for sensor data? Programming Software Development by rzeune @Ewald - I'm pretty shallow on Python, javascript, and have only a little experience with Apache running on a RPi, but what you describe sounds like a nearly perfect fit. Charts.org is a gem that I hadn't seen before. Thanks for pointing me in a good direction. Is there any chance you could share the Python script or at least some snippets to get … Re: Advice on web interface for sensor data? Programming Software Development by Ewald Horn @Ray - Sure thing, what I have is a cron job that just runs a simple Python script (foundation source at http://www.decalage.info/fr/python/html) - the tricky part is of course reading the sensor data. What format do you output this data, in CSV perhaps? I am happy to modify my code and put it here, I just need to remove a few bits that the … Re: Advice on web interface for sensor data? Programming Software Development by rzeune @Ewald - the sensor is an accelerometer connected using SPI. I'm waiting on it to arrive, but it is capable of generating an interrupt and automatically starting data collection when motion occurs. So I may be able to collect the block of data from a Python script and write it to a RAM-based file. Then I would overwrite the HTML file with new data … Re: Advice on web interface for sensor data? Programming Software Development by Ewald Horn Ah, that is interesting. In that case, you might not need to go the Python route. Basically, any programming language that you are familiar with will do the job, as long as it can output text to a file. Am I correct in understanding that it supports Node JS? If that is so, then you can actually write a Node JS server that will read the data from … Re: Advice on web interface for sensor data? Programming Software Development by rzeune Ewald - this is a training excercise for me, so I'll probably do multiple versions. I could certainly do a C++ data collection, but first I have to learn how to set up the I/O on BBB using the device tree, then set up a good Linux/BBB development environment. But there's already a Python library for DIO and SPI, and I want to learn Python anyway so… Re: Advice on web interface for sensor data? Programming Software Development by Ewald Horn Ah, make no mistake - Python is often more than fast enough, in fact, I've done a bit of system monitoring, and even realtime payment transaction programming in it, and I was surprised at how easy it was to code, and how efficient the code performed. Well, given that there's already a Python library, I think it's a cool idea to get to know Python … Re: Advice on web interface for sensor data? Programming Software Development by rzeune Ewald - my hardware should be here next week and I will practice Python in the meantime (as time permits). Thanks for your insight; I may post again when I have the data collection side working. One additional Python question: can Python provide multiple 'threads', so that I could service multiple clients and collect data concurrently? Thanks, … Re: Can't find information on socket.recv(bufsize[, flags]) Programming Software Development by Gribouillis In CPython, `Socket.recv()` is implemented by calling the C function ssize_t recv(int sockfd, void *buf, size_t len, int flags); You can see this by downloading the python source code and looking into `socketmodule.c`, or online [here](https://hg.python.org/cpython/file/9c35973829e6/Modules/socketmodule.c). Before calling the C function, … Re: Python CPU Performance Analysis Programming Software Development by vegaseat On first glance look at the items with the highest tottime values. Then check the number of calls and the percall time. Remember that function calls are expensive because of the overhead.