Hardware communication via USB

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10116
Joined: Fri Feb 19, 2010 10:17 am

Hardware communication via USB

Post by richmond62 » Mon Jun 24, 2019 4:35 pm

Personally I'd like to send signals to a Valiant Roamer 2 down a USB cable
as I am the proud owner of this thing.
-
R2.jpg
R2.jpg (5.26 KiB) Viewed 3138 times
-
But as the way these things are explained for Livecode is . . . .

What is needed is a document entitled something like this:

"How to contact a USB port, send signals out through it and
receive signals back."

But, because, despite LiveCode's claims to be HyperCard's successor,
a lot of these possibilities are so obfuscated they have been opaque for years.
Last edited by richmond62 on Tue Jun 25, 2019 6:09 am, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10116
Joined: Fri Feb 19, 2010 10:17 am

Re: Sockets

Post by richmond62 » Mon Jun 24, 2019 4:39 pm

A quote from the "big cheese" of the Valiant Roamer company might help:

"Roamer is going to use the SSDP protocol to declare itself over the Wi-Fi network.
This is one of the industry standards ways of accomplishing this task.

The planned roamer data is going to be sent in json format. This is text based
but has an overall json structure that holds the data. Again this is a standard
way of transferring data. Does LiveCode have a json parser?

I spoke to LiveCode help desk and they told me this is all good."

Maybe he did speak to the LiveCode help desk; but the fact he wrote to me
(suggests a certain level of desperation) suggests that, while they may have
stated "all is good" they were actually of little help indeed.

---

And ALL I want to do is get at the thing down a USB cable.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10116
Joined: Fri Feb 19, 2010 10:17 am

Re: Hardware communication via USB

Post by richmond62 » Wed Jun 26, 2019 10:18 am

Is this a taboo topic?

It is surprising that no-one seems keen to discuss it.

viewtopic.php?f=11&t=21749&hilit=SSDP

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Hardware communication via USB

Post by bogs » Wed Jun 26, 2019 11:16 am

I find it an interesting topic (both this one and the linked one), my problem is I have no information to contribute. For instance, my knowledge of sockets and comms in general in Lc is sorely lacking. I know from previous usb topics you've raised that (I think) Lc treats the hardware like a drive (or a file url), but I don't have anything to really test out comms with except a security camera setup, which of course is not usb.

To use that from linux though, would require me writing an external (the easy part, more or less), then figuring out how to get Lc to get the data and pass it through.

I've made a few attempts at it and came up empty, which tells me my grasp on the subject matter is abysmal to say the least.

It also is not pressing in my case, since I have a long standing workaround which is actually probably better than something I could write. To top if off, I don't think the OSS version includes streaming video from a camera, which would make it an exercise in futility to boot.

I just keep thinking someday I'll get around to it, but I haven't gotten there yet :wink:
Image

Post Reply