Go to Post Maybe this thread should be re-titled "Waiting impatiently for the 2011 hint!" since having over 100 posts doesn't seem very patient. - Joe Ross [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2017, 11:23
Michael Collins Michael Collins is offline
Registered User
FRC #4485 (Tribe Tech)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2015
Location: Danville, Indiana
Posts: 1
Michael Collins is an unknown quantity at this point
Help with Serial on RoboRio

We are trying to receive data from a Raspberry Pi 3 over the on-board serial port on the RoboRio. I know that the pi is sending data over serial because I have connected to it through a COM port with putty. This is probably just a case of me not knowing how to use the SerialPort class included in WPILib but any resources I have found do not seem to work.

Any source code using the SerialPort class or other methods would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2017, 12:35
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,286
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Help with Serial on RoboRio

Have you confirmed that you can Transmit with the RS232 Port on the RoboRio?

Did you check that you are crossing the TX/RX lines?

We are using Network Tables over Ethernet to talk to the Pi.
__________________

Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2017, 22:54
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Texas
Posts: 64
mshafer1 is an unknown quantity at this point
Re: Help with Serial on RoboRio

Like rich2202 said, you need to swap RX and TX between destination and target (you may have already done, it's just such a common pitfall with UART, that it is worth mentioning again.).

Pin 8 should be connected to the middle pin on the 232 port, Pin 9 should be connected connected to the inside pin on the 232 port (with the outside pin being ground).

Start with trying the attached vi - it should just read whatever the pi sends and print it to the control where you can see it.

Private message or email me and I'll send you my contact info, we should be able to get on the phone and get this figured out.

here is a link to a project I did that read a ps3 controller on the host computer and built up a string of commands to send over a comm port to an arduino (there's a lot of overhead, and I directly used the Visa library - what the Serial palette calls into - so there's not a lot of obvious parallel, but this is also not the only project I've done with LabVIEW talking over serial, just the most relevant, since I had communications going both ways).
Attached Files
File Type: vi rs232Example.vi (14.0 KB, 4 views)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi