TOP
SSV SOFTWARE SYSTEMS REGISTER  REGISTER
Log in to check your private messages  Log in to check your private messages
START FAQ SEARCH MITGLIEDER PROFILE  Log in 
SSV-Forum
COM 3 nutzen

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9265
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
mage



Joined: 19 Jan 2012
Posts: 2

PostPosted: 20.01.2012, 10:36    Post subject: COM 3 nutzen Reply with quote

Hallo,

ich verwende das DNPSK30 und möchte den COM3 nutzen. Ich öffne ihn im Prog. genauso wie den COM2 ttyAT1 mit

int meinPort;
meinPort = open("/dev/ttyAT2",O_RDWR);

dies gelingt leider nicht, obwohl sich der ttyAT2 im Verzeichniss befindet.

Meine Fragen:
1. Was muss ich tun um den Port im Programm nutzen zu können?
2. Wie schalte ich ihn auf die PIns B0-B3 des EVA6-Boards?

Gruß
mage
Back to top
View user's profile Send private message
mage



Joined: 19 Jan 2012
Posts: 2

PostPosted: 02.02.2012, 16:03    Post subject: lösung Reply with quote

in ssvhwcnf-dnp9265.bin den com 3 anpassen und neu laden siehe

http://www.ssv-comm.de/forum/viewtopic.php?t=963

SsVhW1 hwtype=0 com1=1 com1rtscts=1 com2=1 com3=1 com3rtscts=1 nor=1 usbhost1=1 mmc1=1 i2c=0

### SSVHWCONFIG FOR LINUX KERNEL 9263/1 - DNP/9265 Version 1.0 ###

der Port ttyAT2 ist nun im Ordner dev/

dann Treiber anpassen

Code:
// hier Port B als serielle freischalten
     
   at91_set_B_periph(AT91_PIN_PD2, 0);   // PIN B0   
   at91_set_B_periph(AT91_PIN_PD3, 0);   // PIN B1
   at91_set_B_periph(AT91_PIN_PD5, 0);   // PIN B2
   at91_set_B_periph(AT91_PIN_PD6, 0);   // PIN B3


jetzt kann auf com3 gesendet und empfangen werden

viel spaß
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9265 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV SOFTWARE SYSTEMS

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2024 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015