Jump to content


Photo

/dev/tts/0 does not work ??

DM8000

  • Please log in to reply
50 replies to this topic

#1 xfiles_2007

  • Senior Member
  • 71 posts

0
Neutral

Posted 13 February 2009 - 20:21

does not get any response when using device on serial port : /dev/tts/0

works fine on dm500s with same config setup

is this an issue, will it be fixed ?

thanks

Re: /dev/tts/0 does not work ?? #2 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,503 posts

+118
Excellent

Posted 13 February 2009 - 20:45

if its an issue dmm should fix it!

post it also on the dmm forum

on the Glassfibre 1GB DVB-C...


Re: /dev/tts/0 does not work ?? #3 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 13 February 2009 - 22:12

i think it should work, i've added the drivers to the kernelconfig myself, and stty recognises tts 0 as a valid serialport

Re: /dev/tts/0 does not work ?? #4 xfiles_2007

  • Senior Member
  • 71 posts

0
Neutral

Posted 14 February 2009 - 00:39

it doesnt work for me.... i hav tested with cccam and newcs...
using the same config files in dm500s, works fine....

i think something is wrong with the image for serial port devices... can you please confirm

thanks

Re: /dev/tts/0 does not work ?? #5 jonc

  • Senior Member
  • 2,667 posts

0
Neutral

Posted 14 February 2009 - 06:49

Why not use a Ci module to read the card. I thought the 8000 had 4 Ci modules?
It's a hobby, so mileage varies Tell your friends about our Pli Wiki as it is there to help you - Click here for the PLi Wiki

Re: /dev/tts/0 does not work ?? #6 xfiles_2007

  • Senior Member
  • 71 posts

0
Neutral

Posted 14 February 2009 - 07:15

CI module ?

Dont want to spend more money....

Technically the serial port should still work!!!!

Re: /dev/tts/0 does not work ?? #7 jonc

  • Senior Member
  • 2,667 posts

0
Neutral

Posted 14 February 2009 - 07:43

I see that from your comment on austech :)

"but still why waste a jaycar reader"
It's a hobby, so mileage varies Tell your friends about our Pli Wiki as it is there to help you - Click here for the PLi Wiki

Re: /dev/tts/0 does not work ?? #8 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 14 February 2009 - 10:52

Please test what the comport does, (with a terminal program, or crosslink connector) instead of just saying 'my dm500 config does not work on a dm8000'.
Perhaps your config is wrong, or your softcam doesn't handle the comport properly, many things can go wrong. Please test the comport itself, I'm quite sure it should work.

Re: /dev/tts/0 does not work ?? #9 xfiles_2007

  • Senior Member
  • 71 posts

0
Neutral

Posted 14 February 2009 - 15:36

hi piete thanks for reply...

i still believe its a serial port issue , as the configs for both newcs and cccam dont work... works fine on the dm500s (same emu and config)

but i will do more tests as you say, as i could be wrong..... what is the best way to test the serial port on the dm8000hd? what results you need ?

thanks for the help...

Re: /dev/tts/0 does not work ?? #10 jonc

  • Senior Member
  • 2,667 posts

0
Neutral

Posted 14 February 2009 - 17:19

A point to note that the E1 DM500 software (CCcam and NewCS) is very different from the E2 DM8000 software.

How to test, simple fire up hyper terminal on your Windows machine (if you do not know what this is, the F1 help button on your windows box will help you through the process) and plug your null modem serial cable into the serial port on the DM8000 and your PC and monitor the data that the DM8000 sends to you.

Also did you check you have tts/0 in your /dev directory on your 8000? If it is not there it is all a moot point.
It's a hobby, so mileage varies Tell your friends about our Pli Wiki as it is there to help you - Click here for the PLi Wiki

Re: /dev/tts/0 does not work ?? #11 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 14 February 2009 - 18:56

stty -F /dev/tts/0 raw 115200
echo "hello" > /dev/tts/0

and you should see it on the other end, on 115200

cat /dev/tts/0

and type something on the other end, and you should see it in the console.
or if you have a loopback connector, cat in one terminal, and echo in another, and you should see the data.
old fashioned modems can also be used for a first indication, as they have an rx led which flashes when you send something.

Re: /dev/tts/0 does not work ?? #12 xfiles_2007

  • Senior Member
  • 71 posts

0
Neutral

Posted 15 February 2009 - 03:13

guys ,

i know this will sound silly....

but i cant even us the basic unix commands , like ls , cd.. , ive got not idea which path i am in...all i can do is ps and kill.... hence when i type in anything it says file not found ....
is there a page of enigma 2 commands ?? i cant find nothing...

sorry for the dumb question!...

i will then carry on with the tests...
thanks :)

Re: /dev/tts/0 does not work ?? #13 jonc

  • Senior Member
  • 2,667 posts

0
Neutral

Posted 15 February 2009 - 04:11

the standard commands are listed under busybox;

# busybox
BusyBox v1.01 (2007.12.06-03:38+0000) multi-call binary

Usage: busybox [function] [arguments]...
or: [function] [arguments]...

BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as!

