Serial port possibilities

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
isahunter
Posts: 4
Joined: Tue Nov 27, 2012 10:27 pm

Serial port possibilities

Post by isahunter »

Hi this is my firts post :) my name is isaac i am developer and i wanna know if is possible control (fly) the multiwii why a serial port.
i have great ideas using this :P


thanks for looking at this post and a response would be great

regards

User avatar
dramida
Posts: 473
Joined: Mon Feb 28, 2011 12:58 pm
Location: Bucharest
Contact:

Re: Serial port possibilities

Post by dramida »

Welcome aboard Isac. You can use #define rcserial option in config.h to enable serial control over MWC.

kataventos
Posts: 702
Joined: Sun Aug 28, 2011 8:14 pm
Contact:

Re: Serial port possibilities

Post by kataventos »

isahunter wrote:Hi this is my firts post :) my name is isaac i am developer and i wanna know if is possible control (fly) the multiwii why a serial port.
i have great ideas using this :P


thanks for looking at this post and a response would be great

regards


Yes, like dramida said... and that gave me another idea!
Please see: viewtopic.php?f=8&t=2789

With that idea I may think in bypassing the FRSky... and go to another way to control my drone.

isahunter
Posts: 4
Joined: Tue Nov 27, 2012 10:27 pm

Re: Serial port possibilities

Post by isahunter »

thanks for the reply, i want develop a autonomous drone :P

User avatar
dramida
Posts: 473
Joined: Mon Feb 28, 2011 12:58 pm
Location: Bucharest
Contact:

Re: Serial port possibilities

Post by dramida »

Multiwii is an open source project witch reach its maturity. It integrates all sensors you need for autonomous navigation. RIght now MWC is on the verge of Waypoint navigation through telemetry. You can contribute to that.

kataventos
Posts: 702
Joined: Sun Aug 28, 2011 8:14 pm
Contact:

Re: Serial port possibilities

Post by kataventos »

dramida wrote:Multiwii is an open source project witch reach its maturity. It integrates all sensors you need for autonomous navigation. RIght now MWC is on the verge of Waypoint navigation through telemetry. You can contribute to that.

+1

Eric
Posts: 38
Joined: Thu Nov 08, 2012 7:08 am

Serial port possibilities

Post by Eric »

I am currently control my quad with an iPhone though WiFi.
An TPLINK WR703N which is only 36g was connected to the serial port.
The tplink router is flash to openwrt, runs as a hotspot, connect its serial port to Arduino.
Rc command currently sent as 25hz.

isahunter
Posts: 4
Joined: Tue Nov 27, 2012 10:27 pm

Re: Serial port possibilities

Post by isahunter »

Eric wrote:I am currently control my quad with an iPhone though WiFi.
An TPLINK WR703N which is only 36g was connected to the serial port.
The tplink router is flash to openwrt, runs as a hotspot, connect its serial port to Arduino.
Rc command currently sent as 25hz.



Really? sounds great especially for the value :P I think the serial port and the drones have many things to say.

Eric
Posts: 38
Joined: Thu Nov 08, 2012 7:08 am

Serial port possibilities

Post by Eric »

ImageUploadedByTapatalk1354072053.799524.jpg
It's ok to send RC in 50hz.
I changed the serial.ino a bit to save serial bandwidth.
Adding a new MSP_SET_RAW_RC_REPEAT. When no channel changes, this MSG will be sent. And no ack will be sent for this MSG.

All MSP_SET_RAW_RC will be ack'ed so we do not miss channel data.

115200 is enough, we can do simple math to calc the bandwidth required.

By the way, to use serial instead of RX, we get six more digital port to connect sonar and optical sensor. (my setup)

The router has a USB port, we can use it to connect gps or webcam.

Mine connects a webcam, and stream 720p video to iPhone.

Sounds good?

isahunter
Posts: 4
Joined: Tue Nov 27, 2012 10:27 pm

Re: Serial port possibilities

Post by isahunter »

I find it awesome :O , but it's different from what i want to develop. but the use of the serial port is correct and gives me some extra ideas: P

qube
Posts: 6
Joined: Thu May 16, 2013 10:21 am

Re: Serial port possibilities

Post by qube »

Eric wrote:
ImageUploadedByTapatalk1354072053.799524.jpg
It's ok to send RC in 50hz.
I changed the serial.ino a bit to save serial bandwidth.
Adding a new MSP_SET_RAW_RC_REPEAT. When no channel changes, this MSG will be sent. And no ack will be sent for this MSG.

All MSP_SET_RAW_RC will be ack'ed so we do not miss channel data.

115200 is enough, we can do simple math to calc the bandwidth required.

By the way, to use serial instead of RX, we get six more digital port to connect sonar and optical sensor. (my setup)

The router has a USB port, we can use it to connect gps or webcam.

Mine connects a webcam, and stream 720p video to iPhone.

Sounds good?


Eric - what kind of Software are you using on the iPhone-Side? I have searched all over for an App for Jailbroken Phones which makes use of the serial port in the dock-connector but could not find any. Would be great to try your solution.

Cerber
Posts: 1
Joined: Sun Sep 29, 2013 2:34 pm

Re: Serial port possibilities

Post by Cerber »

Hello, everyone.

I'm also trying to control multiwii via serial. I have an openwrt router and I want to send RC data via USB.
Here is mentioned about RCSERIAL, but I couldn't find any using of it in latests versions (2.2, pre 2.3). Maybe I need some older version?
But I found that serial reading is used under TEENSY20 and SBUS. So I can enable both to read from serial port, but I don't know how to generate correct s-bus message.

crashlander
Posts: 506
Joined: Thu May 05, 2011 8:13 am
Location: Slovenia

Re: Serial port possibilities

Post by crashlander »

RCSERIAL is always on in newer _shared (developer) on all serial ports (1 on ProMini, 2 on Leonardo , 4 on Mega).
So the only thing to do is to send properly formed MSP_SET_RAW_RC commands to it and they will override standard RC system.

Regards
Andrej

qube
Posts: 6
Joined: Thu May 16, 2013 10:21 am

Re: Serial port possibilities

Post by qube »

Alright - since I never got any answer, neither in this thread nor from "Eric" over direct message, I am assuming, that a control of Multiwii via an iOS-App (As schon in the pictures by Eric on page 1 of this thread) is not possible, has not been done before and therefore seems to be impossible.

Eric, if you are reading this thread and indeed have an app which works - please let me know.

Thank you.

arne

Post Reply