Re: [Elecraft] W1 Programming???

2020-09-06 Thread David Woolley
When you are interacting with a USB thumb drive, you are normally 
interacting with a USB mass storage class device, not with raw USB. 
Most cheap USB boltons to hardware are done with the communications 
class, and emulate an asynchronous serial port (although some may use 
the human interface device (mouse/keyboard) class.


As such, the ability to write code for the thumb drive doesn't mean you 
can use the same code on the wattmeter, even though the chances are that 
the USB side can be treated as though it were something else.


--
David Woolley
Owner K2 06123.

On 05/09/2020 01:57, kevinr wrote:
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.



__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@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 arch...@mail-archive.com 

Re: [Elecraft] W1 Programming???

2020-09-06 Thread Lou Voerman W2ROW
I have successfully used an Arduino to talk to a W2. Like Bruce I could not
get it to work with SoftwareSerial, only the hardware Serial port would
work. I have it working with an Uno, a Nano and a Mega all using the Serial
port. Lest you are tempted to use the hardware serial ports Serial1, Serial2
or Serial3 on the Mega, they will also will not work.

I did not test with a W1 but based on what has been described here I expect
it behaves the same as the W2.

Unfortunately the same Serial port is used to download the program via USB,
so you need to disconnect the W2 (or W1) when doing downloads.

73,
Lou   W2ROW




--
Sent from: http://elecraft.365791.n2.nabble.com/
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@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 arch...@mail-archive.com 


Re: [Elecraft] W1 Programming???

2020-09-05 Thread K1FFX
And for trying out W1 commands and seeing what the expected response is, it's
handy to
use a terminal emulator that will talk over a serial (or serial via USB)
port.  I use 
putty for this purpose (and actually never built a program ... I just fire
up putty
when I want to get a more precise power readout from the W1).

I played around with trying to build an Arduino version .. thought it would
be fun
to display W1 output on an LCD ... I used SoftwareSerial on the Arduino, but
never
succeeded in getting it to talk to the W1.

-   Bruce K1FFX




-
Bruce Rosen
K1FFX
K2/100 6982 KSB2 KAT100-1 KAF2 KIO2

--
Sent from: http://elecraft.365791.n2.nabble.com/
__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@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 arch...@mail-archive.com 


Re: [Elecraft] W1 Programming???

2020-09-05 Thread James Bennett via Elecraft
Guys - thanks for the replies! I might have enough info to get started. That 
is, after the W1 gets here from Watsonville and I get it soldered together. 
I’ll be doing it in Xojo (based on Real Basic) and can port it to the Rpi 
and/or Linux should I ever got it working.

73 & thanks, Jim / W6JHB

> On Sep 4, 2020, at 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@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 w6...@me.com

__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@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 arch...@mail-archive.com 

Re: [Elecraft] W1 Programming???

2020-09-04 Thread kevinr
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@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 kev...@coho.net

__
Elecraft mailing list
Home: http://mailman.qth.net/mailman/listinfo/elecraft
Help: http://mailman.qth.net/mmfaq.htm
Post: mailto:Elecraft@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 arch...@mail-archive.com 

[Elecraft] W1 Programming???

2020-09-04 Thread James Bennett via Elecraft
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@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 arch...@mail-archive.com