DreamPi Software (DC <> Pi)

Discussion in 'Sega Dreamcast Development and Research' started by kazade, Sep 2, 2015.

  1. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,034
    Likes Received:
    891
    treyldog likes this.
  2. TerdFerguson

    TerdFerguson ls ~/

    Joined:
    Apr 27, 2015
    Messages:
    664
    Likes Received:
    353
    Amazing stuff. If it spikes interest and participation in those sites i may do a few more. I did those sites in hope's i could get a DNS redirect from dc-t or oc. But that is a lot better than what I hoped for so many thanks. I want to make an online community self contained within the dreamcast's browsers/games, that helps a real lot. Again thanks

    Very impressive coding
     
  3. RedRingRico

    RedRingRico Rising Member

    Joined:
    May 26, 2009
    Messages:
    50
    Likes Received:
    28
    This is some great work. I'll be building a line voltage inducer soon to try this out. I already have a broadband adapter, but I'd like to also give this a go. Progress is astonishingly fast =D.
     
  4. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,034
    Likes Received:
    891
    Is the line voltage inducer sucking up much juice? If not, one could use a dc-dc boost on the DC 12v to power it up!
     
  5. treyldog

    treyldog Active Member

    Joined:
    Jul 22, 2015
    Messages:
    28
    Likes Received:
    8
    I know right, i'm ordering a raspberry pi as soon as i can round up the funds to try this out.
     
    RedRingRico likes this.
  6. RedRingRico

    RedRingRico Rising Member

    Joined:
    May 26, 2009
    Messages:
    50
    Likes Received:
    28
    I keep getting an error response when "AT+VLS=1" is executed, is that normal? I can connect, but it seems to be hit-and-miss. Also, the CONNECT message received after ATA appears to be broken up (based on the log file) when it fails, though when it succeeds the message is in tact with what I assume is the bitrate (115200).
     
    TerdFerguson likes this.
  7. kazade

    kazade Spirited Member

    Joined:
    Jul 22, 2015
    Messages:
    155
    Likes Received:
    164
    Could you post a screenshot of the log file? That's not right, probably something is happening too fast... What model Raspberry Pi do you have, and USB modem?

    I haven't had much time this week to work on this (various issues at home) but, I do have *some* news...

    Right now, as I type this, I know of a guy who is playing Quake 3 online, over a Wifi dongle using my DreamPi image. Complete end-to-end seamless dialling, connecting, and playing (he's had to make some tweaks which will be in the next image). :)
     
  8. RedRingRico

    RedRingRico Rising Member

    Joined:
    May 26, 2009
    Messages:
    50
    Likes Received:
    28
    Here's what I'm using:
    Raspberry Pi 2 Model B
    Zoom 56K USB Modem
    European Dreamcast and Dev. Box (the chances of it succeeding are about the same across both machines)
    18V line voltage inducer

    This is what happens on success (indent added by me, all newlines are as they were):
    Oct 7 03:30:16 dreampi Detected device ttyACM0 with speed 460800
    Oct 7 03:30:16 dreampi Connecting to modem...
    Oct 7 03:30:16 dreampi Connected.
    Oct 7 03:30:16 dreampi ATZE1

    Oct 7 03:30:16 dreampi OK

    Oct 7 03:30:16 dreampi OK
    Oct 7 03:30:16 dreampi T+FCLASS=8

    Oct 7 03:30:16 dreampi OK

    Oct 7 03:30:17 dreampi OK
    Oct 7 03:30:17 dreampi AT+VLS=1

    Oct 7 03:30:17 dreampi OK

    Oct 7 03:30:17 dreampi OK
    Oct 7 03:30:17 dreampi Dial tone enabled, starting transmission...
    Oct 7 03:30:17 dreampi AT+VSM=1,8000

    Oct 7 03:30:17 dreampi OK

    Oct 7 03:30:17 dreampi OK
    Oct 7 03:30:17 dreampi CONNECT

    Oct 7 03:30:17 dreampi CONNECT
    Oct 7 03:30:17 dreampi Setup complete, listening...
    Oct 7 03:30:36 dreampi Answering call...
    Oct 7 03:30:38 dreampi OK

    Oct 7 03:30:38 dreampi OK
    Oct 7 03:30:38 dreampi AT+VLS=0

    Oct 7 03:30:38 dreampi OK

    Oct 7 03:30:38 dreampi OK
    Oct 7 03:30:38 dreampi ATZ0

    Oct 7 03:30:38 dreampi OK

    Oct 7 03:30:38 dreampi OK
    Oct 7 03:30:38 dreampi T+FCLASS=0

    Oct 7 03:30:38 dreampi OK

    Oct 7 03:30:38 dreampi OK
    Oct 7 03:30:38 dreampi T+VLS=1

    Oct 7 03:30:38 dreampi ERROR

    Oct 7 03:30:38 dreampi ERROR
    Oct 7 03:30:38 dreampi TA
    Oct 7 03:30:52 dreampi CONNECT 230400#015#012
    Oct 7 03:30:52 dreampi CONNECT 230400#015
    Oct 7 03:30:52 dreampi Call answered!
    Oct 7 03:30:52 dreampi pppd[30060]: pppd 2.4.5 started by root, uid 0
    Oct 7 03:30:52 dreampi
    Oct 7 03:30:52 dreampi Connected
    Oct 7 03:30:52 dreampi pppd[30060]: Using interface ppp0
    Oct 7 03:30:52 dreampi pppd[30060]: Connect: ppp0 <--> /dev/ttyACM0
    Oct 7 03:30:58 dreampi pppd[30060]: local IP address 192.168.1.100
    Oct 7 03:30:58 dreampi pppd[30060]: remote IP address 192.168.1.101​

    When it fails:
    Oct 7 03:29:35 dreampi Detected device ttyACM0 with speed 460800
    Oct 7 03:29:35 dreampi Connecting to modem...
    Oct 7 03:29:35 dreampi Connected.
    Oct 7 03:29:36 dreampi ATZE1

    Oct 7 03:29:36 dreampi OK

    Oct 7 03:29:36 dreampi OK
    Oct 7 03:29:36 dreampi T+FCLASS=8

    Oct 7 03:29:36 dreampi OK

    Oct 7 03:29:36 dreampi OK
    Oct 7 03:29:36 dreampi AT+VLS=1

    Oct 7 03:29:36 dreampi OK

    Oct 7 03:29:36 dreampi OK
    Oct 7 03:29:36 dreampi Dial tone enabled, starting transmission...
    Oct 7 03:29:36 dreampi AT+VSM=1,8000

    Oct 7 03:29:36 dreampi OK

    Oct 7 03:29:36 dreampi OK
    Oct 7 03:29:36 dreampi CONNECT

    Oct 7 03:29:36 dreampi CONNECT
    Oct 7 03:29:36 dreampi Setup complete, listening...
    Oct 7 03:29:43 dreampi Answering call...
    Oct 7 03:29:45 dreampi OK

    Oct 7 03:29:45 dreampi OK
    Oct 7 03:29:45 dreampi AT+VLS=0

    Oct 7 03:29:45 dreampi OK

    Oct 7 03:29:45 dreampi OK
    Oct 7 03:29:45 dreampi ATZ0

    Oct 7 03:29:45 dreampi OK

    Oct 7 03:29:45 dreampi OK
    Oct 7 03:29:45 dreampi T+FCLASS=0

    Oct 7 03:29:45 dreampi OK

    Oct 7 03:29:45 dreampi OK
    Oct 7 03:29:45 dreampi T+VLS=1

    Oct 7 03:29:45 dreampi ERROR

    Oct 7 03:29:45 dreampi ERROR
    Oct 7 03:29:45 dreampi ATA
    Oct 7 03:30:04 dreampi CO
    Oct 7 03:30:04 dreampi NNECT 230400#015#012​


    Amazing news with Quake 3 Arena =D.

    Also, for kicks, here's what the NexGen socket_demo produces when connected:
    [​IMG]

    And a webserver running on the Raspberry Pi:
    [​IMG]
     
  9. kazade

    kazade Spirited Member

    Joined:
    Jul 22, 2015
    Messages:
    155
    Likes Received:
    164
    Ah OK you're using the dial tone stuff. Looks like the disconnect/reconnect stuff I needed to make the Conexant modem work doesn't work with yours :/ I'll have a play as soon as I can!
     
    TerdFerguson and RedRingRico like this.
  10. treyldog

    treyldog Active Member

    Joined:
    Jul 22, 2015
    Messages:
    28
    Likes Received:
    8
    Wait.... Does the alpha release download just auto-update to this newer version?, i have been waiting for another SD card image.
     
  11. kazade

    kazade Spirited Member

    Joined:
    Jul 22, 2015
    Messages:
    155
    Likes Received:
    164
    No, you can manually update though by running "git pull" from the Dreampi folder. Probably best to wait though :)
     
  12. Anthony817

    Anthony817 Familiar Face

    Joined:
    May 12, 2010
    Messages:
    1,078
    Likes Received:
    535
    Wait a minute. Wait a minute, Doc. Ah... Are you telling me that you built a wifi connection... out of a Dongle?
     
  13. kazade

    kazade Spirited Member

    Joined:
    Jul 22, 2015
    Messages:
    155
    Likes Received:
    164
    So, rather than using the Raspberry Pi's ethernet port, he added a WiFi dongle and used that. So basically aside from the power plug the whole thing is wireless.

    Even more exciting pcwzrd13 sent me this on Twitter: https://twitter.com/pcwzrd13/status/660153450135576576

    That's a Pi being powered by the Dreamcast's controller port. Combine the two and you can have a totally "wireless" setup ;)
     
    Anthony817 likes this.
  14. Anthony817

    Anthony817 Familiar Face

    Joined:
    May 12, 2010
    Messages:
    1,078
    Likes Received:
    535
    That is really awesome! I hope it doesn't pull more current than needed powering it.

    Also does that mean the very first Pi that doesn't have Ethernet will work now? Or am I missing something? Do they all have one or not?
     
  15. erfg12

    erfg12 Rising Member

    Joined:
    Aug 26, 2015
    Messages:
    60
    Likes Received:
    16
    I made a video if you guys wanna see a demo.

     
  16. kazade

    kazade Spirited Member

    Joined:
    Jul 22, 2015
    Messages:
    155
    Likes Received:
    164
    Um, the basic version of the Pi doesn't have ethernet, and I don't believe it has two USB ports (I might be wrong). If it does have two USB ports and you are happy to configure the Wifi from the terminal then you could get away with it!

    However, they still sell the Raspberry Pi 1 model B, which has Ethernet and is cheaper (I got one for £16).

    Looks like I might have some time today to finally fix up the DNS server I'm trying to get running. Once I do that I can provide another image which works with Quake 3, and also has a level of auto-configuration (e.g. detecting network IP making sure the Dreamcast is on the same subnet).

    After that, it's on to tricking Dream Arena authentication for PAL games like Toy Racer :)

    BTW, does anyone know why the PC-DC guides specify using default-asyncmap in the PPP configuration? Specifying it breaks Quake 3, but I'm not sure if removing it breaks anything?
     
  17. kazade

    kazade Spirited Member

    Joined:
    Jul 22, 2015
    Messages:
    155
    Likes Received:
    164
    Oh, you guys are going to love me! :p

    I have set up a DNS server (with caching) on the Raspberry Pi. This successfully redirects PSO to the Slyverant servers, and Sonic Adventure to the reloaded SA site on dreampipe.net!

    I've had a quick stab at tricking Dream Arena authentication - but it looks like it doesn't use HTTP (that was probably a naive assumption), anyone know what port it tries to communicate on?

    Anyway, new image coming up in the next couple of days! This one has dial tone generation, and the DNS server and better configuration!
     
  18. RedRingRico

    RedRingRico Rising Member

    Joined:
    May 26, 2009
    Messages:
    50
    Likes Received:
    28
    From the NexGen authent_demo (which appears to connect to Dreamarena) it looks like it's using port 8010, TCP. Hope that helps.
     
  19. LordFenixNC

    LordFenixNC Peppy Member

    Joined:
    Aug 24, 2014
    Messages:
    300
    Likes Received:
    72
    Going Very well it seems awesome... Kazade could the dreamcast possibly see the Raspberry Pi directories?
     
  20. TerdFerguson

    TerdFerguson ls ~/

    Joined:
    Apr 27, 2015
    Messages:
    664
    Likes Received:
    353
    Aye Kazade, I tested sending mail for probably 10-15 e-mail providers. None of them were able to send mail. I'm pretty sure its because the browsers use an old form of SSL or an incorrect port. Do the other things first of course, but if you can't forward the ports maybe a mini smtp server could be setup to listen for the specific ports. Just another feature to restore. Its kind of a novelty but some creative things could be done with it


    Edit: Is there a resource limit for the pi in terms of what we're using it for? Can things be consistently added and improved?

    Another cool thing to look into would be trying to connect to PSO without a patch disc. I know the disc also disables the licence check, along with pointing to the new server. But maybe you could just return the info the game expects for the licence. That would be a really nice feature
     
    Last edited: Nov 2, 2015
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page