How to use the 4 serial ports?
Hi!
I've a EM1000-EV-01 board and I would like to know if is it possible to use the four serial ports available on the board. I've already tried but I can only work with serial port 0.
The other problem I'm having is that I just can send data from Ethernet to serial port 0 and not from serial port to ethernet...I'm using sock.redir and ser.redir.
Regards
I've a EM1000-EV-01 board and I would like to know if is it possible to use the four serial ports available on the board. I've already tried but I can only work with serial port 0.
The other problem I'm having is that I just can send data from Ethernet to serial port 0 and not from serial port to ethernet...I'm using sock.redir and ser.redir.
Regards
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company marked this problem solved.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Thanks for the asnwer.
I've forgot to say that I've already used ser.num=x to try other serial ports...but I'm unable to communicate through serial ports, only with serial port 0.
I've readed the docs but I cannot find anything that solved the problem... -
Inappropriate?ENTEK Elektronik company designed the evaluation Kit for EM1000. We have not seen such problem while using it?
Could you use the sample source code in this subject? Because it is working.
I’m happy
-
Inappropriate?I've used the source code available on resources (Tibbo site) but I can't get it to work...
The sample source code you say, where can I get it?
Thanks!
I’m confident
-
Inappropriate?Carlos remeber that you have to assign buffer pairs to every port you need to open.
If you assign only one pair of buffers it won't work for all the others.
Also can you post some of your code related to your serial ports? It should help us with your question. -
Inappropriate?I use this code:
sub on_sys_init
ser.num=1
ser.flowcontrol=DISABLED
ser.baudrate=ser.div9600/(19200/9600)
ser.enabled=NO
ser.mode=PL_SER_MODE_UART
ser.rxbuffrq(4)
ser.txbuffrq(4)
sys.buffalloc
ser.enabled=YES
end sub
and to send data on an event I use:
ser.setdata("test")
ser.send
With this code, changing ser.num=1 to ser.num=0 , the data is sent to serial port 0. But with ser.num=1 it doesn't work.
Thanks.
I’m thankful
-
Inappropriate?I just had time for a quick look,
But it looks like you forgot to change the serial port number when sending data on the event.
You need to use ser.num=1 prior to ser.setdata() even if that's the only port your using in you project.
I think that this is because the default serial is set to 0
2 people say
this solves the problem
-
Inappropriate?Carlos, did Wolftec's tip help?
Wolftec -- thanks for all of your excellent feedback in the forum! It's really appreciated! As soon as GetSatisfaction provide an option to mark "preferred users", I will add you. -
Inappropriate?Ezuk, no need for special treatment.
I'm sure the i'll have doubt's when working with tibbo modules, and then somebody will help me out. That's all i need. -
Inappropriate?ezuk the tip Wolftec gives solved the problem.
I've tested it only today, that's why I haven't said nothing until now.
Wolftec thanks a lot for your help!
I’m thankful
Loading Profile...



EMPLOYEE

