Jump to content


Photo

Setup problem latest raspian


  • Please log in to reply
5 replies to this topic

#1 marcello

marcello

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 23 November 2015 - 09:06 AM

I used to have a working RS485 Shield on my raspberry. however when I try to setup this same shield on the latest raspian I have problems:

 

from the guide: http://learn.linkspr...shield-for-rpi/

 

I am supposed to install python (which is already installed by default)

sudo apt-get install python-pip

 

 

then sudo pip install wiringpi

 

There I get an error: python.h not found ?

 

 

 

Finally:

Disable log in from the serial port:

$ sudo nano / etc / inittab

and comment out ” T0: 23: respawn :/ sbin / getty-L ​​ttyAMA0 115200 vt100″

 

--> /etc/inittab is no longer present on latest raspian ?? Is this really required ?

 

I can communicate thru the RS485 port but after 2-3 serial commands it does not work anymore ?

 

Any advice ?



#2 youkee

youkee

    Advanced Member

  • Administrators
  • 237 posts

Posted 23 November 2015 - 10:25 AM

You need to install python-dev before wiringpi, try the following commands:

sudo apt-get install python-dev

sudo pip install wiringpi

 

Hope it works!



#3 marcello

marcello

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 23 November 2015 - 11:21 AM

Yes this worked, but what about:

 

and comment out ” T0: 23: respawn :/ sbin / getty-L ​​ttyAMA0 115200 vt100″

 

--> /etc/inittab is no longer present on latest raspian ?? Is this really required ?

 

 

I can send and receive about 3-4 times then it somehow does not receive anymore



#4 marcello

marcello

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 23 November 2015 - 02:25 PM

It's not working on Jessy but it worked on wheezy. Ok it turned out that I had to update to the newer rs485 Shield.

The older (https://www.sparkfun...s/retired/12826) is a retired Product (and seems not to work). the new shield works now



#5 youkee

youkee

    Advanced Member

  • Administrators
  • 237 posts

Posted 24 November 2015 - 12:19 AM

Comment out ” T0: 23: respawn :/ sbin / getty-L ​​ttyAMA0 115200 vt100", it means turn on the UART of raspberry.

 

Sorry, I have no idea about difference between Jessy and Wheezy, maybe this post will help you:

 

http://www.hobbytron...-pi-serial-port



#6 AnitaSef

AnitaSef

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 23 December 2015 - 09:17 AM

Приглашаю всех любознательных мужчин в персональный видео чат. Я прямо сейчас вот тут: http://runetki.com/258690 Осуществлю любые твои скрытые пожеания прямо в онлайн эфирею. Мне нравится когда на меня смотрят без одежды. Я могу станцевать, рассказать анекдот, потанцевать для тебя, и многое другое. Мы можем очень приятно провести время. Общаюсь на любые самые разнообразные темы. Если захочешь, по окончании разговора можешь вознаградить меня за потраченное на тебя время копеечками из твоего кошелька. Давайте дружить.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users