[Elecraft] W1 Programming???

kevinr kevinr at coho.net
Fri Sep 4 20:57:20 EDT 2020


I just wrote a little code using Posix standards under Ubuntu with g++ 
for my compiler.  Looks like USB is treated as a normal stream of 
characters.  The most difficult part was finding my USB thumb drive in 
the file system.  Under Ubuntu it is in the /media folder.  Once I 
located it I was able to read from it, and write to it, using 
straightforward code.  The W1 wattmeter should react the same way.  
Write a trap to catch the data packet then a little code to parse it 
however you like.  I did not know it would be so simple: open(), read(), 
write(), close().

Since Macs are running Linux, with enhancements, writing code to catch 
the wattmeter's data stream should not be difficult.  I assume you can 
send it commands too.  You will need to determine how a data packet is 
formed but that is part of the fun.

    73 and GL,

        Kevin.  KD5ONS


On 9/4/20 2:46 PM, James Bennett via Elecraft wrote:
> I just ordered the nifty little W1 Wattmeter. I see that it can supply serial data to an external program, and that there is a free download of a Visual Basic program on the Elecraft web site. I use a Mac and a Raspberry Pi and do not have VB on either, nor do I want to. I’m fairly proficient in several other programming languages and am thinking that I might “roll my own”, starting on the Mac.
>
> I know that this is a stretch, but has anyone done this? I know - hahahaha… OK, how about anyone out there who has read serial data (coming over USB with the Elecraft Serial->USB cable? Any pointers or links to documentation on how to do that?
>
> Jim / W6JHB
> ______________________________________________________________
> Elecraft mailing list
> Home: http://mailman.qth.net/mailman/listinfo/elecraft
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:Elecraft at mailman.qth.net
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
> Message delivered to kevinr at coho.net


More information about the Elecraft mailing list