I want to transfer some data from a spider to my raspberry pi via agadgeteer cable.
I have no USB Host Module but an outdated “Null Modem” module. I want to send the data via Serialport but I do something completly wrong.
Is there any Sample connecting 2 devices via Gadgeteer Cables ?
I’m using .net MF 4.3 on FEZ spider/raptor
and latest Windows 10 build on the Raspberry Pi 2
You won’t be able to connect 2 devices with a Gadgeteer cable directly as you need to arrange for the TX and RX to be swapped over. If you can use 2 breakouts, one on each end, you can do this.
Once you have this, just do a normal SerialPort to link each of them and use your own protocol to connect them up.
What sort of data do you need to pass back and forth? If you are talking about a few bytes etc, have a look at the Modbus library in Codeshare as this will make things work without any amount of hard work creating your own protocol etc. Make one a Slave and the other a Master. Now you can pass data either way, up to 256 bytes at a time.
I use the “Null Modem” Module to Swap TX and RX this works fine.
Data goes only in one direction from theSpider to the Raspberry Pi.
I have a lot of sensors connected to the spider and use a very simple binary format to send the data to the Pi. I think I have a working solution but I have to do some additional tests it If everything works fine I’ll post it here.