Currently defined functions:
[, addgroup, adduser, ar, arping, ash, awk, basename, bunzip2,
busybox, bzcat, cat, chgrp, chmod, chown, chroot, chvt, clear,
cmp, cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup,
deluser, df, dirname, dmesg, dos2unix, du, dumpkmap, echo, egrep,
env, expr, false, fbset, fgrep, find, free, ftpget, ftpput, getkey,
getty, grep, gunzip, gzip, hdparm, head, hexdump, hostname, id,
ifconfig, ifdown, ifup, insmod, ip, kill, killall, klogd, ln,
loadfont, loadkmap, logger, login, logname, logread, losetup,
ls, lsmod, md5sum, mkdir, mkfifo, mknod, mkswap, mktemp, modprobe,
more, mount, mv, nc, netstat, nslookup, od, openvt, passwd, patch,
pidof, ping, pivot_root, printf, ps, pwd, readlink, renice, reset,
rm, rmdir, rmmod, route, run-parts, rx, sed, seq, sh, sha1sum,
sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff,
swapon, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd,
test, time, top, touch, tr, traceroute, true, tty, udhcpc, umount,
uname, uniq, unix2dos, unzip, uptime, usleep, uudecode, uuencode,
vi, vlock, watch, wc, wget, which, who, whoami, xargs, yes, zcat
It's a hobby, so mileage varies Tell your friends about our Pli Wiki as it is there to help you - Click here for the PLi Wiki

Re: /dev/tts/0 does not work ?? #14 xfiles_2007

  • Senior Member
  • 71 posts

0
Neutral

Posted 16 February 2009 - 09:39

Hi piete

I have tried the commands via telnet however i dont see anything...

I had used a null modem cable (female to female) - connected to one dm500s and one dm8000hd.


i typed in :

stty -F /dev/tts/0 raw 115200

then

echo "hello" > /dev/tts/0


when i do the cat command on the other terminal or on the same terminal i get nothing back....have i done something wrong ?


2)

I used the hyperterminal tool called tera term and when newcs starts i can see a %2 command to the pc (via null modem cable).... so i guess the serial port is working ?? or sending something ???


Strange thing is , the exact same emu and config works fine on the dm500s....

I dont know what is wrong...i still think its a serial port or its not gettin or taking any responses back...but im probably wrong...

thanks.






stty -F /dev/tts/0 raw 115200
echo "hello" > /dev/tts/0

and you should see it on the other end, on 115200

cat /dev/tts/0

and type something on the other end, and you should see it in the console.
or if you have a loopback connector, cat in one terminal, and echo in another, and you should see the data.
old fashioned modems can also be used for a first indication, as they have an rx led which flashes when you send something.



Re: /dev/tts/0 does not work ?? #15 xfiles_2007

  • Senior Member
  • 71 posts

0
Neutral

Posted 17 February 2009 - 09:39

hi

ok i used tera term and configured the port on the pc...

i can see the incoming commands to the pc from the dreambox...all the echo words are working :) and can see in the tera term tool...


now how to push commands to the dbox and see if its receiving ?? i cant work this out..

and what do i need to do on the console window to see incoming commands ?



thanks :)

Re: /dev/tts/0 does not work ?? #16 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 17 February 2009 - 10:59

with cat /dev/tts/0 (after you configured the port with stty)

Re: /dev/tts/0 does not work ?? #17 xfiles_2007

  • Senior Member
  • 71 posts

0
Neutral

Posted 17 February 2009 - 12:49

sorry for the trouble...

echo "hello" i can see on the pc , but i cant see anything when i do "cat /dev/tts/0"


it just halts on a blank line , then i have to kill the process....

when the box boots up i can see all the incoming start up messages (kernel info etc etc)...

but sending something to the box , i cant see....

thanks for all the help...



with cat /dev/tts/0 (after you configured the port with stty)



Re: /dev/tts/0 does not work ?? #18 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 17 February 2009 - 13:54

if you don't see anything, perhaps you receive no data.
does the rx count in
cat /proc/tty/driver/serial
change when you send data to the box?

Re: /dev/tts/0 does not work ?? #19 xfiles_2007

  • Senior Member
  • 71 posts

0
Neutral

Posted 17 February 2009 - 14:48

serinfo:1.0 driver revision:
0: uart:16550A mmio:0x00000000 irq:65 tx:18 rx:0 CTS
1: uart:16550A mmio:0x00000000 irq:66 tx:0 rx:0 CTS
2: uart:16550A mmio:0x00000000 irq:67 tx:0 rx:0


no luck :(


if you don't see anything, perhaps you receive no data.
does the rx count in
cat /proc/tty/driver/serial
change when you send data to the box?



Re: /dev/tts/0 does not work ?? #20 xfiles_2007

  • Senior Member
  • 71 posts

0
Neutral

Posted 17 February 2009 - 15:13

dm500s results :

serinfo:1.0 driver revision:
0: uart:16550A mmio:0x00000000 irq:20 tx:6 rx:21 fe:6 pe:10 RTS|DTR
1: uart:16550A mmio:0x00000000 irq:21 tx:0 rx:0
2: uart:16550A mmio:0x00000000 irq:22 tx:0 rx:0 CTS
3: uart:unknown port:00000000 irq:0
4: uart:unknown port:00000000 irq:0
5: uart:unknown port:00000000 irq:0
6: uart:unknown port:00000000 irq:0


so , does that mean for the 8000s , its a driver or hardware issue ?

has anybody else tested this ?

i am using tool called "serialMon" , which allows me to send data to the box...


thanks and sorry for all the trouble guys!



Also tagged with one or more of these keywords: DM8000

2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users