Automatically,Capturing,Saving technology Automatically Capturing, Saving and Publishing Serial RS232


Active shredder safety technology for the small office. Shreds 15sheets per pass into 5/32" x 1-1/2" cross-cut particles (Security Level3). Patented SafeSense® Technology stops shredding when hands touch thepaper opening. Designated shredde The electronic cigarette is not new. People who buy electronic cigarette knows that this product has been in the market for years now. Despite some sectors apparently trying to shoot the product down from the shelves, the popularity of elect


This article will describe setting up a system that will utilize a lightweight command line (CLI) install of Linux (Ubuntu in this example) to capture RS232 (serial) information, capture it and upload it to an ftp server.This is useful for applications including data collection from sensors or other serial devices such as amateur packet radio – and will utilize the data on a web site or other remote machine.The process will involve starting the program ‘screen’ and ‘minicom’ when the machine starts up. The ‘screen’ output will be captured to text file. This text file will be sent up to an ftp server using ‘lftp’, scheduled via a ‘cron’ job.This article will not cover installing a command line Linux such as Ubuntu minimal – it is assumed you have a functional system. When the machine starts up, it should start a detached ‘screen’ session, starting minicom (terminal program) within – logging the screen output to file.To install screen and minicom, use: sudo apt-get install screen minicomVerify your minicom settingsRun: sudo minicom -r, and set the default port and clear out the init strings since the startup script runs as root. Ctrl-A o, set to ttyS0, 1200 (or the appropriate other baud rate). Note that I also had to edit sudo nano /etc/minicom/minirc.dfl to get it working properly — even though I did sudo minicom -r — contents of my file:# Machine-generated file – use “minicom -s” to change parameters.pu baudrate 1200pu bits 8pu parity Npu stopbits 1pu mhanguppr port /dev/ttyS0Get screen to auto-start at boot and run minicom:In /etc/init.d, create a startup script: sudo nano /etc/init.d/startHAMcontents:#!/bin/sh/usr/bin/screen -d -m -L /usr/bin/minicommodify the file so it will run at startup:sudo chmod +x /etc/init.d/startHAMsudo update-rc.d startHAM defaults 80–I could not get logging to work by passing “-L”, so edit the file: sudo nano /etc/screenrcadd the lines:log onIt is recommended your reboot after editing these files. After you reboot you can see if it is working by typing sudo screen -r to resume the screen session – you should be in minicom and should be able to see/type to your TNC (or device).If that works, you can check the log file – mine is saved to the root. nano /screenlog.0You can tail it to watch in real time anything written to the log: tail -f /screenlog.0You may want to sudo screen -r, press return / mheard, etc. (for a packet modem) to generate some text, then ctrl-a d (detach) and then nano /screenlog.0 and go to the end – sometimes the control characters may hide output, but it is really there.Now you have screen and minicom starting at startup and all the screen output is being save to the screenlog.0 file.Uploading the screenlog.0 file to your web site ftp server:The program lftp can be used to synchronize files to an ftp server (your web host). To install lftp, type: sudo apt-get install lftpCreate an lftp script file “SyncHAM.txt” in your home directory: sudo nano SyncHAM.txtContents:open ftp: //username:[email protected] ftp:ssl-allow nomput -O /public_html/myhostbasepath /screenlog.0-O is the base path on the web host, after that is the path to the file to be sent (screenlog).note the ssl-allow no is optional if you host does not support ssl, the -R means reverse – send the file UP to ftp.To test it, type sudo lftp SyncHAM.txtSetup Cron Jobedit the file: sudo nano /etc/cron.daily/hamsynccontents:#!/bin/shlftp -f /home/cmate/SyncHAM.txtecho “done with SyncHAM.txt”make it executable:sudo chmod +x hamsyncBe sure to reboot the machine. You should now have a functional system to capture the serial data and upload it daily to the ftp server.Check out http://www.n1van.com for more electronics and amateur radio related information.

Automatically,Capturing,Saving

technology

Maximizing Your Experience with Patent Attorneys

When you have a product or service that you want to get patent rights on, you will need to use a patent attorney. This is the only way to make sure that no one else is stealing your idea from you.But there is one thing that you need to know ...

technology

How To Uninstall Tuneup Utilities On Windows

Tuneup utilities for windows 10 were developed by AVG to make the computer accelerate faster than ever before by cleaning up the cache files and the undesired files. However the concept didn't work well and users are trying to uninstall thi ...

technology

RPA: What Makes it Crucial for Software Testing

Automation has the potential to assist human beings in more ways than one could imagine. However, most of these applications for automation have been in the context of physical activity or some such. But what many people do not know yet is t ...

technology

HRMS Mobile Apps Drive Enterprise Mobility Today

The scenario in Enterprises is changing rapidly across the globe, with more and more Enterprises embracing the concept of enterprise mobility.A study shows that 71% of enterprises count mobility as a top priority to stay competitive. Wire19A ...

technology

How to Kill The Exploiter Orb in Warframe

Source: How to Kill The Exploiter Orb in WarframeExploiter Orb is the toughest boss in game that is hard to find and hard to kill. That is why an essential guide needs to kill him to earn huge rewards. Warframe has numerous missions that pl ...

technology

Which CMS is Better - WordPress vs Drupal?

WordPress and Drupal are the two widely used and best cms for developers all over the world. In order to create a website for your business, it is highly required to choose the right CMS platform that makes the best and attractive website.. ...