Search found 92 matches
- Monday 2nd January 2017 3:17am
- Forum: Lounge
- Topic: Technical Support Request Form
- Replies: 2
- Views: 6989
Technical Support Request Form
Technical Support Request Form Due to a change in the company's operating procedures, all technical support requests will need to be initiated by first filling in the form below. When completed, place into the Information Management inbox (also known as the wastebasket). COMPUTER PROBLEM SELF-REPOR...
- Wednesday 28th December 2016 6:16pm
- Forum: General
- Topic: Reading a USB stream from a DYMO M10 scales
- Replies: 17
- Views: 24563
Re: Reading a USB stream from a DYMO M10 scales
I know that gb.pcre does what I did, I just haven't figured out how to use it.
\d doesn't work with grep, you have to use [0-9].
\d doesn't work with grep, you have to use [0-9].
- Tuesday 27th December 2016 12:35am
- Forum: General
- Topic: Reading a USB stream from a DYMO M10 scales
- Replies: 17
- Views: 24563
Re: Reading a USB stream from a DYMO M10 scales
I decided to try to do this the right way so hidraw file numbers higher than 9 would be found, so I've spent the past 45 minutes trying to understand how the gb.pcre function works. Since I couldn't understand gb.pcre, I decided to go back to the basics and just add an additional grep to the shell c...
- Monday 26th December 2016 6:50pm
- Forum: General
- Topic: Reading a USB stream from a DYMO M10 scales
- Replies: 17
- Views: 24563
Re: Reading a USB stream from a DYMO M10 scales
Ah, I see what you're referring to now. In that case, you will need to modify the code to fit your situation. :P ;) I doubt I'll ever have more than 10 hid devices attached, so this works for me. The computer this will eventually be used on is a dedicated pc for my inventory system. There's probably...
- Monday 26th December 2016 3:48am
- Forum: General
- Topic: Close a process
- Replies: 2
- Views: 5379
Re: Close a process
From my understanding, 'Close' only closes the stream, not the process. To end a process use "Try hProcess.Kill".
- Monday 26th December 2016 3:13am
- Forum: General
- Topic: Reading a USB stream from a DYMO M10 scales
- Replies: 17
- Views: 24563
Re: Reading a USB stream from a DYMO M10 scales
I've set up sudo to let my user be root for certain commands. Not sure what you are referring to with the second question, so I'll answer it this way... If you grep the device's name (eg: "dymo" in my case) and extract the hid device name (eg: "hidraw3" in my case) and feed that ...
- Saturday 24th December 2016 4:01am
- Forum: General
- Topic: Reading a USB stream from a DYMO M10 scales
- Replies: 17
- Views: 24563
Re: Reading a USB stream from a DYMO M10 scales
I've change the subject to better fit what this thread is about. I was able to read (and decode) the USB stream from the DYMO M10 scale using Gambas and a couple shell commands. During this exercise I've learned the dymo scales uses a raw stream to output an array of 6 elements. After finding a Perl...
- Friday 23rd December 2016 9:42am
- Forum: General
- Topic: Reading a USB stream from a DYMO M10 scales
- Replies: 17
- Views: 24563
Re: Reading a hiddev stream
I discovered using a _kill() sub works a treat. I can put whatever is needed in there to alert the user the scales is off-line.
I have to put this project to the side for awhile again. Next go around I should have enough to work this into my inventory project.
I have to put this project to the side for awhile again. Next go around I should have enough to work this into my inventory project.
- Friday 23rd December 2016 9:07am
- Forum: General
- Topic: Reading a USB stream from a DYMO M10 scales
- Replies: 17
- Views: 24563
Re: Reading a hiddev stream
Putting the stream into an array was much easier than I was expecting.
Since the scale has an auto-off after 3 minutes idle time, I need to test for a lack of stream so I can display a message. Is there a way to test for a stream?
Since the scale has an auto-off after 3 minutes idle time, I need to test for a lack of stream so I can display a message. Is there a way to test for a stream?
- Friday 23rd December 2016 5:57am
- Forum: General
- Topic: Reading a USB stream from a DYMO M10 scales
- Replies: 17
- Views: 24563
Re: Reading a hiddev stream
I've picked this up again. I found a perl script tonight that got me pointed in the right direction. Now to get the scales working with Gambas... I made 2 changes to cogier's code (marked as comment in the code): Public Sub Form_Open() hProc = Exec ["sudo", "cat", "/dev/hidr...